changed to realm, because that is the source

This commit is contained in:
Erik Jan de Wit 2023-09-29 14:46:02 +02:00 committed by Pedro Igor
parent 0f878566ab
commit f3d387172e

View file

@ -49,7 +49,7 @@ public class LocaleResource {
Map<Locale, Properties> realmLocalizationMessages = LocaleUtil.getRealmLocalizationTexts(realm, locale);
for (Locale currentLocale = locale; currentLocale != null; currentLocale = LocaleUtil.getParentLocale(currentLocale)) {
final List<KeySource> realmOverride = realmLocalizationMessages.get(currentLocale).entrySet().stream().map(e ->
new KeySource((String) e.getKey(), (String) e.getValue(), Source.OVERRIDE)).collect(toList());
new KeySource((String) e.getKey(), (String) e.getValue(), Source.REALM)).collect(toList());
result.addAll(realmOverride);
}
@ -62,7 +62,7 @@ public class LocaleResource {
enum Source {
THEME,
OVERRIDE
REALM
}
class KeySource {
private String key;