Merge pull request #672 from xsacha/master

Compile translations in to binary
This commit is contained in:
Henrik Rydgård 2013-02-12 09:16:19 -08:00
commit 2deed09296
4 changed files with 8 additions and 4 deletions

View File

@ -43,6 +43,7 @@ INCLUDEPATH += .. ../Common ../native
desktop_ui {
MOC_DIR = moc
UI_DIR = ui
RCC_DIR = rcc
SOURCES += *.cpp
HEADERS += *.h
FORMS += *.ui

0
Qt/languages/ppsspp_cn.ts Executable file → Normal file
View File

View File

@ -833,10 +833,7 @@ void MainWindow::createLanguageMenu()
QString defaultLocale = QLocale::system().name();
defaultLocale.truncate(defaultLocale.lastIndexOf('_'));
languagePath = QApplication::applicationDirPath();
languagePath.append("/languages");
QDir langDir(languagePath);
QStringList fileNames = langDir.entryList(QStringList("ppsspp_*.qm"));
QStringList fileNames = QDir(":/languages").entryList(QStringList("ppsspp_*.qm"));
if (fileNames.size() == 0)
{

View File

@ -17,4 +17,10 @@
<file alias="breakpointDisable">resources/stop1.ico</file>
<file alias="breakpoint">resources/icon1.ico</file>
</qresource>
<qresource prefix="/">
<file>languages/ppsspp_cn.qm</file>
<file>languages/ppsspp_en.qm</file>
<file>languages/ppsspp_fr.qm</file>
<file>languages/ppsspp_pl.qm</file>
</qresource>
</RCC>