I am trying to make a multilingual web site. However I cannot translate the numbers in ordered list. That means when I try to make something like following:

১. এক
২. দুই
৩. তিন

It turns into something like following:

  1. এক
  2. দুই
  3. তিন

Can anyone help me to translate these numbers?

Comments

kkatusic’s picture

Can you tell us what language you want to translate?

Rab.IT-1’s picture

Whatever language it is, if the numbers are different than English (such as Arabic, Hindi), I want to replace the text with native numbering characters.

Where can I use the string replace operation and more precisely how?

Thank you for your response.

hanno’s picture

These numbers are rendered by the browser. You can define the numeral system with css using list-style-type. http://www.w3schools.com/cssref/pr_list-style-type.asp

ol
{
list-style-type:bengali;
}

Note that Bengali is not recognized by all browsers. To make a list multilingual, you could depend it on the language tag used:

ol:lang(bcc) li,
ol:lang(bqi) li,
ol:lang(fa) li,
ol:lang(glk) li,
ol:lang(kk-arab) li,
ol:lang(mzn) li {
        list-style-type: -moz-persian;
        list-style-type: persian;
}
ol:lang(ckb-arab) li {
        list-style-type: -moz-arabic-indic;
        list-style-type: arabic-indic;
}

---
Datascape