Compile translations in to binary. This helps with packaging on mobile platforms. Also, build resources in a different dir so it doesn't conflict.

This commit is contained in:
Sacha committed 2013-02-13 03:07:36 +10:00
1 parent 9fe9f8986e
commit 1bfede452d
4 files changed
+8 -4

No files matched your search

+1
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
Executable → Regular
View File
File mode changed.
+1 -4
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)
{
+6
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>