[katello-devel] Reminder about localization and strings

Tom McKay thomasmckay at redhat.com
Tue Feb 28 15:29:02 UTC 2012


A quick grep down app/ found 797 strings matching _("#{}")

----- Original Message -----
> From: "Tom McKay" <thomasmckay at redhat.com>
> To: katello-devel at redhat.com
> Sent: Tuesday, February 28, 2012 10:23:30 AM
> Subject: [katello-devel] Reminder about localization and strings
> 
> 
> 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
> 




More information about the katello-devel mailing list