From 2250841fea28d1549e53ade6dbde23e69cf972d6 Mon Sep 17 00:00:00 2001 From: aiongg Date: Thu, 22 Oct 2026 01:53:24 +0000 Subject: [PATCH] Integration: #2714 Lao date names and drop the stray Preferences... key DATE_LANGUAGES gains the lo row in the same position as in LANGUAGES, so date_languages_are_the_interface_languages holds; lo.tsv loses a key that matches no English source. --- crates/engine/src/dates.rs | 11 ++++++++++- crates/ui-egui/src/i18n/lo.tsv | 1 - 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/crates/engine/src/dates.rs b/crates/engine/src/dates.rs index 251e3c47d..d3019cc7b 100644 --- a/crates/engine/src/dates.rs +++ b/crates/engine/src/dates.rs @@ -59,7 +59,7 @@ const AR_DAYS: [&str; 7] = ["الأحد", "الاثنين", "الثلاثاء", /// The languages month and weekday names can be written in (Preferences ▸ Date format ▸ Language): /// the interface languages, in the same order and with the same names. -pub static DATE_LANGUAGES: [DateLanguage; 28] = [ +pub static DATE_LANGUAGES: [DateLanguage; 29] = [ DateLanguage { code: "en", name: "English", @@ -501,6 +501,15 @@ pub static DATE_LANGUAGES: [DateLanguage; 28] = [ days: ["duminică", "luni", "marți", "miercuri", "joi", "vineri", "sâmbătă"], days_short: ["dum.", "lun.", "mar.", "mie.", "joi", "vin.", "sâm."], }, + DateLanguage { + code: "lo", + name: "ພາສາລາວ", + months: ["ມັງກອນ", "ກຸມພາ", "ມີນາ", "ເມສາ", "ພຶດສະພາ", "ມິຖຸນາ", "ກໍລະກົດ", "ສິງຫາ", "ກັນຍາ", "ຕຸລາ", "ພະຈິກ", "ທັນວາ"], + months_with_day: None, + months_short: ["ມ.ກ.", "ກ.ພ.", "ມ.ນ.", "ມ.ສ.", "ພ.ພ.", "ມິ.ຖ.", "ກ.ລ.", "ສ.ຫ.", "ກ.ຍ.", "ຕ.ລ.", "ພ.ຈ.", "ທ.ວ."], + days: ["ວັນອາທິດ", "ວັນຈັນ", "ວັນອັງຄານ", "ວັນພຸດ", "ວັນພະຫັດ", "ວັນສຸກ", "ວັນເສົາ"], + days_short: ["ອາທິດ", "ຈັນ", "ອັງຄານ", "ພຸດ", "ພະຫັດ", "ສຸກ", "ເສົາ"], + }, ]; /// The date language for `code` (any case), or `None` when there's none. diff --git a/crates/ui-egui/src/i18n/lo.tsv b/crates/ui-egui/src/i18n/lo.tsv index cc63a32ba..85e6c9413 100644 --- a/crates/ui-egui/src/i18n/lo.tsv +++ b/crates/ui-egui/src/i18n/lo.tsv @@ -22,7 +22,6 @@ View ມຸມມອງ Help ຊ່ວຍເຫຼືອ Preferences ການຕັ້ງຄ່າ - Preferences... ການຕັ້ງຄ່າ... Interface language ພາສາສະແດງຜົນ Interface size ຂະໜາດອິນເຕີເຟສ Auto ({percent}%) ອັດຕະໂນມັດ ({percent}%)