Skip to content

Commit

Permalink
Merge #3014 Adding Simplified Chinese Localization
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Apr 4, 2020
2 parents d0b3f83 + 44bb50a commit 1699459
Show file tree
Hide file tree
Showing 36 changed files with 3,746 additions and 23 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.

- [Netkan] Create skip-releases option for NetKAN (#2996 by: DasSkelett; reviewed: HebaruSan)
- [Multiple] Check current dir for portable install (#3005 by: HebaruSan; reviewed: DasSkelett)
- [GUI] Adding Simplified Chinese Localization (#3014 by: 050644zf; reviewed: HebaruSan)

### Bugfixes

Expand Down
2 changes: 1 addition & 1 deletion Core/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace CKAN
{
public static class Utilities
{
public static readonly string[] AvailableLanguages = { "en-GB", "en-US", "de-DE" };
public static readonly string[] AvailableLanguages = { "en-GB", "en-US", "de-DE", "zh-CN" };

/// <summary>
/// Copies a directory and optionally its subdirectories as a transaction.
Expand Down
78 changes: 78 additions & 0 deletions GUI/CKAN-GUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@
<EmbeddedResource Include="Localization\en-US\AboutDialog.en-US.resx">
<DependentUpon>..\..\Dialogs\AboutDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\AboutDialog.zh-CN.resx">
<DependentUpon>..\..\Dialogs\AboutDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\AboutDialog.resx">
<DependentUpon>AboutDialog.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -339,48 +342,72 @@
<EmbeddedResource Include="Localization\de-DE\AskUserForAutoUpdatesDialog.de-DE.resx">
<DependentUpon>..\..\Dialogs\AskUserForAutoUpdatesDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\AskUserForAutoUpdatesDialog.zh-CN.resx">
<DependentUpon>..\..\Dialogs\AskUserForAutoUpdatesDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\CloneFakeKspDialog.resx">
<DependentUpon>CloneFakeKspDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\de-DE\CloneFakeKspDialog.de-DE.resx">
<DependentUpon>..\..\Dialogs\CloneFakeKspDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\CloneFakeKspDialog.zh-CN.resx">
<DependentUpon>..\..\Dialogs\CloneFakeKspDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\CompatibleKspVersionsDialog.resx">
<DependentUpon>CompatibleKspVersionsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\de-DE\CompatibleKspVersionsDialog.de-DE.resx">
<DependentUpon>..\..\Dialogs\CompatibleKspVersionsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\CompatibleKspVersionsDialog.zh-CN.resx">
<DependentUpon>..\..\Dialogs\CompatibleKspVersionsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\Changeset.resx">
<DependentUpon>Changeset.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\de-DE\Changeset.de-DE.resx">
<DependentUpon>..\..\Controls\Changeset.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\Changeset.zh-CN.resx">
<DependentUpon>..\..\Controls\Changeset.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\ChooseProvidedMods.resx">
<DependentUpon>ChooseProvidedMods.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\de-DE\ChooseProvidedMods.de-DE.resx">
<DependentUpon>..\..\Controls\ChooseProvidedMods.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\ChooseProvidedMods.zh-CN.resx">
<DependentUpon>..\..\Controls\ChooseProvidedMods.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\ChooseRecommendedMods.resx">
<DependentUpon>ChooseRecommendedMods.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\de-DE\ChooseRecommendedMods.de-DE.resx">
<DependentUpon>..\..\Controls\ChooseRecommendedMods.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\ChooseRecommendedMods.zh-CN.resx">
<DependentUpon>..\..\Controls\ChooseRecommendedMods.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\Wait.resx">
<DependentUpon>Wait.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\de-DE\Wait.de-DE.resx">
<DependentUpon>..\..\Controls\Wait.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\Wait.zh-CN.resx">
<DependentUpon>..\..\Controls\Wait.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\DeleteDirectories.resx">
<DependentUpon>DeleteDirectories.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\de-DE\DeleteDirectories.de-DE.resx">
<DependentUpon>..\..\Controls\DeleteDirectories.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\DeleteDirectories.zh-CN.resx">
<DependentUpon>..\..\Controls\DeleteDirectories.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\EditLabelsDialog.resx">
<DependentUpon>EditLabelsDialog.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -390,18 +417,27 @@
<EmbeddedResource Include="Localization\de-DE\EditModpack.de-DE.resx">
<DependentUpon>..\..\Controls\EditModpack.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\EditModpack.zh-CN.resx">
<DependentUpon>..\..\Controls\EditModpack.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\en-US\EditModpack.en-US.resx">
<DependentUpon>..\..\Controls\EditModpack.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\de-DE\EditLabelsDialog.de-DE.resx">
<DependentUpon>..\..\Dialogs\EditLabelsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\EditLabelsDialog.zh-CN.resx">
<DependentUpon>..\..\Dialogs\EditLabelsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\ErrorDialog.resx">
<DependentUpon>ErrorDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\de-DE\ErrorDialog.de-DE.resx">
<DependentUpon>..\..\Dialogs\ErrorDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\ErrorDialog.zh-CN.resx">
<DependentUpon>..\..\Dialogs\ErrorDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\HintTextBox.resx">
<DependentUpon>HintTextBox.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -411,25 +447,37 @@
<EmbeddedResource Include="Localization\de-DE\KSPCommandLineOptionsDialog.de-DE.resx">
<DependentUpon>..\..\Dialogs\KSPCommandLineOptionsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\KSPCommandLineOptionsDialog.zh-CN.resx">
<DependentUpon>..\..\Dialogs\KSPCommandLineOptionsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Main\Main.resx">
<DependentUpon>Main.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Localization\de-DE\Main.de-DE.resx">
<DependentUpon>..\..\Main\Main.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\Main.zh-CN.resx">
<DependentUpon>..\..\Main\Main.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\AllModVersions.resx">
<DependentUpon>AllModVersions.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\de-DE\AllModVersions.de-DE.resx">
<DependentUpon>..\..\Controls\AllModVersions.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\AllModVersions.zh-CN.resx">
<DependentUpon>..\..\Controls\AllModVersions.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\ModInfo.resx">
<DependentUpon>ModInfo.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\de-DE\ModInfo.de-DE.resx">
<DependentUpon>..\..\Controls\ModInfo.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\ModInfo.zh-CN.resx">
<DependentUpon>..\..\Controls\ModInfo.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\en-US\ModInfo.en-US.resx">
<DependentUpon>..\..\Controls\ModInfo.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -439,24 +487,36 @@
<EmbeddedResource Include="Localization\de-DE\ManageKSPInstancesDialog.de-DE.resx">
<DependentUpon>..\..\Dialogs\ManageKspInstancesDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\ManageKSPInstancesDialog.zh-CN.resx">
<DependentUpon>..\..\Dialogs\ManageKspInstancesDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\NewRepoDialog.resx">
<DependentUpon>NewRepoDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\de-DE\NewRepoDialog.de-DE.resx">
<DependentUpon>..\..\Dialogs\NewRepoDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\NewRepoDialog.zh-CN.resx">
<DependentUpon>..\..\Dialogs\NewRepoDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\NewUpdateDialog.resx">
<DependentUpon>NewUpdateDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\de-DE\NewUpdateDialog.de-DE.resx">
<DependentUpon>..\..\Dialogs\NewUpdateDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\NewUpdateDialog.zh-CN.resx">
<DependentUpon>..\..\Dialogs\NewUpdateDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\PluginsDialog.resx">
<DependentUpon>PluginsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\de-DE\PluginsDialog.de-DE.resx">
<DependentUpon>..\..\Dialogs\PluginsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\PluginsDialog.zh-CN.resx">
<DependentUpon>..\..\Dialogs\PluginsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<LogicalName>CKAN.Properties.Resources.resources</LogicalName>
<SubType>Designer</SubType>
Expand All @@ -469,6 +529,12 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.zh-CN.resx">
<LogicalName>CKAN.Properties.Resources.zh-CN.resources</LogicalName>
<SubType>Designer</SubType>
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.en-US.resx">
<LogicalName>CKAN.Properties.Resources.en-US.resources</LogicalName>
<SubType>Designer</SubType>
Expand All @@ -481,18 +547,27 @@
<EmbeddedResource Include="Localization\de-DE\RenameInstanceDialog.de-DE.resx">
<DependentUpon>..\..\Dialogs\RenameInstanceDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\RenameInstanceDialog.zh-CN.resx">
<DependentUpon>..\..\Dialogs\RenameInstanceDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\SelectionDialog.resx">
<DependentUpon>SelectionDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\de-DE\SelectionDialog.de-DE.resx">
<DependentUpon>..\..\Dialogs\SelectionDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\SelectionDialog.zh-CN.resx">
<DependentUpon>..\..\Dialogs\SelectionDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\SettingsDialog.resx">
<DependentUpon>SettingsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\de-DE\SettingsDialog.de-DE.resx">
<DependentUpon>..\..\Dialogs\SettingsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\SettingsDialog.zh-CN.resx">
<DependentUpon>..\..\Dialogs\SettingsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\en-US\SettingsDialog.en-US.resx">
<DependentUpon>..\..\Dialogs\SettingsDialog.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -502,6 +577,9 @@
<EmbeddedResource Include="Localization\de-DE\YesNoDialog.de-DE.resx">
<DependentUpon>..\..\Dialogs\YesNoDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\zh-CN\YesNoDialog.zh-CN.resx">
<DependentUpon>..\..\Dialogs\YesNoDialog.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
Expand Down
2 changes: 1 addition & 1 deletion GUI/Dialogs/KSPCommandLineOptionsDialog.Designer.cs

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

3 changes: 1 addition & 2 deletions GUI/Dialogs/KSPCommandLineOptionsDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
namespace CKAN
{

public partial class KSPCommandLineOptionsDialog : FormCompatibility
public partial class KSPCommandLineOptionsDialog : Form
{
public KSPCommandLineOptionsDialog()
{
InitializeComponent();
ApplyFormCompatibilityFixes();

StartPosition = FormStartPosition.CenterScreen;
}
Expand Down
2 changes: 1 addition & 1 deletion GUI/Dialogs/RenameInstanceDialog.Designer.cs

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

3 changes: 1 addition & 2 deletions GUI/Dialogs/RenameInstanceDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

namespace CKAN
{
public partial class RenameInstanceDialog : FormCompatibility
public partial class RenameInstanceDialog : Form
{
public RenameInstanceDialog()
{
InitializeComponent();
ApplyFormCompatibilityFixes();

// Set the default actions for pressing Enter and Escape.
AcceptButton = OKButton;
Expand Down
Loading

0 comments on commit 1699459

Please sign in to comment.