You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org> on 2007/10/23 00:06:51 UTC

[jira] Commented: (TAPESTRY-1852) Supported locales in AjaxShellDelegate

    [ https://issues.apache.org/jira/browse/TAPESTRY-1852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536852 ] 

Andreas Andreou commented on TAPESTRY-1852:
-------------------------------------------

If you set the locale to something other than the above you'll end up with dojo requesting 
inexisting files & causing 404 errors.
If you do plan to provide those, they should be added as /js/dojo-0.4.3/nls/dojo_*.js

You'll then need to extend 
protected boolean isLocaleSupported(String locale) of AjaxShellDelegate to return true for the new locales.

> Supported locales in AjaxShellDelegate
> --------------------------------------
>
>                 Key: TAPESTRY-1852
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1852
>             Project: Tapestry
>          Issue Type: Bug
>          Components: JavaScript
>    Affects Versions: 4.1.4
>            Reporter: Igor Drobiazko
>
> AjaxShellDelegate#isLocaleSupported is used to check whether the locale is supported. For what ever reason the default list of pre-bundled dojo supported locales is to short. 
>     protected String[] SUPPORTED_LOCALES = { "en-us", "de-de", "de", "en-gb",
>                                              "es-es", "es", "fr-fr", "fr", "zh-cn",
>                                              "zh-tw", "zh" , "it-it", "it", "ja-jp",
>                                              "ja", "ko-kr", "ko", "pt-br", "pt", "en", "xx"};
> I have seen that this check was added to fix https://issues.apache.org/jira/browse/TAPESTRY-1551 but I have another scenario.
> I want to use dojo.i18n.number.parse(value, djConfig.locale); this parsing method uses internally dojo.i18n.number.FORMAT_TABLE
> dojo.i18n.number.FORMAT_TABLE support much more locales. The only one possibility to get the locale on client side is djConfig.locale
> But because of the mentioned limitation djConfig.locale cannot be used for number formating.
> Is it possible to remove this check or at least to complete the list? 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org