mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-07 17:42:45 +08:00
add croatian, netherlands, swedish & welsh (#21889)
* add croatian, netherlands, swedish & welsh * Rename Netherlands to Dutch * Rename Netherlands to Dutch * Change order of Dutch * Put in place the good iso code for Welsh & Swedish
This commit is contained in:
parent
78ca0d5846
commit
2f36366902
@ -11,19 +11,23 @@ namespace PowerAccent.Core
|
|||||||
{
|
{
|
||||||
ALL,
|
ALL,
|
||||||
CUR,
|
CUR,
|
||||||
|
CY,
|
||||||
CZ,
|
CZ,
|
||||||
DE,
|
DE,
|
||||||
FR,
|
FR,
|
||||||
|
HR,
|
||||||
HU,
|
HU,
|
||||||
IS,
|
IS,
|
||||||
IT,
|
IT,
|
||||||
MI,
|
MI,
|
||||||
|
NL,
|
||||||
PI,
|
PI,
|
||||||
PL,
|
PL,
|
||||||
PT,
|
PT,
|
||||||
RO,
|
RO,
|
||||||
SK,
|
SK,
|
||||||
SP,
|
SP,
|
||||||
|
SV,
|
||||||
TK,
|
TK,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,19 +39,23 @@ namespace PowerAccent.Core
|
|||||||
{
|
{
|
||||||
case Language.ALL: return GetDefaultLetterKeyALL(letter); // ALL
|
case Language.ALL: return GetDefaultLetterKeyALL(letter); // ALL
|
||||||
case Language.CUR: return GetDefaultLetterKeyCUR(letter); // Currency
|
case Language.CUR: return GetDefaultLetterKeyCUR(letter); // Currency
|
||||||
|
case Language.CY: return GetDefaultLetterKeyCY(letter); // Welsh
|
||||||
case Language.CZ: return GetDefaultLetterKeyCZ(letter); // Czech
|
case Language.CZ: return GetDefaultLetterKeyCZ(letter); // Czech
|
||||||
case Language.DE: return GetDefaultLetterKeyDE(letter); // German
|
case Language.DE: return GetDefaultLetterKeyDE(letter); // German
|
||||||
case Language.FR: return GetDefaultLetterKeyFR(letter); // French
|
case Language.FR: return GetDefaultLetterKeyFR(letter); // French
|
||||||
|
case Language.HR: return GetDefaultLetterKeyHR(letter); // Croatian
|
||||||
case Language.HU: return GetDefaultLetterKeyHU(letter); // Hungarian
|
case Language.HU: return GetDefaultLetterKeyHU(letter); // Hungarian
|
||||||
case Language.IS: return GetDefaultLetterKeyIS(letter); // Iceland
|
case Language.IS: return GetDefaultLetterKeyIS(letter); // Iceland
|
||||||
case Language.IT: return GetDefaultLetterKeyIT(letter); // Italian
|
case Language.IT: return GetDefaultLetterKeyIT(letter); // Italian
|
||||||
case Language.MI: return GetDefaultLetterKeyMI(letter); // Maori
|
case Language.MI: return GetDefaultLetterKeyMI(letter); // Maori
|
||||||
|
case Language.NL: return GetDefaultLetterKeyNL(letter); // Dutch
|
||||||
case Language.PI: return GetDefaultLetterKeyPI(letter); // Pinyin
|
case Language.PI: return GetDefaultLetterKeyPI(letter); // Pinyin
|
||||||
case Language.PL: return GetDefaultLetterKeyPL(letter); // Polish
|
case Language.PL: return GetDefaultLetterKeyPL(letter); // Polish
|
||||||
case Language.PT: return GetDefaultLetterKeyPT(letter); // Portuguese
|
case Language.PT: return GetDefaultLetterKeyPT(letter); // Portuguese
|
||||||
case Language.RO: return GetDefaultLetterKeyRO(letter); // Romanian
|
case Language.RO: return GetDefaultLetterKeyRO(letter); // Romanian
|
||||||
case Language.SK: return GetDefaultLetterKeySK(letter); // Slovak
|
case Language.SK: return GetDefaultLetterKeySK(letter); // Slovak
|
||||||
case Language.SP: return GetDefaultLetterKeySP(letter); // Spain
|
case Language.SP: return GetDefaultLetterKeySP(letter); // Spain
|
||||||
|
case Language.SV: return GetDefaultLetterKeySV(letter); // Swedish
|
||||||
case Language.TK: return GetDefaultLetterKeyTK(letter); // Turkish
|
case Language.TK: return GetDefaultLetterKeyTK(letter); // Turkish
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -178,6 +186,24 @@ namespace PowerAccent.Core
|
|||||||
return Array.Empty<char>();
|
return Array.Empty<char>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Croatian
|
||||||
|
private static char[] GetDefaultLetterKeyHR(LetterKey letter)
|
||||||
|
{
|
||||||
|
switch (letter)
|
||||||
|
{
|
||||||
|
case LetterKey.VK_C:
|
||||||
|
return new char[] { 'ć', 'č' };
|
||||||
|
case LetterKey.VK_D:
|
||||||
|
return new char[] { 'đ' };
|
||||||
|
case LetterKey.VK_S:
|
||||||
|
return new char[] { 'š' };
|
||||||
|
case LetterKey.VK_Z:
|
||||||
|
return new char[] { 'ž' };
|
||||||
|
}
|
||||||
|
|
||||||
|
return Array.Empty<char>();
|
||||||
|
}
|
||||||
|
|
||||||
// French
|
// French
|
||||||
private static char[] GetDefaultLetterKeyFR(LetterKey letter)
|
private static char[] GetDefaultLetterKeyFR(LetterKey letter)
|
||||||
{
|
{
|
||||||
@ -272,6 +298,30 @@ namespace PowerAccent.Core
|
|||||||
return Array.Empty<char>();
|
return Array.Empty<char>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Dutch
|
||||||
|
private static char[] GetDefaultLetterKeyNL(LetterKey letter)
|
||||||
|
{
|
||||||
|
switch (letter)
|
||||||
|
{
|
||||||
|
case LetterKey.VK_A:
|
||||||
|
return new char[] { 'á', 'à', 'ä' };
|
||||||
|
case LetterKey.VK_C:
|
||||||
|
return new char[] { 'ç' };
|
||||||
|
case LetterKey.VK_E:
|
||||||
|
return new char[] { 'é', 'è', 'ë', 'ê', '€' };
|
||||||
|
case LetterKey.VK_I:
|
||||||
|
return new char[] { 'í', 'ï', 'î' };
|
||||||
|
case LetterKey.VK_N:
|
||||||
|
return new char[] { 'ñ' };
|
||||||
|
case LetterKey.VK_O:
|
||||||
|
return new char[] { 'ó', 'ö', 'ô' };
|
||||||
|
case LetterKey.VK_U:
|
||||||
|
return new char[] { 'ú', 'ü', 'û' };
|
||||||
|
}
|
||||||
|
|
||||||
|
return Array.Empty<char>();
|
||||||
|
}
|
||||||
|
|
||||||
// Pinyin
|
// Pinyin
|
||||||
private static char[] GetDefaultLetterKeyPI(LetterKey letter)
|
private static char[] GetDefaultLetterKeyPI(LetterKey letter)
|
||||||
{
|
{
|
||||||
@ -547,5 +597,41 @@ namespace PowerAccent.Core
|
|||||||
|
|
||||||
return Array.Empty<char>();
|
return Array.Empty<char>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Welsh
|
||||||
|
private static char[] GetDefaultLetterKeyCY(LetterKey letter)
|
||||||
|
{
|
||||||
|
switch (letter)
|
||||||
|
{
|
||||||
|
case LetterKey.VK_A:
|
||||||
|
return new char[] { 'â' };
|
||||||
|
case LetterKey.VK_E:
|
||||||
|
return new char[] { 'ê' };
|
||||||
|
case LetterKey.VK_I:
|
||||||
|
return new char[] { 'î' };
|
||||||
|
case LetterKey.VK_O:
|
||||||
|
return new char[] { 'ô' };
|
||||||
|
case LetterKey.VK_U:
|
||||||
|
return new char[] { 'û' };
|
||||||
|
case LetterKey.VK_Y:
|
||||||
|
return new char[] { 'ŷ' };
|
||||||
|
}
|
||||||
|
|
||||||
|
return Array.Empty<char>();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Swedish
|
||||||
|
private static char[] GetDefaultLetterKeySV(LetterKey letter)
|
||||||
|
{
|
||||||
|
switch (letter)
|
||||||
|
{
|
||||||
|
case LetterKey.VK_A:
|
||||||
|
return new char[] { 'å', 'ä' };
|
||||||
|
case LetterKey.VK_O:
|
||||||
|
return new char[] { 'ö' };
|
||||||
|
}
|
||||||
|
|
||||||
|
return Array.Empty<char>();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2563,6 +2563,9 @@ Activate by holding the key for the character you want to add an accent to, then
|
|||||||
<data name="QuickAccent_SelectedLanguage_Currency.Content" xml:space="preserve">
|
<data name="QuickAccent_SelectedLanguage_Currency.Content" xml:space="preserve">
|
||||||
<value>Currency</value>
|
<value>Currency</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="QuickAccent_SelectedLanguage_Croatian.Content" xml:space="preserve">
|
||||||
|
<value>Croatian</value>
|
||||||
|
</data>
|
||||||
<data name="QuickAccent_SelectedLanguage_Czech.Content" xml:space="preserve">
|
<data name="QuickAccent_SelectedLanguage_Czech.Content" xml:space="preserve">
|
||||||
<value>Czech</value>
|
<value>Czech</value>
|
||||||
</data>
|
</data>
|
||||||
@ -2575,6 +2578,9 @@ Activate by holding the key for the character you want to add an accent to, then
|
|||||||
<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>
|
||||||
|
<data name="QuickAccent_SelectedLanguage_Dutch.Content" xml:space="preserve">
|
||||||
|
<value>Dutch</value>
|
||||||
|
</data>
|
||||||
<data name="QuickAccent_SelectedLanguage_Pinyin.Content" xml:space="preserve">
|
<data name="QuickAccent_SelectedLanguage_Pinyin.Content" xml:space="preserve">
|
||||||
<value>Pinyin</value>
|
<value>Pinyin</value>
|
||||||
</data>
|
</data>
|
||||||
@ -2590,6 +2596,9 @@ Activate by holding the key for the character you want to add an accent to, then
|
|||||||
<data name="QuickAccent_SelectedLanguage_Spanish.Content" xml:space="preserve">
|
<data name="QuickAccent_SelectedLanguage_Spanish.Content" xml:space="preserve">
|
||||||
<value>Spanish</value>
|
<value>Spanish</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="QuickAccent_SelectedLanguage_Swedish.Content" xml:space="preserve">
|
||||||
|
<value>Swedish</value>
|
||||||
|
</data>
|
||||||
<data name="QuickAccent_SelectedLanguage_Turkish.Content" xml:space="preserve">
|
<data name="QuickAccent_SelectedLanguage_Turkish.Content" xml:space="preserve">
|
||||||
<value>Turkish</value>
|
<value>Turkish</value>
|
||||||
</data>
|
</data>
|
||||||
@ -2605,6 +2614,9 @@ Activate by holding the key for the character you want to add an accent to, then
|
|||||||
<data name="QuickAccent_SelectedLanguage_Italian.Content" xml:space="preserve">
|
<data name="QuickAccent_SelectedLanguage_Italian.Content" xml:space="preserve">
|
||||||
<value>Italian</value>
|
<value>Italian</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="QuickAccent_SelectedLanguage_Welsh.Content" xml:space="preserve">
|
||||||
|
<value>Welsh</value>
|
||||||
|
</data>
|
||||||
<data name="Hosts.ModuleDescription" xml:space="preserve">
|
<data name="Hosts.ModuleDescription" xml:space="preserve">
|
||||||
<value>Quick and simple utility for managing hosts file.</value>
|
<value>Quick and simple utility for managing hosts file.</value>
|
||||||
<comment>"Hosts" refers to the system hosts file, do not loc</comment>
|
<comment>"Hosts" refers to the system hosts file, do not loc</comment>
|
||||||
|
@ -25,7 +25,9 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
|||||||
{
|
{
|
||||||
"ALL",
|
"ALL",
|
||||||
"CUR",
|
"CUR",
|
||||||
|
"HR",
|
||||||
"CZ",
|
"CZ",
|
||||||
|
"NL",
|
||||||
"FR",
|
"FR",
|
||||||
"DE",
|
"DE",
|
||||||
"HU",
|
"HU",
|
||||||
@ -38,7 +40,9 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
|||||||
"RO",
|
"RO",
|
||||||
"SK",
|
"SK",
|
||||||
"SP",
|
"SP",
|
||||||
|
"SV",
|
||||||
"TK",
|
"TK",
|
||||||
|
"CY",
|
||||||
};
|
};
|
||||||
|
|
||||||
private readonly string[] _toolbarOptions =
|
private readonly string[] _toolbarOptions =
|
||||||
|
@ -53,7 +53,9 @@
|
|||||||
<!-- These should be in the same order as the array items in PowerAccentViewModel.cs -->
|
<!-- These should be in the same order as the array items in PowerAccentViewModel.cs -->
|
||||||
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_All"/>
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_All"/>
|
||||||
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Currency"/>
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Currency"/>
|
||||||
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Croatian"/>
|
||||||
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Czech"/>
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Czech"/>
|
||||||
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Dutch"/>
|
||||||
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_French"/>
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_French"/>
|
||||||
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_German"/>
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_German"/>
|
||||||
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Hungarian"/>
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Hungarian"/>
|
||||||
@ -66,7 +68,9 @@
|
|||||||
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Romanian"/>
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Romanian"/>
|
||||||
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Slovakian"/>
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Slovakian"/>
|
||||||
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Spanish"/>
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Spanish"/>
|
||||||
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Swedish"/>
|
||||||
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Turkish"/>
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Turkish"/>
|
||||||
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Welsh"/>
|
||||||
</ComboBox>
|
</ComboBox>
|
||||||
</controls:Setting.ActionContent>
|
</controls:Setting.ActionContent>
|
||||||
</controls:Setting>
|
</controls:Setting>
|
||||||
|
Loading…
Reference in New Issue
Block a user