2011-06-14, 22:01:01
yojoe Wrote:There’s another argument for str_replace: Martijn’s translit plugin uses it successfullyOf course it does! How could I ever be wrong
mvlcek Wrote:include two strings TRANSLIT_FROM and TRANSLIT_TO in the language files and don't need to define an extra array.It also disables some languages from using the transliteration function. Japanese, Korean, Chinese, et al. come to mind. These languages need multiple Latin characters per symbol, which is impossible when you are just matching 2 strings.
This makes customization much easier and uses the standard i18n features of GetSimple:
Code:...
'TRANSLIT_FROM' => 'äöüÄÖÜ',
'TRANSLIT_TO' => 'aouAOU',
...
As of now the development copy of GetSimple on Google Code has build in support for the TRANSLITERATION array. Please test it and let us know about any problems!
“Don’t forget the important ˚ (not °) on the a,†says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!