Permalink
Browse files

语言包路径

  • Loading branch information...
iptton committed May 24, 2012
1 parent 52ed141 commit 89054a704915a94d32ab307924b173db0ca9a074
Showing with 7 additions and 1 deletion.
  1. +6 −0 macdeploy
  2. +1 −1 main.cpp
  3. BIN rythem_zh_CN.qm
View
@@ -0,0 +1,6 @@
+#!/bin/sh
+cp rythem_zh_CN.qm ../Rythem-build-desktop-Qt_4_8_0__ippan____/Rythem.app/Contents/MacOS/
+cd ../Rythem-build-desktop-Qt_4_8_0__ippan____/
+macdeployqt Rythem.app -dmg
+mv Rythem.dmg ~/
+
View
@@ -56,7 +56,7 @@ int main(int argc, char *argv[])
appPath = qApp->applicationDirPath();
QTranslator translator;
- bool isLoadSuccess = translator.load("rythem_zh_CN");
+ bool isLoadSuccess = translator.load(appPath+"/rythem_zh_CN");
if(!isLoadSuccess)qDebug()<<"error";
QTextCodec::setCodecForTr(QTextCodec::codecForName("utf8"));
a.installTranslator(&translator);
View
Binary file not shown.

0 comments on commit 89054a7

Please sign in to comment.