Wordpress Plolyglot with G2 MultiLang

GTakacs

Joined: 2005-12-10
Posts: 9
Posted: Mon, 2005-12-12 21:27

I am using Wordpress with a modified Polyglot plugin and I have G2 embedded in it using MultiLang. The two are working great, I just wish the language of the two would match one another at all times.

Wordpress Polyglot uses a Cookie called 'wordpress_lang_pref'.$cookiehash which is basically a unique cookie based on a hash number rendered from the name of the domain the blog resides on ($cookiehash is a WP global variable). The cookie stores the language preference in the standard form like en_US for US English and hu_HU for Hungarian (the two languages I use on my site).

I would like Gallery to use the same cookie for its language preference. What do I need to change for it to happen?

Thanks!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-12-12 21:36

pass the cookie language format in GalleryEmbed::init to g2...

 
GTakacs

Joined: 2005-12-10
Posts: 9
Posted: Tue, 2005-12-13 15:51

I take you mean passing the 'activeLanguage' parameter to the GalleryEmbed::init() method with the proper cookie value. I did that and everything is fine and dandy now! All I have to do now is add my own language selector to the theme instead of the language selector module and I shoud be all set!

Thanks again valiant, I knew I could count on you ;-).