Arabic (English) and Hindi (Arabic) Numerals

Author Message

Softriva .com

Sunday 09 September 2007 12:42:26 am

It has not been long time since I knew that the English numerals are actually called Arabic Numerals and Arabic Numerals are actually called Hindi Numerals.

I am designing an Arabic website and my client wants the digits to look in Hindi. I tried googling and searching for method to have the numbers in the website to look in hindi but with no luck. I am thinking to write an operator like

"String"|wash()

to convert the English (Arabic) digits to Arabic (Hindi) digits using the char entities such as

٢

Any help is appreciated on any direction; i.e. how to make the browser to display hindi numerals, writing the operator, etc.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 06:26:05
Script start
Timing: Jan 31 2025 06:26:05
Module start 'layout'
Timing: Jan 31 2025 06:26:05
Module start 'content'
Timing: Jan 31 2025 06:26:05
Module end 'content'
Timing: Jan 31 2025 06:26:05
Script end

Main resources:

Total runtime0.0141 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.2656151.2266
Module start 'layout' 0.00480.0023 739.492236.6797
Module start 'content' 0.00710.0055 776.171986.1094
Module end 'content' 0.01260.0015 862.281329.9922
Script end 0.0141  892.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002417.1399140.0002
Check MTime0.00117.7758140.0001
Mysql Total
Database connection0.00064.299310.0006
Mysqli_queries0.001812.983930.0006
Looping result0.00000.064110.0000
Template Total0.00117.810.0011
Template load0.00085.791410.0008
Template processing0.00031.944010.0003
Override
Cache load0.00063.909810.0006
General
dbfile0.00031.925480.0000
String conversion0.00000.047240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs