Yes, I have seen some of the languages use tricks like "object of type" and slashes for gender ("%(name)s \"%(obj)s\" modificato/a correttamente.")
But many times the indefinite noun will do as well ('employee "Xyz" was changed...') , so maybe we can get the capitalization right? ('Employee "Xyz" was...')
Does gettext support something for that?
Otherwise, the first letter of the message can be made uppercase directly in Python, e.g. "msg = msg[0].upper() + msg[1:]" after msg is set in contrib/admin/options.py.
Regards,
Erik Wognsen
To unsubscribe from this group, send email to django-i18n...@googlegroups.com.
According to gettext manual[1] one can use \u to uppercase the next char. But I have no idea whether "\u%(name)s" works.
If it does not, a small patch for Django admin to fix this would be nice.
That section of the documentation is Perl-specific AFAICT.
--
Ramiro Morales
> But I have no idea whether "\u%(name)s" works. If it does not, a small patchThat section of the documentation is Perl-specific AFAICT.
> for Django admin to fix this would be nice.
> [1] http://www.gnu.org/software/gettext/manual/gettext.html#Interpolation-I
--