Skip to content
Snippets Groups Projects
Commit 7b4a0e94 authored by Thomas Mortagne's avatar Thomas Mortagne
Browse files

XWIKI-15140: Allow giving a chain of translations keys fallbacks to the localization script service

parent ff43e06f
No related branches found
No related tags found
No related merge requests found
......@@ -394,7 +394,13 @@ public String render(Collection<String> keys, Syntax syntax, Collection<?> param
result = null;
}
} else {
result = keys.iterator().next();
result = null;
for (String key : keys) {
if (key != null) {
result = key;
}
}
}
return result;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment