Sean Burke <leftmost...@gmail.com> writes: > Given a string "%s foo %s", the gjs JavaScript implementation allows these to > be reordered in a > fashion similar to C, that is "%2$s foo %1$s". However, `msgfmt -vc' will > error on encountering > this in a translation when the msgid is marked javascript-format, giving the > following: > > 'msgstr' is not a valid JavaScript format string, unlike 'msgid'. Reason: In > the directive number 1, > the character '$' is not a valid conversion specifier. > > javascript-format should be made to understand this form of string > formatting, as c-format does.
Thanks for the report (and sorry for the shameless delay). I have pushed a fix for that: http://git.savannah.gnu.org/cgit/gettext.git/commit/?id=9b9ebf8f Numbered arguments in the width and precision part are not supported yet, but I guess it wouldn't be a problem for gettext as it is ignored at extraction phase and 'javascript-format' flag is not emitted. Regards, -- Daiki Ueno