Skip to content

Commit

Permalink
Support 9 languages, only English and Vietnamese are fully translated.
Browse files Browse the repository at this point in the history
You can help translate missing words in your language and send PR.
  • Loading branch information
dzungpv committed Oct 27, 2023
1 parent d0f273e commit f98e47b
Show file tree
Hide file tree
Showing 10 changed files with 523 additions and 308 deletions.
26 changes: 14 additions & 12 deletions main/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -255,22 +255,24 @@ const char *const language_names[] = {"Tiếng Việt"};
const char *const languages[] = {
MITSU2MQTT_LOCALE_EN,
MITSU2MQTT_LOCALE_VI,
// MITSU2MQTT_LOCALE_DE,
// MITSU2MQTT_LOCALE_ES,
// MITSU2MQTT_LOCALE_FR,
// MITSU2MQTT_LOCALE_IT,
// MITSU2MQTT_LOCALE_JA,
// MITSU2MQTT_LOCALE_ZH
MITSU2MQTT_LOCALE_DA,
MITSU2MQTT_LOCALE_DE,
MITSU2MQTT_LOCALE_ES,
MITSU2MQTT_LOCALE_FR,
MITSU2MQTT_LOCALE_IT,
MITSU2MQTT_LOCALE_JA,
MITSU2MQTT_LOCALE_ZH
};
const char *const language_names[] = {
"English",
"Tiếng Việt",
// "Deutsch",
// "Español",
// "Français",
// "Italiano",
// "日本語",
// "中文"
"Dansk",
"Deutsch",
"Español",
"Français",
"Italiano",
"日本語",
"中文"
};
#endif

Expand Down
279 changes: 133 additions & 146 deletions main/language_translations.h

Large diffs are not rendered by default.

36 changes: 35 additions & 1 deletion main/languages/da-DA.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
*/
namespace da
{
// Breadcum
const char txt_setup_page[] PROGMEM = "Opsætningsside";
const char txt_upload_fw_page[] PROGMEM = "Upload firmware";
const char txt_fw_update_page[] PROGMEM = "Opgrader firmware";
const char txt_check_fw_page[] PROGMEM = "Tjek ny firmware";
const char txt_home_page[] PROGMEM = "Hjemmeside";
// Main Menu
const char txt_control[] PROGMEM = "Kontrol";
const char txt_setup[] PROGMEM = "Indstillinger";
Expand Down Expand Up @@ -53,10 +59,12 @@ namespace da
const char txt_f_fh[] PROGMEM = "Fahrenheit";
const char txt_f_allmodes[] PROGMEM = "All modes";
const char txt_f_noheat[] PROGMEM = "All modes execept heat";
const char txt_f_noquiet[] PROGMEM = "Not support quiet mode";

// Page Reboot, save & Resseting
const char txt_m_reboot[] PROGMEM = "Rebooting... Refresh in";
const char txt_m_reset[] PROGMEM = "Resetting... Connect to SSID";
const char txt_m_reset_1[] PROGMEM = "Du kan oprette forbindelse til SSID igen";
const char txt_m_save[] PROGMEM = "Saving configuration and rebooting... Refresh in";

// Page MQTT
Expand All @@ -67,6 +75,11 @@ namespace da
const char txt_mqtt_user[] PROGMEM = "User";
const char txt_mqtt_password[] PROGMEM = "Password";
const char txt_mqtt_topic[] PROGMEM = "Topic";
const char txt_mqtt_fn_desc[] PROGMEM = "(no space or special char)";
const char txt_mqtt_port_desc[] PROGMEM = "(default 1883, not support 8883)";
const char txt_mqtt_ph_topic[] PROGMEM = "Enter Mqtt topic";
const char txt_mqtt_ph_user[] PROGMEM = "Enter Mqtt user";
const char txt_mqtt_ph_pwd[] PROGMEM = "Enter Mqtt password";

// Page Others
const char txt_others_title[] PROGMEM = "Others Parameters";
Expand All @@ -83,13 +96,23 @@ namespace da
const char txt_status_wifi[] PROGMEM = "WIFI RSSI";
const char txt_status_connect[] PROGMEM = "CONNECTED";
const char txt_status_disconnect[] PROGMEM = "DICONNECTED";
const char txt_status_wifi_ip[] PROGMEM = "WIFI IP";
const char txt_failed_get_wifi_ip[] PROGMEM = "Failed to get IP address";
const char txt_build_version[] PROGMEM = "Build Version";
const char txt_build_date[] PROGMEM = "Build Date";
const char txt_status_freeheap[] PROGMEM = "Free Heap";
const char txt_current_time[] PROGMEM = "Current Time";
const char txt_boot_time[] PROGMEM = "Boot Time";

// Page WIFI
const char txt_wifi_title[] PROGMEM = "WIFI Parameters";
const char txt_wifi_hostname[] PROGMEM = "Hostname";
const char txt_wifi_ssid[] PROGMEM = "SSID";
const char txt_wifi_psk[] PROGMEM = "PSK";
const char txt_wifi_otap[] PROGMEM = "OTA Password";
const char txt_wifi_hostname_desc[] PROGMEM = "(no space or special char)";
const char txt_wifi_ssid_enter[] PROGMEM = "(Enter a name)";
const char txt_wifi_ssid_select[] PROGMEM = "or choose a network:";

// Page Control
const char txt_ctrl_title[] PROGMEM = "Control Unit";
Expand All @@ -109,12 +132,21 @@ namespace da
const char txt_unit_steptemp[] PROGMEM = "Temerature step";
const char txt_unit_modes[] PROGMEM = "Mode support";
const char txt_unit_password[] PROGMEM = "Web password";
const char txt_unit_language[] PROGMEM = "Language";
const char txt_unit_fan_modes[] PROGMEM = "Fan mode support";
const char txt_unit_password_confirm[] PROGMEM = "Confirm Login password";
const char txt_unit_password_not_match[] PROGMEM = "Confirm Password did not match";
const char txt_unit_login_username[] PROGMEM = "Note: Default login user is";

// Page Login
const char txt_login_title[] PROGMEM = "Authentication";
const char txt_login_password[] PROGMEM = "Password";
const char txt_login_sucess[] PROGMEM = "Login successful, you will be redirect in few seconds.";
const char txt_login_fail[] PROGMEM = "Wrong username/password! try again.";
const char txt_login_username[] PROGMEM = "Username";
const char txt_login_open_status[] PROGMEM = "Open status page";
const char txt_login_ph_user[] PROGMEM = "Enter username";
const char txt_login_ph_pwd[] PROGMEM = "Enter password";

// Page Upgrade
const char txt_upgrade_title[] PROGMEM = "Upgrade";
Expand All @@ -133,9 +165,11 @@ namespace da
const char txt_upload_error[] PROGMEM = "Update error code (see Updater.cpp) ";
const char txt_upload_success[] PROGMEM = "successful";
const char txt_upload_refresh[] PROGMEM = "Refresh in";
const char txt_upload[] PROGMEM = "Upload";

// Page Init
const char txt_init_title[] PROGMEM = "Initial setup";
const char txt_init_reboot_mes[] PROGMEM = "Rebooting and connecting to your WiFi network! You should see it listed in on your access point.";
const char txt_init_reboot_mes[] PROGMEM = "Opretter forbindelse til dit WiFi-netværk med lokal adresse";
const char txt_init_reboot_mes_1[] PROGMEM = "Bruger denne adresse til at få adgang til din enhed efter genstart. Genstarter i";
const char txt_init_reboot[] PROGMEM = "Rebooting...";
}
36 changes: 35 additions & 1 deletion main/languages/de-DE.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
*/
namespace de
{
// Breadcum
const char txt_setup_page[] PROGMEM = "Setup-Seite";
const char txt_upload_fw_page[] PROGMEM = "Firmware hochladen";
const char txt_fw_update_page[] PROGMEM = "Firmware aktualisieren";
const char txt_check_fw_page[] PROGMEM = "Neue Firmware prüfen";
const char txt_home_page[] PROGMEM = "Homepage";
// Main Menu
const char txt_control[] PROGMEM = "Klimaanlage bedienen";
const char txt_setup[] PROGMEM = "Einstellungen";
Expand All @@ -29,6 +35,11 @@ namespace de
const char txt_others[] PROGMEM = "weiteres";
const char txt_reset[] PROGMEM = "Einstellungen zurücksetzen";
const char txt_reset_confirm[] PROGMEM = "Willst du wirklich alle Einstellungen zurücksetzen?";
const char txt_mqtt_fn_desc[] PROGMEM = "(no space or special char)";
const char txt_mqtt_port_desc[] PROGMEM = "(default 1883, not support 8883)";
const char txt_mqtt_ph_topic[] PROGMEM = "Enter Mqtt topic";
const char txt_mqtt_ph_user[] PROGMEM = "Enter Mqtt user";
const char txt_mqtt_ph_pwd[] PROGMEM = "Enter Mqtt password";

// Buttons
const char txt_back[] PROGMEM = "zurück";
Expand All @@ -53,10 +64,12 @@ namespace de
const char txt_f_fh[] PROGMEM = "Fahrenheit";
const char txt_f_allmodes[] PROGMEM = "jeder Modus";
const char txt_f_noheat[] PROGMEM = "jeder Modus, außer heizen";
const char txt_f_noquiet[] PROGMEM = "Not support quiet mode";

// Page Reboot, save & Resseting
const char txt_m_reboot[] PROGMEM = "Neustart... Aktualisierung in";
const char txt_m_reset[] PROGMEM = "Zurücksetzen... Verbinde mit SSID";
const char txt_m_reset_1[] PROGMEM = "Sie können sich wieder mit der SSID verbinden";
const char txt_m_save[] PROGMEM = "Einstellungen speichern und neustart... Aktualisierung in";

// Page MQTT
Expand All @@ -83,13 +96,23 @@ namespace de
const char txt_status_wifi[] PROGMEM = "WLAN RSSI";
const char txt_status_connect[] PROGMEM = "CONNECTED";
const char txt_status_disconnect[] PROGMEM = "DISCONNECTED";
const char txt_status_wifi_ip[] PROGMEM = "WIFI IP";
const char txt_failed_get_wifi_ip[] PROGMEM = "Failed to get IP address";
const char txt_build_version[] PROGMEM = "Build Version";
const char txt_build_date[] PROGMEM = "Build Date";
const char txt_status_freeheap[] PROGMEM = "Free Heap";
const char txt_current_time[] PROGMEM = "Current Time";
const char txt_boot_time[] PROGMEM = "Boot Time";

// Page WIFI
const char txt_wifi_title[] PROGMEM = "WLAN Parameter";
const char txt_wifi_hostname[] PROGMEM = "Hostname";
const char txt_wifi_ssid[] PROGMEM = "SSID";
const char txt_wifi_psk[] PROGMEM = "PSK";
const char txt_wifi_otap[] PROGMEM = "OTA Passwort";
const char txt_wifi_hostname_desc[] PROGMEM = "(no space or special char)";
const char txt_wifi_ssid_enter[] PROGMEM = "(Enter a name)";
const char txt_wifi_ssid_select[] PROGMEM = "or choose a network:";

// Page Control
const char txt_ctrl_title[] PROGMEM = "Kontrolleinheit";
Expand All @@ -109,12 +132,21 @@ namespace de
const char txt_unit_steptemp[] PROGMEM = "Temperaturschritte";
const char txt_unit_modes[] PROGMEM = "unterstützter Modus";
const char txt_unit_password[] PROGMEM = "Web Passwort";
const char txt_unit_language[] PROGMEM = "Language";
const char txt_unit_fan_modes[] PROGMEM = "Fan mode support";
const char txt_unit_password_confirm[] PROGMEM = "Confirm Login password";
const char txt_unit_password_not_match[] PROGMEM = "Confirm Password did not match";
const char txt_unit_login_username[] PROGMEM = "Note: Default login user is";

// Page Login
const char txt_login_title[] PROGMEM = "Authentifizierung";
const char txt_login_password[] PROGMEM = "Passwort";
const char txt_login_sucess[] PROGMEM = "Anmeldung erfolgreich, du wirst gleich weitergeleitet.";
const char txt_login_fail[] PROGMEM = "Falscher/s Benutzername/Passwort! Erneut versuchen.";
const char txt_login_username[] PROGMEM = "Username";
const char txt_login_open_status[] PROGMEM = "Open status page";
const char txt_login_ph_user[] PROGMEM = "Enter username";
const char txt_login_ph_pwd[] PROGMEM = "Enter password";

// Page Upgrade
const char txt_upgrade_title[] PROGMEM = "Upgrade";
Expand All @@ -133,9 +165,11 @@ namespace de
const char txt_upload_error[] PROGMEM = "Update Fehlercode (see Updater.cpp) ";
const char txt_upload_success[] PROGMEM = "erfolgreich";
const char txt_upload_refresh[] PROGMEM = "Aktualisierung in";
const char txt_upload[] PROGMEM = "Upload";

// Page Init
const char txt_init_title[] PROGMEM = "Ersteinrichtung";
const char txt_init_reboot_mes[] PROGMEM = "Neustart und Verbindung zu deinem WLAN-Netzwerk wird hergestellt! Du solltest es in deiner AccessPoint Auflistung sehen.";
const char txt_init_reboot_mes[] PROGMEM = "Verbinden mit Ihrem WLAN - Netzwerk mit lokaler Adresse";
const char txt_init_reboot_mes_1[] PROGMEM = "Verwenden Sie diese Adresse, um nach dem Neustart auf Ihr Gerät zuzugreifen.Neustart in";
const char txt_init_reboot[] PROGMEM = "Neustart...";
}
37 changes: 36 additions & 1 deletion main/languages/es-ES.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
*/
namespace es
{
// Breadcum
const char txt_setup_page[] PROGMEM = "Página de configuración";
const char txt_upload_fw_page[] PROGMEM = "Cargar firmware";
const char txt_fw_update_page[] PROGMEM = "Actualizar firmware";
const char txt_check_fw_page[] PROGMEM = "Verificar nuevo firmware";
const char txt_home_page[] PROGMEM = "Página de inicio";

// Main Menu
const char txt_control[] PROGMEM = "Control";
const char txt_setup[] PROGMEM = "Configuración";
Expand Down Expand Up @@ -53,10 +60,12 @@ namespace es
const char txt_f_fh[] PROGMEM = "Fahrenheit";
const char txt_f_allmodes[] PROGMEM = "Todos los modos";
const char txt_f_noheat[] PROGMEM = "Todos los modos excepto calor";
const char txt_f_noquiet[] PROGMEM = "Not support quiet mode";

// Page Reboot, save & Resseting
const char txt_m_reboot[] PROGMEM = "Reiniciando... Refrescando en";
const char txt_m_reset[] PROGMEM = "Restableciendo... Sonectando a SSID";
const char txt_m_reset_1[] PROGMEM = "Puedes volver a conectarte al SSID";
const char txt_m_save[] PROGMEM = "Guardando configuración and reiniciando... Refrecando en";

// Page MQTT
Expand All @@ -67,6 +76,11 @@ namespace es
const char txt_mqtt_user[] PROGMEM = "Usuario";
const char txt_mqtt_password[] PROGMEM = "Contraseña";
const char txt_mqtt_topic[] PROGMEM = "Topic";
const char txt_mqtt_fn_desc[] PROGMEM = "(no space or special char)";
const char txt_mqtt_port_desc[] PROGMEM = "(default 1883, not support 8883)";
const char txt_mqtt_ph_topic[] PROGMEM = "Enter Mqtt topic";
const char txt_mqtt_ph_user[] PROGMEM = "Enter Mqtt user";
const char txt_mqtt_ph_pwd[] PROGMEM = "Enter Mqtt password";

// Page Others
const char txt_others_title[] PROGMEM = "Otros parámetros";
Expand All @@ -83,13 +97,23 @@ namespace es
const char txt_status_wifi[] PROGMEM = "WIFI RSSI";
const char txt_status_connect[] PROGMEM = "CONNECTADO";
const char txt_status_disconnect[] PROGMEM = "DESCONECTADO";
const char txt_status_wifi_ip[] PROGMEM = "WIFI IP";
const char txt_failed_get_wifi_ip[] PROGMEM = "Failed to get IP address";
const char txt_build_version[] PROGMEM = "Build Version";
const char txt_build_date[] PROGMEM = "Build Date";
const char txt_status_freeheap[] PROGMEM = "Free Heap";
const char txt_current_time[] PROGMEM = "Current Time";
const char txt_boot_time[] PROGMEM = "Boot Time";

// Page WIFI
const char txt_wifi_title[] PROGMEM = "Parametros WIFI";
const char txt_wifi_hostname[] PROGMEM = "Hostname";
const char txt_wifi_ssid[] PROGMEM = "SSID";
const char txt_wifi_psk[] PROGMEM = "PSK";
const char txt_wifi_otap[] PROGMEM = "Contraseña OTA";
const char txt_wifi_hostname_desc[] PROGMEM = "(no space or special char)";
const char txt_wifi_ssid_enter[] PROGMEM = "(Enter a name)";
const char txt_wifi_ssid_select[] PROGMEM = "or choose a network:";

// Page Control
const char txt_ctrl_title[] PROGMEM = "Control del aparato";
Expand All @@ -109,12 +133,21 @@ namespace es
const char txt_unit_steptemp[] PROGMEM = "Variación de temperatura";
const char txt_unit_modes[] PROGMEM = "Modos soportados";
const char txt_unit_password[] PROGMEM = "Contraseña interfaz";
const char txt_unit_language[] PROGMEM = "Language";
const char txt_unit_fan_modes[] PROGMEM = "Fan mode support";
const char txt_unit_password_confirm[] PROGMEM = "Confirm Login password";
const char txt_unit_password_not_match[] PROGMEM = "Confirm Password did not match";
const char txt_unit_login_username[] PROGMEM = "Note: Default login user is";

// Page Login
const char txt_login_title[] PROGMEM = "Autentificación";
const char txt_login_password[] PROGMEM = "Contraseña";
const char txt_login_sucess[] PROGMEM = "Autentificación correcta, en pocos segundos serás redirigido.";
const char txt_login_fail[] PROGMEM = "¡Usuario contraseña invalidos! Intentalo de nuevo.";
const char txt_login_username[] PROGMEM = "Username";
const char txt_login_open_status[] PROGMEM = "Open status page";
const char txt_login_ph_user[] PROGMEM = "Enter username";
const char txt_login_ph_pwd[] PROGMEM = "Enter password";

// Page Upgrade
const char txt_upgrade_title[] PROGMEM = "Actualización";
Expand All @@ -133,9 +166,11 @@ namespace es
const char txt_upload_error[] PROGMEM = "Código de error de subida (mirar en Updater.cpp) ";
const char txt_upload_success[] PROGMEM = "Satisfactorio";
const char txt_upload_refresh[] PROGMEM = "Refescando en ";
const char txt_upload[] PROGMEM = "Upload";

// Page Init
const char txt_init_title[] PROGMEM = "Configuración inicial";
const char txt_init_reboot_mes[] PROGMEM = "Reiniciando y conectando a su red WiFi! Debería ver el equipo en su punto de acceso.";
const char txt_init_reboot_mes[] PROGMEM = "Conectándose a su red WiFi con dirección local";
const char txt_init_reboot_mes_1[] PROGMEM = "Usando esta dirección para acceder a su dispositivo después de reiniciarlo. Reiniciando en";
const char txt_init_reboot[] PROGMEM = "Reiniciando...";
}
Loading

0 comments on commit f98e47b

Please sign in to comment.