Skip to content

Commit

Permalink
Merge pull request #300 from leocb/orapps44-FlexibleMaterialDialog-po…
Browse files Browse the repository at this point in the history
…lish

FlexibleMaterialDialog Add Polish language
  • Loading branch information
orapps44 authored Nov 12, 2021
2 parents 5b9aa55 + 0ddb896 commit 2d8f8ed
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion MaterialSkin/Controls/FlexibleMaterialDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,12 @@ private enum TwoLetterISOLanguageID
/// <summary>
/// Defines the ro
/// </summary>
ro
ro,

/// <summary>
/// Defines the pl
/// </summary>
pl
};

/// <summary>
Expand Down Expand Up @@ -388,6 +393,11 @@ private enum TwoLetterISOLanguageID
/// </summary>
private static readonly String[] BUTTON_TEXTS_ROMANIAN_RO = { "Acceptă", "Anulează", "&Da", "&Nu", "&Întrerupe", "&Reîncearcă", "&Ignoră" };

/// <summary>
/// Defines the BUTTON_TEXTS_ROMANIAN_PL
/// </summary>
private static readonly String[] BUTTON_TEXTS_POLISH_PL = { "OK", "Anuluj", "Tak", "Nie", "Opuść", "Powtórz", "Ignoruj" };

/// <summary>
/// Defines the defaultButton
/// </summary>
Expand Down Expand Up @@ -455,6 +465,7 @@ private string GetButtonText(ButtonID buttonID)
case TwoLetterISOLanguageID.it: return BUTTON_TEXTS_ITALIAN_IT[buttonTextArrayIndex];
case TwoLetterISOLanguageID.fr: return BUTTON_TEXTS_FRENCH_FR[buttonTextArrayIndex];
case TwoLetterISOLanguageID.ro: return BUTTON_TEXTS_ROMANIAN_RO[buttonTextArrayIndex];
case TwoLetterISOLanguageID.pl: return BUTTON_TEXTS_POLISH_PL[buttonTextArrayIndex];

default: return BUTTON_TEXTS_ENGLISH_EN[buttonTextArrayIndex];
}
Expand Down

0 comments on commit 2d8f8ed

Please sign in to comment.