mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
IDEA-258627 Translation string error in Resource Bundle Dialog window
GitOrigin-RevId: 4f575af8d96e54c5b8c3858485afe16664248a4f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9bccc8e115
commit
8eacd2c207
@@ -203,13 +203,13 @@ public class PropertiesUtil {
|
||||
@NotNull
|
||||
public static @Nls String getPresentableLocale(@NotNull Locale locale) {
|
||||
List<String> names = new ArrayList<>();
|
||||
if (locale.getDisplayLanguage() != null) {
|
||||
if (StringUtil.isNotEmpty(locale.getDisplayLanguage())) {
|
||||
names.add(locale.getDisplayLanguage());
|
||||
}
|
||||
if (locale.getDisplayCountry() != null) {
|
||||
if (StringUtil.isNotEmpty(locale.getDisplayCountry())) {
|
||||
names.add(locale.getDisplayCountry());
|
||||
}
|
||||
if (locale.getDisplayVariant() != null) {
|
||||
if (StringUtil.isNotEmpty(locale.getDisplayVariant())) {
|
||||
names.add(locale.getDisplayVariant());
|
||||
}
|
||||
return names.isEmpty() ? "" : " (" + StringUtil.join(names, "/") + ")";
|
||||
|
||||
Reference in New Issue
Block a user