Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive: length field #98

Open
na-Itms opened this issue Feb 11, 2017 · 1 comment
Open

False positive: length field #98

na-Itms opened this issue Feb 11, 2017 · 1 comment

Comments

@na-Itms
Copy link

na-Itms commented Feb 11, 2017

I am facing another false positive occurrence, still while checking the translations of 0 A.D..

We have one place where we use the C length field specifier %ls in order to handle the parameter as a wchar_t.

You can reproduce it with http://trac.wildfiregames.com/browser/ps/trunk/binaries/data/l10n/ar.engine.po

Working on: /path/to/ar.engine.po
E104: bad format character: %l
35:msgid "%s (%ls)"

Thanks in advance!

@willkg
Copy link
Member

willkg commented Feb 13, 2017

There are a bunch of different variable formats in gettext of which Dennis supports python-format and python-brace-format. Issue #58 covers adding support for c-format.

In some cases, you can get away with python-format since they're "similarish". However, in this case, it won't work. We'll need to add support for c-format to get this working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants