Adding Polish support

Closes #132 afaik.
This commit is contained in:
Ben V. Brown
2017-12-12 13:34:53 +11:00
parent 87c2ed4f53
commit 39295c9705
2 changed files with 86 additions and 30 deletions

View File

@@ -34,7 +34,7 @@ extern const char SettingLeftChar;
extern const char SettingAutoChar;
//#define LANG_EN
#define LANG_EN
//#define LANG_RU
//#define LANG_ES
//#define LANG_SE
@@ -44,6 +44,7 @@ extern const char SettingAutoChar;
//#define LANG_CS_CZ
//#define LANG_TR
//#define LANG_HR
#define LANG_DK
//#define LANG_PL
//#define LANG_DK
#endif /* TRANSLATION_H_ */

View File

@@ -128,7 +128,6 @@ const char* SettingsLongNames[16] = {
/* Advanced soldering screen enabled */"Показывать детальную информацию при пайке.",
};
const char* SettingsCalibrationWarning = "Убедитесь, что жало остыло до комнатной температуры, прежде чем продолжать!";
const char* UVLOWarningString = "БАТ РАЗР"; //Fixed width 8 chars
const char* SleepingSimpleString = "Хррр";// Must be <= 4 chars
@@ -842,3 +841,59 @@ const char* SettingsShortNames[16][2] = {
/* (<= 6) Advanced soldering screen enabled */{"ADVSLD"},
};
#endif
#ifdef LANG_PL
const char* SettingsLongNames[16] =
{
/*These are all the help text for all the settings.*/
/*No requirements on spacing or length*/
"Źródło zasilania. Ustaw napięcie odcięcia. <DC 10V> <S 3.3V dla ogniw Li>", //Power Source
"Temperatura uśpienia <°C>",//Sleep Temp
"Czas uśpienia <Minuty/Sekundy>",//Sleep Timeout
"Czas wyłączenia <Minuty>",//Shutdown Time
"Czułość ruchu <0.Wyłączona 1.minimalna 9.maksymalna>",//Motion Sensitivity
"Jednostka temperatury <C=Celsius F=Fahrenheit>",//Temp Unit
"Wyświetla szczegółowe informacje za pomocą mniejszej czcionki na ekranie bezczynnośći <T = wł., N = wył.>",//Detailed Information
"Orientacja wyświetlacza <A. Automatyczna L. Leworęczna P. Praworęczna>",//Orientation
"Użyj przycisku przedniego w celu zwiększenia temperatury <T = wł., N = wył.>",//Boost enable
"Temperatura w trybie \"boost\" ",//Boost Temp
"Automatyczne uruchamianie trybu lutowania po włączeniu zasilania. T=Lutowanie, S= Tryb Uspienia ,N=Wyłącz",//Auto start
"Temperatura na ekranie miga, gdy grot jest jeszcze gorący. <T = wł., N = wył.>",//Cooling Blink
"Kalibracja temperatury grota lutownicy",//Calibrate Tip
"Zresetuj wszystkie ustawienia",//Reset Settings
"Kalibracja napięcia wejściowego. Krótkie naciśnięcie, aby ustawić, długie naciśnięcie, aby wyjść.",//VIN Cal
"Wyświetl szczegółowe informacje podczas lutowania <T = wł., N = wył.>",//ADV SLD
};
const char* SettingsCalibrationWarning =
"Przed kontynuowaniem upewnij się, że końcówka osiągnela temperature pokojowa!";
const char* UVLOWarningString = "LOW VOLT"; //Fixed width 8 chars
const char* SleepingSimpleString = "Zzz!";// Must be <= 4 chars
const char* SleepingAdvancedString = "Uspienie...";// <=17 chars
const char* WarningSimpleString = "HOT!";//Must be <= 4 chars
const char* WarningAdvancedString = "UWAGA! GORĄCA KOŃCÓWKA!";
const char SettingTrueChar = 'T';
const char SettingFalseChar = 'N';
const char SettingRightChar = 'P';
const char SettingLeftChar = 'L';
const char SettingAutoChar = 'A';
const enum ShortNameType SettingsShortNameType = SHORT_NAME_SINGLE_LINE;
const char* SettingsShortNames[16][2] = {
/* (<= 5) Power source (DC or batt) */{"PWRSC"},
/* (<= 4) Sleep temperature */{"STMP"},
/* (<= 4) Sleep timeout */{"STME"},
/* (<= 5) Shutdown timeout */{"SHTME"},
/* (<= 6) Motion sensitivity level */{"MSENSE"},
/* (<= 6) Temperature in F and C */{"TMPUNT"},
/* (<= 6) Advanced idle display mode enabled */{"ADVIDL"},
/* (<= 6) Display rotation mode */{"DSPROT"},
/* (<= 6) Boost enabled */{"BOOST"},
/* (<= 4) Boost temperature */{"BTMP"},
/* (<= 6) Automatic start mode */{"ASTART"},
/* (<= 6) Cooldown blink */{"CLBLNK"},
/* (<= 8) Temperature calibration enter menu */{"TMP CAL?"},
/* (<= 8) Settings reset command */{"RESET?"},
/* (<= 8) Calibrate input voltage */{"CAL VIN?"},
/* (<= 6) Advanced soldering screen enabled */{"ADVSLD"},};
#endif