mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-27 18:10:03 +01:00
Coding convention fix. Space between a function name and its opening
2008-05-12 Yair Hershkovitz <yairhr@gmail.com> * glib/gi18n.c (g_i18n_init): Coding convention fix. Space between a function name and its opening parenthesis. svn path=/trunk/; revision=6885
This commit is contained in:
parent
5e96ad041f
commit
6ff895239a
@ -1,3 +1,8 @@
|
||||
2008-05-12 Yair Hershkovitz <yairhr@gmail.com>
|
||||
|
||||
* glib/gi18n.c (g_i18n_init): Coding convention fix. Space between
|
||||
a function name and its opening parenthesis.
|
||||
|
||||
2008-05-12 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* glib/glib.symbols: Add g_i18n_init.
|
||||
@ -13,7 +18,7 @@
|
||||
|
||||
2008-05-11 Yair Hershkovitz <yairhr@gmail.com>
|
||||
|
||||
Bug 503071 - Application direction changes to right to left even if
|
||||
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,
|
||||
|
14
glib/gi18n.c
14
glib/gi18n.c
@ -37,18 +37,18 @@ g_i18n_init (void)
|
||||
{
|
||||
gchar *domain, *default_domain;
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
domain = g_strdup(textdomain (NULL));
|
||||
default_domain = g_strdup(textdomain (""));
|
||||
textdomain(domain);
|
||||
setlocale (LC_ALL, "");
|
||||
domain = g_strdup (textdomain (NULL));
|
||||
default_domain = g_strdup (textdomain (""));
|
||||
textdomain (domain);
|
||||
|
||||
if (!strcmp (domain, default_domain))
|
||||
g_warning ("textdomain() must be called before glib i18n initialization");
|
||||
|
||||
g_free(domain);
|
||||
g_free(default_domain);
|
||||
g_free (domain);
|
||||
g_free (default_domain);
|
||||
|
||||
if (!*gettext(""))
|
||||
if (!*gettext (""))
|
||||
{
|
||||
g_should_translate = FALSE;
|
||||
g_warning ("No translation is available for the requested locale.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user