PhotoCraft: An open-source, photo editor written by scratch in pure Rust
Translate the brush size and hardness shortcut rows in every language (#6742) (#6831)
MarekSpodBiedryc39d75275815
diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsvindex d9177390a..6175183cb 100644--- a/crates/ui-egui/src/i18n/cs.tsv+++ b/crates/ui-egui/src/i18n/cs.tsv@@ -3834,3 +3834,7 @@ navigator Zoom ZvětšeníGPU Memory (MB, 0 = Automatic) Paměť GPU (MB, 0 = Automaticky){name} was changed by another app after it was opened or saved here. Soubor {name} změnila jiná aplikace poté, co byl zde otevřen nebo uložen.Replace it with this document, or cancel and use File › Save As to keep both. Nahraďte ho tímto dokumentem, nebo zrušte a použijte Soubor › Uložit jako, abyste zachovali obojí.+ Decrease Brush Size Zmenšit velikost štětce+ Increase Brush Size Zvětšit velikost štětce+ Decrease Brush Hardness Snížit tvrdost štětce+ Increase Brush Hardness Zvýšit tvrdost štětcediff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsvindex f1c5a98fb..d21c3ba6e 100644--- a/crates/ui-egui/src/i18n/el.tsv+++ b/crates/ui-egui/src/i18n/el.tsv@@ -3926,3 +3926,7 @@ curves Smooth ΕξομάλυνσηGPU Memory (MB, 0 = Automatic) Μνήμη GPU (MB, 0 = Αυτόματο){name} was changed by another app after it was opened or saved here. Το {name} άλλαξε από άλλη εφαρμογή αφού ανοίχτηκε ή αποθηκεύτηκε εδώ.Replace it with this document, or cancel and use File › Save As to keep both. Αντικαταστήστε το με αυτό το έγγραφο ή ακυρώστε και χρησιμοποιήστε Αρχείο › Αποθήκευση ως για να κρατήσετε και τα δύο.+ Decrease Brush Size Μείωση μεγέθους πινέλου+ Increase Brush Size Αύξηση μεγέθους πινέλου+ Decrease Brush Hardness Μείωση σκληρότητας πινέλου+ Increase Brush Hardness Αύξηση σκληρότητας πινέλουdiff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsvindex 0b535aa25..4956fcd97 100644--- a/crates/ui-egui/src/i18n/es.tsv+++ b/crates/ui-egui/src/i18n/es.tsv@@ -4188,3 +4188,7 @@ navigator Zoom ZoomGPU Memory (MB, 0 = Automatic) Memoria de GPU (MB, 0 = Automático){name} was changed by another app after it was opened or saved here. Otra aplicación cambió {name} después de abrirlo o guardarlo aquí.Replace it with this document, or cancel and use File › Save As to keep both. Reemplázalo con este documento, o cancela y usa Archivo › Guardar como para conservar ambos.+ Decrease Brush Size Reducir tamaño del pincel+ Increase Brush Size Aumentar tamaño del pincel+ Decrease Brush Hardness Reducir dureza del pincel+ Increase Brush Hardness Aumentar dureza del pinceldiff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsvindex 5be59a66e..62b2e8ea2 100644--- a/crates/ui-egui/src/i18n/fr.tsv+++ b/crates/ui-egui/src/i18n/fr.tsv@@ -3234,3 +3234,7 @@ curves Smooth LisserReplace Remplacer{name} was changed by another app after it was opened or saved here. {name} a été modifié par une autre application après avoir été ouvert ou enregistré ici.Replace it with this document, or cancel and use File › Save As to keep both. Remplacez-le par ce document, ou annulez et utilisez Fichier › Enregistrer sous pour garder les deux.+ Decrease Brush Size Réduire la taille du pinceau+ Increase Brush Size Augmenter la taille du pinceau+ Decrease Brush Hardness Réduire la dureté du pinceau+ Increase Brush Hardness Augmenter la dureté du pinceaudiff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsvindex e24215c49..a52cb5fdb 100644--- a/crates/ui-egui/src/i18n/hu.tsv+++ b/crates/ui-egui/src/i18n/hu.tsv@@ -4145,3 +4145,7 @@ cameraRaw Yellow SárgaGPU Memory (MB, 0 = Automatic) GPU-memória (MB, 0 = Automatikus){name} was changed by another app after it was opened or saved here. A(z) {name} fájlt egy másik alkalmazás módosította, miután itt megnyitották vagy mentették.Replace it with this document, or cancel and use File › Save As to keep both. Cserélje le erre a dokumentumra, vagy válassza a Mégse gombot, és a Fájl › Mentés másként paranccsal tartsa meg mindkettőt.+ Decrease Brush Size Ecsetméret csökkentése+ Increase Brush Size Ecsetméret növelése+ Decrease Brush Hardness Ecsetkeménység csökkentése+ Increase Brush Hardness Ecsetkeménység növelésediff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsvindex ddbac1443..14e65b2b7 100644--- a/crates/ui-egui/src/i18n/id.tsv+++ b/crates/ui-egui/src/i18n/id.tsv@@ -3221,3 +3221,7 @@ curves Smooth HaluskanReplace Ganti{name} was changed by another app after it was opened or saved here. {name} diubah oleh aplikasi lain setelah dibuka atau disimpan di sini.Replace it with this document, or cancel and use File › Save As to keep both. Ganti dengan dokumen ini, atau batalkan dan gunakan Berkas › Simpan Sebagai untuk menyimpan keduanya.+ Decrease Brush Size Perkecil ukuran kuas+ Increase Brush Size Perbesar ukuran kuas+ Decrease Brush Hardness Kurangi kekerasan kuas+ Increase Brush Hardness Tambah kekerasan kuasdiff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsvindex 6f66ee603..b14f5c119 100644--- a/crates/ui-egui/src/i18n/ja.tsv+++ b/crates/ui-egui/src/i18n/ja.tsv@@ -3903,3 +3903,7 @@ curves Smooth スムーズReplace 置き換え{name} was changed by another app after it was opened or saved here. {name} は、ここで開くか保存した後に別のアプリで変更されました。Replace it with this document, or cancel and use File › Save As to keep both. この書類で置き換えるか、キャンセルしてファイル › 名前を付けて保存で両方を残してください。+ Decrease Brush Size ブラシサイズを小さく+ Increase Brush Size ブラシサイズを大きく+ Decrease Brush Hardness ブラシの硬さを下げる+ Increase Brush Hardness ブラシの硬さを上げるdiff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsvindex 472c28d92..ce06b65cd 100644--- a/crates/ui-egui/src/i18n/ko.tsv+++ b/crates/ui-egui/src/i18n/ko.tsv@@ -3405,3 +3405,7 @@ curves Smooth 매끄럽게Replace 대치{name} was changed by another app after it was opened or saved here. {name}이(가) 여기서 열거나 저장한 뒤 다른 앱에서 변경되었습니다.Replace it with this document, or cancel and use File › Save As to keep both. 이 문서로 대치하거나, 취소하고 파일 › 다른 이름으로 저장을 사용해 둘 다 보관하세요.+ Decrease Brush Size 브러시 크기 줄이기+ Increase Brush Size 브러시 크기 늘리기+ Decrease Brush Hardness 브러시 경도 줄이기+ Increase Brush Hardness 브러시 경도 늘리기diff --git a/crates/ui-egui/src/i18n/mod.rs b/crates/ui-egui/src/i18n/mod.rsindex b976e395f..c7a0d574b 100644--- a/crates/ui-egui/src/i18n/mod.rs+++ b/crates/ui-egui/src/i18n/mod.rs@@ -514,6 +514,21 @@ mod tests {assert_eq!(Lang::from_pref("xx-unknown"), Lang::EN);}+ /// The brush size/hardness shortcut rows (`tools.*` commands without a menu item) must be translated in+ /// every catalog, or they show English in the Keyboard Shortcuts dialog and cannot be found by searching.+ #[test]+ fn brush_size_and_hardness_shortcuts_are_translated_in_every_language() {+ let keys = ["Decrease Brush Size", "Increase Brush Size", "Decrease Brush Hardness", "Increase Brush Hardness"];+ for lang in Lang::all().filter(|lang| *lang != Lang::EN) {+ for key in keys {+ assert!(has(lang, key), "{} has no translation for {key:?}", lang.code());+ }+ }+ let zh = Lang::from_code("zh-hans").expect("zh-hans registered");+ assert_eq!(tr(zh, "Decrease Brush Size"), "减小画笔大小");+ assert_eq!(tr(zh, "Increase Brush Size"), "增大画笔大小");+ }+#[test]fn simplified_chinese_covers_dynamic_shortcuts_and_layer_counts() {let zh = Lang::from_code("zh-hans").expect("zh-hans registered");diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsvindex 16e31c91d..394aaecbb 100644--- a/crates/ui-egui/src/i18n/nl.tsv+++ b/crates/ui-egui/src/i18n/nl.tsv@@ -3986,3 +3986,7 @@ curves Smooth Vloeiend makenGPU Memory (MB, 0 = Automatic) GPU-geheugen (MB, 0 = Automatisch){name} was changed by another app after it was opened or saved here. {name} is door een andere app gewijzigd nadat het hier is geopend of bewaard.Replace it with this document, or cancel and use File › Save As to keep both. Vervang het door dit document, of annuleer en gebruik Bestand › Opslaan als om beide te houden.+ Decrease Brush Size Penseelgrootte verkleinen+ Increase Brush Size Penseelgrootte vergroten+ Decrease Brush Hardness Penseelhardheid verlagen+ Increase Brush Hardness Penseelhardheid verhogendiff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsvindex 1dc48ac83..660e93bbb 100644--- a/crates/ui-egui/src/i18n/pl.tsv+++ b/crates/ui-egui/src/i18n/pl.tsv@@ -3825,3 +3825,7 @@ curves Smooth WygładźReplace Zastąp{name} was changed by another app after it was opened or saved here. Plik {name} został zmieniony przez inną aplikację po otwarciu lub zapisaniu go tutaj.Replace it with this document, or cancel and use File › Save As to keep both. Zastąp go tym dokumentem albo anuluj i użyj Plik › Zapisz jako, aby zachować oba.+ Decrease Brush Size Zmniejsz rozmiar pędzla+ Increase Brush Size Zwiększ rozmiar pędzla+ Decrease Brush Hardness Zmniejsz twardość pędzla+ Increase Brush Hardness Zwiększ twardość pędzladiff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsvindex c3c82e8fc..338c4fadb 100644--- a/crates/ui-egui/src/i18n/pt-br.tsv+++ b/crates/ui-egui/src/i18n/pt-br.tsv@@ -4016,3 +4016,7 @@ layerLabel No Color Sem corGPU Memory (MB, 0 = Automatic) Memória da GPU (MB, 0 = Automático){name} was changed by another app after it was opened or saved here. {name} foi alterado por outro app depois de ser aberto ou salvo aqui.Replace it with this document, or cancel and use File › Save As to keep both. Substitua-o por este documento, ou cancele e use Arquivo › Salvar como para manter os dois.+ Decrease Brush Size Diminuir tamanho do pincel+ Increase Brush Size Aumentar tamanho do pincel+ Decrease Brush Hardness Diminuir dureza do pincel+ Increase Brush Hardness Aumentar dureza do pinceldiff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsvindex 3bc828b00..11fd43811 100644--- a/crates/ui-egui/src/i18n/ru.tsv+++ b/crates/ui-egui/src/i18n/ru.tsv@@ -3199,3 +3199,7 @@ curves Smooth СгладитьReplace Заменить{name} was changed by another app after it was opened or saved here. Файл {name} был изменён другим приложением после того, как его открыли или сохранили здесь.Replace it with this document, or cancel and use File › Save As to keep both. Замените его этим документом или отмените и используйте Файл › Сохранить как, чтобы сохранить оба.+ Decrease Brush Size Уменьшить размер кисти+ Increase Brush Size Увеличить размер кисти+ Decrease Brush Hardness Уменьшить жёсткость кисти+ Increase Brush Hardness Увеличить жёсткость кистиdiff --git a/crates/ui-egui/src/i18n/sr.tsv b/crates/ui-egui/src/i18n/sr.tsvindex 2d4044d01..25175aeff 100644--- a/crates/ui-egui/src/i18n/sr.tsv+++ b/crates/ui-egui/src/i18n/sr.tsv@@ -4299,3 +4299,7 @@ shape Appearance IzgledGPU Memory (MB, 0 = Automatic) GPU memorija (MB, 0 = Automatski){name} was changed by another app after it was opened or saved here. Datoteku {name} je izmenila druga aplikacija nakon što je ovde otvorena ili sačuvana.Replace it with this document, or cancel and use File › Save As to keep both. Zameni je ovim dokumentom ili otkaži i koristi Datoteka › Sačuvaj kao da zadržiš obe.+ Decrease Brush Size Smanji veličinu četkice+ Increase Brush Size Povećaj veličinu četkice+ Decrease Brush Hardness Smanji tvrdoću četkice+ Increase Brush Hardness Povećaj tvrdoću četkicediff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsvindex ce2ef023c..6af551012 100644--- a/crates/ui-egui/src/i18n/tr.tsv+++ b/crates/ui-egui/src/i18n/tr.tsv@@ -3956,3 +3956,7 @@ cameraData Lens LensGPU Memory (MB, 0 = Automatic) GPU Belleği (MB, 0 = Otomatik){name} was changed by another app after it was opened or saved here. {name}, burada açıldıktan veya kaydedildikten sonra başka bir uygulama tarafından değiştirildi.Replace it with this document, or cancel and use File › Save As to keep both. Bu belgeyle değiştirin ya da iptal edip ikisini de korumak için Dosya › Farklı Kaydet'i kullanın.+ Decrease Brush Size Fırça boyutunu küçült+ Increase Brush Size Fırça boyutunu büyüt+ Decrease Brush Hardness Fırça sertliğini azalt+ Increase Brush Hardness Fırça sertliğini artırdiff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsvindex 6450b4e6c..3de031881 100644--- a/crates/ui-egui/src/i18n/uk.tsv+++ b/crates/ui-egui/src/i18n/uk.tsv@@ -3926,3 +3926,7 @@ curves Smooth ЗгладитиReplace Замінити{name} was changed by another app after it was opened or saved here. Файл {name} змінила інша програма після того, як його тут відкрили або зберегли.Replace it with this document, or cancel and use File › Save As to keep both. Замініть його цим документом або скасуйте й скористайтеся Файл › Зберегти як, щоб зберегти обидва.+ Decrease Brush Size Зменшити розмір пензля+ Increase Brush Size Збільшити розмір пензля+ Decrease Brush Hardness Зменшити жорсткість пензля+ Increase Brush Hardness Збільшити жорсткість пензляdiff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsvindex d32ac2ff1..fd7950b93 100644--- a/crates/ui-egui/src/i18n/vi.tsv+++ b/crates/ui-egui/src/i18n/vi.tsv@@ -3713,3 +3713,7 @@ curves Smooth Làm mượtReplace Thay thế{name} was changed by another app after it was opened or saved here. {name} đã bị một ứng dụng khác thay đổi sau khi được mở hoặc lưu ở đây.Replace it with this document, or cancel and use File › Save As to keep both. Thay thế bằng tài liệu này, hoặc hủy và dùng Tệp › Lưu thành để giữ cả hai.+ Decrease Brush Size Giảm kích thước cọ+ Increase Brush Size Tăng kích thước cọ+ Decrease Brush Hardness Giảm độ cứng của cọ+ Increase Brush Hardness Tăng độ cứng của cọdiff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsvindex 0f975c957..01e0d5705 100644--- a/crates/ui-egui/src/i18n/zh-hans.tsv+++ b/crates/ui-egui/src/i18n/zh-hans.tsv@@ -2847,3 +2847,7 @@ curves Smooth 平滑Replace 替换{name} was changed by another app after it was opened or saved here. {name} 在此处打开或存储后已被其他应用更改。Replace it with this document, or cancel and use File › Save As to keep both. 用此文档替换它,或取消并使用“文件 › 另存为”以保留两者。+ Decrease Brush Size 减小画笔大小+ Increase Brush Size 增大画笔大小+ Decrease Brush Hardness 减小画笔硬度+ Increase Brush Hardness 增大画笔硬度diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsvindex be6d0d364..2d9ad2905 100644--- a/crates/ui-egui/src/i18n/zh-hant.tsv+++ b/crates/ui-egui/src/i18n/zh-hant.tsv@@ -2832,3 +2832,7 @@ curves Smooth 平滑Replace 取代{name} was changed by another app after it was opened or saved here. {name} 在此處開啟或儲存後已被其他 App 更改。Replace it with this document, or cancel and use File › Save As to keep both. 以此文件取代它,或取消並使用「檔案 › 另存新檔」以保留兩者。+ Decrease Brush Size 縮小筆刷大小+ Increase Brush Size 放大筆刷大小+ Decrease Brush Hardness 降低筆刷硬度+ Increase Brush Hardness 提高筆刷硬度