← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 3314: translate strings in the loading screen

 

------------------------------------------------------------
revno: 3314
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Tue 2013-06-18 19:46:46 +0200
message:
  translate strings in the loading screen
modified:
  changelog.txt
  win32/main.cpp


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'changelog.txt'
--- changelog.txt	2013-06-17 21:09:16 +0000
+++ changelog.txt	2013-06-18 17:46:46 +0000
@@ -1,3 +1,5 @@
+* Translation fixes
+
 -- 0.825 2013-06-18 --
 * [L#1191099] Group partial file list uploads to avoid a crash (poy)
 * [L#1189975] [ADC] Disallow some malevolent messages (maksis)

=== modified file 'win32/main.cpp'
--- win32/main.cpp	2013-02-14 19:14:20 +0000
+++ win32/main.cpp	2013-06-18 17:46:46 +0000
@@ -140,6 +140,9 @@
 		startup();
 		PluginApiWin::init();
 
+		bindtextdomain(PACKAGE, LOCALEDIR);
+		textdomain(PACKAGE);
+
 		// load in a separate thread to avoid freezing the GUI thread.
 		struct Loader : Thread {
 			Loader(SplashWindow& splash) : Thread(), splash(splash) { }
@@ -149,9 +152,6 @@
 				splash(Text::fromT(_T(APPNAME)));
 
 				dwt::Application::instance().callAsync([this] {
-					bindtextdomain(PACKAGE, LOCALEDIR);
-					textdomain(PACKAGE);
-
 					if(ResourceManager::getInstance()->isRTL()) {
 						SetProcessDefaultLayout(LAYOUT_RTL);
 					}