fractal/fractal-gtk/po/meson.build
Daniel García Moreno ae80f56720 i18n: New module to use gettext with params
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")]);
```
2018-06-18 13:41:09 +02:00

3 lines
143 B
Meson

i18n.gettext(meson.project_name(),
args: ['--keyword=i18n', '--keyword=i18n_f', '--keyword=i18n_k'],
preset: 'glib')