Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Include the slug transliteration plugin into the core of GS
#14
yojoe Wrote:There’s another argument for str_replace: Martijn’s translit plugin uses it successfully Wink
Of course it does! How could I ever be wrong Wink
mvlcek Wrote:include two strings TRANSLIT_FROM and TRANSLIT_TO in the language files and don't need to define an extra array.
This makes customization much easier and uses the standard i18n features of GetSimple:
Code:
...
'TRANSLIT_FROM' => 'äöüÄÖÜ',
'TRANSLIT_TO' => 'aouAOU',
...
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.

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!


Messages In This Thread
Include the slug transliteration plugin into the core of GS - by Zegnåt - 2011-06-14, 22:01:01



Users browsing this thread: 1 Guest(s)