cargo-i18n icon indicating copy to clipboard operation
cargo-i18n copied to clipboard

add support for xgettext

Open vhdirk opened this issue 1 year ago • 2 comments

I'm building a GTK application where lots of translation strings exist inside Gnome Builder *.ui files.

This PR adds support for running xgettext over non-rust files.

My i18n.toml file now looks like this:

fallback_language = "en"

[gettext]
target_languages = ["nl"]
xtr = true

xgettext = [
    "src/**/*.ui",
    "data/*.xml.in",
    "data/*.xml.in.in",
    "data/*.desktop.in.in",
]

vhdirk avatar Mar 04 '24 01:03 vhdirk

Thanks for the contribution! It needs a cargo fmt and I left one comment, then hopefully soon good to merge!

kellpossible avatar Mar 05 '24 16:03 kellpossible