[katello-devel] Reminder about localization and strings

Tom McKay thomasmckay at redhat.com
Thu Mar 1 13:30:50 UTC 2012


Messages like

Warning: fuzzy message was ignored.
         msgid 'Template '%s' was deleted.'

during startup of development server are expected until the translations come back, I've been told.




----- Original Message -----
> From: "Tom McKay" <thomasmckay at redhat.com>
> To: katello-devel at redhat.com
> Sent: Tuesday, February 28, 2012 3:26:51 PM
> Subject: Re: [katello-devel] Reminder about localization and strings
> 
> Massive commit to fix i18n of strings in katello. Please ping me ASAP
> if any issues. New strings sent off for translation.
> 
> ----- Original Message -----
> > From: "Tom McKay" <thomasmckay at redhat.com>
> > To: katello-devel at redhat.com
> > Sent: Tuesday, February 28, 2012 10:29:02 AM
> > Subject: Re: [katello-devel] Reminder about localization and
> > strings
> > 
> > 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
> > > 
> > 
> > _______________________________________________
> > 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