André Apitzsch
90a44f61e9
Fix missing UI translations on flatpak
2018-10-12 00:02:37 +02:00
Philipp Hörist
306a7c4b4c
Better fix for aa50da05
2018-10-11 20:01:48 +02:00
Philipp Hörist
488f3c55aa
Fix gettext not supporting Pathlib yet
2018-10-11 20:01:48 +02:00
Philipp Hörist
bd2a3a0e17
Improve finding locale dir
...
- Dont install _() globally, although its elegant mypy cant deal with it
- If gettext cant find the translation itself, iter through all dirs and search for it
2018-10-07 00:47:00 +02:00
Philipp Hörist
77c9b3a98d
Add annotations and fix pylint/mypy errors
2018-10-07 00:46:38 +02:00
Philipp Hörist
375af2a3d9
Catch error if no translation is found
2018-10-07 00:46:37 +02:00
Philipp Hörist
1b75403754
Refactor i18n
...
- Make _() available, so other modules can import it from i18n, we need
this because mypy cant handle _() in the builtins namespace
2018-10-07 00:46:36 +02:00
Philipp Hörist
ebc0dd4536
Fix license comment format
...
every linter flags this as an error
2018-10-07 00:46:35 +02:00
Philipp Hörist
23c302ca70
Fix translation on Windows
...
Fixes #8658
2018-06-23 17:07:43 +02:00
Philipp Hörist
ce7892546c
Catch error on calling setlocale()
...
Fixes #9167
2018-06-05 12:02:50 +02:00
Philipp Hörist
bc24ab470d
Fix translation in flatpak build
...
Fixes #9138
2018-05-23 08:38:09 +02:00
Philipp Hörist
7b0cbb7763
Fix detecting language
2018-05-21 21:49:19 +02:00
Philipp Hörist
3b130db60c
Simplify set_i18n_env()
...
We already determine LANG in initialize_lang()
getdefaultlocale() takes env var LANG into consideration
2018-05-17 20:07:30 +02:00
Philipp Hörist
03aa1db306
Handle LC_ALL=C correctly
...
We default to 'en' for LANG if LC_ALL=C is set
2018-05-17 20:01:59 +02:00
Philipp Hörist
52cbae69ee
Refactor Gajim startup
...
Remove as much as possible startup code from GtkApplication to stay
more true to our goal to separate GUI from the rest of Gajim
2018-04-25 19:16:38 +02:00
Philipp Hörist
e2383fd7a4
Refactor i18n module
...
- Move everything translation related from gajim.py to i18n.py
2018-04-24 23:03:19 +02:00
Philipp Hörist
1f0cc2b665
Fix bindtextdomain not available on MacOS
2017-10-17 16:28:56 +02:00
André Apitzsch
06102e7d97
Linux: fix translation issue
2017-09-22 19:12:26 +02:00
André Apitzsch
624bee755c
fix file lookup location and other issues
2017-09-22 19:12:26 +02:00
André Apitzsch
efec098aef
Use absolute imports
2017-08-18 19:48:48 +02:00
André Apitzsch
125ce523e4
Rename src directory
2017-07-02 17:25:47 +02:00