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 644607 - Correct internal definition of C_()
Correct internal definition of C_()
Product: glib
Classification: Platform
Component: general
Other All
: Normal normal
: ---
Assigned To: gtkdev
Depends on:
Blocks: 643350
Reported: 2011-03-13 01:51 UTC by Owen Taylor
Modified: 2011-03-13 02:10 UTC
See Also:
GNOME target: ---
GNOME version: ---

Correct internal definition of C_() (3.66 KB, patch)
2011-03-13 01:51 UTC, Owen Taylor
committed Details | Review

Description Owen Taylor 2011-03-13 01:51:32 UTC
This bug (in particular using the application's domain) is making g_date_format_time()
not translate anything.
Comment 1 Owen Taylor 2011-03-13 01:51:34 UTC
Created attachment 183256 [details] [review]
Correct internal definition of C_()

* Since the GLib translations are lazily initialized, we need an
  internal wrapper for g_dpgettext() that does the initialization
  in the same way as glib_gettext()
* We need to use the glib domain defined by GETTEXT_PACKAGE
  rather than than the application's domain.
Comment 2 Owen Taylor 2011-03-13 02:10:49 UTC
reviewed on IRC by Ryan Lortie

Attachment 183256 [details] pushed as 789b341 - Correct internal definition of C_()