Michal Pryc wrote:
Michal Pryc wrote:
John,
I can see in many places html code with some strings not being translated _().
Is it intentional ?
I will be more precise:
lines 1689 - 1695.

Also I think we could reduce the translations for all html strings by following pattern: "some <html> text %(all)s some other %(something)s text" % {"all" : _("some string"), "something": _("some ohter string")}

You really can't mix _()'d strings that way. Specifically, you don't want to use expandos (e.g. '%') to build sentence structure.

For example, you don't want to do this:
_("Unable to %s; please try again.") % msg

But this should be fine:
_("Error encountered while performing '%(operation)s'. Details: '%(error)s'") % { "operation": operation, "error": error }

Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to