i18n: zh_CN locale support
`CONFIG += embed_translations` is used.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user