Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Dirifying currency symbols
I propose converting currency symbols to their 3-letter ISO 4217 code, ie adding the following to i18n-ascii.txt:
€ = “eur”
$ = “usd”
£ = “gbp”
¥ = “jpy”
₣ = “frf”
₪ = “nis”
₧ = “pts”
…
The last one (pesetas) is not converted to “esp” (ISO 4217 for spanish peseta) but is rather split to its compenent letters.
Last edited by Etz Haim (2005-08-26 00:52:00)
VC3 :: weblog :: my wishlist
Offline
#2 2005-08-26 00:54:31
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Dirifying currency symbols
dumbDown is for words. Symbols and punctuation are stripped out by stripSpace.
Alex
Offline
Re: Dirifying currency symbols
So, the above means that URL titles are first processed by stripSpace() first and then by dumbDown(), right?
Anyway, in the last few revisions, Textpattern’s i18n has greatly improved. Kudos to you, Sencer and Dean for this.
VC3 :: weblog :: my wishlist
Offline
#4 2005-08-26 01:20:59
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Dirifying currency symbols
So, the above means that URL titles are first processed by stripSpace() first and then by dumbDown(), right?
Actually the other way around. If you add those items to i18n-ascii, they might work.
Point is, the intent of Textpattern’s dir-ify is to remove symbols, not transliterate them.
Alex
Offline
Pages: 1