Forums / Translation / Chinese (Simplified) / TR files for Chinese?
Guillaume Marty
Wednesday 11 May 2011 8:30:19 am
I've not been able to find an elegant way to display URLs in Chinese.
Deactivating URL translation or using urlalias_iri transform group doesn't really help.
I'm wondering if it's possible to use the translation file for Chinese that is in Derick Rethans's Transliteration extension (http://pecl.php.net/package/translit).
The file is here:http://svn.php.net/viewvc/pecl/translit/trunk/data/han_transliterate.tr?view=markup
If we can use this file to transform URL, what else needs to be set up?
Chen Xiongjie
Thursday 12 May 2011 12:42:30 am
Hi, Guillaume,
As far as I know the urlalias_iri works well. Example: http://ezcn.org/chi/文档/eZ-Publish/基本概念/内容与界面
But there is one issue here - when copying the url, it's encoded, which is not user-friendly.
I'm not sure what's result of the Transliteration extension. But for Chinese specific, alternatively I would prefer to have latinized Pinyin mapped to Chinese characters. I think an extension for this will be welcome. In Pinyin, that url will be http://ezcn.org/chi/wendang/eZ-Publish/jibengainian/neirongyujiemian
eZ Comments: http://projects.ez.no/ezcomments twitter: http://twitter.com/xiongjie
Monday 30 May 2011 9:12:22 am
Hi!
I've successfully created a .tr file to transliterate the Chinese characters, but I've not been able to make it work properly.
The file /share/transformations/han.tr looks like this (and has 25,326 lines):
han: U+5416 = "a" U+5475 = "a" U+9312 = "a" U+9515 = "a" U+963F = "a" U+55C4 = "a" U+554A = "a" U+54C0 = "ai" ... U+8444 = "zuo" U+888F = "zuo" U+9162 = "zuo" U+963C = "zuo"
I set up /setting/override/transform.ini.append.php:
[Transformation] Charsets[]=utf-8;han [han] Files[]=han.tr Extensions[]
When I launch updateniceurls.php,everything looks fine, but my URL are still using the node_* pattern.
Did I miss something? Is it OK to send a pull request to the github repo even if it's not completely working?