Compare commits
3
Commits
v0.1.0
..
ff54957b29
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff54957b29 | ||
|
|
1f932937d8 | ||
|
|
6cd97b8b45 |
No files matched your search
@@ -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.
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
mod_locale_atlas_name = ローカライズアトラス
|
||||||
|
mod_locale_atlas_desc = ローカライズキーの地図:一部の言語で欠けている・空・未宣言・重複しているキー、未翻訳のコレクションテキスト、各ローカライズファイルのエンコーディング。
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
mod_locale_atlas_name = 로컬라이즈 아틀라스
|
||||||
|
mod_locale_atlas_desc = 로컬라이즈 키 지도: 일부 언어에서 빠졌거나 비었거나 선언되지 않았거나 중복된 키, 번역되지 않은 컬렉션 텍스트, 모든 로컬라이즈 파일의 인코딩.
|
||||||
@@ -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.
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
mod_locale_atlas_name = 本地化图谱
|
||||||
|
mod_locale_atlas_desc = 本地化键图:某些语言缺失、为空、未声明或重复的键,未翻译的合集文本,以及每个本地化文件的编码。
|
||||||
@@ -328,7 +328,8 @@ namespace Cthangover.LocaleAtlas
|
|||||||
{
|
{
|
||||||
result.Findings.Add(new LocaleFinding
|
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}'",
|
File = file, Message = $"'{name}' ({path.TrimStart('/').OrEmpty("root")}) has no locale entry for '{language}'",
|
||||||
Fix = $"add {{ \"lang\": \"{language}\", \"name\": \"…\", \"description\": \"…\" }} to \"locale\"",
|
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;
|
var other = row.Declarations.TryGetValue(language, out var others) ? others.Select(e => e.ModId).Distinct().ToList() : null;
|
||||||
result.Findings.Add(new LocaleFinding
|
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",
|
Code = global ? "key_missing_language" : "key_partial_override",
|
||||||
ModId = mod, Key = row.Key, Language = language, File = own.File, Line = own.Line,
|
ModId = mod, Key = row.Key, Language = language, File = own.File, Line = own.Line,
|
||||||
Message = global
|
Message = global
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ namespace Cthangover.LocaleAtlas
|
|||||||
queued = true;
|
queued = true;
|
||||||
var directory = ProjectSettings.GlobalizePath(output);
|
var directory = ProjectSettings.GlobalizePath(output);
|
||||||
GameLogger.Log("LOCALE_ATLAS", $"locale atlas requested, report directory '{directory}'");
|
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)
|
private static float ParseTimeout(string[] args)
|
||||||
|
|||||||
Reference in new issue
Block a user