perl-unicode

Re: Interesting idea for string resources

2001-09-27 15:40:40
James Briggs wrote:
...
Basically, invent a new quote operator (qL) and have it
call a user function to do resource lookup with dbm or
DBI or whatever.

It would look like:

print qL(The weather is $skycover today.);

This method is useful in 2 areas:

 1) a bridge to allow pre-existing apps to be converted rapidly

 2) resource strings for simple / small apps

For larger apps the issue is that using the text as the key
is not quite unique enough. Sometimes the same text in English
needs different translations in other languages depending on
the subtleties.

I have seen companies start out with this method but in
the long run they all moved away from it.

Brian Stell

<Prev in Thread] Current Thread [Next in Thread>