Skip to content

LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust

LRC-LIB-SMARTCOLL: translate every rule field and group label

Nathaniel Ledford652475d2638b
diff --git a/crates/ui-egui/locales/de.json b/crates/ui-egui/locales/de.json
index e1fd8b2fb..3dc2f3d05 100644
--- a/crates/ui-egui/locales/de.json
+++ b/crates/ui-egui/locales/de.json
@@ -1934,5 +1934,17 @@
"Search albums": "Alben suchen",
"No albums match": "Kein Album passt",
"This is the album you're editing": "Das ist das Album, das du bearbeitest",
- "It tests this album, so testing it back would loop": "Es prüft dieses Album; es zurückzuprüfen wäre ein Kreis"
+ "It tests this album, so testing it back would loop": "Es prüft dieses Album; es zurückzuprüfen wäre ein Kreis",
+ "Copy Name": "Kopiename",
+ "In a Stack": "In einem Stapel",
+ "File Extension": "Dateiendung",
+ "Video Duration": "Videodauer",
+ "Keyword Count": "Anzahl Stichwörter",
+ "People Count": "Anzahl Personen",
+ "Shutter Speed": "Belichtungszeit",
+ "Cropped": "Zugeschnitten",
+ "Keywords & People": "Stichwörter & Personen",
+ "Description": "Beschreibung",
+ "Camera Info": "Kamera-Info",
+ "Develop": "Bearbeitung"
}
diff --git a/crates/ui-egui/locales/es.json b/crates/ui-egui/locales/es.json
index fb15fcc0b..d575729c2 100644
--- a/crates/ui-egui/locales/es.json
+++ b/crates/ui-egui/locales/es.json
@@ -1779,5 +1779,17 @@
"Search albums": "Buscar álbumes",
"No albums match": "Ningún álbum coincide",
"This is the album you're editing": "Es el álbum que estás editando",
- "It tests this album, so testing it back would loop": "Comprueba este álbum, así que comprobarlo a su vez crearía un bucle"
+ "It tests this album, so testing it back would loop": "Comprueba este álbum, así que comprobarlo a su vez crearía un bucle",
+ "Copy Name": "Nombre de la copia",
+ "In a Stack": "En una pila",
+ "File Extension": "Extensión del archivo",
+ "Video Duration": "Duración del vídeo",
+ "Keyword Count": "Número de palabras clave",
+ "People Count": "Número de personas",
+ "Shutter Speed": "Velocidad de obturación",
+ "Cropped": "Recortada",
+ "Keywords & People": "Palabras clave y personas",
+ "Description": "Descripción",
+ "Camera Info": "Información de la cámara",
+ "Develop": "Edición"
}
diff --git a/crates/ui-egui/locales/ja.json b/crates/ui-egui/locales/ja.json
index d0ab556c7..27d832552 100644
--- a/crates/ui-egui/locales/ja.json
+++ b/crates/ui-egui/locales/ja.json
@@ -1783,5 +1783,15 @@
"Search albums": "アルバムを検索",
"No albums match": "一致するアルバムはありません",
"This is the album you're editing": "編集中のアルバムです",
- "It tests this album, so testing it back would loop": "このアルバムを条件にしているため、逆に指定すると循環します"
+ "It tests this album, so testing it back would loop": "このアルバムを条件にしているため、逆に指定すると循環します",
+ "Copy Name": "コピー名",
+ "File Extension": "拡張子",
+ "Video Duration": "ビデオの長さ",
+ "Keyword Count": "キーワード数",
+ "People Count": "人数",
+ "Shutter Speed": "シャッター速度",
+ "Keywords & People": "キーワードと人物",
+ "Description": "説明",
+ "Camera Info": "カメラ情報",
+ "Develop": "編集"
}
diff --git a/crates/ui-egui/locales/pt-br.json b/crates/ui-egui/locales/pt-br.json
index 36dc4e5f5..6fbb461fd 100644
--- a/crates/ui-egui/locales/pt-br.json
+++ b/crates/ui-egui/locales/pt-br.json
@@ -1776,8 +1776,20 @@
"Su": "Dom",
"Pick a date": "Escolher uma data",
"would make this album include itself through other smart albums": "faria este álbum incluir a si mesmo por meio de outros álbuns inteligentes",
- "Search albums": "Buscar álbuns",
+ "Search albums": "Pesquisar álbuns",
"No albums match": "Nenhum álbum corresponde",
"This is the album you're editing": "É o álbum que você está editando",
- "It tests this album, so testing it back would loop": "Ele testa este álbum, então testá-lo de volta criaria um ciclo"
+ "It tests this album, so testing it back would loop": "Ele testa este álbum, então testá-lo de volta criaria um ciclo",
+ "Copy Name": "Nome da cópia",
+ "In a Stack": "Em uma pilha",
+ "File Extension": "Extensão do arquivo",
+ "Video Duration": "Duração do vídeo",
+ "Keyword Count": "Número de palavras-chave",
+ "People Count": "Número de pessoas",
+ "Shutter Speed": "Velocidade do obturador",
+ "Cropped": "Recortada",
+ "Keywords & People": "Palavras-chave e pessoas",
+ "Description": "Descrição",
+ "Camera Info": "Informações da câmera",
+ "Develop": "Edição"
}
diff --git a/crates/ui-egui/locales/ru.json b/crates/ui-egui/locales/ru.json
index 9d132ab64..a00fd2a1f 100644
--- a/crates/ui-egui/locales/ru.json
+++ b/crates/ui-egui/locales/ru.json
@@ -1471,5 +1471,32 @@
"Search albums": "Поиск альбомов",
"No albums match": "Нет подходящих альбомов",
"This is the album you're editing": "Это альбом, который вы изменяете",
- "It tests this album, so testing it back would loop": "Он проверяет этот альбом, поэтому обратная проверка создаст цикл"
+ "It tests this album, so testing it back would loop": "Он проверяет этот альбом, поэтому обратная проверка создаст цикл",
+ "Copy Name": "Имя копии",
+ "In a Stack": "В стопке",
+ "File Extension": "Расширение файла",
+ "Video Duration": "Длительность видео",
+ "Keyword Count": "Число ключевых слов",
+ "People Count": "Число людей",
+ "Shutter Speed": "Выдержка",
+ "Cropped": "Кадрировано",
+ "Keywords & People": "Ключевые слова и люди",
+ "Description": "Описание",
+ "Camera Info": "Сведения о камере",
+ "Develop": "Обработка",
+ "Pick Flag": "Флаг",
+ "Any Searchable Text": "Любой текст для поиска",
+ "Filename": "Имя файла",
+ "File Type": "Тип файла",
+ "File Format": "Формат файла",
+ "Edit Date": "Дата изменения",
+ "People": "Люди",
+ "Focal Length": "Фокусное расстояние",
+ "ISO Speed": "ISO",
+ "Has GPS": "Есть GPS",
+ "Has Edits": "Есть правки",
+ "Focus (assisted culling)": "Резкость (помощь в отборе)",
+ "Best of Similar Shots": "Лучший из похожих снимков",
+ "Date": "Дата",
+ "Color Label": "Цветовая метка"
}
diff --git a/crates/ui-egui/locales/zh-hans.json b/crates/ui-egui/locales/zh-hans.json
index a1ebcb62b..86956f49a 100644
--- a/crates/ui-egui/locales/zh-hans.json
+++ b/crates/ui-egui/locales/zh-hans.json
@@ -1779,5 +1779,17 @@
"Search albums": "搜索相册",
"No albums match": "没有匹配的相册",
"This is the album you're editing": "这是正在编辑的相册",
- "It tests this album, so testing it back would loop": "它引用了此相册,反过来引用会形成循环"
+ "It tests this album, so testing it back would loop": "它引用了此相册,反过来引用会形成循环",
+ "Copy Name": "副本名称",
+ "In a Stack": "在堆叠中",
+ "File Extension": "文件扩展名",
+ "Video Duration": "视频时长",
+ "Keyword Count": "关键字数量",
+ "People Count": "人物数量",
+ "Shutter Speed": "快门速度",
+ "Cropped": "已裁剪",
+ "Keywords & People": "关键字与人物",
+ "Description": "描述",
+ "Camera Info": "相机信息",
+ "Develop": "编辑"
}
diff --git a/crates/ui-egui/locales/zh-hant.json b/crates/ui-egui/locales/zh-hant.json
index 4db189ee1..37bfe7b6b 100644
--- a/crates/ui-egui/locales/zh-hant.json
+++ b/crates/ui-egui/locales/zh-hant.json
@@ -1779,5 +1779,17 @@
"Search albums": "搜尋相簿",
"No albums match": "沒有符合的相簿",
"This is the album you're editing": "這是正在編輯的相簿",
- "It tests this album, so testing it back would loop": "它引用了此相簿,反過來引用會形成循環"
+ "It tests this album, so testing it back would loop": "它引用了此相簿,反過來引用會形成循環",
+ "Copy Name": "副本名稱",
+ "In a Stack": "在堆疊中",
+ "File Extension": "副檔名",
+ "Video Duration": "影片長度",
+ "Keyword Count": "關鍵字數量",
+ "People Count": "人物數量",
+ "Shutter Speed": "快門速度",
+ "Cropped": "已裁切",
+ "Keywords & People": "關鍵字與人物",
+ "Description": "描述",
+ "Camera Info": "相機資訊",
+ "Develop": "編輯"
}
diff --git a/crates/ui-egui/src/i18n.rs b/crates/ui-egui/src/i18n.rs
index af6045e51..4fffc63eb 100644
--- a/crates/ui-egui/src/i18n.rs
+++ b/crates/ui-egui/src/i18n.rs
@@ -773,6 +773,10 @@ mod tests {
assert_eq!(problem_text_in(Locale::En, &g[0]), "This group is empty: add a rule or remove it.");
// the issues, the operators their hints name and the album picker's words, in every language
for language in Locale::ALL.iter().filter(|l| **l != Locale::En) {
+ // the field menu: every field and every group, so it never mixes languages
+ for label in lightcraft_catalog::rules::FIELDS.iter().map(|f| f.1).chain(lightcraft_catalog::rules::FIELD_GROUPS.iter().map(|g| g.0)) {
+ assert!(language.catalog().contains_key(label), "{} lacks the rule label {label:?}", language.code());
+ }
for word in [
"Choose an album…",
"No albums yet",