Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hungarian language support #88

Merged
merged 1 commit into from
Dec 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading