Skip to content
Open
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
79 changes: 58 additions & 21 deletions crates/ui-egui/src/backstage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -938,58 +938,95 @@ fn options(app: &mut SheetApp, ui: &mut Ui) {
"dark" => "Dark",
_ => "Light",
};
egui::ComboBox::from_id_salt("backstage_theme").width(160.0).selected_text(lang.tr(current)).show_ui(ui, |ui| {
for (value, label) in [("system", "System"), ("light", "Light"), ("dark", "Dark")] {
if ui.selectable_label(mode == value, lang.tr(label)).clicked() {
app.run_or_alert("view.theme", json!({"mode": value}));
egui::ComboBox::from_id_salt("backstage_theme")
.width(160.0)
.selected_text(lang.tr(current))
.show_ui(ui, |ui| {
for (value, label) in [("system", "System"), ("light", "Light"), ("dark", "Dark")] {
if ui.selectable_label(mode == value, lang.tr(label)).clicked() {
app.run_or_alert("view.theme", json!({"mode": value}));
}
}
}
});
})
.response
.on_hover_text(lang.tr("Choose a light or dark appearance, or follow your system's theme."));
ui.end_row();
ui.label(lang.tr("Interface language"));
egui::ComboBox::from_id_salt("backstage_language").width(160.0).selected_text(lang.name()).show_ui(ui, |ui| {
for l in i18n::Language::ALL {
if ui.selectable_label(l == lang, l.name()).clicked() {
app.run_or_alert("app.language.set", json!({"language": l.code()}));
egui::ComboBox::from_id_salt("backstage_language")
.width(160.0)
.selected_text(lang.name())
.show_ui(ui, |ui| {
for l in i18n::Language::ALL {
if ui.selectable_label(l == lang, l.name()).clicked() {
app.run_or_alert("app.language.set", json!({"language": l.code()}));
}
}
}
});
})
.response
.on_hover_text(lang.tr("Choose the interface language. Spanish also localizes formula names and separators."));
ui.end_row();
});
ui.add_space(6.0);
let mut formula_bar = app.session.prefs.formula_bar;
if ui.checkbox(&mut formula_bar, lang.tr("Show formula bar")).changed() {
if ui
.checkbox(&mut formula_bar, lang.tr("Show formula bar"))
.on_hover_text(lang.tr("Show or hide the formula bar used to view and edit the active cell."))
.changed()
{
app.run_or_alert("view.formulaBar", json!({"on": formula_bar}));
}
ui.add_space(18.0);
section(ui, lang, "Options|Editing");
let mut autocomplete = app.ui.autocomplete;
if ui.checkbox(&mut autocomplete, lang.tr("Enable AutoComplete for cell values")).changed() {
if ui
.checkbox(&mut autocomplete, lang.tr("Enable AutoComplete for cell values"))
.on_hover_text(lang.tr("Complete text from a matching value in the same column while typing in a cell."))
.changed()
{
app.run_or_alert("options.autoComplete", json!({"on": autocomplete}));
}
ui.add_space(18.0);
section(ui, lang, "Options|Save");
let mut autosave = app.grid.autosave();
if ui.checkbox(&mut autosave, lang.tr("Save .xlsx workbooks automatically after every change")).changed() {
if ui
.checkbox(&mut autosave, lang.tr("Save .xlsx workbooks automatically after every change"))
.on_hover_text(lang.tr("Save changes automatically to .xlsx workbooks that already have a file path."))
.changed()
{
app.grid.toggle_autosave();
}
let Some(calc) = app.session.active().map(|d| d.wb.calc.clone()) else { return };
ui.add_space(18.0);
section(ui, lang, "Formulas");
ui.label(lang.tr("Workbook calculation"));
use gridcraft_engine::model::CalcMode;
for (mode, id, label) in [
(CalcMode::Automatic, "automatic", "Automatic"),
(CalcMode::AutomaticExceptTables, "automaticExceptTables", "Automatic Except for Data Tables"),
(CalcMode::Manual, "manual", "Manual"),
for (mode, id, label, tip) in [
(CalcMode::Automatic, "automatic", "Automatic", "Recalculate formulas automatically when workbook values or formulas change."),
(
CalcMode::AutomaticExceptTables,
"automaticExceptTables",
"Automatic Except for Data Tables",
"Recalculate formulas automatically. What-if data tables are currently snapshots; run Data Table again to update them.",
),
(
CalcMode::Manual,
"manual",
"Manual",
"Defer updates to dependent formulas until Calculate Now or Calculate Sheet. Formulas you edit still calculate immediately.",
),
] {
if ui.radio(calc.mode == mode, lang.tr(label)).clicked() && calc.mode != mode {
if ui.radio(calc.mode == mode, lang.tr(label)).on_hover_text(lang.tr(tip)).clicked() && calc.mode != mode {
app.run_or_alert("formulas.calculationOptions", json!({"mode": id}));
}
}
ui.add_space(4.0);
let mut iterative = calc.iterative;
if ui.checkbox(&mut iterative, lang.tr("Enable iterative calculation")).changed() {
if ui.checkbox(&mut iterative, lang.tr("Enable iterative calculation"))
.on_hover_text(lang.tr(
"Repeatedly calculate circular references until results converge or the iteration limit is reached. Enable only for intentional circular formulas.",
))
.changed()
{
app.run_or_alert("formulas.calculationOptions", json!({"iterative": iterative}));
}
ui.add_space(6.0);
Expand Down
25 changes: 25 additions & 0 deletions crates/ui-egui/src/i18n/es.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,31 @@

pub(super) fn translate(text: &str) -> Option<&'static str> {
Some(match text {
"Choose a light or dark appearance, or follow your system's theme." => "Elija una apariencia clara u oscura, o use el tema del sistema.",
"Choose the interface language. Spanish also localizes formula names and separators." => {
"Elija el idioma de la interfaz. El español también adapta los nombres de las funciones y los separadores de las fórmulas."
}
"Show or hide the formula bar used to view and edit the active cell." => {
"Muestre u oculte la barra de fórmulas para ver y editar la celda activa."
}
"Complete text from a matching value in the same column while typing in a cell." => {
"Complete el texto con un valor coincidente de la misma columna al escribir en una celda."
}
"Save changes automatically to .xlsx workbooks that already have a file path." => {
"Guarde los cambios automáticamente en los libros .xlsx que ya tengan una ruta de archivo."
}
"Recalculate formulas automatically when workbook values or formulas change." => {
"Recalcule las fórmulas automáticamente al cambiar los valores o las fórmulas del libro."
}
"Recalculate formulas automatically. What-if data tables are currently snapshots; run Data Table again to update them." => {
"Recalcule las fórmulas automáticamente. Las tablas de datos de análisis de hipótesis son instantáneas; vuelva a ejecutar Tabla de datos para actualizarlas."
}
"Defer updates to dependent formulas until Calculate Now or Calculate Sheet. Formulas you edit still calculate immediately." => {
"Aplace la actualización de las fórmulas dependientes hasta elegir Calcular ahora o Calcular hoja. Las fórmulas que edite se calculan de inmediato."
}
"Repeatedly calculate circular references until results converge or the iteration limit is reached. Enable only for intentional circular formulas." => {
"Calcule las referencias circulares repetidamente hasta que los resultados converjan o se alcance el límite de iteraciones. Active esta opción solo para fórmulas circulares intencionadas."
}
"Paste" => "Pegar",
"Paste Values" => "Pegar valores",
"Paste Formulas" => "Pegar fórmulas",
Expand Down
3 changes: 2 additions & 1 deletion docs/localization-parity.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Localization parity

> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-12 · **Change:** minor (Format Cells dialog looks its labels up in the catalog) · **Target:** Microsoft Excel (Microsoft 365), Excel for Mac 16.113.4
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-16 · **Change:** minor (Spanish Options tooltips) · **Target:** Microsoft Excel (Microsoft 365), Excel for Mac 16.113.4

Per-language status against Excel, which ships its UI in dozens of languages (Windows language
packs cover 100+), with localized function names, argument separators, number and date formats,
Expand Down Expand Up @@ -78,6 +78,7 @@ language (none so far) and of localized function names.

| Date | Change | Summary |
|---|---|---|
| 2026-10-16 | minor | File › Options tooltips use `Language::tr` and have Spanish translations (#1220) |
| 2026-10-12 | minor | Format Cells looks up its tabs, labels, options and note through `Language::tr` (Fill tab keyed `Format Cells\|Fill`); dialog titles and OK/Cancel too. Labels already in a table (Number, Currency, Fill…) show translated; the rest fall back to English until the tables add them |
| 2026-10-12 | minor | Brazilian Portuguese catalog (`i18n/pt.rs`) grows from 377 to 923 entries: every key the other catalogs translate, including the dialog strings #669 starts looking up (~42%) |
| 2026-10-11 | minor | German ribbon catalog (`i18n/de.rs`, 266 labels, ~12%); `de` locale tags (de-DE, de-AT, de-CH…) resolve to German. PR #163 (localized German formulas/numbers) still open |
Expand Down
3 changes: 2 additions & 1 deletion docs/ui-parity.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# UI parity

> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-13 · **Change:** minor (horizontal scrollbar in the sheet tab bar, #840) · **Target:** Microsoft Excel (Microsoft 365), Excel for Mac 16.113.4
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-16 · **Change:** minor (File › Options tooltips, #1220) · **Target:** Microsoft Excel (Microsoft 365), Excel for Mac 16.113.4

Interaction, controls and feel, against Excel. Part of [target-app-parity.md](target-app-parity.md).
**UI/UX fidelity: ~55% ready, 50–80 h** (estimated). Ribbon command coverage is measured
Expand Down Expand Up @@ -161,6 +161,7 @@ scrollbar bugs 2–4 · pixel/feel pass against observed Excel 7–12.

| Date | Change | Summary |
|---|---|---|
| 2026-10-16 | minor | Every File › Options control has a translated hover explanation, including the three calculation modes and when to enable iterative calculation (#1220) |
| 2026-10-12 | minor | The File view's recent list tells when each workbook was last changed, read off the UI thread |
| 2026-10-13 | minor | Horizontal scrollbar in the sheet tab bar: drag, track click pages, frozen columns excluded from the page (#840) |
| 2026-10-12 | minor | Ctrl+wheel zoom steps along a ladder of percentages about 20% apart that never skips 100%, gliding to each step with animations on, so a notch out undoes a notch in (it drifted: 100 → 122 → 101); Excel steps 15 points, see decisions.md |
Expand Down