Merge lp:~mikemc/ubuntu-sso-client/cross-platform-translations-1074116 into lp:ubuntu-sso-client
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | dobey | ||||
Approved revision: | 1018 | ||||
Merged at revision: | 1014 | ||||
Proposed branch: | lp:~mikemc/ubuntu-sso-client/cross-platform-translations-1074116 | ||||
Merge into: | lp:ubuntu-sso-client | ||||
Diff against target: |
350 lines (+320/-7) 3 files modified
ubuntu_sso/utils/tests/test_translation.py (+221/-0) ubuntu_sso/utils/translation.py (+91/-0) ubuntu_sso/utils/ui.py (+8/-7) |
||||
To merge this branch: | bzr merge lp:~mikemc/ubuntu-sso-client/cross-platform-translations-1074116 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brian Curtin (community) | Approve | ||
Michał Karnicki (community) | Approve | ||
Review via email: mp+139536@code.launchpad.net |
Commit message
- Add util func returning translation function for platform/
Description of the change
- Add util func returning translation function for platform/
Consolidates checking for python version and giving gettext platform-specific search paths for translation files on frozen mac/win.
Also adds fallback to built translation files in source tree for testing translation support from source.
Windows frozen support is TBD.
Testing IRL from source:
- 'setup.py build' should've been run (as part of tests, or just run it now) to get compiled translation files.
- set language:
-- on OSX, reorder the list in system preferences > Language & Text
-- on linux, just set LANG='es' or whatever in the shell
- run sso-login-qt
- observe translated strings in UI.
Testing IRL mac frozen requires a currently unlanded setup-mac branch.
I will be pushing that soon, and will update this MP when I do.
Looks good.