Separated translations from main resource file
This commit is contained in:
6
qcma.pro
6
qcma.pro
@@ -70,7 +70,7 @@ PKGCONFIG += libvitamtp libavformat libavcodec libavutil libswscale
|
||||
|
||||
QMAKE_CXXFLAGS += -Wno-write-strings -Wall -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
|
||||
|
||||
RESOURCES += qcmares.qrc
|
||||
RESOURCES += qcmares.qrc translations.qrc
|
||||
|
||||
OTHER_FILES += \
|
||||
resources/xml/psp2-updatelist.xml \
|
||||
@@ -89,8 +89,8 @@ FORMS += \
|
||||
src/forms/pinform.ui
|
||||
|
||||
TRANSLATIONS += \
|
||||
resources/translations/qcma.es.ts \
|
||||
resources/translations/qcma.ja.ts
|
||||
resources/translations/qcma_es.ts \
|
||||
resources/translations/qcma_ja.ts
|
||||
|
||||
VERSION = \\\"'0.2.8'\\\"
|
||||
|
||||
|
@@ -1,8 +1,6 @@
|
||||
<RCC>
|
||||
<qresource prefix="/main">
|
||||
<file>resources/xml/psp2-updatelist.xml</file>
|
||||
<file>resources/translations/qcma.es.qm</file>
|
||||
<file>resources/translations/qcma.ja.qm</file>
|
||||
<file>resources/images/psv_icon.png</file>
|
||||
<file>resources/images/psv_icon_16.png</file>
|
||||
<file>resources/images/qcma.png</file>
|
||||
|
@@ -91,7 +91,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
if(translator.load("qcma." + locale, ":/main/resources/translations")) {
|
||||
if(translator.load("qcma_" + locale, ":/translations")) {
|
||||
app.installTranslator(&translator);
|
||||
}
|
||||
|
||||
|
6
translations.qrc
Normal file
6
translations.qrc
Normal file
@@ -0,0 +1,6 @@
|
||||
<RCC>
|
||||
<qresource prefix="/translations">
|
||||
<file>resources/translations/qcma_es.qm</file>
|
||||
<file>resources/translations/qcma_ja.qm</file>
|
||||
</qresource>
|
||||
</RCC>
|
Reference in New Issue
Block a user