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

ASF subversion and git services commented on WICKET-6988:
---------------------------------------------------------

Commit f44712e2df92df315edf23c3b82b475f3f764c47 in wicket's branch 
refs/heads/wicket-9.x from Maxim Solodovnik
[ https://gitbox.apache.org/repos/asf?p=wicket.git;h=f44712e2df ]

[WICKET-6988] String.format is replaced with concatenation of strings


> String.format used in JS generation leads to errors
> ---------------------------------------------------
>
>                 Key: WICKET-6988
>                 URL: https://issues.apache.org/jira/browse/WICKET-6988
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 9.10.0
>            Reporter: Maxim Solodovnik
>            Assignee: Maxim Solodovnik
>            Priority: Critical
>             Fix For: 10.0.0, 8.14.0, 9.11.0
>
>
> In case system locale is set to Arabic ({{ar-EG}} for ex.)
> Numbers are being printed using Arabic symbols, which is wrong in timeouts 
> for ex.
> here is an example:
> {code}
> (function(){Wicket.Timer.set('idb3.0', 
> function(){Wicket.Ajax.ajax({"u":"./.?4-1.0-main~container-main","c":"idb3","dep":[function(attrs){return
>  Wicket.BrowserInfo.collect()}]});}, ٥٠);})()
> {code}
> NOTE {{٥٠}} is printed instead of {{50}}
> The cause is {{String.format(pattern, args...)}} which will use system 
> default locale
> I'll try to hunt such issues one-by-one



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to