IDEA-258627 Translation string error in Resource Bundle Dialog window

GitOrigin-RevId: 4f575af8d96e54c5b8c3858485afe16664248a4f
This commit is contained in:
Dmitry Avdeev
2023-06-30 21:10:29 +02:00
committed by intellij-monorepo-bot
parent 9bccc8e115
commit 8eacd2c207

View File

@@ -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, "/") + ")";