projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
15c491e
)
* Fixes NB#76897, modest is shown in the language specified by the device language...
author
Sergio Villar Senin
<svillar@igalia.com>
Mon, 26 Nov 2007 12:45:01 +0000
(12:45 +0000)
committer
Sergio Villar Senin
<svillar@igalia.com>
Mon, 26 Nov 2007 12:45:01 +0000
(12:45 +0000)
pmo-trunk-r3812
src/modest-init.c
patch
|
blob
|
history
diff --git
a/src/modest-init.c
b/src/modest-init.c
index
a4b55c6
..
3bb5408
100644
(file)
--- a/
src/modest-init.c
+++ b/
src/modest-init.c
@@
-551,31
+551,28
@@
init_debug_logging (void)
static void
init_i18n (void)
{
static void
init_i18n (void)
{
- const gchar* gettext_package;
-
#ifdef MODEST_PLATFORM_MAEMO
#ifdef MODEST_PLATFORM_MAEMO
- /* little trick make en_GB the fallback language, instead
- * of the logical IDs
- * we need the ugly ifdefs, because modest_platform_init is
- * too late.
- */
- const gchar *lang = getenv ("LANG");
- if (!lang)
+ /* little trick make en_GB the fallback language, instead
+ * of the logical IDs
+ * we need the ugly ifdefs, because modest_platform_init is
+ * too late.
+ */
+ const gchar *lc_messages = getenv ("LC_MESSAGES");
+
+ if (!lc_messages) {
setenv ("LANGUAGE", "en_GB", 1);
setenv ("LANGUAGE", "en_GB", 1);
- else {
- gchar *language = g_strdup_printf ("%s:en_GB", lang);
- setenv ("LANGUAGE", language, 1);
- g_free (language);
+ setenv ("LC_MESSAGES", "en_GB", 1);
+ } else {
+ gchar *language = g_strdup_printf ("%s:en_GB", lc_messages);
+ setenv ("LANGUAGE", language, 1);
+ g_free (language);
}
/* end of little trick */
#endif /*MODEST_PLATFORM_MAEMO */
}
/* end of little trick */
#endif /*MODEST_PLATFORM_MAEMO */
-
- gettext_package = GETTEXT_PACKAGE;
-
- bind_textdomain_codeset (gettext_package, "UTF-8");
- textdomain (gettext_package);
- setlocale (LC_ALL, "");
+ bindtextdomain (GETTEXT_PACKAGE, MODEST_LOCALE_DIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+ textdomain (GETTEXT_PACKAGE);
}
}