From 41813cba3ea961a71eff6f67991da45be2c2e073 Mon Sep 17 00:00:00 2001 From: torakiki Date: Mon, 30 Oct 2023 15:37:14 +0100 Subject: [PATCH] Display locales names in their own locale --- pdfsam-model/src/main/java/org/pdfsam/model/ui/ComboItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdfsam-model/src/main/java/org/pdfsam/model/ui/ComboItem.java b/pdfsam-model/src/main/java/org/pdfsam/model/ui/ComboItem.java index 39e48959..80942337 100644 --- a/pdfsam-model/src/main/java/org/pdfsam/model/ui/ComboItem.java +++ b/pdfsam-model/src/main/java/org/pdfsam/model/ui/ComboItem.java @@ -68,7 +68,7 @@ public boolean equals(Object other) { } public static ComboItem fromLocale(Locale locale) { - return new ComboItem<>(locale.toLanguageTag(), StringUtils.capitalize(locale.getDisplayName())); + return new ComboItem<>(locale.toLanguageTag(), StringUtils.capitalize(locale.getDisplayName(locale))); } /**