[katello-devel] Gettext - string with parameters

Lukas Zapletal lzap at redhat.com
Fri Aug 12 14:41:24 UTC 2011


On 08/12/2011 04:29 PM, Ivan Nečas wrote:
>
> I think it's the main reason why this approach is recommended in the doc.
>
> What do you think?

Interesting, to me it seems this is the safest approach:

_("Hello %{w}\n" % {:w => 'World'})

But it's obviously very wordy. Come on! This is not Ruby anymore :-)

-- 
Later,

  Lukas Zapletal | E32E400A
  RHN Satellite Engineering
  Red Hat Czech s.r.o. Brno




More information about the katello-devel mailing list