mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-12-01 01:11:46 +00:00
Merge pull request #672 from xsacha/master
Compile translations in to binary
This commit is contained in:
commit
2deed09296
@ -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
0
Qt/languages/ppsspp_cn.ts
Executable file → Normal 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)
|
||||
{
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user