2015-06-29 17:07 GMT+02:00 Giovanni Di Noia <g...@dinoia.eu>:

> saluti = _('Hello %(name)s' % {'name': 'Pippo'})

> Non ho errori, semplicemente no riconosce il msgid.
> dove sbaglio?

Qui non stai passando a _() il msgid "Hello %(name)s", bensì "Hello
Pippo" essendo che l'operatore % viene applicato prima.

Ciao,
©

-- 
|:**THE BEER-WARE LICENSE** (Revision 42):
| <mi...@python.it> wrote this mail. As long as you retain
| this notice you can do whatever you want with this stuff.
| If we meet some day, and you think this stuff is worth it,
| you can buy me a beer in return.
|                                            --Carlo Miron :
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a