Bug 161988 - i18n files location
i18n files location
Product: Fedora
Classification: Fedora
Component: system-config-bind (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jason Vas Dias
: Translation
Depends On:
  Show dependency treegraph
Reported: 2005-06-28 16:58 EDT by Andrew Martynov
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: system-config-bind-4.0.0-40_FC5
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-05-24 06:20:59 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
textdomain binding for XML loading (621 bytes, patch)
2005-07-26 03:49 EDT, Andrew Martynov
no flags Details | Diff

  None (edit)
Description Andrew Martynov 2005-06-28 16:58:16 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru-RU; rv:1.7.8) Gecko/20050512 Red Hat/1.0.4-1.4.1 Firefox/1.0.4

Description of problem:
I have found that .MO files with translated messages
should be located in three different places:
- /usr/share/locale/ru/LC_MESSAGES/bindconf.mo
- /usr/share/locale/ru/LC_MESSAGES/system-config-bind.mo
- /usr/share/system-config-bind/po/ru/LC_MESSAGES/bindconf.mo

With default location only some messages in menus is translated.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Run s-c-b while LANG=ru_RU.UTF-8
2. Look at menu items and toolbar buttons

Actual Results:  Translated GUI

Expected Results:  Partially translated GUI

Additional info:

Currently to prepare translation and test GUI I have to:
# ln -s /usr/share/locale/ru/LC_MESSAGES/system-config-bind.mo /usr/share/system-config-bind/po/ru/LC_MESSAGES/bindconf.mo
# ln -s /usr/share/locale/ru/LC_MESSAGES/system-config-bind.mo /usr/share/locale/ru/LC_MESSAGES/bindconf.mo

I suppose the problem is related to bindtextdomain() calls in 
different .py modules.

I used following to find out required .mo file location:
# LANG=ru_RU.UTF-8 strace python /usr/share/system-config-bind/GUI.py  2>&1 | grep '\.mo' | less
Comment 1 Andrew Martynov 2005-06-28 17:01:38 EDT
Sorry for mistake, please find correct results:

Expected Results:  Translated GUI

Actual Results:  Partially translated GUI

Comment 2 Jason Vas Dias 2005-07-15 20:50:08 EDT
This bug is now fixed with system-config-bind-4.0.0-18
Comment 3 Andrew Martynov 2005-07-26 03:26:38 EDT
In addition: some GUI elements still is not translated due to not explicit
textdomain binding.

1. install system-config-bind-4.0.0-19
2. run LANG=ru_RU.UTF8 system-config-bind
3. look into "preview" button on toolbar

I have found that followed correction for XML GUI interface definition solve the
Comment 4 Andrew Martynov 2005-07-26 03:49:11 EDT
Created attachment 117145 [details]
textdomain binding for XML loading
Comment 5 A S Alam 2006-05-24 06:20:59 EDT
Comment #3, this is not only for ru_RU.UTF-8 for other languages also (tested on 
Hindi, Punjabi, Japanese, Koran)

Please file separate bug for this bug.

as Basic issue is fixed, so closing this bug

Test Evnviroment:
Fedora Core Rawhide

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