mirror of
https://github.com/amnezia-vpn/amneziawg-windows-client.git
synced 2026-06-01 22:18:53 +02:00
update docs with supported list, fix language check
This commit is contained in:
@@ -3,7 +3,8 @@
|
|||||||
#### `HKCU\Software\AmneziaWG\Language`
|
#### `HKCU\Software\AmneziaWG\Language`
|
||||||
|
|
||||||
When this key is set, the UI will try to use the specified language as display language.
|
When this key is set, the UI will try to use the specified language as display language.
|
||||||
|
Supported languages: "ca", "cs", "de", "en", "es_ES", "et", "fa", "fi", "fr", "id", "it", "ja", "ko", "nl", "pa_IN", "pl", "pt_BR", "ro", "ru", "si_LK", "sk", "sl", "sv_SE", "tr", "uk", "vi", "zh_CN", "zh_TW".
|
||||||
|
|
||||||
```
|
```
|
||||||
> reg add HKCU\Software\AmneziaWG /v LimitedOperatorUI /t REG_SZ /d "en" /f
|
> reg add HKCU\Software\AmneziaWG /v Language /t REG_SZ /d "en" /f
|
||||||
```
|
```
|
||||||
|
|||||||
+7
-4
@@ -42,10 +42,13 @@ func prn() *message.Printer {
|
|||||||
func lang() (tag language.Tag) {
|
func lang() (tag language.Tag) {
|
||||||
keyString, res := services.UserKeyString(LanguageUserKey)
|
keyString, res := services.UserKeyString(LanguageUserKey)
|
||||||
if res {
|
if res {
|
||||||
keyTag := message.MatchLanguage(keyString)
|
normalizedKeyTag, err := language.Parse(keyString)
|
||||||
if keyTag.String() == keyString {
|
if err == nil {
|
||||||
tag = keyTag
|
keyTag := message.MatchLanguage(keyString)
|
||||||
return
|
if normalizedKeyTag == keyTag {
|
||||||
|
tag = keyTag
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tag = language.English
|
tag = language.English
|
||||||
|
|||||||
Reference in New Issue
Block a user