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 658700 - Bind the locale domain so that gettext actually works
Bind the locale domain so that gettext actually works
Status: RESOLVED FIXED
Product: cogl
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Cogl maintainer(s)
Cogl maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2011-09-10 09:02 UTC by Neil Roberts
Modified: 2011-10-14 16:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
cogl: Bind the locale dir for the Cogl domain (1.50 KB, patch)
2011-09-10 09:03 UTC, Neil Roberts
none Details | Review
Mark the debug options for translation (12.02 KB, patch)
2011-09-10 09:03 UTC, Neil Roberts
none Details | Review

Description Neil Roberts 2011-09-10 09:02:58 UTC
Cogl has a few translatable strings that people have started
translating. However the translations never actually work because Cogl
was never telling gettext where the po files are for the Cogl domain.

We currently only have 4 strings marked for translation. These are a
part of the help for the debug options. However it's only a small part
so it's currently kind of pointless to translate them. If we want to
keep those strings marked I think it makes sense to also apply the
second patch which marks the rest of the strings in the debugging
options.

I think we should also consider just removing the translation
infrastructure from Cogl. All of the strings we have are currently
very technical and aimed at developers so it would probably be quite
difficult to translate them and it's probably a waste of the
translators time. Other low level graphics libraries such as Mesa and
Cairo don't have gettext support and it seems to make sense that such
a low level library should instead avoid having user-visible strings.
Comment 1 Neil Roberts 2011-09-10 09:03:00 UTC
Created attachment 196165 [details] [review]
cogl: Bind the locale dir for the Cogl domain

dgettext (which Cogl is using) doesn't work unless you first tell
gettext where the locale dir is for the library's domain. This just
adds the necessary calls into _cogl_init.
Comment 2 Neil Roberts 2011-09-10 09:03:03 UTC
Created attachment 196166 [details] [review]
Mark the debug options for translation

This adds the descriptions of the debug options to the list of
translatable strings.
Comment 3 Neil Roberts 2011-09-19 16:59:54 UTC
I've pushed the first patch as c7969a33af44. The second patch should probably wait for a bit so we don't upset the gnome string freeze.
Comment 4 Neil Roberts 2011-10-14 16:05:20 UTC
Damned Lies¹ is now tracking the Cogl 1.8 branch on Gnome 3.2 so Cogl master is no longer in string freeze. I've pushed the second patch as f628839.
Comment 5 Neil Roberts 2011-10-14 16:05:59 UTC
err.. oops

¹ http://l10n.gnome.org/module/cogl/