Bug 206504 - Locales do not work, useless po files installation
Summary: Locales do not work, useless po files installation
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: gdeskcal
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Paul F. Johnson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Keywords:
Depends On:
Blocks: FE7Target
TreeView+ depends on / blocked
 
Reported: 2006-09-14 19:07 UTC by Lubos Stanek
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

(edit)
Clone Of:
(edit)
Last Closed: 2006-11-02 22:09:16 UTC


Attachments (Terms of Use)

Description Lubos Stanek 2006-09-14 19:07:25 UTC
Description of problem:
Locales do not work
The po files installation is useless.

Version-Release number of selected component (if applicable):
0.57.1-5 and backwards

How reproducible:
Run with non-US settings or with changed LANG=.

Actual results:
Always in C (default en) because locales were not found.

Expected results:
It should run in many locales.

Additional info:
From values.py:
SYSTEMLOCALEDIR = "LOCALEDIR"
LOCALEDIR = "locale"
From i18n.py:
localedir=os.environ.get(values.SYSTEMLOCALEDIR, values.LOCALEDIR)
gettext.install("gdeskcal", localedir, unicode = 1)

The environment variale LOCALEDIR does not exist on most systems, therefore the
"locale" directory path is always returned.

Solution:
Replace os.environ.get() function or remove it and provide direct path in:
gettext.install("gdeskcal", "/usr/share/locale", unicode = 1). Or test the
presence of the local "locale" directory, otherwise use system default.

Comment 1 Paul F. Johnson 2006-11-02 22:09:16 UTC
Fixed in 1.0


Note You need to log in before you can comment on or make changes to this bug.