diff options
author | Tasuku Suzuki <tasuku.suzuki@qt.io> | 2017-11-20 17:19:14 +0900 |
---|---|---|
committer | Tasuku Suzuki <tasuku.suzuki@qt.io> | 2017-11-29 09:54:57 +0000 |
commit | 464e6c7f6056cec8a1d150216338d58a827307e6 (patch) | |
tree | 30b7e6321b3bbff40dfc230c3f68248b409be261 /app/translations | |
parent | 16ab0b453ac9a2341342b927c14ceb426e39ff05 (diff) |
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 <tasuku.suzuki@qt.io>
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Diffstat (limited to 'app/translations')
-rw-r--r-- | app/translations/dashboard_fr_FR.ts | 88 | ||||
-rw-r--r-- | app/translations/dashboard_ja_JP.ts | 88 | ||||
-rw-r--r-- | app/translations/dashboard_zh_CN.ts | 88 |
3 files changed, 264 insertions, 0 deletions
diff --git a/app/translations/dashboard_fr_FR.ts b/app/translations/dashboard_fr_FR.ts new file mode 100644 index 0000000..2b7cf6e --- /dev/null +++ b/app/translations/dashboard_fr_FR.ts @@ -0,0 +1,88 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.1" language="fr_FR"> +<context> + <name>Dashboard</name> + <message> + <location filename="../Dashboard.qml" line="120"/> + <source>LEFT FRONT TIRE</source> + <translation>Pneu Avant Gauche</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="121"/> + <location filename="../Dashboard.qml" line="130"/> + <location filename="../Dashboard.qml" line="140"/> + <location filename="../Dashboard.qml" line="150"/> + <source>%1 PSI</source> + <translation>Pression %1</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="129"/> + <source>LEFT REAR TIRE</source> + <translation>Pneu Arrière Gauche</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="139"/> + <source>RIGHT FRONT TIRE</source> + <translation>Pneu Avant Droit</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="149"/> + <source>RIGHT REAR TIRE</source> + <translation>Pneu Arrière Droit</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="171"/> + <source>(RPM)</source> + <translation>Tr/mn</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="201"/> + <source>LEVEL:</source> + <translation>Niveau:</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="210"/> + <source>%1 GALLONS</source> + <translation>%1 Litres</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="220"/> + <source>RANGE:</source> + <translation>Autonomie:</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="229"/> + <source>%1 MI</source> + <translation>%1 Km</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="239"/> + <source>AVG:</source> + <translation>Moyenne:</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="248"/> + <source>%1 MPG</source> + <translation>%1 l/100km</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="259"/> + <source>FUEL</source> + <translation>Carburant</translation> + </message> +</context> +<context> + <name>main</name> + <message> + <location filename="../main.cpp" line="50"/> + <source>port for binding</source> + <translation>Port du Binder</translation> + </message> + <message> + <location filename="../main.cpp" line="51"/> + <source>secret for binding</source> + <translation>Secret Binder</translation> + </message> +</context> +</TS> diff --git a/app/translations/dashboard_ja_JP.ts b/app/translations/dashboard_ja_JP.ts new file mode 100644 index 0000000..06b25dc --- /dev/null +++ b/app/translations/dashboard_ja_JP.ts @@ -0,0 +1,88 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.1" language="ja_JP"> +<context> + <name>Dashboard</name> + <message> + <location filename="../Dashboard.qml" line="115"/> + <source>LEFT FRONT TIRE</source> + <translation>左前輪</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="116"/> + <location filename="../Dashboard.qml" line="125"/> + <location filename="../Dashboard.qml" line="135"/> + <location filename="../Dashboard.qml" line="145"/> + <source>%1 PSI</source> + <translation>空気圧 %1</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="124"/> + <source>LEFT REAR TIRE</source> + <translation>左後輪</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="134"/> + <source>RIGHT FRONT TIRE</source> + <translation>右前輪</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="144"/> + <source>RIGHT REAR TIRE</source> + <translation>右後輪</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="166"/> + <source>(RPM)</source> + <translation>(RPM)</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="196"/> + <source>LEVEL:</source> + <translation>レベル:</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="205"/> + <source>%1 GALLONS</source> + <translation>%1 ガロン</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="215"/> + <source>RANGE:</source> + <translation>レンジ:</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="224"/> + <source>%1 MI</source> + <translation>%1 MI</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="234"/> + <source>AVG:</source> + <translation>平均:</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="243"/> + <source>%1 MPG</source> + <translation>%1 MPG</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="254"/> + <source>FUEL</source> + <translation>燃料</translation> + </message> +</context> +<context> + <name>main</name> + <message> + <location filename="../main.cpp" line="49"/> + <source>port for binding</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="50"/> + <source>secret for binding</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/app/translations/dashboard_zh_CN.ts b/app/translations/dashboard_zh_CN.ts new file mode 100644 index 0000000..ece07f9 --- /dev/null +++ b/app/translations/dashboard_zh_CN.ts @@ -0,0 +1,88 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.1" language="fr_FR"> +<context> + <name>Dashboard</name> + <message> + <location filename="../Dashboard.qml" line="120"/> + <source>LEFT FRONT TIRE</source> + <translation>左前车胎</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="121"/> + <location filename="../Dashboard.qml" line="130"/> + <location filename="../Dashboard.qml" line="140"/> + <location filename="../Dashboard.qml" line="150"/> + <source>%1 PSI</source> + <translation>%1 磅每平方英寸(PSI)</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="129"/> + <source>LEFT REAR TIRE</source> + <translation>左后车胎</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="139"/> + <source>RIGHT FRONT TIRE</source> + <translation>右前车胎</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="149"/> + <source>RIGHT REAR TIRE</source> + <translation>右后车胎</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="171"/> + <source>(RPM)</source> + <translation>引擎转速</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="201"/> + <source>LEVEL:</source> + <translation>剩余油量:</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="210"/> + <source>%1 GALLONS</source> + <translation>%1 加仑</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="220"/> + <source>RANGE:</source> + <translation>续航里程:</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="229"/> + <source>%1 MI</source> + <translation>%1 英里</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="239"/> + <source>AVG:</source> + <translation type="unfinished">平均油耗:</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="248"/> + <source>%1 MPG</source> + <translation type="unfinished">%1 英里每加仑(MPG)</translation> + </message> + <message> + <location filename="../Dashboard.qml" line="259"/> + <source>FUEL</source> + <translation>燃油</translation> + </message> +</context> +<context> + <name>main</name> + <message> + <location filename="../main.cpp" line="50"/> + <source>port for binding</source> + <translation>Binder端口</translation> + </message> + <message> + <location filename="../main.cpp" line="51"/> + <source>secret for binding</source> + <translation>Binder令牌</translation> + </message> +</context> +</TS> |