[QuickAccent]Added support for Macedonian accent letters (#22721)

* Added support for Macedonian accent letters

* Reordering of resources and enums by alphabetical order
This commit is contained in:
Andon Dragomanov 2022-12-14 15:56:43 +01:00 committed by GitHub
parent a167c8d3ac
commit b56e62e5de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 4 deletions

View File

@ -24,6 +24,7 @@ namespace PowerAccent.Core
IS, IS,
IT, IT,
KU, KU,
MK,
MI, MI,
NL, NL,
PI, PI,
@ -57,6 +58,7 @@ namespace PowerAccent.Core
Language.IS => GetDefaultLetterKeyIS(letter), // Iceland Language.IS => GetDefaultLetterKeyIS(letter), // Iceland
Language.IT => GetDefaultLetterKeyIT(letter), // Italian Language.IT => GetDefaultLetterKeyIT(letter), // Italian
Language.KU => GetDefaultLetterKeyKU(letter), // Kurdish Language.KU => GetDefaultLetterKeyKU(letter), // Kurdish
Language.MK => GetDefaultLetterKeyMK(letter), // Macedonian
Language.MI => GetDefaultLetterKeyMI(letter), // Maori Language.MI => GetDefaultLetterKeyMI(letter), // Maori
Language.NL => GetDefaultLetterKeyNL(letter), // Dutch Language.NL => GetDefaultLetterKeyNL(letter), // Dutch
Language.PI => GetDefaultLetterKeyPI(letter), // Pinyin Language.PI => GetDefaultLetterKeyPI(letter), // Pinyin
@ -525,5 +527,16 @@ namespace PowerAccent.Core
_ => Array.Empty<string>(), _ => Array.Empty<string>(),
}; };
} }
// Macedonian
private static string[] GetDefaultLetterKeyMK(LetterKey letter)
{
return letter switch
{
LetterKey.VK_E => new string[] { "ѐ" },
LetterKey.VK_I => new string[] { "ѝ" },
_ => Array.Empty<string>(),
};
}
} }
} }

View File

@ -825,7 +825,7 @@
<data name="General_SettingsBackupAndRestore.Header" xml:space="preserve"> <data name="General_SettingsBackupAndRestore.Header" xml:space="preserve">
<value>Backup and restore your settings</value> <value>Backup and restore your settings</value>
</data> </data>
<data name="General_SettingsBackupAndRestore.Description" xml:space="preserve"> <data name="General_SettingsBackupAndRestore.Description" xml:space="preserve">
<value>PowerToys will restart automatically if needed</value> <value>PowerToys will restart automatically if needed</value>
</data> </data>
<data name="ShortcutGuide_Enable.Header" xml:space="preserve"> <data name="ShortcutGuide_Enable.Header" xml:space="preserve">
@ -1007,7 +1007,7 @@
<data name="GeneralSettings_AlwaysRunAsAdminText.Header" xml:space="preserve"> <data name="GeneralSettings_AlwaysRunAsAdminText.Header" xml:space="preserve">
<value>Always run as administrator</value> <value>Always run as administrator</value>
</data> </data>
<data name="GeneralSettings_AlwaysRunAsAdminText.Description" xml:space="preserve"> <data name="GeneralSettings_AlwaysRunAsAdminText.Description" xml:space="preserve">
<value>You need to run as administrator to use this setting</value> <value>You need to run as administrator to use this setting</value>
</data> </data>
<data name="GeneralSettings_RunningAsUserText" xml:space="preserve"> <data name="GeneralSettings_RunningAsUserText" xml:space="preserve">
@ -1266,7 +1266,7 @@ Made with 💗 by Microsoft and the PowerToys community.</value>
<data name="MoveUp.Text" xml:space="preserve"> <data name="MoveUp.Text" xml:space="preserve">
<value>Move up</value> <value>Move up</value>
</data> </data>
<data name="MoveDown.Text" xml:space="preserve"> <data name="MoveDown.Text" xml:space="preserve">
<value>Move down</value> <value>Move down</value>
</data> </data>
<data name="ColorPickerAddNewFormat.Content" xml:space="preserve"> <data name="ColorPickerAddNewFormat.Content" xml:space="preserve">
@ -2707,6 +2707,9 @@ Activate by holding the key for the character you want to add an accent to, then
<data name="QuickAccent_SelectedLanguage_French.Content" xml:space="preserve"> <data name="QuickAccent_SelectedLanguage_French.Content" xml:space="preserve">
<value>French</value> <value>French</value>
</data> </data>
<data name="QuickAccent_SelectedLanguage_Macedonian.Content" xml:space="preserve">
<value>Macedonian</value>
</data>
<data name="QuickAccent_SelectedLanguage_Maori.Content" xml:space="preserve"> <data name="QuickAccent_SelectedLanguage_Maori.Content" xml:space="preserve">
<value>Maori</value> <value>Maori</value>
</data> </data>
@ -2843,4 +2846,4 @@ Activate by holding the key for the character you want to add an accent to, then
<data name="Hosts_AdditionalLinesPosition.Description" xml:space="preserve"> <data name="Hosts_AdditionalLinesPosition.Description" xml:space="preserve">
<value>Additional content includes the file header and lines that can't parse</value> <value>Additional content includes the file header and lines that can't parse</value>
</data> </data>
</root> </root>

View File

@ -37,6 +37,7 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
"IS", "IS",
"IT", "IT",
"KU", "KU",
"MK",
"MI", "MI",
"PI", "PI",
"PL", "PL",

View File

@ -74,6 +74,7 @@
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Icelandic" /> <ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Icelandic" />
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Italian" /> <ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Italian" />
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Kurdish" /> <ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Kurdish" />
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Macedonian" />
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Maori" /> <ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Maori" />
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Pinyin" /> <ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Pinyin" />
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Polish" /> <ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Polish" />