Opened 11 years ago
Last modified 11 years ago
#3470 new defect
Deducto i18n warning flag
Reported by: | cjl | Owned by: | garycmartin |
---|---|---|---|
Priority: | Unspecified by Maintainer | Milestone: | Unspecified |
Component: | ActivityTeam | Version: | Unspecified |
Severity: | Unspecified | Keywords: | |
Cc: | walter | Distribution/OS: | Unspecified |
Bug Status: | Unconfirmed |
Description
The POT generating script is throwing a warning error
####### Checking POT for Deducto (master) ######
Already up-to-date.
DeductoActivity.py:265: warning: 'msgid' format string with unnamed arguments cannot be properly localized:
The translator cannot reorder the arguments. Please consider using a format string with named arguments, and a mapping instead of a tuple for the arguments.
This line is the issue:
"Explore patterns with the %s and %s buttons."
Please consider changing to named variables like
"Explore patterns with the %(1)s and %(2)s buttons."
Note: See
TracTickets for help on using
tickets.
In this case, the order of the arguments doesn't matter. But I applied a patch [1]
[1] http://git.sugarlabs.org/deducto/deducto/commit/cdd25a7ceda9d6729dbb0a3148a0fa4ef85e4447