Stories
Slash Boxes
Comments
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

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • It would seem more standard to use subdirectories instead of subdomains, judgeing from what's out there right now. Anyway, something to make i18n would be sweet, right now the best i18n ideas I've seen are in Cocoa (which makes it dirt easy).
    • 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]

      • Images is handled by the selection of stylesheet.
        • You'll have to excuse me but that is a bit cryptic :)

          --

          -- Robin Berjon [berjon.com]

          • Sorry :)

            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)

              by darobin (1316) on 2003.02.21 8:40 (#17349) Homepage Journal

              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]

              • Ah, well your AxKit plugin can do that for you. Just set $r->filename() and then return DECLINED.
                • 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]