You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Shiva Krishna (JIRA)" <de...@myfaces.apache.org> on 2015/06/23 16:46:02 UTC

[jira] [Commented] (MFCOMMONS-31) Support i18nized resources like ResourceBundle does

    [ https://issues.apache.org/jira/browse/MFCOMMONS-31?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14597753#comment-14597753 ] 

Shiva Krishna commented on MFCOMMONS-31:
----------------------------------------

I am one of the user of this feature 

I like the folder structure than renaming each file as we have hundreds of image files in each folder.

> Support i18nized resources like ResourceBundle does
> ---------------------------------------------------
>
>                 Key: MFCOMMONS-31
>                 URL: https://issues.apache.org/jira/browse/MFCOMMONS-31
>             Project: MyFaces Commons
>          Issue Type: Improvement
>          Components: myfaces-commons-resourcehandler
>    Affects Versions: 1.0.2-SNAPSHOT
>            Reporter: Jakob Korherr
>            Assignee: Jakob Korherr
>
> Currently we support something like this for i18nized resources:
> mylib/img/logo.gif
> mylib/img/de/logo.gif
> mylib/img/en_US/logo.gif
> It would make sence to change the i18n via folders to the mechanism ResourceBundle uses, thus something like this:
> mylib/img/logo.gif
> mylib/img/logo_de.gif
> mylib/img/logo_en_US.gif
> IMO this is a lot clearer to the developer, since everyone using ResourceBundles knows how this works. The current solution, which uses folders, may confuse some developers, because you don't know exactly where to put the i18nized folder - before or after the library name (as shown above, after is the right choice).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)