[PC-BSD Commits] r17980 - pcbsd/current/src-qt4/pc-gdmconf

svn at pcbsd.org svn at pcbsd.org
Sat Jul 28 01:20:41 PDT 2012


Author: yurkis
Date: 2012-07-28 08:20:40 +0000 (Sat, 28 Jul 2012)
New Revision: 17980

Modified:
   pcbsd/current/src-qt4/pc-gdmconf/main.cpp
   pcbsd/current/src-qt4/pc-gdmconf/pc-gdmconf.pro
Log:
fix translation for pc-gdmconf

Modified: pcbsd/current/src-qt4/pc-gdmconf/main.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-gdmconf/main.cpp	2012-07-28 01:00:35 UTC (rev 17979)
+++ pcbsd/current/src-qt4/pc-gdmconf/main.cpp	2012-07-28 08:20:40 UTC (rev 17980)
@@ -18,8 +18,8 @@
     QString langCode = mylocale.name();
     if ( ! QFile::exists(PREFIX + "/share/pcbsd/i18n/pc-gdmconf_" + langCode + ".qm" ) )
         langCode.truncate(langCode.indexOf("_"));
-    translator.load( QString("pc-controlpanel_") + langCode, PREFIX + "/share/pcbsd/i18n/" );
-    a.installTranslator( &translator );
+    translator.load( QString("pc-gdmconf_") + langCode, PREFIX + "/share/pcbsd/i18n/" );
+    a.installTranslator( &translator );    
 
     MainWindow w;
     w.show();

Modified: pcbsd/current/src-qt4/pc-gdmconf/pc-gdmconf.pro
===================================================================
--- pcbsd/current/src-qt4/pc-gdmconf/pc-gdmconf.pro	2012-07-28 01:00:35 UTC (rev 17979)
+++ pcbsd/current/src-qt4/pc-gdmconf/pc-gdmconf.pro	2012-07-28 08:20:40 UTC (rev 17980)
@@ -96,6 +96,10 @@
 appicon.path=/usr/local/share/pcbsd/icons
 appicon.files=pc-gdmconf.png
 
-INSTALLS += appicon desktop
+dotrans.path=/usr/local/share/pcbsd/i18n/
+dotrans.extra=cd i18n && lrelease-qt4 -nounfinished *.ts && cp *.qm /usr/local/share/pcbsd/i18n/
 
 
+INSTALLS += dotrans appicon desktop
+
+



More information about the Commits mailing list