Perl-Sensitive Sunglasses | |
PerlMonks |
Re[2]: Language Negotiation with mod_perl, Apacheby penguinfuz (Pilgrim) |
on Jan 31, 2003 at 10:01 UTC ( [id://231556]=note: print w/replies, xml ) | Need Help?? |
WARNING: Comment Contains No Perl CountZero, I was not aware that a default 'no language' variant could be returned reliably. I say 'reliably' because my understanding (and _some_ testing) showed that when the client did not list a language that I have translations for, Apache would return the variant based on it's alphabetical order. Note that my test included file names such as: index.html.de index.html.en And then I simply request index.html and let multiviews run. As described above, if I understand correctly, I could have files like: index.html.de index.html.en index.html And simply link to the pages like <a href="index">Go Here!</a> Unfortunately I have way too many links that would need to be modified for this to work. Hence the request header fiddling! ;)
In Section
Seekers of Perl Wisdom
|
|