Jump to content

Persian Or Arabic Style Numbers


mmx110

Recommended Posts

Hi Forum!

How to set UniGUI Controls to Showing Numbers in Persian Or Arabic Style

Not in English Format in the Browser?

there are jquery and javascript ways for Config Html to show Arabic Style Numbers  But I dont know How it is in UniGUI
Thanks and Regards

Link to comment
Share on other sites

hi

For JQuery solution click here

 

or use this code

 

var arabicNumbers = ['۰', '١', '٢', '٣', '٤', '٥', '٦', '٧', '٨', '٩'];
$('.translate').text(function(i, v) {
var chars = v.split('');
for (var i = 0; i < chars.length; i++) {
if (/\d/.test(chars[i])) {
chars[i] = arabicNumbers[chars[i]];
}
}
return chars.join('');
})

 

best regards

Link to comment
Share on other sites

Hi Dear Delphi Developer!

in web browsers in RTL mode I cant set UniGUI to show Persian Style Number and it shows every time in english digits

I want to set UniGUI to show Numbers in Persian CodePage in all Uni Componenrs Such as DBGrids...

in javascript and jquery it is possible to do as shown in majori reply 

 for example = ['۰', '١', '٢', '٣', '٤', '٥', '٦', '٧', '٨', '٩'];

Regard and Have Fun

Link to comment
Share on other sites

  • 11 months later...

Hi Dears ,

I am trying to show Arabic style number in the browser in the undbgrid, it is showing as english , can you share? , it is not clear to me , where to use the code supplied here and in which event to place it. 

 

Thanks in advance.

 

I am newbei trying the product

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...