1
0

i18n: zh_CN locale support

`CONFIG += embed_translations` is used.
This commit is contained in:
Gary Wang
2019-10-06 17:31:27 +08:00
committed by GitHub
parent 011e46b70b
commit b1260c0b41
9 changed files with 212 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ DEFINES += QT_DEPRECATED_WARNINGS
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
CONFIG += c++11
CONFIG += c++11 lrelease embed_translations
SOURCES += \
main.cpp \
@@ -43,7 +43,9 @@ HEADERS += \
opacityhelper.h \
toolbutton.h
FORMS +=
TRANSLATIONS = \
languages/PineapplePictures.ts \
languages/PineapplePictures_zh_CN.ts
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin