Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-09-05 02:13:29

chinesedream
Member
Registered: 2006-09-05
Posts: 22

Categories won't accept Asian characters

Hi, I am new to TextPattern.

I have Simplified Chinese and English enable and I could write articles in Chinese. However when I try create categories with Chinese name, nothing happens. It didn’t show error. The category I just created simply doesn’t show up. I tried testing it in Korean and Japanese on Article, Link, Image and File categories, same thing. But with English everything works fine.

However, under the Image Categories, I tried to change to Chinese from an existing image gallery, it allowed me to change from the Image category title. It won’t work for Image category name though.

I am using V.4.0.3
My webhost is Dreamhost
PHP version 4.4.2 with Extra Web Security enable.
The clean URL doesn’t work (but this is seperate issue)

Here is the URL:
http://b.zhujili.com/

If you can be so kind log in to the admin for few minutes to see what did wrong. I will email you the login info offlist.

Greatly appreciated!

tee

Offline

#2 2006-09-05 02:27:20

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Categories won't accept Asian characters

The Name part of a category has to be suitable for inclusion in a URL. That means limited ASCII characters only. Textpattern transliterates what it can, then removes any remaining non-ASCII characters. In this case it’s presumably removing everything.

You’ll need to enter a suitable ASCII representation for the Name, and use Chinese in the Title.

There is a file (textpattern/lib/i18n-ascii.txt) that controls transliteration rules. If you can come up with any safe transliterations for Chinese, we’d be happy to include them.


Alex

Offline

#3 2006-09-05 09:55:47

chinesedream
Member
Registered: 2006-09-05
Posts: 22

Re: Categories won't accept Asian characters

Hi Alex, thanks for the explanation. It doesn’t quite makes sense to me but I do see the reason and logic behind it.

No, I am not able to come up with any safe transliterations for Chinese. Maybe after I have deep understanding of Textpattern – Just got it installed last night.

tee

Offline

#4 2006-09-05 10:04:03

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Categories won't accept Asian characters

You can edit every category and add a custom name and title. Name is used in urls, title is used when referring to the category on the pages, like in navigational elements etc. Titles do not have any restrictions on characters, so there you can use the chinese word.

You only need to edit the file zem pointed to, if you want to have automatic transliteration of names when entering new categories (plus: if added to textpattern, this would help other chinese users). But that’s not a must.

Offline

#5 2006-09-05 10:48:46

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Categories won't accept Asian characters

The alternative would be encoding non-ascii characters as %xx byte sequences. We could look at doing that in future for certain languages like Chinese where transliteration is probably not feasible.


Alex

Offline

Board footer

Powered by FluxBB