[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    Re: trunk/applications/pate.po
From:       "Yuri Chornoivan" <yurchor () ukr ! net>
Date:       2013-05-24 6:05:41
Message-ID: op.wxkq7rxrl2zvei () localhost
[Download RAW message or body]

написане Fri, 24 May 2013 07:50:40 +0300, Franklin Weng  
<franklin@goodhorse.idv.tw>:

> Hi list,
>
>
> In trunk: applications/pate.po, there is an entry:
>
> \n
> Available variables are everything from pylab, "%1", and this console as
> "console"
>
>
> Could anyone please explain what it means?  Or rewrite it to something
> easier to understand?
>
>
>
> Thanks,
> Franklin

Hi,

The code:

msg = i18n('\\nAvailable variables are everything from pylab, "%1", and  
this console as "console"', '", "'.join(kwargs.keys()))

(This code is broken in l10n sense because of the usage of unlocalized  
quotation marks when joining).

The string defines namespaces of available variables [1]. These namespaces  
are pylab, some dynamic lists and interactive Python console as "console.

Hope this helps.

Best regards,
Yuri

[1] http://www.diveintopython.net/html_processing/locals_and_globals.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic