libvirt/po
Daniel P. Berrangé 59e6bf203a po: rename the .mini.po files to have just a .po suffix
A .mini.po file is exactly the same format as a .po file. We just used
the alternative extension as we wanted to be able to store both full and
minimized forms in the same directory.

This complicates integration with some translation tools, however, which
only really expect to see $LANG.po as a filename.

With this change we drop the rules for creating non-minimized po files,
and thus the po/*.po are always minimized. A useful side effect is that
we no longer run msgmerge during creation of the gmo files, and thus
don't need to have a date override to get reproducible builds.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-06-04 11:18:35 +01:00
..
as.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
bg.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
bn_IN.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
bs.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
ca.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
cs.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
da.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
de.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
el.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
en_GB.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
es.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
fi.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
fr.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
gu.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
hi.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
hu.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
id.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
it.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
ja.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
kn.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
ko.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
LINGUAS po: delete empty translations 2020-06-04 11:18:35 +01:00
Makefile.am po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
mk.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
ml.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
mr.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
ms.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
nb.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
nl.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
or.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
pa.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
pl.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
POTFILES.in vbox: remove unused support for Windows MSCOM 2020-04-20 11:34:59 +01:00
pt_BR.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
pt.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
README.rst Convert all remaining Markdown files to reStructuredText 2020-04-14 16:29:04 +02:00
ru.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
sr.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
sr@latin.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
sv.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
ta.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
te.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
uk.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
vi.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
zanata.xml po: remove language list from zanata configuration 2018-04-19 10:36:06 +01:00
zh_CN.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00
zh_TW.po po: rename the .mini.po files to have just a .po suffix 2020-06-04 11:18:35 +01:00

Libvirt Message Translation

Libvirt translatable messages are maintained using the GNU Gettext tools and file formats, in combination with the Zanata web service.

python-zanata-client is required in order to use make to pull/push translations from/to Zanata server.

Source repository

The libvirt GIT repository does NOT store the master "libvirt.pot" file, nor does it store full "po" files for translations. The master "libvirt.pot" file can be generated at any time using

$ make libvirt.pot

The translations are kept in minimized files that are the same file format as normal po files but with all redundant information stripped and messages re-ordered. The key differences between the ".mini.po" files in GIT and the full ".po" files are

  • msgids with no current translation are omitted
  • msgids are sorted in alphabetical order not source file order
  • msgids with a msgstr marked "fuzzy" are discarded
  • source file locations are omitted

The full po files can be created at any time using

$ make update-po

This merges the "libvirt.pot" with the "$LANG.mini.po" for each language, to create the "$LANG.po" files. These are included in the release archives created by "make dist".

When a full po file is updated, changes can be propagated back into the minimized po files using

$ make update-mini-po

Note, however, that this is generally not something that should be run by developers normally, as it is triggered by 'make pull-po' when refreshing content from Zanata.

Zanata web service

The translation of libvirt messages has been outsourced to the Fedora translation team using the Zanata web service:

https://fedora.zanata.org/project/view/libvirt

As such, changes to translations will generally NOT be accepted as patches directly to libvirt GIT. Any changes made to "$LANG.mini.po" files in libvirt GIT will be overwritten and lost the next time content is imported from Zanata.

The master "libvirt.pot" file is periodically pushed to Zanata to provide the translation team with content changes, using

$ make push-pot

New translated text is then periodically pulled down from Zanata to update the minimized po files, using

$ make pull-po

Sometimes the translators make mistakes, most commonly with handling printf format specifiers. The "pull-po" command re-generates the .gmo files to try to identify such mistakes. If a mistake is made, the broken msgstr should be deleted in the local "$LANG.mini.po" file, and the Zanata web interface used to reject the translation so that the broken msgstr isn't pulled down next time.

After pulling down new content the diff should be examined to look for any obvious mistakes that are not caught automatically. There have been bugs in Zanata tools which caused messges to go missing, so pay particular attention to diffs showing deletions where the msgid still exists in libvirt.pot