Use serendipity with several languages?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Bernie
Posts: 4
Joined: Mon Nov 02, 2009 7:29 am

Use serendipity with several languages?

Post by Bernie »

Hi,

I am planning to start a blog in two languages (German and English). In the features list of serendipity, I have read that it supports "multiple languages". Does this mean it supports different languages or several languages at once.

My plan is whenever I write an article, to provide it in English and German, but I do not want to use two different installations of serendipity, but only one.

Is this possible?
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Use serendipity with several languages?

Post by yellowled »

Bernie wrote:My plan is whenever I write an article, to provide it in English and German, but I do not want to use two different installations of serendipity, but only one.

Is this possible?
Yes. You'll need to install the Multilingual plugin (part of the s9y core). It does have (just my personal opinion) some quirks, but it works.

YL
Bernie
Posts: 4
Joined: Mon Nov 02, 2009 7:29 am

Re: Use serendipity with several languages?

Post by Bernie »

that's great! thanks a lot, I will try it!
Bernie
Posts: 4
Joined: Mon Nov 02, 2009 7:29 am

Re: Use serendipity with several languages?

Post by Bernie »

I have a follow-up question. I managed to have bilingual entries.

Can I somehow set a default-language for the user? I.e. if a user accesses the blog from a .de domain, he will see all entries in German, when he accesses the blog from a .com domain, he'll see the English version.

Thanks!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Use serendipity with several languages?

Post by garvinhicking »

Hi!

That would be quite unusual. The multilingual plugin supports to detect the user's language through his preference inside the browser, if you enable the s9y config option "Auto-Detect visitor's language".

You could do it with .de/.com detection if you write up your own plugin or simple PHP code in serendipity_config_local.inc.php - but that's not a really good idea, IMHO. :)

Regards,
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/
Bernie
Posts: 4
Joined: Mon Nov 02, 2009 7:29 am

Re: Use serendipity with several languages?

Post by Bernie »

garvinhicking wrote:Hi!

That would be quite unusual. The multilingual plugin supports to detect the user's language through his preference inside the browser, if you enable the s9y config option "Auto-Detect visitor's language".

You could do it with .de/.com detection if you write up your own plugin or simple PHP code in serendipity_config_local.inc.php - but that's not a really good idea, IMHO. :)

Regards,
Garvin
Hi Garvin,

I didn't know that it uses the language set in the browser. that's great, thanks :)
Post Reply