Martijn Dashorst created WICKET-5966:
----------------------------------------
Summary: ResourceUtils.getLocaleFromFilename can't handle
minimized resources well
Key: WICKET-5966
URL: https://issues.apache.org/jira/browse/WICKET-5966
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 7.0.0, 6.20.0
Reporter: Martijn Dashorst
I think the ResourceUtils.getLocaleFromFilename(String path) has the order of
locale and minimization wrong:
It currently parses: File.min_Lang_Coun_Var.ext while the typical convention is
File_Lang_Coun_Var.min.ext
Surely considering the ResourceUtils.getMinifiedName() method which does work
according to convention.
I am working on a patch that fixes this, and also makes PathLocale have more
information regarding the filename.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)