Move language resources to a separate file. Only build and include langs when building release version.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17787 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
82ed56bf59
commit
ea7d0011bc
3 changed files with 15 additions and 8 deletions
9
rbutil/rbutilqt/rbutilqt-lang.qrc
Normal file
9
rbutil/rbutilqt/rbutilqt-lang.qrc
Normal file
|
@ -0,0 +1,9 @@
|
|||
<RCC>
|
||||
<qresource prefix="/lang" >
|
||||
<file>rbutil_de.qm</file>
|
||||
<file>rbutil_tr.qm</file>
|
||||
<file>rbutil_fr.qm</file>
|
||||
<file>rbutil_zh_CN.qm</file>
|
||||
<file>rbutil_zh_TW.qm</file>
|
||||
</qresource>
|
||||
</RCC>
|
|
@ -25,7 +25,9 @@ QMAKE_EXTRA_TARGETS += tags
|
|||
# add a custom rule for making the translations
|
||||
lrelease.commands = $$[QT_INSTALL_BINS]/lrelease -silent rbutilqt.pro
|
||||
QMAKE_EXTRA_TARGETS += lrelease
|
||||
PRE_TARGETDEPS += lrelease
|
||||
!dbg {
|
||||
PRE_TARGETDEPS += lrelease
|
||||
}
|
||||
|
||||
|
||||
SOURCES += rbutilqt.cpp \
|
||||
|
@ -154,6 +156,9 @@ RESOURCES += rbutilqt.qrc
|
|||
win32 {
|
||||
RESOURCES += rbutilqt-win.qrc
|
||||
}
|
||||
!dbg {
|
||||
RESOURCES += rbutilqt-lang.qrc
|
||||
}
|
||||
|
||||
TRANSLATIONS += rbutil_de.ts \
|
||||
rbutil_fr.ts \
|
||||
|
|
|
@ -37,11 +37,4 @@
|
|||
<qresource prefix="/ini" >
|
||||
<file>rbutil.ini</file>
|
||||
</qresource>
|
||||
<qresource prefix="/lang" >
|
||||
<file>rbutil_de.qm</file>
|
||||
<file>rbutil_tr.qm</file>
|
||||
<file>rbutil_fr.qm</file>
|
||||
<file>rbutil_zh_CN.qm</file>
|
||||
<file>rbutil_zh_TW.qm</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
Loading…
Reference in a new issue