|mediawiki/extensions/Wikibase : master||Made strings "name" and "badges" translatable|
I've been trying to fix this for the past 3 hours and is in a zigzag. The string "name" is coming from a faraway class and I can't seem to translate it.
I reached here, but is facing difficulty to what to do next.
My plan is to modify DiffView.php by :
- Passing the context of EntityDiffVisualizer to DiffView
- And while generating the HTML, translate it.
But this approach to me seems ugly. Should I do this or is there any other way ? :/
Changing DiffView doesn't sound crazy but you can try rendering templates to make the code much cleaner. Make the patch and we talk about it in gerrit (btw. Make patch on the Wikibase extension not wikidata, that is the build not the real source code)