1
0
Commit Graph

10 Commits

Author SHA1 Message Date
SomberNight
0e5a1380ca i18n: simplify language default. only translate string if using GUI. 2024-01-16 17:23:43 +00:00
SomberNight
b0b4f39b40 i18n: add "context" param to _(), and use it from qml
fixes https://github.com/spesmilo/electrum/issues/8323

from issue:
> Currently, translatable strings from QML are assigned a `context`
> by `lupdate`, which is then also used by the conversion to `gettext`.
> This `context` must be used when translating such a string. This results in
> strings that are unique to QML to not be translated, due to a missing
> `context` parameter which we do not take into account in electrum.
2023-04-20 14:31:44 +00:00
SomberNight
27ce8ba241 i18n: log initial default language set based on OS locale 2023-04-17 19:56:05 +00:00
SomberNight
e3544f260b i18n: log set_language 2023-04-17 18:26:29 +00:00
SomberNight
b0e2e89395 i18n: document not to use old-style (%) string formatting 2023-01-10 14:06:29 +00:00
SomberNight
4293d6eca0 kivy: settings: better handling of "default" language 2021-09-15 19:52:40 +02:00
Caio Costa
397e43373f Removes inaccurate "brasilian" language
The option "brasilian" is inaccurate since we brazilians do speak Portuguese.
We don't consider "brasilian" as a language, so I believe this change I've made is a more accurate option for this public.
2021-09-09 22:32:51 -03:00
SomberNight
210ff647fa i18n: don't translate empty string
see #7158

```
$ ./contrib/pull_locale
Found 260 files to translate
Generate template
electrum/gui/qt/installwizard.py:265: warning: Empty msgid.  It is reserved by GNU gettext:
                                               gettext("") returns the header entry with
                                               meta information, not the empty string.
electrum/gui/qt/channels_list.py:49: warning: Empty msgid.  It is reserved by GNU gettext:
                                              gettext("") returns the header entry with
                                              meta information, not the empty string.
```
2021-04-01 03:33:16 +02:00
SomberNight
9a88c13b3d translations: add note that f-strings cannot be translated
and replace current usage
2020-04-11 16:33:45 +02:00
Janus
097ac144d9 file reorganization with top-level module 2018-07-13 14:01:37 +02:00