Can categories be multilingual?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
wesley
Regular
Posts: 197
Joined: Sun Jul 10, 2005 11:15 am
Contact:

Can categories be multilingual?

Post by wesley »

I got a suggestion from one of the folks browsing my site about having
the language of the categories of the blog matching the language chosen.
Sounds like a lot of work in the code though. I wonder how feasible it would
be to implement such thing. Pretty sure I'd have to manually enter the
category names for each language...
I make s9y plugins, too.
My s9y blog depends on them. :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Can categories be multilingual?

Post by garvinhicking »

Actually, it would be implementable.

0.9 supports plugin hooks for the properties of a category. You could then store multiple category names in a seperate database, and then make the category plugin get its hook so that the same plugin can inject the right category name into the output. That would then work like the multilingual plugin by checking the selected language and using it for querying the "multilingual_category" table...

This would be nice, indeed. I wonder why nobody has mentioned it before. :)

Regard,s
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply