Merge pull request #3156 from L1Q/master

Translation improvements and updates
This commit is contained in:
Jaex 2018-02-19 07:53:03 +03:00 committed by GitHub
commit d2ab43e329
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 186 additions and 13 deletions

View file

@ -56,9 +56,8 @@ public class CodeMenuEntryFilename : CodeMenuEntry
public static readonly CodeMenuEntryFilename ra = new CodeMenuEntryFilename("ra", Resources.ReplCodeMenuEntry_ra_Random_alphanumeric_char, Resources.ReplCodeMenuCategory_Random);
public static readonly CodeMenuEntryFilename rx = new CodeMenuEntryFilename("rx", Resources.ReplCodeMenuEntry_rx_Random_hexadecimal, Resources.ReplCodeMenuCategory_Random);
public static readonly CodeMenuEntryFilename guid = new CodeMenuEntryFilename("guid", Resources.ReplCodeMenuEntry_guid_Random_guid, Resources.ReplCodeMenuCategory_Random);
// TODO: Translate
public static readonly CodeMenuEntryFilename radjective = new CodeMenuEntryFilename("radjective", "Random adjective", Resources.ReplCodeMenuCategory_Random);
public static readonly CodeMenuEntryFilename ranimal = new CodeMenuEntryFilename("ranimal", "Random animal", Resources.ReplCodeMenuCategory_Random);
public static readonly CodeMenuEntryFilename radjective = new CodeMenuEntryFilename("radjective", Resources.CodeMenuEntryFilename_RandomAdjective, Resources.ReplCodeMenuCategory_Random);
public static readonly CodeMenuEntryFilename ranimal = new CodeMenuEntryFilename("ranimal", Resources.CodeMenuEntryFilename_RandomAnimal, Resources.ReplCodeMenuCategory_Random);
public static readonly CodeMenuEntryFilename rf = new CodeMenuEntryFilename("rf", Resources.ReplCodeMenuEntry_rf_Random_line_from_file, Resources.ReplCodeMenuCategory_Random);
public static readonly CodeMenuEntryFilename width = new CodeMenuEntryFilename("width", Resources.ReplCodeMenuEntry_width_Gets_image_width, Resources.ReplCodeMenuCategory_Image);
public static readonly CodeMenuEntryFilename height = new CodeMenuEntryFilename("height", Resources.ReplCodeMenuEntry_height_Gets_image_height, Resources.ReplCodeMenuCategory_Image);

View file

@ -479,6 +479,24 @@ internal static string CodeMenu_Create_Close {
}
}
/// <summary>
/// Looks up a localized string similar to Random adjective.
/// </summary>
internal static string CodeMenuEntryFilename_RandomAdjective {
get {
return ResourceManager.GetString("CodeMenuEntryFilename_RandomAdjective", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Random animal.
/// </summary>
internal static string CodeMenuEntryFilename_RandomAnimal {
get {
return ResourceManager.GetString("CodeMenuEntryFilename_RandomAnimal", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>

View file

@ -1151,6 +1151,12 @@ Would you like to download it?</value>
<data name="ShapeType_DrawingSticker" xml:space="preserve">
<value>Drawing: Sticker</value>
</data>
<data name="CodeMenuEntryFilename_RandomAnimal" xml:space="preserve">
<value>Random animal</value>
</data>
<data name="CodeMenuEntryFilename_RandomAdjective" xml:space="preserve">
<value>Random adjective</value>
</data>
<data name="WavFileNameEditor_EditValue_Browse_for_a_sound_file___" xml:space="preserve">
<value>Browse for a sound file...</value>
</data>

View file

@ -1138,4 +1138,16 @@
<data name="ImageEditorInterpolationMode_Bilinear" xml:space="preserve">
<value>Билинейная</value>
</data>
<data name="ShapeType_DrawingSticker" xml:space="preserve">
<value>Рисование: Стикер</value>
</data>
<data name="CodeMenuEntryFilename_RandomAnimal" xml:space="preserve">
<value>Случайное животное</value>
</data>
<data name="CodeMenuEntryFilename_RandomAdjective" xml:space="preserve">
<value>Случайное прилагательное</value>
</data>
<data name="ReplCodeMenuEntry_rf_Random_line_from_file" xml:space="preserve">
<value>Случайная строка из файла. Используйте {filepath}, чтобы указать файл</value>
</data>
</root>

View file

@ -68,8 +68,7 @@ public void ToolMode()
public void EditorMode()
{
btnOK.Visible = true;
// TODO: Translate
btnClose.Text = "Cancel";
btnClose.Text = Resources.ImageEffectsForm_EditorMode_Cancel;
}
private void AddAllEffectsToContextMenu()

View file

@ -96,6 +96,15 @@ internal static string ImageEffectsForm_AddAllEffectsToTreeView_Manipulations {
}
}
/// <summary>
/// Looks up a localized string similar to Cancel.
/// </summary>
internal static string ImageEffectsForm_EditorMode_Cancel {
get {
return ResourceManager.GetString("ImageEffectsForm_EditorMode_Cancel", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Image effects - Width: {0}, Height: {1}, Render time: {2} ms.
/// </summary>

View file

@ -113,4 +113,7 @@
<data name="ImageEffectsForm_UpdatePreview_Image_effects___Width___0___Height___1___Render_time___2__ms" xml:space="preserve">
<value>Image effects - Width: {0}, Height: {1}, Render time: {2} ms</value>
</data>
<data name="ImageEffectsForm_EditorMode_Cancel" xml:space="preserve">
<value>Cancel</value>
</data>
</root>

View file

@ -132,4 +132,7 @@
<data name="ImageEffectsForm_UpdatePreview_Image_effects___Width___0___Height___1___Render_time___2__ms" xml:space="preserve">
<value>Эффекты изображения - Ширина: {0}, Высота: {1}, Время рендера: {2} мс</value>
</data>
<data name="ImageEffectsForm_EditorMode_Cancel" xml:space="preserve">
<value>Отменить</value>
</data>
</root>

View file

@ -59,19 +59,18 @@ public OAuthLoginStatus Status
{
status = value;
// TODO: Translate
switch (status)
{
case OAuthLoginStatus.LoginRequired:
lblStatusValue.Text = "Not logged in.";
lblStatusValue.Text = Resources.OAuthControl_Status_NotLoggedIn;
lblStatusValue.ForeColor = Color.FromArgb(200, 0, 0);
break;
case OAuthLoginStatus.LoginSuccessful:
lblStatusValue.Text = "Logged in.";
lblStatusValue.Text = Resources.OAuthControl_Status_LoggedIn;
lblStatusValue.ForeColor = Color.FromArgb(0, 128, 0);
break;
case OAuthLoginStatus.LoginFailed:
lblStatusValue.Text = "Login failed.";
lblStatusValue.Text = Resources.OAuthControl_Status_LoginFailed;
lblStatusValue.ForeColor = Color.FromArgb(200, 0, 0);
break;
}

View file

@ -138,4 +138,7 @@
<data name="btnCompleteAuthorization.Text" xml:space="preserve">
<value>Шаг 2: Завершить авторизацию</value>
</data>
<data name="lblStatus.Text" xml:space="preserve">
<value>Состояние:</value>
</data>
</root>

View file

@ -1196,4 +1196,19 @@ store.book[0].title</value>
<data name="gbAmazonS3Advanced.Text" xml:space="preserve">
<value>Дополнительно</value>
</data>
<data name="lblAmazonS3StripExtension.Text" xml:space="preserve">
<value>Убирать расширение файла:</value>
</data>
<data name="cbAmazonS3StripExtensionImage.Text" xml:space="preserve">
<value>Картинок</value>
</data>
<data name="cbAmazonS3StripExtensionVideo.Text" xml:space="preserve">
<value>Видео</value>
</data>
<data name="cbAmazonS3StripExtensionText.Text" xml:space="preserve">
<value>Текстов</value>
</data>
<data name="cbAmazonS3PublicACL.Text" xml:space="preserve">
<value>Задавать файлам public-read ACL</value>
</data>
</root>

View file

@ -1148,14 +1148,13 @@ public void PastebinLogin()
public void UpdatePastebinStatus()
{
// TODO: Translate
if (Config.PastebinSettings == null || string.IsNullOrEmpty(Config.PastebinSettings.UserKey))
{
lblPastebinLoginStatus.Text = "Not logged in.";
lblPastebinLoginStatus.Text = Resources.UploadersConfigForm_UpdatePastebinStatus_NotLoggedIn;
}
else
{
lblPastebinLoginStatus.Text = "Logged in.";
lblPastebinLoginStatus.Text = Resources.UploadersConfigForm_UpdatePastebinStatus_LoggedIn;
}
}

View file

@ -430,6 +430,33 @@ internal static string OAuthControl_OAuthControl_PasteVerificationCodeHere {
}
}
/// <summary>
/// Looks up a localized string similar to Logged in..
/// </summary>
internal static string OAuthControl_Status_LoggedIn {
get {
return ResourceManager.GetString("OAuthControl_Status_LoggedIn", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Login failed..
/// </summary>
internal static string OAuthControl_Status_LoginFailed {
get {
return ResourceManager.GetString("OAuthControl_Status_LoginFailed", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Not logged in..
/// </summary>
internal static string OAuthControl_Status_NotLoggedIn {
get {
return ResourceManager.GetString("OAuthControl_Status_NotLoggedIn", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to New account.
/// </summary>
@ -912,6 +939,24 @@ internal static string UploadersConfigForm_TestFTPAccount_Connected_Created_fold
}
}
/// <summary>
/// Looks up a localized string similar to Logged in..
/// </summary>
internal static string UploadersConfigForm_UpdatePastebinStatus_LoggedIn {
get {
return ResourceManager.GetString("UploadersConfigForm_UpdatePastebinStatus_LoggedIn", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Not logged in..
/// </summary>
internal static string UploadersConfigForm_UpdatePastebinStatus_NotLoggedIn {
get {
return ResourceManager.GetString("UploadersConfigForm_UpdatePastebinStatus_NotLoggedIn", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
/// </summary>

View file

@ -392,4 +392,19 @@ Created folders:</value>
<data name="CustomUploaderItem_GetFileFormName_FileFormNameMustBeConfigured" xml:space="preserve">
<value>"File form name" must be configured.</value>
</data>
<data name="UploadersConfigForm_UpdatePastebinStatus_NotLoggedIn" xml:space="preserve">
<value>Not logged in.</value>
</data>
<data name="UploadersConfigForm_UpdatePastebinStatus_LoggedIn" xml:space="preserve">
<value>Logged in.</value>
</data>
<data name="OAuthControl_Status_NotLoggedIn" xml:space="preserve">
<value>Not logged in.</value>
</data>
<data name="OAuthControl_Status_LoggedIn" xml:space="preserve">
<value>Logged in.</value>
</data>
<data name="OAuthControl_Status_LoginFailed" xml:space="preserve">
<value>Login failed.</value>
</data>
</root>

View file

@ -259,4 +259,19 @@
<data name="CustomUploaderItem_GetFileFormName_FileFormNameMustBeConfigured" xml:space="preserve">
<value>"Имя формы с файлом" должно быть настроено.</value>
</data>
<data name="UploadersConfigForm_UpdatePastebinStatus_NotLoggedIn" xml:space="preserve">
<value>Вход не выполнен.</value>
</data>
<data name="UploadersConfigForm_UpdatePastebinStatus_LoggedIn" xml:space="preserve">
<value>Вход выполнен.</value>
</data>
<data name="OAuthControl_Status_NotLoggedIn" xml:space="preserve">
<value>Вход не выполнен.</value>
</data>
<data name="OAuthControl_Status_LoggedIn" xml:space="preserve">
<value>Вход выполнен.</value>
</data>
<data name="OAuthControl_Status_LoginFailed" xml:space="preserve">
<value>Вход не удался.</value>
</data>
</root>

View file

@ -141,4 +141,7 @@
<data name="lblDecodeResult.Text" xml:space="preserve">
<value>Результат:</value>
</data>
<data name="tsmiDecode.Text" xml:space="preserve">
<value>Декодировать</value>
</data>
</root>

View file

@ -2514,6 +2514,24 @@ public static string UploadManager_IsUploadConfirmed_Upload_files {
}
}
/// <summary>
/// Looks up a localized string similar to Shorten.
/// </summary>
public static string UploadManager_ShowShortenURLDialog_Shorten {
get {
return ResourceManager.GetString("UploadManager_ShowShortenURLDialog_Shorten", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Shorten URL.
/// </summary>
public static string UploadManager_ShowShortenURLDialog_ShortenURL {
get {
return ResourceManager.GetString("UploadManager_ShowShortenURLDialog_ShortenURL", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to File upload.
/// </summary>

View file

@ -967,4 +967,10 @@ Middle click to close</value>
<data name="cursor" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\cursor.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="UploadManager_ShowShortenURLDialog_ShortenURL" xml:space="preserve">
<value>Shorten URL</value>
</data>
<data name="UploadManager_ShowShortenURLDialog_Shorten" xml:space="preserve">
<value>Shorten</value>
</data>
</root>

View file

@ -560,4 +560,10 @@
<data name="ApplicationSettingsForm_cbStartWithWindows_DisabledByUser_Text" xml:space="preserve">
<value>Автозапуск отключен через Диспетчер задач</value>
</data>
<data name="UploadManager_ShowShortenURLDialog_ShortenURL" xml:space="preserve">
<value>Сокращение ссылки</value>
</data>
<data name="UploadManager_ShowShortenURLDialog_Shorten" xml:space="preserve">
<value>Сократить</value>
</data>
</root>

View file

@ -324,7 +324,7 @@ public static void ShowShortenURLDialog(TaskSettings taskSettings = null)
}
}
string url = InputBox.GetInputText("ShareX - " + "Shorten URL", inputText, "Shorten");
string url = InputBox.GetInputText("ShareX - " + ShareX.Properties.Resources.UploadManager_ShowShortenURLDialog_ShortenURL, inputText, ShareX.Properties.Resources.UploadManager_ShowShortenURLDialog_Shorten);
if (!string.IsNullOrEmpty(url))
{