mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-03-03 00:00:55 +08:00
added polish locale
This commit is contained in:
@@ -120,6 +120,12 @@ public partial class MainViewModel : ObservableObject
|
||||
Command = SelectLocaleCommand,
|
||||
CommandParameter = new CultureInfo("es-es")
|
||||
},
|
||||
new MenuItemViewModel
|
||||
{
|
||||
Header = "Polski",
|
||||
Command = SelectLocaleCommand,
|
||||
CommandParameter = new CultureInfo("pl-pl")
|
||||
},
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
27
src/Semi.Avalonia/Locale/pl-pl.axaml
Normal file
27
src/Semi.Avalonia/Locale/pl-pl.axaml
Normal file
@@ -0,0 +1,27 @@
|
||||
<ResourceDictionary
|
||||
x:Class="Semi.Avalonia.Locale.pl_pl"
|
||||
xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<!-- DatePicker -->
|
||||
<x:String x:Key="STRING_DATEPICKER_DAY_TEXT">dzień</x:String>
|
||||
<x:String x:Key="STRING_DATEPICKER_MONTH_TEXT">miesiąc</x:String>
|
||||
<x:String x:Key="STRING_DATEPICKER_YEAR_TEXT">rok</x:String>
|
||||
<!-- TimePicker -->
|
||||
<x:String x:Key="STRING_TIMEPICKER_HOUR_TEXT">godzina</x:String>
|
||||
<x:String x:Key="STRING_TIMEPICKER_MINUTE_TEXT">minuta</x:String>
|
||||
<x:String x:Key="STRING_TIMEPICKER_SECOND_TEXT">sekunda</x:String>
|
||||
<!-- TextBox/SelectableTextBox flyout -->
|
||||
<x:String x:Key="STRING_MENU_CUT">Wytnij</x:String>
|
||||
<x:String x:Key="STRING_MENU_COPY">Kopiuj</x:String>
|
||||
<x:String x:Key="STRING_MENU_PASTE">Wklej</x:String>
|
||||
<!-- ManagedFileChooser -->
|
||||
<x:String x:Key="STRING_CHOOSER_FILE_NAME">Nazwa pliku</x:String>
|
||||
<x:String x:Key="STRING_CHOOSER_SHOW_HIDDEN_FILES">Pokaż ukryte pliki</x:String>
|
||||
<x:String x:Key="STRING_CHOOSER_DIALOG_OK">OK</x:String>
|
||||
<x:String x:Key="STRING_CHOOSER_DIALOG_CANCEL">Anuluj</x:String>
|
||||
<x:String x:Key="STRING_CHOOSER_NAME_COLUMN">Nazwa</x:String>
|
||||
<x:String x:Key="STRING_CHOOSER_DATEMODIFIED_COLUMN">Data modyfikacji</x:String>
|
||||
<x:String x:Key="STRING_CHOOSER_TYPE_COLUMN">Typ</x:String>
|
||||
<x:String x:Key="STRING_CHOOSER_SIZE_COLUMN">Rozmiar</x:String>
|
||||
<x:String x:Key="STRING_CHOOSER_PROMPT_FILE_ALREADY_EXISTS">{0} już istnieje. Czy zamienić istniejący plik?</x:String>
|
||||
</ResourceDictionary>
|
||||
8
src/Semi.Avalonia/Locale/pl-pl.axaml.cs
Normal file
8
src/Semi.Avalonia/Locale/pl-pl.axaml.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using Avalonia.Controls;
|
||||
|
||||
namespace Semi.Avalonia.Locale;
|
||||
|
||||
public class pl_pl: ResourceDictionary
|
||||
{
|
||||
|
||||
}
|
||||
@@ -21,6 +21,7 @@ public class SemiTheme : Styles
|
||||
{ new CultureInfo("zh-tw"), new zh_tw() },
|
||||
{ new CultureInfo("de-de"), new de_de() },
|
||||
{ new CultureInfo("es-es"), new es_es() },
|
||||
{ new CultureInfo("pl-pl"), new pl_pl() },
|
||||
};
|
||||
|
||||
private static readonly ResourceDictionary _defaultResource = new zh_cn();
|
||||
|
||||
Reference in New Issue
Block a user