translations are not bundled or used on osx
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Ubuntu One Control Panel | Status tracked in Trunk | |||||
Stable-4-2 |
Fix Released
|
Undecided
|
Unassigned | |||
Trunk |
Fix Released
|
High
|
Mike McCracken | |||
Ubuntu One Windows Installer |
Fix Released
|
High
|
Mike McCracken | |||
Ubuntu Single Sign On Client | Status tracked in Trunk | |||||
Stable-4-2 |
Fix Released
|
Medium
|
Mike McCracken | |||
Trunk |
Fix Released
|
High
|
Mike McCracken |
Bug Description
We are currently not using the gettext translations on osx.
They are not included in the app bundle, and there's no code to get the locale or point gettext at the right files.
How to get the current preferred language from os x:
http://
this is easy with pyobjc:
import gettext
from Cocoa import NSUserDefaults
su = NSUserDefaults.
langs = su['AppleLangua
import os
path = os.path.
l1 = gettext.
l1.install()
print _("This device")
Este dispositivo
Related branches
- Brian Curtin (community): Approve
- Michał Karnicki (community): Approve
-
Diff: 44 lines (+8/-11)2 files modifiedubuntuone/controlpanel/__init__.py (+0/-1)
ubuntuone/controlpanel/gui/__init__.py (+8/-10)
- Brian Curtin (community): Approve
- Michał Karnicki (community): Approve
-
Diff: 350 lines (+320/-7)3 files modifiedubuntu_sso/utils/tests/test_translation.py (+221/-0)
ubuntu_sso/utils/translation.py (+91/-0)
ubuntu_sso/utils/ui.py (+8/-7)
description: | updated |
Changed in ubuntuone-windows-installer: | |
assignee: | nobody → Mike McCracken (mikemc) |
Changed in ubuntuone-windows-installer: | |
status: | Confirmed → In Progress |
importance: | Wishlist → High |
Changed in ubuntuone-control-panel: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Mike McCracken (mikemc) |
Changed in ubuntu-sso-client: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Mike McCracken (mikemc) |
Changed in ubuntu-sso-client: | |
status: | In Progress → Fix Committed |
Changed in ubuntuone-control-panel: | |
status: | In Progress → Fix Committed |
Changed in ubuntuone-windows-installer: | |
status: | In Progress → Fix Released |