readthedocs / sphinx_rtd_theme

Sphinx theme from Read the Docs
https://sphinx-rtd-theme.readthedocs.io/
MIT License
4.77k stars 1.73k forks source link

Empty .po files #1469

Open BathoryPeter opened 1 year ago

BathoryPeter commented 1 year ago

Some of the .po files in the /locale/ directory is empty, containing only the header, while translation is ready on Transifex. For example hu, hr and zh_TW are affected.

For example look at the Hungarian .po: https://github.com/readthedocs/sphinx_rtd_theme/blob/master/sphinx_rtd_theme/locale/hu/LC_MESSAGES/sphinx.po and Transifex (translated a year ago): https://app.transifex.com/readthedocs/sphinx-rtd-theme/language/hu/

benjaoming commented 1 year ago

Thanks for reporting this, looks like a potentially long-standing problem in the tooling.

benjaoming commented 1 year ago

I can see in our .tx/config that we are using the old Transifex client. API access was switched off at some point in 2022.

The new client is easy to upgrade to, it's described here: https://developers.transifex.com/docs/cli

No matter if using the old client with some API breakage caused the empty .po files, we need to switch to the new Transifex client. Using the old one doesn't work anymore.

I switched Transifex client on another project recently, and I used the Docker-based recipe since I don't like downloading unsigned, unhased binary blobs and executing them locally :innocent: But the Docker image worked well: https://github.com/transifex/cli#running-from-docker-beta