Re: [horde] [Horde 4-Git]i18n mo files's bad encoding ?

Gerard Breiner <[email protected]>
Newsgroups gmane.comp.horde.internationalization
Message-ID <[email protected]>
Le 13 oct. 10 à 16:41, Jan Schneider a écrit :

> Zitat von Gerard Breiner <[email protected]>:
>
>>
>> Le 10 oct. 10 à 23:33, Jan Schneider a écrit :
>>
>>> Zitat von Gerard Breiner <[email protected]>:
>>>
>>>> Hello,
>>>>
>>>> Horde 4.0-git Debian Lenny
>>>>
>>>> I' m encountering some issues with mo files and more exactly  
>>>> imp.mo  that seems to be encoded in ISO-8859-1 instead UTF-8.
>>>> I checked that the imp.po has been encoded in UTF-8. For that I  
>>>> use  a console UTF-8 (Putty) and create a file tmp.po in which I
>>>> put a few lines to translate "Get Mail" in french .
>>>>
>>>> [CODE]
>>>> msgid ""
>>>> msgstr ""
>>>> "Project-Id-Version: fr_FR\n
>>>> "Report-Msgid-Bugs-To: [email protected]\n"
>>>> "POT-Creation-Date: 2008-03-18 09:02+0100\n"
>>>> "PO-Revision-Date: 2008-05-31 11:39+0200\n"
>>>> "Last-Translator: Yannick Sebastia\n"
>>>> "Language-Team: French <[email protected]>\n"
>>>> "MIME-Version: 1.0\n"
>>>> "Content-Type: text/plain; charset=UTF-8\n"
>>>> "Content-Transfert-Encoding: 8bit\n"
>>>> "Plural-Forms: nplurals=2; plural=(n > 1);\n"
>>>>
>>>> #: templates/dimp/index.inc:64
>>>> msgid "_Get Mail"
>>>> msgstr "_Récupérer le courrier"
>>>>
>>>> [/CODE]
>>>>
>>>> Then I run : </www/horde/bin/translation make --locale=fr --  
>>>> module=imp --no-compendium> and get a new imp.mo
>>>> Then I run : (LANG=fr_FR; LANGUAGE=fr_FR; LC_MESSAGES=fr_FR;   
>>>> gettext imp "_Get Mail" ) and get :
>>>> "_R▒cup▒rer le courrier" I means french accents are replace  
>>>> by  squares.
>>>> I repeat the settings of my window putty are UTF-8.
>>>> Then I modified the settings of putty for ISO-8859-1 and run  
>>>> again  (LANG=fr_FR; LANGUAGE=fr_FR; LC_MESSAGES=fr_FR; gettext  
>>>> imp "_Get  Mail" ) and get:
>>>> "_Récupérer le courrier". This means IMHO that imp.mo is  
>>>> encoded  in ISO-8859-1 whereas imp.po is indeed encoded in  
>>>> UTF-8.So I'm  wondering if it is not during the compilation in mo  
>>>> file that the  problem occurs.
>>>
>>> No, it's not. If you really want to learn more about gettext,  
>>> read  the gettext manual.
>>>
>>> Jan.
>>>
>>> -- 
>>> Do you need professional PHP or Horde consulting?
>>> http://horde.org/consulting/
>>>
>>> -- 
>>> Horde i18n mailing list - Join the hunt: http://horde.org/bounties/
>>> Frequently Asked Questions: http://horde.org/faq/
>>> To unsubscribe, mail: [email protected]
>>
>>
>> Thanks Jan for your answer that gave me a few hints....in fact  in  
>> the  gettext command line I must  write LANG=fr_FR.charset as  :   
>> (LANG=fr_FR.UTF-8; LANGUAGE=fr_FR; LC_MESSAGES=fr_FR; gettext imp   
>> "_Get Mail" ).
>> Otherwise it seems that if I write LANG=fr_FR  gettext take  
>> ISO-8859-1  as charset .
>> I'm glad to not have need to learn more about gettext... 17553  
>> pages  lol!
>>
>> Nevertheless, what had made me submit this issue is  : I want for   
>> instance to translate "_Get Mail" as " _Récupérer le courrier "  
>> and  having the acceskey  "R".
>> The issue is that horde menu show "écupérer le courrier(R). Here  
>> is a  screen copy :
>>
>>
>
> I can't reproduce this, but I can see how this could happen  
> theoretically. File a bug ticket.
>
> Jan.
>
> -- 
> Do you need professional PHP or Horde consulting?
> http://horde.org/consulting/
>
> -- 
> Horde i18n mailing list - Join the hunt: http://horde.org/bounties/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: [email protected]


I've just done it as asked . The ticket's name is : IMP i18n UTF-8  
access key before an accent

Thanks in advance

Gerard Breiner





-- 
Horde i18n mailing list - Join the hunt: http://horde.org/bounties/
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.