Red Hat Bugzilla – Bug 140250
up2date translations and stings are outdated and can't be rebuild from source
Last modified: 2007-11-30 17:10:55 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Description of problem:
This bug report covers a few issues related to how l18n is handled.
For some time there have been an error in the danish translation,
that causes the up2date window to be larger than the screen. This
is caused by missing "\n" in some of the translated strings.
When FC3 came out, some of us expected that the already available
patch would be included, but that didn't happen.
Instead many of the strings have now reverted to the original english
strings and even worse, it is no longer possible to build up2date
There are 4 critical errors:
1) the Makefile points to python2.2, but FC3 ships with python2.3
2) firstboot.gladestrings is refrenced from po/Makefile, but it
does not exist, which makes it impossible to run "make update-po"
3) the .gladestrings in po/ is out of date, which is the reason that
many of the strings now appear un-translated.
4) As I see it there is no mechanism for the application in the sub-
directory "firstboot", to get it's its translations.
(It is setting gettext.textdomain ("firstboot"), but up2date
doesn't install anything there).
I guess that this instance of "firstboot" is obsolete.
A BUG WITH A FIX:
I have attached a patch that fixes the first 3 problems.
Basically what the patch does is to take the strings directly from
the .py and the .glade files, making the .gladestrings unnessary.
This can be done directly with xgettext, which makes pygettext
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.download up2date source rpm
2.cd into /usr/src/redhat/SOURCES/up2date-FC3-4.3.47/po
1.download up2date source rpm
2.cd into /usr/src/redhat/SOURCES/up2date-FC3-4.3.47/
gmake: *** No rule to make target `firstboot.gladestrings', needed by
python -c "import py_compile; py_compile.compile('bootloadercfg.py')"
gcc -fPIC -Wall -O2 -fomit-frame-pointer -I/usr/include/python2.2 -c
-o dmimodule.o dmimodule.c
dmimodule.c:18:20: Python.h: No such file or directory
Expected Results: I would expect make to finish without errors.
I have attached a screendumps of up2date before and after the patch.
Please note how the splash screen before the patch is in english and
- The previously described patch, apply and run make update-po in
the po/ directory.
- compressed danish .po file which contains the strings actually used
Created attachment 107139 [details]
up2date after the proposed patch
Created attachment 107140 [details]
up2date before the proposed patch
Created attachment 107142 [details]
Created attachment 107143 [details]
New .po file for danish.
I guess that you will have to run "make update-po" before and after you
copy this file into the po/ directory.
issue #2 is python-devel not being installed.
issue #1 is a bit moot now, since the po/Makefile has
changed completely now (uses intl-tool, etc) in
up2date-4.3.65 or newer should be landing in
rawhide soon, and should fix these issues.