perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RobertCZ <rob...@robert.cz>
Subject Re: Urgent: MsgIdExtract problem
Date Tue, 14 Dec 2004 10:49:03 GMT
Gerald Richter wrote:

>>  when extracting messages. I believe in some older version 
>>quotes like [= 'Hello World' =] would fix it, but in RC2 it 
>>just prints it with quotes 'Hello World'.
>>
>>The problem is perhaps this definition
>>
>>     'Embperl output msg id' => {
>>        'text' => '[=',
>>        'end'  => '=]',
>>        'unescape' => 1,
>>        'procinfo' => {
>>            embperl => {
>>                    perlcode =>
>>                        [
>>                        
>>'$Embperl::Syntax::MsgIdExtract::Ids{scalar(%#0%)} = q{} if (!exists
>>($Embperl::Syntax::MsgIdExtract::Ids{scalar(%#0%)})) ;',
>>    
>>
>
>Try to change 
>
>%#0%
>
> to 
>
>%#\'0%
>
>Does this help?
>  
>

I'm going to test it. Meanwhile I'm using simple hack with regexps and 
noticed more problems:

- [= Clear Form! =] doesn't show translation even when dictionary has 
... 'cz' => { ..., 'Clear Form!' => 'Vymazat formular!', ... }, it looks 
like the above bug is repeated when Emperl ouputs text

- your syntax ignores (documented) usage $epreq->gettext()

- Robert


Mime
View raw message