1 --- a/src/translation.c (revision 137)
2 +++ b/src/translation.c (working copy)
4 * Private auxiliar function
7 -trans_lang_get_similar (gchar * test)
8 +trans_lang_get_similar (gchar ** test)
13 /* Prefer C over en_GB for English variants other than en_GB. (Debian patch 02) */
14 - if (g_str_has_prefix (test, "en"))
15 + if (g_str_has_prefix (*test, "en"))
18 - test = g_strdup ("C");
20 + *test = g_strdup ("C");
24 - if (g_str_equal (test, "C"))
25 + if (g_str_equal (*test, "C"))
28 - strncpy (aux_code_2, test, 2);
29 + strncpy (aux_code_2, *test, 2);
32 for (i = 0; i < lang_num; i++)
35 if (strstr (lang[i].code, aux_code_2))
38 - test = g_strdup (lang[i].code);
40 + *test = g_strdup (lang[i].code);
44 - if (i == lang_num && g_str_has_prefix (test, "en"))
45 + if (i == lang_num && g_str_has_prefix (*test, "en"))
48 - test = g_strdup ("C");
50 + *test = g_strdup ("C");
53 return (i == lang_num ? FALSE : TRUE);
55 lang_ok = (i == 0 ? TRUE : FALSE);
58 - lang_ok = trans_lang_get_similar (tmp_code);
59 + lang_ok = trans_lang_get_similar (&tmp_code);
64 tmp_code = g_win32_getlocale ();
65 lang_ok = trans_lang_is_available (tmp_code);
67 - lang_ok = trans_lang_get_similar (tmp_code);
68 + lang_ok = trans_lang_get_similar (&tmp_code);