[rkward/frameworks] rkward: Call setApplicationDomein()

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Tue Jan 26 13:27:35 UTC 2016


Git commit 37a5ffb3aff887cb06b4149669dfd14c2c43d605 by Thomas Friedrichsmeier.
Committed on 26/01/2016 at 13:27.
Pushed by tfry into branch 'frameworks'.

Call setApplicationDomein()

M  +1    -5    rkward/main.cpp

http://commits.kde.org/rkward/37a5ffb3aff887cb06b4149669dfd14c2c43d605

diff --git a/rkward/main.cpp b/rkward/main.cpp
index de8ad0a..1d97161 100644
--- a/rkward/main.cpp
+++ b/rkward/main.cpp
@@ -136,6 +136,7 @@ int main (int argc, char *argv[]) {
 	// Don't complain when trying to open help pages
 	KUrlAuthorized::allowUrlAction ("redirect", QUrl("rkward://"), QUrl ("help:"));
 
+	KLocalizedString::setApplicationDomain ("rkward");
 	KAboutData aboutData ("rkward", i18n ("RKWard"), RKWARD_VERSION, i18n ("Frontend to the R statistics language"), KAboutLicense::GPL, i18n ("(c) 2002, 2004 - 2015"), QString (), "http://rkward.kde.org");
 	aboutData.addAuthor (i18n ("Thomas Friedrichsmeier"), i18n ("Project leader / main developer"));
 	aboutData.addAuthor (i18n ("Pierre Ecochard"), i18n ("C++ developer between 2004 and 2007"));
@@ -191,10 +192,6 @@ int main (int argc, char *argv[]) {
 	RKGlobals::startup_options["evaluate"] = decodeArgument (parser.value ("evaluate"));
 	RKGlobals::startup_options["backend-debugger"] = decodeArgument (parser.value ("backend-debugger"));
 
-	// No, I do not really understand the point of separating KDE_LANG from LANGUAGE. We do honor it in so far as not
-	// forcing LANGUAGE on the backend, though. Having language as LANGUAGE makes code in RKMessageCatalog much easier compared to KCatalog.
-	// KF5 TODO: is this still needed at all? Does KDE_LANG still exist?
-	qputenv ("LANGUAGE", QLocale ().bcp47Name ().section ('-', 0, 0).toAscii ());
 	// install message handler *after* the componentData has been initialized
 	RKSettingsModuleDebug::debug_file = new QTemporaryFile (QDir::tempPath () + "/rkward.frontend");
 	RKSettingsModuleDebug::debug_file->setAutoRemove (false);
@@ -208,7 +205,6 @@ int main (int argc, char *argv[]) {
 	} else {
 		new RKWardMainWindow ();
 	}
-	
 
 	// Usually, KDE always adds the current directory to the list of prefixes.
 	// However, since RKWard 0.5.6, the main binary is in KDE's libexec dir, which defies this mechanism. Therefore, RKWARD_ENSURE_PREFIX is set from the wrapper script.



More information about the rkward-tracker mailing list