Skip to content

Commit a4965aa

Browse files
committed
fix missing post-build localization steps
1 parent ecde409 commit a4965aa

File tree

4 files changed

+39
-7
lines changed

4 files changed

+39
-7
lines changed
35 KB
Binary file not shown.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
copy /y locbaml.exe %1\locbaml.exe
2+
copy /y zh-hans.csv %1\zh-hans.csv
3+
copy /y zh-hant.csv %1\zh-hant.csv
4+
copy /y zh-tw.csv %1\zh-tw.csv
5+
copy /y en-gb.csv %1\en-gb.csv
6+
copy /y ko.csv %1\ko.csv
7+
copy /y ru.csv %1\ru.csv
8+
copy /y fr.csv %1\fr.csv
9+
copy /y de.csv %1\de.csv
10+
copy /y pl.csv %1\pl.csv
11+
copy /y hu.csv %1\hu.csv
12+
cd %1
13+
md zh-HANS
14+
locbaml /generate en-US/Smellyriver.TankInspector.resources.dll /trans:zh-hans.csv /out:"zh-HANS" /cul:zh-HANS
15+
md zh-TW
16+
locbaml /generate en-US/Smellyriver.TankInspector.resources.dll /trans:zh-tw.csv /out:"zh-TW" /cul:zh-TW
17+
md zh-HANT
18+
locbaml /generate en-US/Smellyriver.TankInspector.resources.dll /trans:zh-hant.csv /out:"zh-HANT" /cul:zh-HANT
19+
md en-GB
20+
locbaml /generate en-US/Smellyriver.TankInspector.resources.dll /trans:en-gb.csv /out:"en-GB" /cul:en-GB
21+
md ko
22+
locbaml /generate en-US/Smellyriver.TankInspector.resources.dll /trans:ko.csv /out:"ko" /cul:ko
23+
md ru
24+
locbaml /generate en-US/Smellyriver.TankInspector.resources.dll /trans:ru.csv /out:"ru" /cul:ru
25+
md fr
26+
locbaml /generate en-US/Smellyriver.TankInspector.resources.dll /trans:fr.csv /out:"fr" /cul:fr
27+
md de
28+
locbaml /generate en-US/Smellyriver.TankInspector.resources.dll /trans:de.csv /out:"de" /cul:de
29+
md pl
30+
locbaml /generate en-US/Smellyriver.TankInspector.resources.dll /trans:pl.csv /out:"pl" /cul:pl
31+
md hu
32+
locbaml /generate en-US/Smellyriver.TankInspector.resources.dll /trans:hu.csv /out:"hu" /cul:hu
33+
REM rd "en-US" /s /q
34+
pause

TankInspector/Properties/AssemblyInfo.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
[assembly: AssemblyConfiguration("")]
1414
[assembly: AssemblyCompany("Smellyriver")]
1515
[assembly: AssemblyProduct("Tank Inspector")]
16-
[assembly: AssemblyCopyright("Copyright © Smellyriver 2013 - 2015")]
16+
[assembly: AssemblyCopyright("Copyright © Smellyriver 2013 - 2017")]
1717
[assembly: AssemblyTrademark("Smellyriver")]
1818
[assembly: AssemblyCulture("")]
1919

@@ -32,7 +32,7 @@
3232
#if DEBUG
3333
[assembly: NeutralResourcesLanguage("en")]
3434
#else
35-
[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
35+
[assembly: NeutralResourcesLanguage("ru", UltimateResourceFallbackLocation.Satellite)]
3636
#endif
3737

3838

@@ -56,8 +56,8 @@
5656
// You can specify all the values or you can default the Build and Revision Numbers
5757
// by using the '*' as shown below:
5858
// [assembly: AssemblyVersion("1.0.*")]
59-
[assembly: AssemblyVersion("1.8.0.200")]
60-
[assembly: AssemblyFileVersion("1.8.0.200")]
59+
[assembly: AssemblyVersion("1.8.1.204")]
60+
[assembly: AssemblyFileVersion("1.8.1.204")]
6161

6262
[assembly:XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "Smellyriver.TankInspector")]
6363
[assembly:XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "Smellyriver.TankInspector.Design")]

TankInspector/TankInspector.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,6 @@
945945
<None Include="Localization\ko.csv">
946946
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
947947
</None>
948-
<None Include="Localization\loc-csv.bat" />
949948
<None Include="Localization\loc-dll.bat" />
950949
<Compile Include="Modeling\Database.Maintainance.cs" />
951950
<None Include="Localization\pl.csv">
@@ -1834,8 +1833,7 @@
18341833
<ItemGroup />
18351834
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
18361835
<PropertyGroup>
1837-
<PostBuildEvent>
1838-
</PostBuildEvent>
1836+
<PostBuildEvent>$(ProjectDir)Localization\loc-dll.bat $(OutDir)</PostBuildEvent>
18391837
</PropertyGroup>
18401838
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
18411839
Other similar extension points exist, see Microsoft.Common.targets.

0 commit comments

Comments
 (0)