From 464e6c7f6056cec8a1d150216338d58a827307e6 Mon Sep 17 00:00:00 2001 From: Tasuku Suzuki Date: Mon, 20 Nov 2017 17:19:14 +0900 Subject: I18N: add basic functionality and a few translations Added very first i18n support in the simple application. Placed language buttons at the bottom to change current language. They should be removed once current language comes from somewhere. Laying out issues should be fixed later. Change-Id: Ib5d646784820cb2753edd5a588a8826ad7d20539 Signed-off-by: Tasuku Suzuki Signed-off-by: Tadao Tanikawa --- app/app.pro | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'app/app.pro') diff --git a/app/app.pro b/app/app.pro index 9599de1..1aa4da0 100644 --- a/app/app.pro +++ b/app/app.pro @@ -1,7 +1,12 @@ TARGET = dashboard QT = quickcontrols2 -SOURCES = main.cpp + +HEADERS += \ + translator.h + +SOURCES = main.cpp \ + translator.cpp CONFIG += link_pkgconfig PKGCONFIG += libhomescreen qlibwindowmanager @@ -11,3 +16,6 @@ RESOURCES += \ images/images.qrc include(app.pri) + +LANGUAGES = ja_JP fr_FR zh_CN +include(translations.pri) -- cgit 1.2.3-korg