Delete MediaWiki:Dberr-info/hif-latn
Please delete MediaWiki:Dberr-info/hif-latn, its just a copy of the English version of the message. Thanks, --DannyS712 (talk) 02:24, 24 October 2020 (UTC)
Not this alone :-( I looked through the file and see some hundred "translations" into English. Any chance for an automated comparison and deletion process?
So I really quickly hacked a script together:
- copied https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/refs/heads/master/languages/i18n/hif-latn.json (excluding the metadata) into my browser console as `maybeTranslations`
- copied https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/refs/heads/master/languages/i18n/en.json (excluding the metadata) into my browser console as `englishVersions`
- ran the following code
var notTranslations = {};
Object.keys( maybeTranslations ).forEach(
function ( key ) {
if ( maybeTranslations[ key ] === englishVersions[ key ] ) {
notTranslations[ key ] = maybeTranslations[ key ];
}
}
);
and then retrieved the list of messages in notTranslations
. I got a list of 520 different messages that exactly matched the English version - I couldn't find a way to collapse the list if I were to paste it here, so I dumped it on my sandbox on metawiki - format is message name and then the text - see https://meta.wikimedia.org/w/index.php?title=User:DannyS712/sandbox&oldid=20632414
Hi DannyS712, to be honest: I saw your list, thanks a lot, and closed it again due to the mass... I had no time to manually remove/delete all of them in November. I will think about a faster solution.
I wrote a script to do this. I ran it for mediawiki
aggregate group for now:
php scripts/deleteEqualTranslations.php --group=mediawiki --language=hif-latn --comment="Cleaning up translations which are equal to the definition" Found 678 message(s) created by these users: 268 | Smcnarayan 160 | Girmitya 152 | Thakurji 69 | Abdul Kadir 9 | Brijlal 6 | Raymond 4 | AndySingh 3 | Siebrand 3 | FuzzyBot 1 | Soul Train 1 | JinJian 1 | C.R. 1 | Vito Genovese
Will check some other message groups later.