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

Gerard Breiner gerard.breiner at ias.u-psud.fr
Tue Oct 12 15:28:30 UTC 2010


Le 10 oct. 10 à 23:33, Jan Schneider a écrit :

> Zitat von Gerard Breiner <gerard.breiner at ias.u-psud.fr>:
>
>> 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: dev at Lists.horde.org\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 <i18n at lists.horde.org>\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: i18n-unsubscribe at lists.horde.org


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 :

-------------- next part --------------
A non-text attachment was scrubbed...
Name: moz-screenshot-57.png
Type: image/png
Size: 6325 bytes
Desc: not available
URL: <http://lists.horde.org/archives/i18n/attachments/20101012/565718f4/attachment.png>
-------------- next part --------------



Maybe it is not the list for dealing this problem ?

Thanks in advance fro any help

Best regards

Gerard Breiner


More information about the i18n mailing list