Skip to content

Commit

Permalink
Added Portuguese, Brazilian, updated Russian translation.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCSUser committed Dec 16, 2021
1 parent 71d021e commit b61931b
Show file tree
Hide file tree
Showing 13 changed files with 212 additions and 42 deletions.
75 changes: 39 additions & 36 deletions HideItBobby.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -290,42 +290,45 @@
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
</ItemGroup>
<ItemGroup>
<Content Include="_Resources\sha\hide_it_bobby.21.BOM.en.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.21.BOM.pl.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.21.en.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.21.pl.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.22.BOM.de.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.22.BOM.pl.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.22.BOM.zh.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.22.de.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.22.pl.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.22.zh.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.23.BOM.ja.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.23.ja.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.25.BOM.de.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.25.BOM.es.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.25.de.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.25.es.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.29.BOM.de.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.29.BOM.en.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.29.BOM.es.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.29.BOM.ja.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.29.BOM.pl.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.29.BOM.ru.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.29.BOM.zh.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.29.de.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.29.en.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.29.es.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.29.ja.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.29.pl.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.29.ru.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.29.zh.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.30.BOM.en.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.30.en.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.31.en.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.31.ja.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.31.ko.sha256.txt" />
<Content Include="_Resources\sha\hide_it_bobby.32.ja.sha256.txt" />
<None Include="_Resources\hide_it_bobby.pt.xml" />
<None Include="_Resources\sha\hide_it_bobby.21.BOM.en.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.21.BOM.pl.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.21.en.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.21.pl.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.22.BOM.de.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.22.BOM.pl.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.22.BOM.zh.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.22.de.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.22.pl.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.22.zh.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.23.BOM.ja.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.23.ja.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.25.BOM.de.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.25.BOM.es.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.25.de.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.25.es.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.29.BOM.de.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.29.BOM.en.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.29.BOM.es.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.29.BOM.ja.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.29.BOM.pl.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.29.BOM.ru.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.29.BOM.zh.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.29.de.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.29.en.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.29.es.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.29.ja.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.29.pl.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.29.ru.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.29.zh.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.30.BOM.en.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.30.en.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.31.en.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.31.ja.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.31.ko.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.32.ja.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.33.pt.sha256.txt" />
<None Include="_Resources\sha\hide_it_bobby.33.ru.sha256.txt" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup Condition=" '$(Configuration)' == 'Dev' ">
Expand Down
6 changes: 5 additions & 1 deletion Localization/LocaleFilesManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ internal sealed class LocaleFilesManager : WithContext
hide_it_bobby_31_ko_sha256,
hide_it_bobby_31_en_sha256,
hide_it_bobby_32_ja_sha256,
hide_it_bobby_33_pt_sha256,
hide_it_bobby_33_ru_sha256,
});
private static readonly Lazy<Dictionary<string, string>> _keyToHash = new Lazy<Dictionary<string, string>>(() => new Dictionary<string, string>
{
Expand All @@ -69,7 +71,8 @@ internal sealed class LocaleFilesManager : WithContext
{ "ja", hide_it_bobby_32_ja_sha256 },
{ "ko", hide_it_bobby_31_ko_sha256 },
{ "pl", hide_it_bobby_29_pl_sha256 },
{ "ru", hide_it_bobby_29_ru_sha256 },
{ "pt", hide_it_bobby_33_pt_sha256 },
{ "ru", hide_it_bobby_33_ru_sha256 },
{ "zh", hide_it_bobby_29_zh_sha256 },
});
private static readonly Lazy<ReadOnlyCollection<FileInfo>> _files = new Lazy<ReadOnlyCollection<FileInfo>>(() => new List<FileInfo>
Expand All @@ -80,6 +83,7 @@ internal sealed class LocaleFilesManager : WithContext
new FileInfo("ja", Paths.Translations.JA, hide_it_bobby_ja),
new FileInfo("ko", Paths.Translations.KO, hide_it_bobby_ko),
new FileInfo("pl", Paths.Translations.PL, hide_it_bobby_pl),
new FileInfo("pt", Paths.Translations.PT, hide_it_bobby_pt),
new FileInfo("ru", Paths.Translations.RU, hide_it_bobby_ru),
new FileInfo("zh", Paths.Translations.ZH, hide_it_bobby_zh),
}.AsReadOnly());
Expand Down
2 changes: 1 addition & 1 deletion Properties/ModProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public static class ModProperties
{
public const string HarmonyId = "com.github.TheCSUser.HideItBobby";
public const string Version = "1.30";
public const int VersionInteger = 32;
public const int VersionInteger = 33;
public const string Name = "Hide it, Bobby!";
public const string ShortName = "HideItBobby";
#if DEV
Expand Down
26 changes: 23 additions & 3 deletions Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@
<data name="hide_it_bobby_pl" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\_resources\hide_it_bobby.pl.xml;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<data name="hide_it_bobby_pt" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\_resources\hide_it_bobby.pt.xml;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<data name="hide_it_bobby_ru" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\_resources\hide_it_bobby.ru.xml;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
Expand Down
6 changes: 6 additions & 0 deletions Properties/ResourcesSHA.resx
Original file line number Diff line number Diff line change
Expand Up @@ -226,4 +226,10 @@
<data name="hide_it_bobby_32_ja_sha256" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\_resources\sha\hide_it_bobby.32.ja.sha256.txt;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;windows-1250</value>
</data>
<data name="hide_it_bobby_33_pt_sha256" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\_resources\sha\hide_it_bobby.33.pt.sha256.txt;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;windows-1250</value>
</data>
<data name="hide_it_bobby_33_ru_sha256" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\_resources\sha\hide_it_bobby.33.ru.sha256.txt;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;windows-1250</value>
</data>
</root>
18 changes: 18 additions & 0 deletions Properties/ResourcesSHA1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ This fork was created to be compatible with [BOB, the Tree and Prop Replacer](ht
- Citadino for the Spanish translation
- vitalii201 for the Russian translation
- DNSE for the Korean translation
- Matheus de Carvalho for the Portuguese, Brazilian translation

# Translation project
Translation project is available at https://crowdin.com/project/cities-skylines-hide-it-bobby.
3 changes: 3 additions & 0 deletions Settings/Paths.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ internal static class Translations
private static readonly Lazy<string> _pl = new Lazy<string>(() => Combine(Directory, "hide_it_bobby.pl.xml"));
public static string PL => _pl.Value;

private static readonly Lazy<string> _pt = new Lazy<string>(() => Combine(Directory, "hide_it_bobby.pt.xml"));
public static string PT => _pt.Value;

private static readonly Lazy<string> _ru = new Lazy<string>(() => Combine(Directory, "hide_it_bobby.ru.xml"));
public static string RU => _ru.Value;

Expand Down
Loading

0 comments on commit b61931b

Please sign in to comment.