mirror of
https://github.com/monero-project/monero-gui
synced 2024-12-20 04:15:53 +01:00
translation files moved to resources
This commit is contained in:
parent
e5d5a6082f
commit
aa0ea18356
@ -25,8 +25,8 @@ bool TranslationManager::setLanguage(const QString &language)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// we expecting to have translation files in "i18n" directory
|
// translations are compiled into app binary
|
||||||
QString dir = qApp->applicationDirPath() + QDir::separator() + "i18n";
|
QString dir = ":/translations";
|
||||||
|
|
||||||
QString filename = "monero-core_" + language;
|
QString filename = "monero-core_" + language;
|
||||||
|
|
||||||
|
@ -90,8 +90,9 @@ linux {
|
|||||||
|
|
||||||
macx {
|
macx {
|
||||||
LIBS+= \
|
LIBS+= \
|
||||||
-lboost_serialization \
|
-L/usr/local/lib \
|
||||||
-lboost_thread \
|
-lboost_serialization \
|
||||||
|
-lboost_thread-mt \
|
||||||
-lboost_system \
|
-lboost_system \
|
||||||
-lboost_date_time \
|
-lboost_date_time \
|
||||||
-lboost_filesystem \
|
-lboost_filesystem \
|
||||||
@ -123,7 +124,7 @@ trans_update.depends = $$_PRO_FILE_
|
|||||||
trans_release.commands = lrelease $$_PRO_FILE_
|
trans_release.commands = lrelease $$_PRO_FILE_
|
||||||
trans_release.depends = trans_update $$TRANSLATIONS
|
trans_release.depends = trans_update $$TRANSLATIONS
|
||||||
|
|
||||||
translate.commands = $(MKDIR) ${DESTDIR}/i18n && $(COPY) $$PWD/translations/*.qm ${DESTDIR}/i18n
|
#translate.commands = $(MKDIR) ${DESTDIR}/i18n && $(COPY) $$PWD/translations/*.qm ${DESTDIR}/i18n
|
||||||
translate.depends = trans_release
|
translate.depends = trans_release
|
||||||
|
|
||||||
QMAKE_EXTRA_TARGETS += trans_update trans_release translate
|
QMAKE_EXTRA_TARGETS += trans_update trans_release translate
|
||||||
|
6
qml.qrc
6
qml.qrc
@ -114,5 +114,11 @@
|
|||||||
<file>pages/Receive.qml</file>
|
<file>pages/Receive.qml</file>
|
||||||
<file>components/IconButton.qml</file>
|
<file>components/IconButton.qml</file>
|
||||||
<file>lang/flags/italy.png</file>
|
<file>lang/flags/italy.png</file>
|
||||||
|
<file>translations/monero-core_de.qm</file>
|
||||||
|
<file>translations/monero-core_en.qm</file>
|
||||||
|
<file>translations/monero-core_it.qm</file>
|
||||||
|
<file>translations/monero-core_pl.qm</file>
|
||||||
|
<file>translations/monero-core_ru.qm</file>
|
||||||
|
<file>translations/monero-core_zh.qm</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
Loading…
Reference in New Issue
Block a user