[
https://issues.apache.org/jira/browse/WICKET-5966?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martijn Dashorst updated WICKET-5966:
-------------------------------------
Description:
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.
was:
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.
> 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: 6.20.0, 7.0.0
> Reporter: Martijn Dashorst
> Fix For: 7.1.0
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)