Re: [poedit-users] ANN: poedit 1.3.7_pre2 prerelease

"Werner F. Bruhin" <[email protected]>
Newsgroups gmane.editors.poedit.user
Message-ID <[email protected]>
Hi Vaclav,

Vaclav Slavik wrote:
> Werner F. Bruhin wrote:
>   
>> 16:59:30: xgettext: TheWineCellarBookv2\program/about.py:1: Cannot
>> convert from "ASCII" to "UTF-8". xgettext relies on iconv(). This
>> version was built without iconv().
>>     
The above error is gone, I must have appended to the existing log file 
by mistake.
>
> Are you sure you're using pre2 and not pre1? Because I fixed this... 
> If you _do_ get this error with pre2, please provide  everything 
> (i.e., files and detailed instructions) needed to reproduce it, 
> because I can't see it here.
>
> As for the rest, that's xgettext output warning you about bad 
> programming practices (from the gettext i18n POV) and I think the 
> messages are pretty self-explanatory...
>   
I get the meaning of the message, but had no clue how to change it.  And 
as it took me some time to find the answer I show it here for the 
archive (if there should be a problem or an easier way please correct it 
so others do not get mislead).

This string:
tsToolTip = _('%s: valid min = %i, max = %s') % (tastingSysName, 
tsRange[0], tsRange[1])

should be changed to (or something similar):
tsToolTip = _('%(tastingSysName)s: valid min = %(tsRange0)i, max = 
%(tsRange1)s') % {'tastingSysName': tastingSysName, 'tsRange0': 
tsRange[0], 'tsRange1': tsRange[1]}

Werner

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
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.