NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
or /fr /de ? (Score:2, Interesting)
Re:or /fr /de ? (Score:2)
I personally prefer domains, but that's mostly because I like the directory structure to reflect the organisation of content (language being an attribute or possibly a view, not a section).
What you still have left to do after using Matt's trick or something similar is images. Images that have text on them should be language specific, while others should be shared. You can use content negotiation for that (foo.png.fr, foo.png.de...) but that only works when the browser is set-up right, so you often
-- Robin Berjon [berjon.com]
Re:or /fr /de ? (Score:2)
Re:or /fr /de ? (Score:2)
You'll have to excuse me but that is a bit cryptic :)
-- Robin Berjon [berjon.com]
Re:or /fr /de ? (Score:2)
I mean if you've got a stylesheet being chosen based on Host: your stylesheet can point to french or german or other images, and also point to shared ones.
Re:or /fr /de ? (Score:3, Informative)
Of course, but the idea is to have a nice way to not have to worry too much about that during stylesheet creation and file management. IOW, it's much better if you can simply have
<img src='foo.png'/> in your stylesheet, and have Apache pick up foo.png.fr or foo.png.de automagically for you (as in conneg). It saves one from a lot of stupid mistakes :)
-- Robin Berjon [berjon.com]
Re:or /fr /de ? (Score:2)
Reply to This
Parent
Re:or /fr /de ? (Score:3, Interesting)
Yes, that's, definitely one option I was thinking about, I just thought it might be nicer if the plugin could $r->header('Accept-language', 'fr'), return DECLINED, and let mod_negociation deal with selecting the image (irrespective of order so that foo.png.fr, foo.fr.png, foo.png.fr.gz all work) and defaulting.
-- Robin Berjon [berjon.com]