You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we should use the same names that gettext does (e.g. c-format, python-format, etc) when specifying variable formats
dennis should be clever enough to have a default to use when no #, is specified for that msgid and to use the #, flags specified by the msgid when available
I think the immediate fix is this:
change "Var" to "Format" (and cleanup related things)
split "pysprintf" into "c-format" (e.g. %s) and "python-format" (e.g. %(foo)s)
change "pyformat" into "python-brace-format" (e.g. {foo})
This probably affects lint rules, too.
Also, we should cover this in the dennis documentation with links to the gettext docs.
The text was updated successfully, but these errors were encountered:
The format for variables in a given string can be encoded in the
#,
(pound comma) comments in th e.po file on a msgid by msgid basis.http://www.gnu.org/software/gettext/manual/html_node/PO-Files.html#PO-Files
Two things:
c-format
,python-format
, etc) when specifying variable formats#,
is specified for that msgid and to use the#,
flags specified by the msgid when availableI think the immediate fix is this:
%s
) and "python-format" (e.g.%(foo)s
){foo}
)This probably affects lint rules, too.
Also, we should cover this in the dennis documentation with links to the gettext docs.
The text was updated successfully, but these errors were encountered: