Serving localized gnome.org



After some researches on debian.org and a brief discussion with thos and jdub in IRC, I'm posting the main ideas-guidelines to serve localized pages on gnome.org: 1. there will be a menu somewhere that will let you choose your favourite language. To override the Accept-language header we will need to set a cookie and a server side script to check it and serve the correct page.

2. using MultiViews apache option or a custom server side script we will serve pages according to the cookie value (if its set) or to the Accept-header (if present). I have no experience with MultiViews, but I think the server side script is the best approach. I dont want to push this approach too far, but since this script would be required in any page, it could be named /index.[php|pl|cgi|whatever] and with a proper UrlRewrite it could manage to server all the pages in any sub-dir. This could raise a problem with current Rewrite entries in .htaccess

3. actual translation of content will take place through po-files as requested by the i18n list [1]. At the moment I have no idea about how to create such files (xml2po seems to be the way, though) and how to integrate the translation provided into the pages. More on this in a future mail.

Best regards,
flevour
[1] http://mail.gnome.org/archives/gnome-i18n/2004-December/msg00060.html (last paragraph)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]