myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kienenberger (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Comment Edited] (MFCOMMONS-31) Support i18nized resources like ResourceBundle does
Date Tue, 23 Jun 2015 16:24:00 GMT

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

Mike Kienenberger edited comment on MFCOMMONS-31 at 6/23/15 4:23 PM:
---------------------------------------------------------------------

Thanks for your input.   I don't think there's currently a plan to implement this -- Jakob
suggested the change back in 2011 but hasn't moved forward on it.   Even if we did implement
this, I am certain that we would have a way to also use the existing folder layout.   Perhaps
it would be automatic or perhaps you would select which format you wanted using a configuration
parameter.


was (Author: mkienenb):
Thanks for your input.   I don't think there's currently a plan to implement this -- Jacob
suggested the change back in 2011 but hasn't moved forward on it.   Even if we did implement
this, I am certain that we would have a way to also use the existing folder layout.   Perhaps
it would be automatic or perhaps you would select which format you wanted using a configuration
parameter.

> 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)

Mime
View raw message