1. 11 Sep, 2008 1 commit
    • Matthias Clasen's avatar
      Bug 548321 – <string.h> is not included in gi18n-lib.h · dc85674b
      Matthias Clasen authored
      2008-09-11  Matthias Clasen  <mclasen@redhat.com>
      
              Bug 548321 – <string.h> is not included in gi18n-lib.h
      
              * glib/gi18n.h:
              * glib/gi18n-lib.h: Include string.h, since strlen is used in
              the macros. Pointed out by Ignacio Casal Quinteiro
      
      
      svn path=/trunk/; revision=7455
      dc85674b
  2. 12 Aug, 2008 1 commit
  3. 18 Jul, 2008 1 commit
    • Matthias Clasen's avatar
      Bug 536996 – Missing noop i18n macro equivalent to C_ · e417f54c
      Matthias Clasen authored
              * glib/glib.symbols:
              * glib/gstrfuncs.[hc]: Add g_dpgettext2() which is a
              variant of g_dpgettext() taking context and id as separate
              arguments.
      
              * glib/gi18n-lib.h:
              * glib/gi18n.h: Add an NC_() macro that is to C_() as N_()
              is to _().
      
      
      svn path=/trunk/; revision=7202
      e417f54c
  4. 11 Jun, 2008 1 commit
    • Behdad Esfahbod's avatar
      Bug 503071 – Application direction changes to right to left even if · e0916c3f
      Behdad Esfahbod authored
      2008-06-11  Behdad Esfahbod  <behdad@gnome.org>
      
              Bug 503071 – Application direction changes to right to left even if
              theres no translation
      
              * glib/gi18n-lib.h:
              * glib/glib.symbols:
              * glib/gstrfuncs.h:
              * glib/gstrfuncs.c:
              Add new functions g_dgettext() and g_dngettext().
      
              * glib/gutils.c (glib_gettext):
              * glib/gfileutils.c (g_format_size_for_display):
              * glib/goption.c (dgettext_swapped):
              Use the new functions.
      
      
      svn path=/trunk/; revision=7020
      e0916c3f
  5. 20 May, 2008 1 commit
  6. 11 May, 2008 1 commit
    • Yair Hershkovitz's avatar
      Bug 503071 - Application direction changes to right to left even if theres · 7ab77ec9
      Yair Hershkovitz authored
      2008-05-11  Yair Hershkovitz  <yairhr@gmail.com>
      
              Bug 503071 - Application direction changes to right to left even if
              theres no translation. 
      
              * glib/gi18n.c: g_i18n_init() for initializing the glib i18n,
              checking if a translation is available for the calling app. wrappers for
              gettext, dgettext and dpgettext to check first if the application
              should be translated.
      
              * glib/gi18n.h: symbol declaration for gettext wrappers.
      
              * glib/gi18n-lib.h: include gi18n.h instead of libintl.h.
      
              * glib/gstrfuncs.c: moved g_dpgettext() to glib/gi18n.c.
      
              * glib/gutils.c: use g_dgettext() instead of dgettext().
      
              * glib/glibintl.h: include gi18n.h.
      
              * glib.symbols: added gettext wrappers.
      
              * glib/Makefile.am: added gi18n.c.
      
      
      svn path=/trunk/; revision=6882
      7ab77ec9
  7. 14 Mar, 2008 1 commit
    • Michael Natterer's avatar
      make it possible to disable single-file includes by defining · f4bb21aa
      Michael Natterer authored
      2008-03-14  Michael Natterer  <mitch@imendio.com>
      
      	* glib/*.h: make it possible to disable single-file includes by
      	defining G_DISABLE_SINGLE_INCLUDES when building against GLib.
      	Approved by Tim Janik.
      
      	* glib/glib.h: include <glib/gslice.h>.
      
      	* glib/gi18n.h
      	* glib/gi18n-lib.h
      	* glib/gprintf.h: include <glib.h> so the above works when these
      	files are included without including <glib.h> first.
      
      
      svn path=/trunk/; revision=6713
      f4bb21aa
  8. 10 Dec, 2007 1 commit
    • Matthias Clasen's avatar
      Change prototype to take msgctxtid + offset instead of two strings, to · d0d19f0d
      Matthias Clasen authored
      2007-12-10  Matthias Clasen  <mclasen@redhat.com>
      
              * glib/gstrfuncs.h:
              * glib/gstrfuncs.c (g_dpgettext): Change prototype to take
              msgctxtid + offset instead of two strings, to avoid duplication
              of string constants if the compiler/linker don't perform constant
              suffix merging.  (#502590, Christian Persch)
      
              * glib/gi18n.h:
              * glib/gi18n-lib.h: Adapt the definitions of C_() and Q_().
      
      
      svn path=/trunk/; revision=6081
      d0d19f0d
  9. 23 Nov, 2007 1 commit
    • Matthias Clasen's avatar
      Define a two-argument macro C_() for marking translatable strings with · a1ac3c0e
      Matthias Clasen authored
      2007-11-23  Matthias Clasen  <mclasen@redhat.com>
      
              * glib/gi18n-lib.h:
              * glib/gi18n.h: Define a two-argument macro C_() for marking
              translatable strings with context and implement C_() and Q_()
              using g_dpgettext().  (#142676, Morten Welinder)
      
              * glib/glib.symbols:
              * glib/gstrfuncs.[hc]: Implement g_dpgettext().
      
      
      svn path=/trunk/; revision=5917
      a1ac3c0e
  10. 12 Jul, 2004 1 commit
  11. 05 Nov, 2003 1 commit
    • Matthias Clasen's avatar
      New headers defining common gettext-support macros. · 2807b4e6
      Matthias Clasen authored
      Wed Nov  5 22:05:19 2003  Matthias Clasen  <maclas@gmx.de>
      
      	* glib/gi18n-lib.h:
      	* glib/gi18n.h: New headers defining common gettext-support
      	macros.
      
      	* glib/Makefile.am (glibsubinclude_HEADERS): Add gi18n.h
      	and gi18n-lib.h.
      
      	* glib/gstrfuncs.h:
      	* glib/gstrfuncs.c (g_strip_context): Auxiliary function for
      	the implementation of Q_().
      2807b4e6