Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ru-RU translation #3383

Merged
merged 4 commits into from
Jun 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Core/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static class Utilities
{
public static readonly string[] AvailableLanguages =
{
"en-GB", "en-US", "de-DE", "zh-CN", "fr-FR", "pt-BR"
"en-GB", "en-US", "de-DE", "zh-CN", "fr-FR", "pt-BR", "ru-RU"
};

/// <summary>
Expand Down
87 changes: 87 additions & 0 deletions GUI/CKAN-GUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@
<EmbeddedResource Include="Localization\pt-BR\AboutDialog.pt-BR.resx">
<DependentUpon>..\..\Dialogs\AboutDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\AboutDialog.ru-RU.resx">
<DependentUpon>..\..\Dialogs\AboutDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\AboutDialog.resx">
<DependentUpon>AboutDialog.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -367,6 +370,9 @@
<EmbeddedResource Include="Localization\pt-BR\AskUserForAutoUpdatesDialog.pt-BR.resx">
<DependentUpon>..\..\Dialogs\AskUserForAutoUpdatesDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\AskUserForAutoUpdatesDialog.ru-RU.resx">
<DependentUpon>..\..\Dialogs\AskUserForAutoUpdatesDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\CloneFakeGameDialog.resx">
<DependentUpon>CloneFakeGameDialog.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -382,6 +388,9 @@
<EmbeddedResource Include="Localization\pt-BR\CloneFakeGameDialog.pt-BR.resx">
<DependentUpon>..\..\Dialogs\CloneFakeGameDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\CloneFakeGameDialog.ru-RU.resx">
<DependentUpon>..\..\Dialogs\CloneFakeGameDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\CompatibleGameVersionsDialog.resx">
<DependentUpon>CompatibleGameVersionsDialog.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -397,6 +406,9 @@
<EmbeddedResource Include="Localization\pt-BR\CompatibleGameVersionsDialog.pt-BR.resx">
<DependentUpon>..\..\Dialogs\CompatibleGameVersionsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\CompatibleGameVersionsDialog.ru-RU.resx">
<DependentUpon>..\..\Dialogs\CompatibleGameVersionsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\Changeset.resx">
<DependentUpon>Changeset.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -412,6 +424,9 @@
<EmbeddedResource Include="Localization\pt-BR\Changeset.pt-BR.resx">
<DependentUpon>..\..\Controls\Changeset.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\Changeset.ru-RU.resx">
<DependentUpon>..\..\Controls\Changeset.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\ChooseProvidedMods.resx">
<DependentUpon>ChooseProvidedMods.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -427,6 +442,9 @@
<EmbeddedResource Include="Localization\pt-BR\ChooseProvidedMods.pt-BR.resx">
<DependentUpon>..\..\Controls\ChooseProvidedMods.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\ChooseProvidedMods.ru-RU.resx">
<DependentUpon>..\..\Controls\ChooseProvidedMods.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\ChooseRecommendedMods.resx">
<DependentUpon>ChooseRecommendedMods.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -442,6 +460,9 @@
<EmbeddedResource Include="Localization\pt-BR\ChooseRecommendedMods.pt-BR.resx">
<DependentUpon>..\..\Controls\ChooseRecommendedMods.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\ChooseRecommendedMods.ru-RU.resx">
<DependentUpon>..\..\Controls\ChooseRecommendedMods.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\Wait.resx">
<DependentUpon>Wait.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -457,6 +478,9 @@
<EmbeddedResource Include="Localization\pt-BR\Wait.pt-BR.resx">
<DependentUpon>..\..\Controls\Wait.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\Wait.ru-RU.resx">
<DependentUpon>..\..\Controls\Wait.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\DeleteDirectories.resx">
<DependentUpon>DeleteDirectories.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -472,6 +496,9 @@
<EmbeddedResource Include="Localization\pt-BR\DeleteDirectories.pt-BR.resx">
<DependentUpon>..\..\Controls\DeleteDirectories.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\DeleteDirectories.ru-RU.resx">
<DependentUpon>..\..\Controls\DeleteDirectories.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\EditLabelsDialog.resx">
<DependentUpon>EditLabelsDialog.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -493,6 +520,9 @@
<EmbeddedResource Include="Localization\pt-BR\EditModpack.pt-BR.resx">
<DependentUpon>..\..\Controls\EditModpack.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\EditModpack.ru-RU.resx">
<DependentUpon>..\..\Controls\EditModpack.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\de-DE\EditLabelsDialog.de-DE.resx">
<DependentUpon>..\..\Dialogs\EditLabelsDialog.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -505,6 +535,9 @@
<EmbeddedResource Include="Localization\pt-BR\EditLabelsDialog.pt-BR.resx">
<DependentUpon>..\..\Dialogs\EditLabelsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\EditLabelsDialog.ru-RU.resx">
<DependentUpon>..\..\Dialogs\EditLabelsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\ErrorDialog.resx">
<DependentUpon>ErrorDialog.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -520,6 +553,9 @@
<EmbeddedResource Include="Localization\pt-BR\ErrorDialog.pt-BR.resx">
<DependentUpon>..\..\Dialogs\ErrorDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\ErrorDialog.ru-RU.resx">
<DependentUpon>..\..\Dialogs\ErrorDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\HintTextBox.resx">
<DependentUpon>HintTextBox.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -538,6 +574,9 @@
<EmbeddedResource Include="Localization\pt-BR\GameCommandLineOptionsDialog.pt-BR.resx">
<DependentUpon>..\..\Dialogs\GameCommandLineOptionsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\GameCommandLineOptionsDialog.ru-RU.resx">
<DependentUpon>..\..\Dialogs\GameCommandLineOptionsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Main\Main.resx">
<DependentUpon>Main.cs</DependentUpon>
<SubType>Designer</SubType>
Expand All @@ -554,6 +593,9 @@
<EmbeddedResource Include="Localization\pt-BR\Main.pt-BR.resx">
<DependentUpon>..\..\Main\Main.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\Main.ru-RU.resx">
<DependentUpon>..\..\Main\Main.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\AllModVersions.resx">
<DependentUpon>AllModVersions.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -569,6 +611,9 @@
<EmbeddedResource Include="Localization\pt-BR\AllModVersions.pt-BR.resx">
<DependentUpon>..\..\Controls\AllModVersions.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\AllModVersions.ru-RU.resx">
<DependentUpon>..\..\Controls\AllModVersions.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\ModInfo.resx">
<DependentUpon>ModInfo.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -587,6 +632,9 @@
<EmbeddedResource Include="Localization\pt-BR\ManageMods.pt-BR.resx">
<DependentUpon>..\..\Controls\ManageMods.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\ManageMods.ru-RU.resx">
<DependentUpon>..\..\Controls\ManageMods.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\EditModSearch.resx">
<DependentUpon>EditModSearch.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -602,6 +650,9 @@
<EmbeddedResource Include="Localization\pt-BR\EditModSearch.pt-BR.resx">
<DependentUpon>..\..\Controls\EditModSearch.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\EditModSearch.ru-RU.resx">
<DependentUpon>..\..\Controls\EditModSearch.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\EditModSearchDetails.resx">
<DependentUpon>EditModSearchDetails.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -617,6 +668,9 @@
<EmbeddedResource Include="Localization\pt-BR\EditModSearchDetails.pt-BR.resx">
<DependentUpon>..\..\Controls\EditModSearchDetails.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\EditModSearchDetails.ru-RU.resx">
<DependentUpon>..\..\Controls\EditModSearchDetails.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\de-DE\ModInfo.de-DE.resx">
<DependentUpon>..\..\Controls\ModInfo.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -632,6 +686,9 @@
<EmbeddedResource Include="Localization\pt-BR\ModInfo.pt-BR.resx">
<DependentUpon>..\..\Controls\ModInfo.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\ModInfo.ru-RU.resx">
<DependentUpon>..\..\Controls\ModInfo.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\ManageGameInstancesDialog.resx">
<DependentUpon>ManageGameInstancesDialog.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -647,6 +704,9 @@
<EmbeddedResource Include="Localization\pt-BR\ManageGameInstancesDialog.pt-BR.resx">
<DependentUpon>..\..\Dialogs\ManageGameInstancesDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\ManageGameInstancesDialog.ru-RU.resx">
<DependentUpon>..\..\Dialogs\ManageGameInstancesDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\NewRepoDialog.resx">
<DependentUpon>NewRepoDialog.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -662,6 +722,9 @@
<EmbeddedResource Include="Localization\pt-BR\NewRepoDialog.pt-BR.resx">
<DependentUpon>..\..\Dialogs\NewRepoDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\NewRepoDialog.ru-RU.resx">
<DependentUpon>..\..\Dialogs\NewRepoDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\NewUpdateDialog.resx">
<DependentUpon>NewUpdateDialog.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -677,6 +740,9 @@
<EmbeddedResource Include="Localization\pt-BR\NewUpdateDialog.pt-BR.resx">
<DependentUpon>..\..\Dialogs\NewUpdateDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\NewUpdateDialog.ru-RU.resx">
<DependentUpon>..\..\Dialogs\NewUpdateDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\PluginsDialog.resx">
<DependentUpon>PluginsDialog.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -692,6 +758,9 @@
<EmbeddedResource Include="Localization\pt-BR\PluginsDialog.pt-BR.resx">
<DependentUpon>..\..\Dialogs\PluginsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\PluginsDialog.ru-RU.resx">
<DependentUpon>..\..\Dialogs\PluginsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<LogicalName>CKAN.Properties.Resources.resources</LogicalName>
<SubType>Designer</SubType>
Expand Down Expand Up @@ -728,6 +797,12 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.ru-RU.resx">
<LogicalName>CKAN.Properties.Resources.ru-RU.resources</LogicalName>
<SubType>Designer</SubType>
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\RenameInstanceDialog.resx">
<DependentUpon>RenameInstanceDialog.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -743,6 +818,9 @@
<EmbeddedResource Include="Localization\pt-BR\RenameInstanceDialog.pt-BR.resx">
<DependentUpon>..\..\Dialogs\RenameInstanceDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\RenameInstanceDialog.ru-RU.resx">
<DependentUpon>..\..\Dialogs\RenameInstanceDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\SelectionDialog.resx">
<DependentUpon>SelectionDialog.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -758,6 +836,9 @@
<EmbeddedResource Include="Localization\pt-BR\SelectionDialog.pt-BR.resx">
<DependentUpon>..\..\Dialogs\SelectionDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\SelectionDialog.ru-RU.resx">
<DependentUpon>..\..\Dialogs\SelectionDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\SettingsDialog.resx">
<DependentUpon>SettingsDialog.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -776,6 +857,9 @@
<EmbeddedResource Include="Localization\pt-BR\SettingsDialog.pt-BR.resx">
<DependentUpon>..\..\Dialogs\SettingsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\SettingsDialog.ru-RU.resx">
<DependentUpon>..\..\Dialogs\SettingsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\YesNoDialog.resx">
<DependentUpon>YesNoDialog.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -791,6 +875,9 @@
<EmbeddedResource Include="Localization\pt-BR\YesNoDialog.pt-BR.resx">
<DependentUpon>..\..\Dialogs\YesNoDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Localization\ru-RU\YesNoDialog.ru-RU.resx">
<DependentUpon>..\..\Dialogs\YesNoDialog.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
Expand Down
6 changes: 3 additions & 3 deletions GUI/Dialogs/ManageGameInstancesDialog.Designer.cs

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

15 changes: 14 additions & 1 deletion GUI/Dialogs/ManageGameInstancesDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
using System.Windows.Forms;
using System.IO;

using CKAN.Versioning;

namespace CKAN
{
public partial class ManageGameInstancesDialog : Form
Expand Down Expand Up @@ -76,14 +78,25 @@ public void UpdateInstancesList()
{
instance.Key,
instance.Value.game.ShortName,
instance.Value.Version()?.ToString() ?? Properties.Resources.CompatibleGameVersionsDialogNone,
FormatVersion(instance.Value.Version()),
instance.Value.GameDir().Replace('/', Path.DirectorySeparatorChar)
})
{
Tag = instance.Key
})
.ToArray()
);

GameInstancesListView.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);
GameInstancesListView.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize);
}

private static string FormatVersion(GameVersion v)
{
return v == null
? Properties.Resources.CompatibleGameVersionsDialogNone
// The BUILD component is not useful visually
: new GameVersion(v.Major, v.Minor, v.Patch).ToString();
}

private void AddToCKANMenuItem_Click(object sender, EventArgs e)
Expand Down
Loading