summaryrefslogtreecommitdiffstats
path: root/deluge/i18n/util.py
Commit message (Collapse)AuthorAge
* Fix crash when logging errors initializing gettextChase Sterling2022-01-26
|
* [i18n] Fix load_libintl errorCalum Lind2022-01-12
| | | | Fixed libintl being undefined if no library was found
* Upgrade codebase with pyupgrade (>=py3.6)DjLegolas2021-12-29
| | | | | | | | Added pyupgrade utility with manual stage to pre-commit and run on all files. Ref: https://github.com/asottile/pyupgrade Closes: deluge-torrent/deluge#326
* Remove all Python 2 supportdeluge-2.1.0.dev0DjLegolas2021-12-28
| | | | | | | | | * Removed all __future__ imports from code * Removed all six dependencies * Removed all future_builtins imports * Removed all Python 2 related code Closes: deluge-torrent/deluge#325
* [i18n] Fix set_language error with empty lang stringCalum Lind2021-12-15
| | | | | | | | | | The Web server config for language was set to an empty string which resulted in an warning logged by i18n set_language. * Changed set_language to ignore empty language string and do nothing. We don't want to override the user's system language unless actually specified by the user. * Improved the translation warning message.
* [i18n] Refactor loading libintl libraryCalum Lind2021-07-25
| | | | | Handle different names for libintl library on MacOS and Windows with fallback.
* [GTKUI] Fix torrentdetails tab bar position not savingCalum Lind2021-02-20
| | | | | | | | | The GTKUI tests were failing and the saved config for the tab bar position was not being restored. Fixed by moving the setting of notebook.tabs_pos to TorrentDetail init. Replaced more deprecated methods that were showing up in tests.
* Fix warning related to gettextneeshy2020-04-23
|
* [i18n] Try loading intl.dll on WindowsCalum Lind2019-06-11
|
* [i18n] Ignore non-translation dirs in get_languagesCalum Lind2019-05-20
| | | | | The `__pycache__` dir was showing up in list of available languages so ensure only those directories with languages are returned.
* [Core] Refactor the base argparser and translation code.Calum Lind2019-05-11
- Move baseargparser out of deluge/ui since it is also used by the Daemon and could cause packaging issues if UI code is not available. - Renamed baseargparser to argparserbase to follow existing Deluge naming. - Renamed get_version to distinguish from deluge.common.get_version. - Translation code is usable by more than just the UIs so also move it to Deluge namespace and re-use i18n directory and make it a package. - Renamed setup_translations to singular as it felt more correct. - Renamed set_dummy_trans to be more descriptive. Closes: #3081