policycheck_state: update localization of menu entries
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
@@ -25,6 +25,9 @@ Dictionary (
|
|||||||
"The given policy number is invalid": "Die Versicherungsnummer ist ungültig",
|
"The given policy number is invalid": "Die Versicherungsnummer ist ungültig",
|
||||||
"The given policy number is valid": "Die Versicherungsnummer ist gültig",
|
"The given policy number is valid": "Die Versicherungsnummer ist gültig",
|
||||||
"Only numbers are valid": "Nur Nummern sind zulässig",
|
"Only numbers are valid": "Nur Nummern sind zulässig",
|
||||||
|
"Account": "Benutzer",
|
||||||
|
"Toggle theme": "Thema wechseln",
|
||||||
|
"Quit": "Beenden",
|
||||||
// localization
|
// localization
|
||||||
"Hello": "Hallo",
|
"Hello": "Hallo",
|
||||||
"User": "Anwender",
|
"User": "Anwender",
|
||||||
|
|||||||
@@ -635,6 +635,7 @@ fn create_menu(menu: Entity, ctx: &mut BuildContext<'_>) -> Entity {
|
|||||||
.attach(Grid::column(0))
|
.attach(Grid::column(0))
|
||||||
.attach(Grid::column_span(2))
|
.attach(Grid::column_span(2))
|
||||||
.icon(material_icons_font::MD_PERSON)
|
.icon(material_icons_font::MD_PERSON)
|
||||||
|
.text("Account")
|
||||||
.build(ctx),
|
.build(ctx),
|
||||||
)
|
)
|
||||||
.child(
|
.child(
|
||||||
@@ -646,6 +647,7 @@ fn create_menu(menu: Entity, ctx: &mut BuildContext<'_>) -> Entity {
|
|||||||
.attach(Grid::column(0))
|
.attach(Grid::column(0))
|
||||||
.attach(Grid::column_span(2))
|
.attach(Grid::column_span(2))
|
||||||
.icon(material_icons_font::MD_EDIT)
|
.icon(material_icons_font::MD_EDIT)
|
||||||
|
.text("Toggle theme")
|
||||||
.on_click(move |states, _| {
|
.on_click(move |states, _| {
|
||||||
states.get_mut::<PolicyCheckState>(menu)
|
states.get_mut::<PolicyCheckState>(menu)
|
||||||
.action(Action::ToggleTheme(menu));
|
.action(Action::ToggleTheme(menu));
|
||||||
@@ -661,6 +663,7 @@ fn create_menu(menu: Entity, ctx: &mut BuildContext<'_>) -> Entity {
|
|||||||
.attach(Grid::column(0))
|
.attach(Grid::column(0))
|
||||||
.attach(Grid::column_span(2))
|
.attach(Grid::column_span(2))
|
||||||
.icon(material_icons_font::MD_SETTINGS_POWER)
|
.icon(material_icons_font::MD_SETTINGS_POWER)
|
||||||
|
.text("Quit")
|
||||||
.on_mouse_down(move |_states, _| {
|
.on_mouse_down(move |_states, _| {
|
||||||
process::exit(0);
|
process::exit(0);
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user