Skip to content

Commit

Permalink
Chinese frontend localization (#158)
Browse files Browse the repository at this point in the history
* simp_chinese frontend translation

* Project update

* Update Fronter

* Update Fronter
  • Loading branch information
IhateTrains authored Mar 14, 2021
1 parent f35144c commit 05919ca
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Fronter
Submodule Fronter updated 37 files
+8 −0 Fronter.vcxproj
+10 −4 Fronter.vcxproj.filters
+1 −1 Fronter/CMakeLists.txt
+ Fronter/Resources/VC_redist.x64.exe
+38 −0 Fronter/Resources/converter_l_simp_chinese.yml
+1 −0 Fronter/Resources/converter_languages.yml
+27 −24 Fronter/Source/Configuration/Configuration.cpp
+2 −1 Fronter/Source/Configuration/Mod.cpp
+6 −5 Fronter/Source/Configuration/Options/CheckBoxOption.cpp
+2 −1 Fronter/Source/Configuration/Options/CheckBoxSelector.cpp
+8 −7 Fronter/Source/Configuration/Options/Option.cpp
+6 −5 Fronter/Source/Configuration/Options/RadioOption.cpp
+2 −1 Fronter/Source/Configuration/Options/RadioSelector.cpp
+4 −3 Fronter/Source/Configuration/Options/TextSelector.cpp
+10 −9 Fronter/Source/Configuration/RequiredFile.cpp
+1 −1 Fronter/Source/Configuration/RequiredFile.h
+9 −8 Fronter/Source/Configuration/RequiredFolder.cpp
+1 −1 Fronter/Source/Configuration/RequiredFolder.h
+7 −7 Fronter/Source/Frames/LogWindow.cpp
+3 −3 Fronter/Source/Frames/LogWindow.h
+1 −1 Fronter/Source/Frames/MainFrame.cpp
+1 −1 Fronter/Source/Frames/MainFrame.h
+8 −6 Fronter/Source/Frames/Tabs/ConvertTab.cpp
+3 −3 Fronter/Source/Frames/Tabs/ConvertTab.h
+3 −3 Fronter/Source/Frames/Tabs/ModsTab.h
+1 −1 Fronter/Source/Frames/Tabs/OptionBox.cpp
+3 −3 Fronter/Source/Frames/Tabs/OptionBox.h
+1 −1 Fronter/Source/Frames/Tabs/OptionsTab.cpp
+3 −3 Fronter/Source/Frames/Tabs/OptionsTab.h
+2 −2 Fronter/Source/Frames/Tabs/PathsTab.h
+2 −2 Fronter/Source/Frontend.h
+2 −2 Fronter/Source/WorkerThreads/ConverterLauncher/ConverterLauncher.h
+25 −17 Fronter/Source/WorkerThreads/ConverterLauncher/WinConverterLauncher.cpp
+2 −2 Fronter/Source/WorkerThreads/LogWatcher/LogMessageEvent.h
+3 −3 Fronter/Source/WorkerThreads/LogWatcher/LogWatcher.h
+2 −2 Fronter/Source/WorkerThreads/ModCopier/ModCopier.h
+1 −1 commonItems
16 changes: 16 additions & 0 deletions ImperatorToCK3/Data_Files/configuration_l_simp_chinese.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
l_simp_chinese:
IMPDISPLAYNAME: "英白拉多:罗马至十字军之王III"
IMPGAME: "英白拉多:罗马"
IMPFOLDER: "英白拉多:罗马 安装路径"
IMPFOLDERTIP: "在你电脑上英白拉多:罗马的安装路径"
IMPMOD: "英白拉多:罗马 Mod路径"
IMPMODTIP: "在你电脑上英白拉多:罗马存放mod的位置"
CK3GAME: "十字军之王III"
CK3FOLDER: "十字军之王III 安装路径"
CK3FOLDERTIP: "在你电脑上十字军之王III的安装路径"
CK3MOD: "十字军之王III Mod路径"
CK3MODTIP: "在你电脑上十字军之王III存放mod的位置"
IMPFILE: "转换器可执行文件路径"
IMPFILETIP: "ImperatorToCK3Converter.exe所在的路径"
IMPSAVE: "英白拉多:罗马 存档路径"
IMPSAVETIP: "你的英白拉多:罗马存档所在的路径"
20 changes: 20 additions & 0 deletions ImperatorToCK3/Data_Files/options_l_simp_chinese.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
l_simp_chinese:
IMPERATORDEJURE: "是否以CK3法理为根据应用至IR设置。"
IMPERATORDEJURETIP: "推荐使用CK3法理。"
IMPERATORDEJURE1: "省份和区域"
IMPERATORDEJURE1TIP: "使IR省份法理上适配CK3公爵领,使IR区域法理上适配CK3王国领。"
IMPERATORDEJURE2: "国家"
IMPERATORDEJURE2TIP: "以CK3法理适用于IR国家。"
IMPERATORDEJURE3: ""
IMPERATORDEJURE3TIP: "保持原版CK3法理。"

CONVERTCHARACTERBIRTHANDDEATHDATES: "角色生日转换基础"
CONVERTCHARACTERBIRTHANDDEATHDATES_TIP: "角色生日可以基于其在IR的出生日期或者其IR年龄。"
CONVERTCHARACTERBIRTHANDDEATHDATES_1: "基于出生日期"
CONVERTCHARACTERBIRTHANDDEATHDATES_1_TIP: "建议在你并无巨大时间差转换时使用。"
CONVERTCHARACTERBIRTHANDDEATHDATES_2: "年龄"
CONVERTCHARACTERBIRTHANDDEATHDATES_2_TIP: "推荐当你从远早于AD867年的存档转换时使用。"

MODNAME: "MOD导出名称(可选):"
MODNAMETIP: "请使用Latin字母"
MODNAMETIP2: "可选的MOD导出名称(默认名称使用存档名之一)"
12 changes: 12 additions & 0 deletions ImperatorToCK3/ImperatorToCK3.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,18 @@
<DestinationFolders Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(OutDir)configurables</DestinationFolders>
</CopyFileToFolders>
</ItemGroup>
<ItemGroup>
<CopyFileToFolders Include="Data_Files\configuration_l_simp_chinese.yml">
<FileType>Document</FileType>
<DestinationFolders Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(OutDir)..\Configuration</DestinationFolders>
<DestinationFolders Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(OutDir)..\Configuration</DestinationFolders>
</CopyFileToFolders>
<CopyFileToFolders Include="Data_Files\options_l_simp_chinese.yml">
<FileType>Document</FileType>
<DestinationFolders Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(OutDir)..\Configuration</DestinationFolders>
<DestinationFolders Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(OutDir)..\Configuration</DestinationFolders>
</CopyFileToFolders>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down
6 changes: 6 additions & 0 deletions ImperatorToCK3/ImperatorToCK3.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -767,5 +767,11 @@
<CopyFileToFolders Include="Data_Files\configurables\succession_law_map.txt">
<Filter>Resources\configurables</Filter>
</CopyFileToFolders>
<CopyFileToFolders Include="Data_Files\configuration_l_simp_chinese.yml">
<Filter>Resources\Frontend stuff</Filter>
</CopyFileToFolders>
<CopyFileToFolders Include="Data_Files\options_l_simp_chinese.yml">
<Filter>Resources\Frontend stuff</Filter>
</CopyFileToFolders>
</ItemGroup>
</Project>

0 comments on commit 05919ca

Please sign in to comment.