mirror of
https://github.com/storytold/gridcraft.git
synced 2026-10-26 11:46:49 -06:00
Fix-up: Spanish and German strings for Interface size (#294 met #242/#271); rustfmt after merges
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
4f7144d753
commit
2f6c2cd486
@@ -9,8 +9,8 @@
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
mod es;
|
||||
mod de;
|
||||
mod es;
|
||||
mod ko;
|
||||
mod pt;
|
||||
mod ru;
|
||||
|
||||
@@ -184,6 +184,8 @@ pub(super) fn translate(text: &str) -> Option<&'static str> {
|
||||
"Gridlines" => "Gitternetzlinien",
|
||||
"Headings" => "Überschriften",
|
||||
"Zoom" => "Zoom",
|
||||
"Interface size" => "Größe der Benutzeroberfläche",
|
||||
"Auto" => "Automatisch",
|
||||
"100%" => "100%",
|
||||
"Zoom to\nSelection" => "Zoom auf die\nAuswahl",
|
||||
"Freeze\nPanes" => "Fenster\nfixieren",
|
||||
|
||||
@@ -185,6 +185,8 @@ pub(super) fn translate(text: &str) -> Option<&'static str> {
|
||||
"Gridlines" => "Líneas de cuadrícula",
|
||||
"Headings" => "Encabezados",
|
||||
"Zoom" => "Zoom",
|
||||
"Interface size" => "Tamaño de la interfaz",
|
||||
"Auto" => "Automático",
|
||||
"100%" => "100%",
|
||||
"Zoom to\nSelection" => "Ampliar\nselección",
|
||||
"Freeze\nPanes" => "Inmovilizar\npaneles",
|
||||
|
||||
@@ -253,9 +253,14 @@ fn language_switch_translates_the_ribbon_and_persists() {
|
||||
for id in ["app.language.set", "app.language.english", "app.language.japanese"] {
|
||||
assert!(ids.contains(&id), "engine.commands lists {id}");
|
||||
}
|
||||
for (language, expected) in
|
||||
[(Language::Zh, "数据"), (Language::Ja, "データ"), (Language::Ko, "데이터"), (Language::Ru, "Данные"), (Language::PtBr, "Dados"), (Language::De, "Daten")]
|
||||
{
|
||||
for (language, expected) in [
|
||||
(Language::Zh, "数据"),
|
||||
(Language::Ja, "データ"),
|
||||
(Language::Ko, "데이터"),
|
||||
(Language::Ru, "Данные"),
|
||||
(Language::PtBr, "Dados"),
|
||||
(Language::De, "Daten"),
|
||||
] {
|
||||
h.state_mut().run("app.language.set", json!({"language": language.code()})).unwrap();
|
||||
h.run_steps(2); // every locale renders the ribbon without panicking
|
||||
assert_eq!(h.state().ui.language, language);
|
||||
|
||||
Reference in New Issue
Block a user