> Hello everyone. I tried to post this already to googlegroups > but it seems there must be something wrong since I didnt get > any replies (maybe I did something wrong). So, here's the > deal. > > I am starting to use Maketext for a Website and i have > the following situation: > > Supose english is my default language so all my calls > look like this: > > $out = maketext("You won [quant,_1,point]"); > > Now, for every different language, I want to know if > this text is not translated yet. > > Right now, if that key is missing on my french lexicon > the text in english is being returned without throwing > any kind of exception. Actually, if I understand > correctly, it is supposed to work that way.... right? > > http://www.perldoc.com/perl5.8.0/lib/Locale/Maketext.html#CONTROLLING-LOOKUP > -FAILURE > > If so, what's your advice? Would it be easy to override > the maketext method so I can log this missing entries? > > Thank you very much, > > Andrés >
I haven't used the module personally, but according to the doc section you noted, the default behavior shouldn't be to return the english, *unless* the english lexicon has an _AUTO setting, in which case it will do so. Reference: http://www.perldoc.com/perl5.8.0/lib/Locale/Maketext.html#AUTO-LEXICONS If this doesn't help, can you post some of the code where you setup your lexicons, and the subclasses, etc. I also assume you haven't messed with the 'fail_with' attribute, preventing the usual 'die'? I do find it weird that many of the examples show calling maketext with an 'or die' idiom, which seems pointless if the default behavior on error is to throw an exception. Not sure what happened to your original message, it could just be none of the resources have used the module before... http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>