Merge lp:~osomon/elisa/turkish into lp:elisa
Status: | Needs review |
---|---|
Proposed branch: | lp:~osomon/elisa/turkish |
Merge into: | lp:elisa |
Diff against target: |
155 lines (+79/-6) 5 files modified
elisa-core/elisa/core/launcher.py (+6/-0) elisa-core/elisa/core/tests/test_utils_text.py (+42/-0) elisa-core/elisa/core/utils/text.py (+23/-1) elisa-plugins/elisa/plugins/pigment/widgets/theme.py (+2/-1) elisa-plugins/elisa/plugins/pigment/widgets/widget.py (+6/-4) |
To merge this branch: | bzr merge lp:~osomon/elisa/turkish |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Elisa Developers | Pending | ||
Review via email: mp+25900@code.launchpad.net |
Description of the change
This branch fixes most of the issues encountered when running with a Turkish locale (and possibly other "exotic" locales), most notably bug #584161.
The problem is that the Turkish language (and hence the Turkish locale) has different capitalization
rules regarding "i" ("ı" <-> "I" and "i" <-> "İ").
The fix is twofold (two separate commits in the branch):
1) Work around a well-known bug in Python itself, by importing the decimal module before the locale is set.
2) Define and use two helpers to do locale-independent ASCII translations. Those new helpers are unit-tested.
Unmerged revisions
- 1617. By Olivier Tilloy
-
Define and user two helpers to do ASCII upper/lower case conversions,
independently from the current locale. - 1616. By Olivier Tilloy
-
Import decimal early, before locale.setlocale is called.