ae80f56720
We can't use format with dynamic strings so we can't use gettext response with format. To format translatable strings easily I've created a new module so we can use like this: ``` let literal = i18n("TESTINGx gettext"); let nonamed_params = i18n_f("TESTING! gettext {} and {}", &["one", "two"]); let named_params =i18n_k("TESTING2 gettext {one} and {two}", &[("one", "1"), ("two", "two")]); ```
3 lines
143 B
Meson
3 lines
143 B
Meson
i18n.gettext(meson.project_name(),
|
|
args: ['--keyword=i18n', '--keyword=i18n_f', '--keyword=i18n_k'],
|
|
preset: 'glib')
|