You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martijn Dashorst (JIRA)" <ji...@apache.org> on 2015/08/10 11:39:45 UTC

[jira] [Created] (WICKET-5966) ResourceUtils.getLocaleFromFilename can't handle minimized resources well

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)