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 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 :




Maybe it is not the list for dealing this problem ?

Thanks in advance fro any help

Best regards

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]
moz-screenshot-57.png (image/png, 6.2 KB) - not displayed
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.