This issue has been created
There are 3 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-322ae062-3436-4dad-bf26-efc4dd0cc8a0 XWIKI-24163 Open

Localization are not loaded from webjars

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-3b7aa6a3-7666-4979-b2a6-d15263e30161 Manuel Leduc created this issue on 26/Mar/26 12:10
 
Summary: Localization are not loaded from webjars
Issue Type: cid:jira-generated-image-avatar-322ae062-3436-4dad-bf26-efc4dd0cc8a0 Bug
Affects Versions: 6.0-milestone-1
Assignee: Unassigned
Components: Localization
Created: 26/Mar/26 12:10
Priority: cid:jira-generated-image-static-major-4ee10452-c589-4410-a117-472f1235c913 Major
Reporter: Manuel Leduc
Description:

Reproduction steps

  1. Add an ApplicationResources.properties file in the resource folder of a webjar
  2. Deploy the webjar on an instance
  3. Try to translate a translation key from the webjar

Expected

The translation key is found.

Actual

The translation key fails to resolve.

Explanations

https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-localization/xwiki-platform-localization-sources/xwiki-platform-localization-source-jar/src/main/java/org/xwiki/localization/jar/internal/JARTranslationBundleFactoryListener.java only check for jar and not webjars or any other supported extensions.
org.xwiki.extension.jar.internal.handler.JarExtensionHandler#isSupported must be used to determine of the resource can be handled as a jar.

 
 

3 updates

 
cid:jira-generated-image-avatar-3b7aa6a3-7666-4979-b2a6-d15263e30161 Changes by Manuel Leduc on 26/Mar/26 12:10
 
Fix Version: 18.3.0-rc-1
Fix Version: 17.10.5
Assignee: Manuel Leduc