After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 130509 - [PATCH] check also gettext-domain "gdesklets"
[PATCH] check also gettext-domain "gdesklets"
Status: RESOLVED FIXED
Product: gDesklets
Classification: Deprecated
Component: i18n
0.21.1
Other other
: High normal
: ---
Assigned To: Christian Neumair
Christian Neumair
Depends on:
Blocks:
 
 
Reported: 2004-01-04 13:17 UTC by Franz Klammer
Modified: 2005-08-15 01:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch: add domain-check for "gdesklets" to i18n.py (380 bytes, patch)
2004-01-04 13:18 UTC, Franz Klammer
none Details | Review
corrected patch with removed debugging-print (347 bytes, patch)
2004-01-04 13:28 UTC, Franz Klammer
none Details | Review

Description Franz Klammer 2004-01-04 13:17:22 UTC
most sensor-developers are defining a gettext domain but providing there
mo-files under gdesklets.mo.
as there are many such sensors out there i will suggest that in i18n.py 
also the domain "gdesklets" will also be checked.
Comment 1 Franz Klammer 2004-01-04 13:18:56 UTC
Created attachment 22901 [details] [review]
patch: add domain-check for "gdesklets" to i18n.py
Comment 2 Franz Klammer 2004-01-04 13:28:32 UTC
Created attachment 22902 [details] [review]
corrected patch with removed debugging-print
Comment 3 alexander.winston 2004-01-05 04:02:13 UTC
Adding the PATCH keyword and bumping the priority level to High
because of the attached patches.
Comment 4 Martin Grimme 2004-01-05 09:46:43 UTC
This looks like a bug in the Makefile in the gdesklets-extras module in
CVS where all the translation strings of all sensors in CVS are
collected in one .po file with domain gdesklets. This behavior should
be fixed.

For the time being, your patch provides a good workaround.
Comment 5 Franz Klammer 2004-01-05 10:17:45 UTC
in concerns not only gdesklets-extras because i'm a FreeBSD user and
the package gdesklets-extras is not ported. until now i didn't know
that this module exists. most of the desklets in that module are 
made as seperate ports.

i noticed the problem with the SysInfo desklet. in __init__.py
i18n is initalized with that line:

global _; _ = i18n.Translator("sysinfo-sensor")

but the Sensor installes his language files as gdesklets.mo.

for that port iv'e changed the bsd-port-makefile that it installes
the mo-files as sysinfo-sensor.mo but it's easier to change i18n.py
instead all ported desklets. 
i guess this will be any longer a common developer mistake.
maybe this should also be added to the Sensor Programming Manual at 
pycage.de.
Comment 6 Christian Neumair 2004-01-07 10:04:33 UTC
Franz: They really should use the domain they claim to use.
I'll see what I can do.

regs,
 Chris
Comment 7 Christian Neumair 2004-01-07 10:44:57 UTC
Thanks for pointing out this issue. It should be fixed in HEAD by some
more Makefile tweakage. In addition, RSS now is translatable :).

regs,
 Chris