Skip to content

Commit

Permalink
[Localization] Added Italian
Browse files Browse the repository at this point in the history
  • Loading branch information
xen2 committed Sep 23, 2019
1 parent 8c97d5d commit c70f07f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ public enum SupportedLanguage
Spanish,
[Display("Chinese (Simplified)")]
ChineseSimplified,
Italian,
}
}
3 changes: 3 additions & 0 deletions sources/editor/Xenko.GameStudio/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,9 @@ private static void InitializeLanguageSettings()
case SupportedLanguage.ChineseSimplified:
TranslationManager.Instance.CurrentLanguage = new CultureInfo("zh-Hans");
break;
case SupportedLanguage.Italian:
TranslationManager.Instance.CurrentLanguage = new CultureInfo("it-IT");
break;
default:
throw new ArgumentOutOfRangeException();
}
Expand Down
2 changes: 1 addition & 1 deletion sources/localization/extract_strings.bat
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rem Xenko.GameStudio.pot

rem Update po files
FOR %%B IN (Xenko.Core.Presentation Xenko.Assets.Presentation Xenko.Core.Assets.Editor Xenko.GameStudio) DO (
FOR %%A IN (ja fr es de ru zh_HANS-CN) DO (
FOR %%A IN (ja fr es de ru zh_HANS-CN it) DO (
%MSGMERGE% -U %%A\%%B.%%A.po %%B.pot
)
)
2 changes: 1 addition & 1 deletion sources/targets/Xenko.Core.PostSettings.targets
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
<Target Name="XenkoGenerateLocalizationSatelliteDlls" BeforeTargets="SatelliteDllsProjectOutputGroup" Returns="@(SatelliteDllsProjectOutputGroupOutput)" Condition="'$(XenkoLocalized)' == 'true' And '$(Configuration)' == 'Release'">
<ItemGroup>
<!-- Current list of languages to try to generate -->
<XenkoTraductions Include="fr;ja;es;de;ru"/>
<XenkoTraductions Include="fr;ja;es;de;ru;it"/>
<XenkoTraductions Include="zh-Hans">
<Source>zh_HANS-CN</Source>
</XenkoTraductions>
Expand Down

0 comments on commit c70f07f

Please sign in to comment.