[virt-manager PATCH v4 0/9] Improve translations

Pino Toscano ptoscano at redhat.com
Wed Jul 8 14:54:11 UTC 2020


This patch series improve the handling of translations.

Use the gettext tools to:
- extract the messages from all the various sources
- merge old translations with the new catalog
- build translations as mo files
- merge translations to desktop, and AppStream files
This makes gettext a mandatory dependency when installing, replacing
intltool.

To make sure the translations are updated in Weblate, commit the
catalog in the repository.

As related (i18n) changes: drop two translations that are totally
empty.

Changes from v3:
- remove the separate virt-manager-meta catalog
- drop empty translations

Changes from v2:
- require gettext 0.19.6
- use gettext to extract & merge translations in desktop & AppStream
  files
- use pathlib instead of recursive glob
- update also documentation and spec files
- minor code changes

Changes from v1:
- fix issue in the Python sources extraction; regenerate the catalog
  accordingly

Pino Toscano (9):
  setup: split listing of .in sources for POTFILES
  setup: add a extract_messages command
  setup: use msgmerge for updating translations
  Add a LINGUAS file
  Handle desktop files using gettext
  Handle AppStream files using gettext
  Add the translation catalog
  spec: drop intltool BuildRequires
  po: remove empty translations

 .gitignore                       |    1 -
 INSTALL.md                       |    1 +
 data/virt-manager.appdata.xml.in |   14 +-
 data/virt-manager.desktop.in     |    4 +-
 po/LINGUAS                       |   45 +
 po/vi.po                         | 6416 ---------------------------
 po/{cmn.po => virt-manager.pot}  | 6982 +++++++++++++++---------------
 setup.py                         |  109 +-
 virt-manager.spec.in             |    2 +-
 9 files changed, 3579 insertions(+), 9995 deletions(-)
 create mode 100644 po/LINGUAS
 delete mode 100644 po/vi.po
 rename po/{cmn.po => virt-manager.pot} (60%)

-- 
2.26.2




More information about the virt-tools-list mailing list