Merge lp:~gz/bzr/sys_prefix_share_locale_940704 into lp:bzr/2.5
Proposed by
Martin Packman
Status: | Merged |
---|---|
Approved by: | Vincent Ladeuil |
Approved revision: | no longer in the source branch. |
Merged at revision: | 6496 |
Proposed branch: | lp:~gz/bzr/sys_prefix_share_locale_940704 |
Merge into: | lp:bzr/2.5 |
Diff against target: |
28 lines (+5/-6) 1 file modified
bzrlib/i18n.py (+5/-6) |
To merge this branch: | bzr merge lp:~gz/bzr/sys_prefix_share_locale_940704 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Vincent Ladeuil | Needs Fixing | ||
Review via email: mp+99984@code.launchpad.net |
Commit message
Use sys.prefix not /usr when looking for installed .mo files
Description of the change
Change the fallback location to look for bzr translation files to be relative to the python installation, rather than hardcoded. For the common case, this is the same, but for user-installs and on windows, sys.prefix is something other than '/usr'. This means installing the translations separate from the bzrlib folder should now work in those situations.
To post a comment you must log in.
Since the locale_dir depends on the system, it's likely we'll fail on some platform sooner or later.
Can you add a config option so we know we can always work around any weird setup ?
Otherwise, just land.