Compare commits

...
3 Commits
7 changed files with 15 additions and 3 deletions

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
mod_locale_atlas_name = Atlas de localización
mod_locale_atlas_desc = Mapa de claves de localización: claves que faltan en algún idioma, vacías, no declaradas o duplicadas, textos de colecciones sin traducir y la codificación de cada archivo de localización.
+2
View File
@@ -0,0 +1,2 @@
mod_locale_atlas_name = ローカライズアトラス
mod_locale_atlas_desc = ローカライズキーの地図:一部の言語で欠けている・空・未宣言・重複しているキー、未翻訳のコレクションテキスト、各ローカライズファイルのエンコーディング。
+2
View File
@@ -0,0 +1,2 @@
mod_locale_atlas_name = 로컬라이즈 아틀라스
mod_locale_atlas_desc = 로컬라이즈 키 지도: 일부 언어에서 빠졌거나 비었거나 선언되지 않았거나 중복된 키, 번역되지 않은 컬렉션 텍스트, 모든 로컬라이즈 파일의 인코딩.
+2
View File
@@ -0,0 +1,2 @@
mod_locale_atlas_name = Bản đồ bản địa hóa
mod_locale_atlas_desc = Bản đồ khóa bản địa hóa: khóa thiếu ở một số ngôn ngữ, trống, chưa khai báo hoặc trùng lặp, văn bản bộ sưu tập chưa dịch và mã hóa của từng tệp bản địa hóa.
+2
View File
@@ -0,0 +1,2 @@
mod_locale_atlas_name = 本地化图谱
mod_locale_atlas_desc = 本地化键图:某些语言缺失、为空、未声明或重复的键,未翻译的合集文本,以及每个本地化文件的编码。
+4 -2
View File
@@ -328,7 +328,8 @@ namespace Cthangover.LocaleAtlas
{
result.Findings.Add(new LocaleFinding
{
Severity = LocaleSeverity.Error, Code = "collection_text_missing", ModId = modId, Key = $"{id}", Language = language,
// A gap to fill like a missing key: the base language is shown meanwhile.
Severity = LocaleSeverity.Warning, Code = "collection_text_missing", ModId = modId, Key = $"{id}", Language = language,
File = file, Message = $"'{name}' ({path.TrimStart('/').OrEmpty("root")}) has no locale entry for '{language}'",
Fix = $"add {{ \"lang\": \"{language}\", \"name\": \"…\", \"description\": \"…\" }} to \"locale\"",
});
@@ -414,7 +415,8 @@ namespace Cthangover.LocaleAtlas
var other = row.Declarations.TryGetValue(language, out var others) ? others.Select(e => e.ModId).Distinct().ToList() : null;
result.Findings.Add(new LocaleFinding
{
Severity = global ? LocaleSeverity.Error : LocaleSeverity.Warning,
// A translation gap, not a breakage: the game shows the language that has the key.
Severity = LocaleSeverity.Warning,
Code = global ? "key_missing_language" : "key_partial_override",
ModId = mod, Key = row.Key, Language = language, File = own.File, Line = own.Line,
Message = global
+1 -1
View File
@@ -38,7 +38,7 @@ namespace Cthangover.LocaleAtlas
queued = true;
var directory = ProjectSettings.GlobalizePath(output);
GameLogger.Log("LOCALE_ATLAS", $"locale atlas requested, report directory '{directory}'");
(Godot.Engine.GetMainLoop() as SceneTree)?.Root?.CallDeferred("add_child", new LocaleAtlasDriverNode(directory, ParseTimeout(args)));
ModRoot.AddDeferred(new LocaleAtlasDriverNode(directory, ParseTimeout(args)));
}
private static float ParseTimeout(string[] args)