Skip to content

Commit

Permalink
Add hungarian language support (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
TillFleisch authored Dec 29, 2024
1 parent 1c6ad2e commit 75dbce1
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ A example configuration can be found [here](example.yaml)
- **invert_power_pin**(**Optional**: boolean): If set to `true` the output of the power pin will be inverted. Defaults to `false`.
- **power_trip_delay**(**Optional**: Time): Determines the length of the power outage applied to the display unit, which is to trick it into turning on. Defaults to `500ms`.
- **power_message_repetitions**(**Optional**: uint): Determines how many message repetitions are used while turning on the machine. On some hardware combinations a higher value such as `25` is required to turn on the display successfully. Defaults to `5`.
- **language**(**Optional**: int): Status sensor language. Select one of `en-US`, `de-DE`, `it-IT`. Defaults to `en-US`.
- **language**(**Optional**: int): Status sensor language. Select one of `en-US`, `de-DE`, `it-IT`, `hu-HU`. Defaults to `en-US`.
- **model**(**Optional**: int): Different models or revisions may use different commands. This option can be used to specify the command set used by this component. Select one of `EP_2220`, `EP_2235`, `EP_3243`, `EP_3246`. Defaults to `EP_2220`.

## Philips Power switch
Expand Down
1 change: 1 addition & 0 deletions components/philips_coffee_machine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"en-US": "PHILIPS_COFFEE_LANG_en_US",
"de-DE": "PHILIPS_COFFEE_LANG_de_DE",
"it-IT": "PHILIPS_COFFEE_LANG_it_IT",
"hu-HU": "PHILIPS_COFFEE_LANG_hu_HU",
}

philips_coffee_machine_ns = cg.esphome_ns.namespace("philips_coffee_machine")
Expand Down
49 changes: 49 additions & 0 deletions components/philips_coffee_machine/localization.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,55 @@ namespace esphome

const std::string state_steam_selected = "Vapore Selezionato";
const std::string state_steam_brewing = "Erogazione Vapore";

#elif defined(PHILIPS_COFFEE_LANG_hu_HU)
const std::string state_unknown = "Ismeretlen";
const std::string state_off = "Kikapcsolva";
const std::string state_idle = "Készenlét";
const std::string state_cleaning = "Öblítés";
const std::string state_preparing = "Előkészítés";
const std::string state_water_empty = "Víztartály üres";
const std::string state_waste_warning = "Zacctartály megtelt";
const std::string state_error = "Hiba";
const std::string state_internal_error = "Belső hiba";

const std::string state_ground_coffee_selected = "Őrölt kávé kiválasztva";
const std::string state_coffee_programming_mode = "Kávé programozási mód kiválasztva";
const std::string state_coffee_selected = "Kávé kiválasztva";
const std::string state_coffee_2x_selected = "2x kávé kiválasztva";
const std::string state_coffee_brewing = "Kávé készítése";
const std::string state_coffee_2x_brewing = "2x kávé készítése";

const std::string state_ground_espresso_selected = "Őrölt eszpresszó kiválasztva";
const std::string state_espresso_programming_mode = "Eszpresszó programozási mód kiválasztva";
const std::string state_espresso_selected = "Eszpresszó kiválasztva";
const std::string state_espresso_2x_selected = "2x eszpresszó kiválasztva";
const std::string state_espresso_brewing = "Eszpresszó készítése";
const std::string state_espresso_2x_brewing = "2x eszpresszó készítése";

const std::string state_ground_americano_selected = "Őrölt americano kiválasztva";
const std::string state_americano_programming_mode = "Americano programozási mód kiválasztva";
const std::string state_americano_selected = "Americano kiválasztva";
const std::string state_americano_2x_selected = "2x americano kiválasztva";
const std::string state_americano_brewing = "Americano készítése";
const std::string state_americano_2x_brewing = "2x americano készítése";

const std::string state_ground_cappuccino_selected = "Őrölt cappuccino kiválasztva";
const std::string state_cappuccino_programming_mode = "Cappuccino programozási mód kiválasztva";
const std::string state_cappuccino_selected = "Cappuccino kiválasztva";
const std::string state_cappuccino_brewing = "Cappuccino készítése";

const std::string state_ground_latte_selected = "Őrölt latte macchiato kiválasztva";
const std::string state_latte_programming_mode = "Latte macchiato programozási mód kiválasztva";
const std::string state_latte_selected = "Latte macchiato kiválasztva";
const std::string state_latte_brewing = "Latte macchiato készítése";

const std::string state_hot_water_programming_mode = "Forró víz programozási mód kiválasztva";
const std::string state_hot_water_selected = "Forró víz kiválasztva";
const std::string state_hot_water_brewing = "Forró víz készítése";

const std::string state_steam_selected = "Gőz kiválasztva";
const std::string state_steam_brewing = "Gőz készítése";
#else
#define PHILIPS_COFFEE_LANG_DEFAULT
#endif
Expand Down

0 comments on commit 75dbce1

Please sign in to comment.