File tree Expand file tree Collapse file tree
kotlin/com/github/lppedd/cc Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com.github.lppedd.cc
22
3+ import com.intellij.l10n.LocalizationUtil
34import com.intellij.openapi.util.registry.Registry
45import java.util.*
56
@@ -13,9 +14,9 @@ internal object CCRegistry {
1314 fun getLocale (): Locale {
1415 val value = Registry .get(CC .Registry .Locale )
1516 return when (value.selectedOption) {
16- " English (en_US) " -> Locale .ENGLISH
17- " Chinese (zh_CN )" -> Locale .SIMPLIFIED_CHINESE
18- else -> Locale .getDefault ()
17+ " English" -> Locale .ROOT
18+ " Chinese (Simplified )" -> Locale .SIMPLIFIED_CHINESE
19+ else -> LocalizationUtil .getLocale ()
1920 }
2021 }
2122
Original file line number Diff line number Diff line change 103103 <registryKey
104104 key =" com.github.lppedd.cc.locale"
105105 description =" Set the UI locale"
106- defaultValue =" [Default*|English (en_US) |Chinese (zh_CN )]"
106+ defaultValue =" [Default*|English|Chinese (Simplified )]"
107107 />
108108 <registryKey
109109 key =" com.github.lppedd.cc.providers.vcs"
You can’t perform that action at this time.
0 commit comments