[Po4a-devel] suggestion for the website http://po4a.alioth.debian.org

Didier Spaier didier.spaier at epsm.fr
Thu Jun 13 21:30:30 UTC 2013


Hi all,

First, thanks for po4a, very useful for maintaining web pages in xhtml format in several languages.

Suggestion: why not use content negotiation?

This way the web server (Apache, I guess) could serve the page in the language matching user preference if set in his or her browser.

That would avoid changing the language for each page visited.

For instance on http://slint.fr I have following .htaccess:

Options +Multiviews
AddLanguage en .en
AddLanguage es .es
AddLanguage fr .fr
AddLanguage pt .pt
LanguagePriority es fr pt en
ForceLanguagePriority Fallback

and pages are named:

index.html.de
index.html.es
index.html.fr
index.html.pt

HTH,

Didier



More information about the Po4a-devel mailing list