[gtk] Enable locales early

taken from debian
pull/398/head
Hleb Valoshka 2019-09-03 23:13:32 +03:00
parent ce82b41bf7
commit ee857f217f
1 changed files with 10 additions and 10 deletions

View File

@ -269,6 +269,16 @@ static void initRealize(GtkWidget* widget, AppData* app)
/* MAIN */
int main(int argc, char* argv[])
{
/* Force number displays into C locale. */
setlocale(LC_NUMERIC, "C");
setlocale(LC_ALL, "");
#ifndef WIN32
bindtextdomain(PACKAGE, LOCALEDIR);
bind_textdomain_codeset(PACKAGE, "UTF-8");
textdomain(PACKAGE);
#endif /* WIN32 */
/* Initialize the structure that holds the application's vitals. */
AppData* app = g_new0(AppData, 1);
@ -329,16 +339,6 @@ int main(int argc, char* argv[])
SetDebugVerbosity(0);
/* Force number displays into C locale. */
setlocale(LC_NUMERIC, "C");
setlocale(LC_ALL, "");
#ifndef WIN32
bindtextdomain(PACKAGE, LOCALEDIR);
bind_textdomain_codeset(PACKAGE, "UTF-8");
textdomain(PACKAGE);
#endif /* WIN32 */
app->core = new CelestiaCore();
if (app->core == NULL)
{