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.
  • Template (Score:3, Insightful)

    by darobin (1316) on 2002.05.01 14:28 (#7810) Homepage Journal

    Why not use a templating approach, wouldn't you have less special cases? "${moduleName} par ${author} a été écrit" (or something more elaborate).

    --

    -- Robin Berjon [berjon.com]

    • Did you read Sean's message? Have you looked at localizing and Locale::Maketext? It's all about templating.... and simple templating as such doesn't work, exactly because the word orders of different languages do not co-operate.
      Or because expressions may separate and split, depending: just think of "c'est nest pas"...
      Or because of plurals happen to be irregular? Or because of gazillion other reasons.

      • Yes, I did read Sean's message and I know that local problems are far harder than that. It's just that reading from the text I got the impression that Sean was using an approach a touch more ad hoc than that, which made me curious (in a conversational way, otherwise I'd have gone read the source).

        --

        -- Robin Berjon [berjon.com]

    • Go pre-order the Best of the Perl Journal volume [amazon.com] where my article about localization will (re)appear.
      • I definitely intend to get that book, especially as I subscribed to TPJ and only ever got one issue. I won't preorder though until I manage to get a job because in the meantime I have other priorities ;)

        --

        -- Robin Berjon [berjon.com]

      • I love that article. I read it for kicks and laughs in addition to its lovely informational nature. I grabbed that issue of TPJ to read on the crapper the other day and thought of you, Sean.

        Hmm... maybe I shouldn't have mentioned that.
        • I'm always glad that my articles "help people work on their qi".

          Also, it's the one TPJ article that prominently features the scenario of a developer having a fainting spell.