mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 02:03:47 +01:00
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:
1 parent
9fe9f8986e
commit
1bfede452d
4 files changed
+8
-4
No files matched your search
@@ -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
File mode changed.
+1
-4
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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>
|
||||
Reference in new issue
Block a user