You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Svein (JIRA)" <ji...@apache.org> on 2017/03/03 09:10:45 UTC

[jira] [Comment Edited] (TAP5-2574) No match on Locale nb

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

Svein edited comment on TAP5-2574 at 3/3/17 9:10 AM:
-----------------------------------------------------

You are right, nb_NO is correct. Then the translation core_no_NB.properties in Tapestry need to be renamed.

A kind of alias or configuration is still needed because people using Norwegian Nynorsk, with locale ID nn, nn_NO, ... will have no problem reading the major language nb_NO.

What about:
{code}
configuration.add(SymbolConstants.SUPPORTED_LOCALES, "nb_NO{nn,nn_NO},en);
{code}

After a upgrade Tapestry should complain if SUPPORTED_LOCALES=no_NB 



was (Author: svein):
You are right, nb_NO is correct. Then the translation core_no_NB.properties in Tapestry need to be changed.

A kind of alias or configuration is still needed because people using Norwegian Nynorsk, with locale ID nn, nn_NO, ... will have no problem reading the major language nb_NO.

What about:
{code}
configuration.add(SymbolConstants.SUPPORTED_LOCALES, "nb_NO{nn,nn_NO},en);
{code}

After a upgrade Tapestry should complain if SUPPORTED_LOCALES=no_NB 


> No match on Locale nb 
> ----------------------
>
>                 Key: TAP5-2574
>                 URL: https://issues.apache.org/jira/browse/TAP5-2574
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.4.1
>            Reporter: Svein
>
> {code}configuration.add(SymbolConstants.SUPPORTED_LOCALES, "no_NB,en");{code}
> {code}org.apache.tapestry5.internal.services.Request.getLocale() for returns "nb" for Norwegian{code}
> No *_no_NB.properties or *_no.properties are used. I think A way to alias locale is needed. E.g: {code}configuration.add(SymbolConstants.SUPPORTED_LOCALES, "no_NB{nb},en);{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)