Last modified: 2014-10-29 21:10:17 UTC
We often have people adding new messages to En but forgetting about their description in Qqq and in messages.inc Similarly, we sometime remove messages from En but forget about removing them from Qqq and messages.inc We need a test to compare all the three array of messages and report a failure whenever a message should be added or removed to Qqq / messages.inc taking En as a reference. getUntranslatedMessages( $code ) from maintenance/language/languages.inc could help us there.
Need to consider that we have considerable backlog in message documentation, so that we only complain about newly added messages.
http://translatewiki.net/w/i.php?title=Special%3ATranslate&taction=translate&group=core&language=qqq&limit=100&task=untranslated
btw: removing is done automatically like all other languages from the message files on next rebuild
Some tests as https://gerrit.wikimedia.org/r/5438 There is even a test checking all our languages are 100% translated ;-]
Reverted and sent again as https://gerrit.wikimedia.org/r/5550 The problem now is that the tests detects messages from extensions as missing from messages.inc (which they are). We need a way to detects messages coming from extensions which might not be possible :(
I have updated Gerrit change #5550. I have hacked the l10n cache to let us rebuild a cache without extension messages. That let us test only core messages. The tests testLanguagesAreCompletelyTranslated are failing since some messages are not translated and we only test out a subset of languages for now.
Speaking of extensions, the same concept (though probably with a slightly different implementation) applies to extensions. We should test to make sure there are qqq messages for every en message defined in the extension's message file.
According to the abandon comment at Gerrit change #5550, this was superseded by https://www.npmjs.org/package/grunt-banana-checker. Also, messages.inc is no longer a thing.
Reopening since the banana checker is not being run yet.
Change 169579 had a related patch set uploaded by Umherirrender: Tests: Compare en.json and qqq.json message keys https://gerrit.wikimedia.org/r/169579
Change 169579 abandoned by Krinkle: Tests: Compare en.json and qqq.json message keys https://gerrit.wikimedia.org/r/169579
banana-checker running since some weeks or month