Skip to content
Permalink
Browse files

Merge pull request #323 from Kryptos-FR/feature/l10n

Add support for French in the editor
  • Loading branch information
xen2 committed Jan 13, 2019
2 parents 33fea75 + a35cc79 commit f719acaecdaf93e52f3e547156ca04158642f7e9
@@ -389,7 +389,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "00-Localization", "00-Local
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ja", "ja", "{B4EABB0D-E495-405C-B7B1-E2A7A3711AF5}"
ProjectSection(SolutionItems) = preProject
..\sources\localization\ja\Xenko.Assets.Presentation.ja.po = ..\sources\localization\ja\Xenko.Assets.Presentation.ja.po
..\sources\localization\ja\Xenko.Core.Assets.Editor.ja.po = ..\sources\localization\ja\Xenko.Core.Assets.Editor.ja.po
..\sources\localization\ja\Xenko.Core.Presentation.ja.po = ..\sources\localization\ja\Xenko.Core.Presentation.ja.po
..\sources\localization\ja\Xenko.GameStudio.ja.po = ..\sources\localization\ja\Xenko.GameStudio.ja.po
EndProjectSection
EndProject
@@ -412,6 +414,14 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Xenko.Samples.Templates", "
{7C67FF28-1B9E-4F13-8BDA-B833D588BC6A} = {7C67FF28-1B9E-4F13-8BDA-B833D588BC6A}
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "fr", "fr", "{62E9A8E4-79AF-4081-84D5-FEC5A0B28598}"
ProjectSection(SolutionItems) = preProject
..\sources\localization\fr\Xenko.Assets.Presentation.fr.po = ..\sources\localization\fr\Xenko.Assets.Presentation.fr.po
..\sources\localization\fr\Xenko.Core.Assets.Editor.fr.po = ..\sources\localization\fr\Xenko.Core.Assets.Editor.fr.po
..\sources\localization\fr\Xenko.Core.Presentation.fr.po = ..\sources\localization\fr\Xenko.Core.Presentation.fr.po
..\sources\localization\fr\Xenko.GameStudio.fr.po = ..\sources\localization\fr\Xenko.GameStudio.fr.po
EndProjectSection
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
..\sources\shared\Xenko.NuGetResolver\Xenko.NuGetResolver.projitems*{00b72ed7-00e9-47f7-868d-8162027cd068}*SharedItemsImports = 13
@@ -1670,6 +1680,7 @@ Global
{2FC40214-A4AA-45DC-9C93-72ED800C40B0} = {75608B5C-1C03-4B38-810E-14EED5165E59}
{00B72ED7-00E9-47F7-868D-8162027CD068} = {1AE1AC60-5D2F-4CA7-AE20-888F44551185}
{040F754C-17F4-4B5F-B974-93F1E39D107F} = {75608B5C-1C03-4B38-810E-14EED5165E59}
{62E9A8E4-79AF-4081-84D5-FEC5A0B28598} = {FC791F56-C1F1-4C41-A193-868D8197F8E2}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {FF877973-604D-4EA7-B5F5-A129961F9EF2}
@@ -781,6 +781,7 @@
</Target>
<PropertyGroup>
<PostBuildEvent>Path=$(MSBuildBinPath)\Roslyn;$(Path)
IF EXIST "$(SolutionDir)..\sources\localization\fr\$(TargetName).fr.po" $(SolutionDir)..\deps\Gettext.Net\GNU.Gettext.Msgfmt.exe --lib-dir $(SolutionDir)..\deps\Gettext.Net --resource $(TargetName) -d $(TargetDir) --locale fr "$(SolutionDir)..\sources\localization\fr\$(TargetName).fr.po" --verbose
IF EXIST "$(SolutionDir)..\sources\localization\ja\$(TargetName).ja.po" $(SolutionDir)..\deps\Gettext.Net\GNU.Gettext.Msgfmt.exe --lib-dir $(SolutionDir)..\deps\Gettext.Net --resource $(TargetName) -d $(TargetDir) --locale ja "$(SolutionDir)..\sources\localization\ja\$(TargetName).ja.po" --verbose</PostBuildEvent>
</PropertyGroup>
</Project>
@@ -4,8 +4,9 @@ namespace Xenko.Core.Assets.Editor
{
public enum SupportedLanguage
{
MachineDefault,
MachineDefault = 0,
English,
French,
Japanese,
}
}
@@ -429,6 +429,7 @@
<Import Project="Sdk.targets" Sdk="MSBuild.Sdk.Extras" Version="1.6.65" />
<PropertyGroup>
<PostBuildEvent>Path=$(RoslynTargetsPath);$(Path)
IF EXIST "$(SolutionDir)..\sources\localization\fr\$(TargetName).fr.po" $(SolutionDir)..\deps\Gettext.Net\GNU.Gettext.Msgfmt.exe --lib-dir $(SolutionDir)..\deps\Gettext.Net --resource $(TargetName) -d $(TargetDir) --locale fr "$(SolutionDir)..\sources\localization\fr\$(TargetName).fr.po" --verbose
IF EXIST "$(SolutionDir)..\sources\localization\ja\$(TargetName).ja.po" $(SolutionDir)..\deps\Gettext.Net\GNU.Gettext.Msgfmt.exe --lib-dir $(SolutionDir)..\deps\Gettext.Net --resource $(TargetName) -d $(TargetDir) --locale ja "$(SolutionDir)..\sources\localization\ja\$(TargetName).ja.po" --verbose</PostBuildEvent>
</PropertyGroup>

@@ -377,6 +377,9 @@ private static void InitializeLanguageSettings()
case SupportedLanguage.English:
TranslationManager.Instance.CurrentLanguage = new CultureInfo("en-US");
break;
case SupportedLanguage.French:
TranslationManager.Instance.CurrentLanguage = new CultureInfo("fr-FR");
break;
case SupportedLanguage.Japanese:
TranslationManager.Instance.CurrentLanguage = new CultureInfo("ja-JP");
break;
@@ -232,6 +232,7 @@
<Import Project="Sdk.targets" Sdk="MSBuild.Sdk.Extras" Version="1.6.65" />
<PropertyGroup>
<PostBuildEvent>Path=$(RoslynTargetsPath);$(Path)
IF EXIST "$(SolutionDir)..\sources\localization\fr\$(TargetName).fr.po" $(SolutionDir)..\deps\Gettext.Net\GNU.Gettext.Msgfmt.exe --lib-dir $(SolutionDir)..\deps\Gettext.Net --resource $(TargetName) -d $(TargetDir) --locale fr "$(SolutionDir)..\sources\localization\fr\$(TargetName).fr.po" --verbose
IF EXIST "$(SolutionDir)..\sources\localization\ja\$(TargetName).ja.po" $(SolutionDir)..\deps\Gettext.Net\GNU.Gettext.Msgfmt.exe --lib-dir $(SolutionDir)..\deps\Gettext.Net --resource $(TargetName) -d $(TargetDir) --locale ja "$(SolutionDir)..\sources\localization\ja\$(TargetName).ja.po" --verbose</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2017-10-23 17:15:51+0900\n"
"PO-Revision-Date: 2017-10-23 17:15:51+0900\n"
"POT-Creation-Date: 2019-01-11 23:17:07+0900\n"
"PO-Revision-Date: 2019-01-11 23:17:07+0900\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -36,9 +36,9 @@ msgstr ""

#: ../editor/Xenko.Assets.Presentation/AssetEditors/EntityHierarchyEditor/ViewModels/EntityHierarchyEditorViewModel.cs:500
#: ../editor/Xenko.Assets.Presentation/AssetEditors/UIEditor/ViewModels/UIEditorBaseViewModel.cs:429
#: ../editor/Xenko.Assets.Presentation/Templates/AssetFromFileTemplateGenerator.cs:49
#: ../editor/Xenko.Assets.Presentation/Templates/AssetFromFileTemplateGenerator.cs:50
#: ../editor/Xenko.Assets.Presentation/Templates/ScriptTemplateGenerator.cs:60
#: ../editor/Xenko.Assets.Presentation/Templates/UpdatePlatformsWindows.xaml.cs:69
#: ../editor/Xenko.Assets.Presentation/Templates/UpdatePlatformsWindows.xaml.cs:70
#: ../editor/Xenko.Assets.Presentation/ViewModel/SpriteFontViewModel.cs:64
#: ../editor/Xenko.Assets.Presentation/AssetEditors/EntityHierarchyEditor/Views/EntityPickerWindow.xaml:28
#: ../editor/Xenko.Assets.Presentation/Templates/GameTemplateWindow.xaml:127
@@ -220,32 +220,32 @@ msgctxt "Settings"
msgid "Ask before deleting entities"
msgstr ""

#: ../editor/Xenko.Assets.Presentation/Templates/AssetFromFileTemplateGenerator.cs:47
#: ../editor/Xenko.Assets.Presentation/Templates/AssetFromFileTemplateGenerator.cs:48
msgctxt "Button"
msgid "Create"
msgstr ""

#: ../editor/Xenko.Assets.Presentation/Templates/AssetFromFileTemplateGenerator.cs:48
#: ../editor/Xenko.Assets.Presentation/Templates/AssetFromFileTemplateGenerator.cs:49
msgctxt "Button"
msgid "Select a source..."
msgstr ""

#: ../editor/Xenko.Assets.Presentation/Templates/AssetFromFileTemplateGenerator.cs:52
#: ../editor/Xenko.Assets.Presentation/Templates/AssetFromFileTemplateGenerator.cs:53
msgctxt "Message"
msgid "Do you want to create this {0} without a source file?"
msgstr ""

#: ../editor/Xenko.Assets.Presentation/Templates/GameTemplateWindow.xaml.cs:89
#: ../editor/Xenko.Assets.Presentation/Templates/GameTemplateWindow.xaml.cs:90
msgctxt "Message"
msgid "Select an orientation."
msgstr ""

#: ../editor/Xenko.Assets.Presentation/Templates/GameTemplateWindow.xaml.cs:94
#: ../editor/Xenko.Assets.Presentation/Templates/GameTemplateWindow.xaml.cs:95
msgctxt "Message"
msgid "Select at least one platform."
msgstr ""

#: ../editor/Xenko.Assets.Presentation/Templates/GameTemplateWindow.xaml.cs:101
#: ../editor/Xenko.Assets.Presentation/Templates/GameTemplateWindow.xaml.cs:102
#: ../editor/Xenko.Assets.Presentation/Templates/ProjectLibraryWindow.xaml.cs:75
msgctxt "Message"
msgid "Type a valid namespace name. Error with {0}"
@@ -271,22 +271,22 @@ msgctxt "Message"
msgid "You can't use scripts until you save them. Do you want to save now?"
msgstr ""

#: ../editor/Xenko.Assets.Presentation/Templates/UpdatePlatformsWindows.xaml.cs:60
#: ../editor/Xenko.Assets.Presentation/Templates/UpdatePlatformsWindows.xaml.cs:61
msgctxt "Message"
msgid "You must select at least one platform."
msgstr ""

#: ../editor/Xenko.Assets.Presentation/Templates/UpdatePlatformsWindows.xaml.cs:68
#: ../editor/Xenko.Assets.Presentation/Templates/UpdatePlatformsWindows.xaml.cs:69
msgctxt "Button"
msgid "Remove"
msgstr ""

#: ../editor/Xenko.Assets.Presentation/Templates/UpdatePlatformsWindows.xaml.cs:71
#: ../editor/Xenko.Assets.Presentation/Templates/UpdatePlatformsWindows.xaml.cs:72
msgctxt "Message"
msgid "Are you sure you want to remove these {0} platform(s) from the package?"
msgstr ""

#: ../editor/Xenko.Assets.Presentation/ViewModel/CodeViewModel.cs:186
#: ../editor/Xenko.Assets.Presentation/ViewModel/CodeViewModel.cs:209
msgctxt "Message"
msgid ""
"Game Studio can't auto-reload the project file {0} because you have local "
@@ -295,7 +295,7 @@ msgid ""
"Click OK to keep reloading or Cancel to keep the current version."
msgstr ""

#: ../editor/Xenko.Assets.Presentation/ViewModel/CodeViewModel.cs:233
#: ../editor/Xenko.Assets.Presentation/ViewModel/CodeViewModel.cs:257
msgctxt "Message"
msgid ""
"The following source files in the {0} project have been deleted externally, "
@@ -304,7 +304,7 @@ msgid ""
"{1}"
msgstr ""

#: ../editor/Xenko.Assets.Presentation/ViewModel/ScriptSourceFileAssetViewModel.cs:349
#: ../editor/Xenko.Assets.Presentation/ViewModel/ScriptSourceFileAssetViewModel.cs:357
msgctxt "Message"
msgid ""
"{0}\r\n"
@@ -655,17 +655,17 @@ msgctxt "Button"
msgid "Right"
msgstr ""

#: ../editor/Xenko.Assets.Presentation/AssetEditors/EntityHierarchyEditor/Views/EntityHierarchyEditorView.xaml:683
#: ../editor/Xenko.Assets.Presentation/AssetEditors/EntityHierarchyEditor/Views/EntityHierarchyEditorView.xaml:701
msgctxt "ToolTip"
msgid "Snap translations to this value"
msgstr ""

#: ../editor/Xenko.Assets.Presentation/AssetEditors/EntityHierarchyEditor/Views/EntityHierarchyEditorView.xaml:692
#: ../editor/Xenko.Assets.Presentation/AssetEditors/EntityHierarchyEditor/Views/EntityHierarchyEditorView.xaml:710
msgctxt "ToolTip"
msgid "Snap rotations to this value"
msgstr ""

#: ../editor/Xenko.Assets.Presentation/AssetEditors/EntityHierarchyEditor/Views/EntityHierarchyEditorView.xaml:701
#: ../editor/Xenko.Assets.Presentation/AssetEditors/EntityHierarchyEditor/Views/EntityHierarchyEditorView.xaml:719
msgctxt "ToolTip"
msgid "Snap scale to this factor"
msgstr ""
@@ -1356,6 +1356,10 @@ msgctxt "Button"
msgid "Import textures"
msgstr ""

#: ../editor/Xenko.Assets.Presentation/Templates/ModelAssetTemplateWindow.xaml:31
msgid "Skeleton"
msgstr ""

#: ../editor/Xenko.Assets.Presentation/Templates/ModelAssetTemplateWindow.xaml:35
msgctxt "Button"
msgid "Import skeleton"

0 comments on commit f719aca

Please sign in to comment.
You can’t perform that action at this time.