Any ideas how to configure WordPress to get the date and page numbers in Eastern Arabic Numerals?
These are 0660 up till 0669 in UTF-8. I am talking about getting those numbers ٠١٢٣٤٥٦٧٨٩ replace those 0123456789. I am using WordPress 2.7.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
،السلام عليكم
This isn’t possible using any of the default wordpress tools. The “Styling Page Links” documentation only provides limited customization of the page numbers.
So you have a couple options.
But this is pretty hackish, and will cause problems when it comes time to upgrade.
This has the benefit of being maintainable and portable (you could distribute the plugin).
In both cases you will have to do some mapping: { {0،٠}, {1,١}, {2, ٢} ….}, and do a string replacement after the page number calculation.
Also, I looked into the Arabic WP translation but it uses traditional numerals, which seems silly.
حظ سعيد يابشا