Arabic Script for Numbers

Arabic Script for Numbers

by Fred Nasri -
Number of replies: 3

Hi

When the language is switched to an RTL one (for example Arabic or Persian), numbers are still displayed in latin format.

I wonder if we could change the encoding to display Arabic, NOT latin, script for numbers when the language is RTL (the picture below)

Arabic Script

I changed the encoding for the RTL language in Langconfig.php in moodledata, but it was of no use.

Thank you for your time.

Average of ratings: -
In reply to Fred Nasri

Re: Arabic Script for Numbers

by Andrey Pryakhin -

it is not a matter of "display" or "allign". It is a matter what you enter and how.

In order to enter farsi numbers you have to install Persian keyboard in your OS (in Linux - add Persian keyboard layout, in windows, dont't remember exactly, but ... go to CP -> regional settings -> keyborad ...). 

Then open Moodle editor, switch your keyboard to Persian and enter numbers:

English keyboard: 1234567890

Persian keyboard: ۱۲۳۴۵۶۷۸۹۰

In addition, you should change direction from "left-to-right" to "right-to-left":

۱۲۳۴۵۶۷۸۹۰

Actually, allignment in the editor works properly, but displayed wrongly here in forum. I suspect this is a bug in Moodle.

enjoy

In reply to Andrey Pryakhin

Re: Arabic Script for Numbers

by Fred Nasri -

Thanks for your reply.

I managed to enable the related keyboard.

This affects what I type in the editor. That's perfect.

Now, how could I change the way of displaying numbers sitewide?

For example, the numbers in calendar (۱۲۳۴ insteade of 1234)?

Thanks.