Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Made strings "name" and "badges" translatable | mediawiki/extensions/Wikibase | master | +41 -12 |
Event Timeline
This is also problem by changing of badges: https://www.wikidata.org/w/index.php?title=Q12046911&diff=260618819&oldid=253133043&uselang=qqx
Hey !
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)
Change 329635 had a related patch set uploaded (by Subins2000):
Made strings "name" and "badges" translatable