From 0f4ceb131cc3b4e1eea6eaa3c04a5428d0167840 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Krupi=C4=8Dka?= Date: Tue, 12 Dec 2017 01:16:02 +0100 Subject: [PATCH] Add czech translation (#138) * Added czech translation Added czech translation (locale cs_CZ) * Make simple sleep screen more readable Add gap between "zzz" and temperature for better readability. * Adjusted czech translation Modified texts after testing on real device to fix char issues and increase readability --- workspace/TS100/inc/Translation.h | 1 + workspace/TS100/src/Translation.c | 37 +++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/workspace/TS100/inc/Translation.h b/workspace/TS100/inc/Translation.h index 26bbfd93..f03c0e84 100644 --- a/workspace/TS100/inc/Translation.h +++ b/workspace/TS100/inc/Translation.h @@ -30,5 +30,6 @@ extern const char SettingAutoChar; //#define LANG_IT //#define LANG_FR //#define LANG_DE +//#define LANG_CS_CZ #endif /* TRANSLATION_H_ */ diff --git a/workspace/TS100/src/Translation.c b/workspace/TS100/src/Translation.c index bc5a6cdb..033b047b 100644 --- a/workspace/TS100/src/Translation.c +++ b/workspace/TS100/src/Translation.c @@ -356,6 +356,43 @@ const char SettingRightChar = 'D'; const char SettingLeftChar = 'L'; const char SettingAutoChar = 'A'; #endif + +#ifdef LANG_CS_CZ +const char* SettingsLongNames[16] = { + /*These are all the help text for all the settings.*/ + /*No requirements on spacing or length*/ + "Zdroj napajeni. Pri nizsim napeti se odpoji ", //Power Source + "Teplota v rezimu spanku", //Sleep Temp + "Cas do rezimu spanku ", //Sleep Timeout + "Cas do automatickeho vypnuti ", //Shutdown Time + "Citlivost detekce pohybu <0=Vyp, 1=Min, ... 9=Max>", //Motion Sensitivity + "Jednotky mereni teploty ", //Temp Unit + "Zobrazit podrobnosti na vychozi obrazovce ", //Detailed Information + "Otoceni displaye ", //Orientation + "Povolit boost drzenim leveho tlacitka pri pajeni ", //Boost enable + "Teplota pri boostu", //Boost Temp + "Pri startu ihned nahrivat hrot ", //Auto start + "Blikani teploty pri chladnuti, dokud je hrot horky ", //Cooling Blink + "Kalibrovat mereni teploty", //Calibrate Tip + "Obnovit tovarni nastaveni", //Reset Settings + "Kalibrovat vstupni napeti. Tlacitky upravte, podrzenim potvrdte.", //VIN Cal + "Zobrazit podrobnosti pri pajeni ", //ADV SLD + }; + +const char* SettingsCalibrationWarning = "Ujistete se, ze hrot ma pokojovou teplotu! "; //ending space needed +const char* UVLOWarningString = "LOW VOLT"; //Fixed width 8 chars +const char* SleepingSimpleString = "Zzz "; // Must be <= 4 chars +const char* SleepingAdvancedString = "Rezim spanku..."; // <=17 chars +const char* WarningSimpleString = "HOT!"; //Must be <= 4 chars +const char* WarningAdvancedString = "!! HORKY HROT !!"; // <= 16 chars + +const char SettingTrueChar = 'Z'; +const char SettingFalseChar = 'V'; +const char SettingRightChar = 'P'; +const char SettingLeftChar = 'L'; +const char SettingAutoChar = 'A'; +#endif + //Currently the settings names are not translated const char* SettingsShortNames[16] = { /**/ "PWRSC ", // Power Source (DC or batt)