Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is it possible to have this?
In admin/store/settings/store
the Currency format part it would be cool to be able to change the numeral (digit) formats as well:
- English (0123456789)
- Arabic (٠١٢٣٤٥٦٧٨٩)
- Persian (۰۱۲۳۴۵۶۷۸۹)
So on Persian and Arabic sites the prices would be shown correctly and not in english!
Comments
Comment #1
sa3er CreditAttribution: sa3er commentedComment #2
longwaveRelated issues in other projects
#1345758: META: Provide locale (regional) formats framework for automated translation of non textual data
#619198: showing arabic and persian number like ١ ٩٠
This seems like it should be solved in core or contrib (so all numeric output is converted) but it doesn't seem like anyone has tackled this yet, so perhaps it could be supported for prices only in Ubercart, but I don't intend to work on this personally. Patches or ideas welcome, though.
Comment #3
sa3er CreditAttribution: sa3er commentedWell it is not really okay to alter numeral system globally (from drupal core) since many problems would occur. One for example, most product model name and serial numbers include english numbers and characters and that would totally deface the shop.
Since it is a "just prices formatation" request I think it is a valid Ubercart related feature!
It is a long time thousounds of Persian and Arabic e-commerce (drupal-based) websites are waiting for such a feature.
However I thought It was really great if we could create this feature "field based" on a completely seperate module! So only definded fields (by #id) on the module setting page would get formatted.
Comment #4
TR CreditAttribution: TR commentedFeature requests should be made against HEAD.
Comment #5
TR CreditAttribution: TR commentedThis is basically a core Drupal issue, and there's been no support from the community for an Ubercart-only fix.