From 78f61686c359f12b713c3e4abb152cef4ab4170d Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Fri, 29 Mar 2024 02:06:01 +0900 Subject: [PATCH] chore: use locale code with region code --- Internal/Localization/Editor/AAOL10N.cs | 6 +++--- Localization/{en.po => en-us.po} | 2 +- Localization/{en.po.meta => en-us.po.meta} | 0 Localization/{ja.po => ja-jp.po} | 2 +- Localization/{ja.po.meta => ja-jp.po.meta} | 0 5 files changed, 5 insertions(+), 5 deletions(-) rename Localization/{en.po => en-us.po} (99%) rename Localization/{en.po.meta => en-us.po.meta} (100%) rename Localization/{ja.po => ja-jp.po} (99%) rename Localization/{ja.po.meta => ja-jp.po.meta} (100%) diff --git a/Internal/Localization/Editor/AAOL10N.cs b/Internal/Localization/Editor/AAOL10N.cs index af880b25f..ca46d2500 100644 --- a/Internal/Localization/Editor/AAOL10N.cs +++ b/Internal/Localization/Editor/AAOL10N.cs @@ -12,13 +12,13 @@ namespace Anatawa12.AvatarOptimizer /// public static class AAOL10N { - public static readonly Localizer Localizer = new Localizer("en", () => + public static readonly Localizer Localizer = new Localizer("en-us", () => { var localizationFolder = AssetDatabase.GUIDToAssetPath("8b53df9f2e18428bbba2165c4f2af9be") + "/"; return new List { - AssetDatabase.LoadAssetAtPath(localizationFolder + "en.po"), - AssetDatabase.LoadAssetAtPath(localizationFolder + "ja.po"), + AssetDatabase.LoadAssetAtPath(localizationFolder + "en-us.po"), + AssetDatabase.LoadAssetAtPath(localizationFolder + "ja-jp.po"), }; }); diff --git a/Localization/en.po b/Localization/en-us.po similarity index 99% rename from Localization/en.po rename to Localization/en-us.po index 2aa9762ef..abb42124c 100644 --- a/Localization/en.po +++ b/Localization/en-us.po @@ -1,6 +1,6 @@ msgid "" msgstr "" -"Language: en\n" +"Language: en-us\n" msgid "CheckForUpdate:out-of-date" msgstr "Newer release of Avatar Optimizer, {0} is available! (Current: {1})" diff --git a/Localization/en.po.meta b/Localization/en-us.po.meta similarity index 100% rename from Localization/en.po.meta rename to Localization/en-us.po.meta diff --git a/Localization/ja.po b/Localization/ja-jp.po similarity index 99% rename from Localization/ja.po rename to Localization/ja-jp.po index afe81ef0c..c013a0a68 100644 --- a/Localization/ja.po +++ b/Localization/ja-jp.po @@ -1,6 +1,6 @@ msgid "" msgstr "" -"Language: ja\n" +"Language: ja-jp\n" msgid "CheckForUpdate:out-of-date" msgstr "Avatar Optimizerの新しいバージョン、{0}が公開されています!(現在 {1})" diff --git a/Localization/ja.po.meta b/Localization/ja-jp.po.meta similarity index 100% rename from Localization/ja.po.meta rename to Localization/ja-jp.po.meta