[katello-devel] Reminder about localization and strings

Lukas Zapletal lzap at redhat.com
Wed Feb 29 10:15:46 UTC 2012


Tom, did you test this behavior?

Last time I checked this the gettext stack we are currently using was
interpreting this correctly.

But I am totally fine with percent characters. I am just curious about
it.

LZ

On Tue, Feb 28, 2012 at 10:23:30AM -0500, Tom McKay wrote:
> 
> Please be aware that
> 
> _("Role '#{@role.name}' was created.")
> 
> gets expanded to
> 
> _("Role 'my-great-role' was created.")
> 
> before being passed to _() and thus will not match a translation string.
> 
> 
> Please use
> 
> _("Role '%s' was created.") % @role.name
> 
> which can be correctly translated.
> 
> 
> Thanks!
> 
> _______________________________________________
> katello-devel mailing list
> katello-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/katello-devel

-- 
Later,

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




More information about the katello-devel mailing list