weblate icon indicating copy to clipboard operation
weblate copied to clipboard

[Data source] Wikidata localization

Open yarons opened this issue 8 months ago • 6 comments

Describe the problem

Sometimes I need to translate large sets of data from Wikidata, doing it manually is very time consuming.

Describe the solution you'd like

Adding an option for a list of objects or a SPARQL query to fetch all the relevant data for translation, the translated terms will (or should) be directly saved back to Wikidata (another option is to create an internal repository and push on request which may lead to collisions on larger scales).

Describe alternatives you've considered

Translating directly in Wikidata, it's possible but very time-consuming.

Screenshots

No response

Additional context

I actually have a task waiting just for that, I'm correlating the data from OpenStreetMap to Wikidata, so now whenever I'm changing the data in Wikidata it's being automatically reflected in OSM. This way I can have lists of countries/regions/cities/streets and translate them using Zen mode instead of going one by one, so the only difficult part here is to correlate the names of the city to the Wikidata properties (which should be done once) and then translate. We can also have supporting languages so we can fetch the main name in addition to the English translation/transliteration to help with proper translation.

It will also help with translating all the terms in the OSM wiki (which is sort of a Wikibase with different data correlations).

Thanks :)

yarons avatar Nov 30 '23 10:11 yarons

You can definitely achieve this using API right now: Fetch strings using SPARQL, add them to Weblate and then feed them back. I'm not convinced such functionality belongs to Weblate.

nijel avatar Nov 30 '23 10:11 nijel

Is it possible to do it as a ~~plugin~~, sorry, Addon?

yarons avatar Nov 30 '23 10:11 yarons

This issue has been automatically marked as stale because there wasn’t any recent activity.

It will be closed soon if no further action occurs.

Thank you for your contributions!

github-actions[bot] avatar Dec 15 '23 01:12 github-actions[bot]

Yes, technically it would be possible (we do something similar in the CDN add-on), but I'm not really convinced it is a good idea to embed this into Weblate.

nijel avatar Dec 15 '23 10:12 nijel

This issue has been put aside. It is currently unclear if it will ever be implemented as it seems to cover too narrow of a use case or doesn't seem to fit into Weblate.

Please try to clarify the use case or consider proposing something more generic to make it useful to more users.

github-actions[bot] avatar Dec 15 '23 11:12 github-actions[bot]

Cool, I know that translatewiki are working on something: https://phabricator.wikimedia.org/T64695

yarons avatar Dec 15 '23 15:12 yarons