Kodi Community Forum
Translating your scraper at Weblate - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Scrapers (https://forum.kodi.tv/forumdisplay.php?fid=60)
+--- Thread: Translating your scraper at Weblate (/showthread.php?tid=359837)



Translating your scraper at Weblate - Gade - 2021-01-15

Dear scraper developers.


Kodi is migrated translations from Transifex to Weblatehttps://kodi.weblate.cloud

We encourage all developers with addons in the official Kodi add-on repo to submit their addon for translation at Weblate.

Handling of translations for your scraper will become much more simple, as most things are automated.
Weblate will get updated instantly whenever you add or remove a translation from your source en_gb file. 
Translations can be synced to your upstream repo whenever you wish (default is 5 days) either by PR or direct push.
All languages at Weblate will be kept in sync with the en_gb source file.

Summary, description and disclaimer can be automatically synced between addon.xml and language files either by PR or direct push whenever changes are made.


This is a completely new system, so if you experience any bugs or things that don't work, please let us know.
Soon we will create wiki pages with guides and tips on how to best use the system.


Send me a PM or reply in this thread with the following info:
  • URL to your repo at Github/Gitlab
  • Branch
  • Would you like PR's or direct pushes from Weblate? (PR's are safest, direct pushes are easiest)
  • How often would you like PR's/direct pushes? Default is 5 days, but it's totally up to you.
  • Do you want a version bump in addon.xml?

For your source en_gb file to get synced with Weblate, you need to add this webhook to your repo for the push event:
xml:
https://kodi.weblate.cloud/hooks/github
Image

If direct pushes are wanted, you need to add Github user "weblate" as collaborator.
This user will automatically accept any collaboration within 5 minutes.
If PR's are the preferred method, Weblate will push to the same PR until merged or closed.


Cheers,
Gade


RE: Translating your scraper at Weblate - Gade - 2021-01-15

Scrapers added to Weblate:
 
  • metadata.generic.albums
  • metadata.generic.artists
  • metadata.themoviedb.org.python
  • metadata.tvdb.com.python
  • metadata.tvshows.themoviedb.org.python