Commit graph

5 commits

Author SHA1 Message Date
Daniel García Moreno
92e897e09d i18n: functions with context for translations 2018-08-17 20:07:39 +02:00
Daniel García Moreno
6d436d36e1 i18n: Detect plural i18n functions 2018-06-18 14:48:52 +02:00
Daniel García Moreno
0ff496d507 Use i18n functions instead of direct gettext 2018-06-18 14:35:35 +02:00
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
Eisha CHEN-YEN-SU
e312370817 meson.build: Add l10n support
Closes https://gitlab.gnome.org/World/fractal/issues/89
2018-05-18 12:28:41 +02:00