Unnamed arguments in translation strings

Issue #184 resolved
Former user created an issue

A pair of format strings with unnamed arguments cause make-message.py to abort with errors. A patch to fix it is attached.

Background: the latest versions of xgettext have gotten more strict which causes make-message.py to report an error and exit if it encounters multiple unnamed arguments in translation strings. This is a good thing since positional arguments should be discouraged in strings to be translated. Eg. code like this is to be avoided since the translated string sometimes needs to have the arguments in a different order: {{{


'Number of %s: %i' % (name, count) }}}

Reported by nils

Comments (2)

  1. Log in to comment