[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[vidalia-svn] r1224: Make sure LanguageSupport is initialized before we ever cons (trunk/src)
Author: edmanm
Date: 2006-09-22 00:02:27 -0400 (Fri, 22 Sep 2006)
New Revision: 1224
Modified:
trunk/src/main.cpp
trunk/src/vidalia.cpp
Log:
Make sure LanguageSupport is initialized before we ever construct a
VidaliaSettings object.
Modified: trunk/src/main.cpp
===================================================================
--- trunk/src/main.cpp 2006-09-21 06:01:31 UTC (rev 1223)
+++ trunk/src/main.cpp 2006-09-22 04:02:27 UTC (rev 1224)
@@ -53,6 +53,9 @@
Q_INIT_RESOURCE(vidalia_common);
QStringList args = char_array_to_stringlist(argv+1, argc-1);
+ /* Initialize Vidalia's supported language translations */
+ LanguageSupport::initialize();
+
/* Construct the application object. Qt strips any command-line arguments
* that it recognizes in argv, so we'll pass a stringlist of the original
* list of command-line arguments too. */
Modified: trunk/src/vidalia.cpp
===================================================================
--- trunk/src/vidalia.cpp 2006-09-21 06:01:31 UTC (rev 1223)
+++ trunk/src/vidalia.cpp 2006-09-22 04:02:27 UTC (rev 1224)
@@ -63,9 +63,6 @@
_settings.reset();
}
- /** Initialize support for language translations. */
- LanguageSupport::initialize();
-
/** Translate the GUI to the appropriate language. */
setLanguage(_args.value(ARG_LANGUAGE));