Commit Graph

165 Commits

Author SHA1 Message Date
Whired Planck
ae4a8fc48a Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (179 of 179 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/zh_CN/

Signed-off-by: Whired Planck <fungdaat31@outlook.com>
2020-08-31 05:29:25 +02:00
Julien Humbert
6960919074 Translated using Weblate (French)
Currently translated at 100.0% (179 of 179 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/fr/

Signed-off-by: Julien Humbert <julroy67@gmail.com>
2020-08-28 14:35:11 +02:00
Weblate
0ddf959abb Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/

Signed-off-by: Fedora Weblate Translation <i18n@lists.fedoraproject.org>
2020-08-19 22:42:09 +02:00
Göran Uddeborg
3e5b8cc69b Translated using Weblate (Swedish)
Currently translated at 100.0% (179 of 179 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/sv/

Signed-off-by: Göran Uddeborg <goeran@uddeborg.se>
2020-08-19 22:42:09 +02:00
Oğuz Ersen
cbcf5dd60c Translated using Weblate (Turkish)
Currently translated at 100.0% (179 of 179 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/tr/

Signed-off-by: Oğuz Ersen <oguzersen@protonmail.com>
2020-08-19 22:42:09 +02:00
Yuri Chornoivan
e4a065c7ee Translated using Weblate (Ukrainian)
Currently translated at 100.0% (179 of 179 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/uk/

Signed-off-by: Yuri Chornoivan <yurchor@ukr.net>
2020-07-29 15:29:24 +02:00
Pino Toscano
b07d16b8eb Translated using Weblate (Italian)
Currently translated at 100.0% (179 of 179 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/it/

Signed-off-by: Pino Toscano <toscano.pino@tiscali.it>
2020-07-29 15:29:21 +02:00
Pavel Borecki
117482a611 Translated using Weblate (Czech)
Currently translated at 100.0% (179 of 179 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/cs/

Signed-off-by: Pavel Borecki <pavel.borecki@gmail.com>
2020-07-29 15:29:19 +02:00
Piotr Drąg
d36be19994 Translated using Weblate (Polish)
Currently translated at 100.0% (179 of 179 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/pl/

Signed-off-by: Piotr Drąg <piotrdrag@gmail.com>
2020-07-29 15:29:16 +02:00
Weblate
740d84ea2b Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/

Signed-off-by: Fedora Weblate Translation <i18n@lists.fedoraproject.org>
2020-07-27 11:32:49 +02:00
Pino Toscano
dcbac960f4 po: update pot file
Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-25 06:56:24 +02:00
Pino Toscano
9957a6d6d8 po: use custom ITS rules when extracting messages
This way the custom rules for translating MIME types are used, and thus
the MIME type XML files are properly extracted.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-25 06:54:28 +02:00
Weblate
b970c7f466 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/

Signed-off-by: Fedora Weblate Translation <i18n@lists.fedoraproject.org>
2020-07-24 15:16:52 +02:00
Yuri Chornoivan
41059e0907 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (178 of 178 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/uk/

Signed-off-by: Yuri Chornoivan <yurchor@ukr.net>
2020-07-24 15:16:52 +02:00
Pino Toscano
38fb4f7f49 Translated using Weblate (Italian)
Currently translated at 99.4% (177 of 178 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/it/

Signed-off-by: Pino Toscano <toscano.pino@tiscali.it>
2020-07-24 15:16:52 +02:00
Piotr Drąg
298bfa29e7 Translated using Weblate (Polish)
Currently translated at 100.0% (178 of 178 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/pl/

Signed-off-by: Piotr Drąg <piotrdrag@gmail.com>
2020-07-24 15:16:52 +02:00
Weblate
4d6aa3203d Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/

Signed-off-by: Fedora Weblate Translation <i18n@lists.fedoraproject.org>
2020-07-24 15:16:52 +02:00
Pino Toscano
130dc172af Translated using Weblate (Italian)
Currently translated at 98.4% (193 of 196 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/it/

Signed-off-by: Pino Toscano <toscano.pino@tiscali.it>
2020-07-24 15:16:52 +02:00
Balázs Meskó
7d5e1f8040 Translated using Weblate (Hungarian)
Currently translated at 100.0% (196 of 196 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/hu/

Signed-off-by: Balázs Meskó <meskobalazs@mailbox.org>
2020-07-24 15:16:52 +02:00
Geert Warrink
0acbe04bc4 Translated using Weblate (Dutch)
Currently translated at 100.0% (196 of 196 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/nl/

Signed-off-by: Geert Warrink <geert.warrink@onsnet.nu>
2020-07-24 15:16:52 +02:00
Weblate
6a2393c717 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/

Signed-off-by: Fedora Weblate Translation <i18n@lists.fedoraproject.org>
2020-07-24 15:16:52 +02:00
Yuri Chornoivan
a7cf9c665c Translated using Weblate (Ukrainian)
Currently translated at 100.0% (196 of 196 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/uk/

Signed-off-by: Yuri Chornoivan <yurchor@ukr.net>
2020-07-24 15:16:52 +02:00
Piotr Drąg
8d1d0984aa Translated using Weblate (Polish)
Currently translated at 100.0% (196 of 196 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/pl/

Signed-off-by: Piotr Drąg <piotrdrag@gmail.com>
2020-07-24 15:16:52 +02:00
Pino Toscano
7a991e4ad5 po: update pot file
Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-23 12:01:52 +02:00
Pino Toscano
6621cc2f33 po: extract translator comments
Extract the only comments preceeding messages that start with
"translators:".

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-23 12:01:52 +02:00
Pino Toscano
88e4d565a3 po: extract also C_
This represents messages with context.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-23 12:01:52 +02:00
Weblate
24c6a613eb Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/

Signed-off-by: Fedora Weblate Translation <i18n@lists.fedoraproject.org>
2020-07-14 11:04:18 +02:00
Daniel P. Berrangé
edd20d4c91 po: dedupe authors in translations
Weblate gets confused if the same email address is mentioned multiple
times in the translation headers. Dedupe authors so that each author
is mentioned only once, with a range of years listed.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-07-13 20:57:13 +00:00
Daniel P. Berrangé
350d92c926 po: switch over to using Weblate for translations
Weblate works a slightly different way than Zanata. Instead of manually
pushing a pot file and fetching po files, Weblate is going to work
automatically with GitLab Merge requests. The main pot file must be
committed to git, and then Weblate fully manages the .po files, using
merge requests to send updates back.

With this new system we don't have a separate .mini.po file. The main
.po file is partially minimized by removing locations but does not
have non-translated msgids removed. This is not a big downside if we
consider that over time most translations should trend towards 100%
translated, and we have purged all 100% non-translated languages.

The main .pot file is generated with alphabetic sort ordering instead
of the default source file location ordering, as this makes the diffs
stable across renames/code movement, which is something we used in the
old .mini.po files.

The only rules needed in the makefile are to refresh the .pot file
and to generate the .gmo files at install time. We must never touch
the .po files locally, not even to rebase them when the .pot is
updated, as that will create merge conflicts with Weblate. Weblate
will take care of all rebases of the .po files in its own fork of
the git repo, and open merge requests to send changes back when
needed.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-07-13 20:57:13 +00:00
Daniel P. Berrangé
8a722020da po: delete all empty translations
There is no benefit to keeping .po files in git for languages which
have zero translated strings. make should also be honouring the list
in the LINGUAS file, not repeating it.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-07-13 20:57:13 +00:00
Daniel P. Berrangé
beeff760ac docs: update to point users to gitlab.com project
The project primary git repo has moved from pagure.io to
gitlab.com/virt-viewer/virt-viewer.  We want users to submit
code contributions, bug reports and support questions to the
gitlab project, not the mailing list, nor bugzilla, nor the
virt-manager.org site.

We're still using virt-manager.org for hosting downloads of
source and pagure.io for MSIs, but we'll aim to change that
too.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-04-03 14:08:10 +01:00
Daniel P. Berrangé
635b91d5e4 po: refresh translations from zanata
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-12-16 16:03:43 +00:00
Daniel P. Berrangé
22589691d1 po: refresh translations from zanata
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-03-12 11:49:48 +00:00
Daniel P. Berrangé
592cfa9821 po: minimize uk ur vi wba yo zh_CN zh_HK zh_TW zu
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-03-12 11:49:47 +00:00
Daniel P. Berrangé
c9fe1995e5 po: minimize sq sr@latin sr sv ta te tg th tr tw
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-03-12 11:49:47 +00:00
Daniel P. Berrangé
af26945352 po: minimize or pa pl pt_BR pt ro ru si sk sl
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-03-12 11:49:46 +00:00
Daniel P. Berrangé
d7ffa9280f po: minimize mn mr ms nb nds ne nl nn nso
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-03-12 11:49:46 +00:00
Daniel P. Berrangé
651901fdb2 po: minimize kw_GB kw@kkcor kw kw@uccor ky lt lv mai mk ml
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-03-12 11:49:45 +00:00
Daniel P. Berrangé
e32e576012 po: minimize id ilo is it ja ka kk km kn ko
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-03-12 11:49:44 +00:00
Daniel P. Berrangé
16339f99ce po: minimize fr gl gu he hi hr hu ia
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-03-12 11:49:44 +00:00
Daniel P. Berrangé
cadb31d389 po: minimize de_CH de el en_GB eo es et eu fa fi
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-03-12 11:49:43 +00:00
Daniel P. Berrangé
2daefdde22 po: minimize bn_IN bn bo br brx bs ca cs cy da
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-03-12 11:49:42 +00:00
Daniel P. Berrangé
5b9118f04c po: minimize af am anp ar as ast bal be bg
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-03-12 11:49:42 +00:00
Daniel P. Berrangé
99f960b944 po: minimize & canonicalize translations stored in git
Similar to the virt-viewer.pot, .po files contain line numbers and file
names identifying where in the source a translatable string comes from.
The source locations in the .po files are thrown away and replaced with
content from the virt-viewer.pot whenever msgmerge is run, so this is not
precious information that needs to be stored in git.

When msgmerge processes a .po file, it will add in any msgids from the
virt-viewer.pot that were not already present. Thus, if a particular msgid
currently has no translation, it can be considered redundant and again
does not need storing in git.

When msgmerge processes a .po file and can't find an exact existing
translation match, it will try todo fuzzy matching instead, marking such
entries with a "# fuzzy" comment to alert the translator to take a
look and either discard, edit or accept the match. Looking at the
existing fuzzy matches in .po files shows that the quality is awful,
with many having a completely different set of printf format specifiers
between the msgid and fuzzy msgstr entry. Fortunately when msgfmt
generates the .gmo, the fuzzy entries are all ignored anyway. The fuzzy
entries could be useful to translators if they were working on the .po
files directly from git, but Virt-Viewer outsourced translation to the
Fedora Zanata system, so keeping fuzzy matches in git is not much help.

Finally, by default msgids are sorted based on source location. Thus, if
a bit of code with translatable text is moved from one file to another,
it may shift around in the .po file, despite the msgid not itself changing.
If the msgids were sorted alphabetically, the .po files would have
stable ordering when code is refactored.

This patch takes advantage of the above observations to canonicalize
and minimize the content stored for .po files in git. Instead of storing
the real .po files, we now store .mini.po files.

The .mini.po files are the same file format as .po files, but have no
source location comments, are sorted alphabetically, and all fuzzy
msgstrs and msgids with no translation are discarded. This cuts the size
of content in the po directory.

Users working from a virt-viewer git checkout who need the full .po files
can run "make update-po", which merges the virt-viewer.pot and .mini.po
file to create a .po file containing all the content previously stored
in git.

Conversely if a full .po file has been modified, for example, by
downloading new content from Zanata, the .mini.po files can be updated
by running "make update-mini-po". The resulting diffs of the .mini.po
file will clearly show the changed translations without any of the noise
that previously obscured content. Being able to see content changes
clearly actually identified a bug in the zanata python client where it
was adding bogus "fuzzy" annotations to many messages:

  https://bugzilla.redhat.com/show_bug.cgi?id=1564497

Users working from virt-viewer releases should not see any difference in
behaviour, since the tarballs only contain the full .po files, not the
.mini.po files.

As an added benefit, generating tarballs with "make dist", will no
longer cause creation of dirty files in git, since it won't touch the
.mini.po files, only the .po files which are no longer kept in git.

The languages are minimized in the following commit since it is a
large mechanical process.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-03-12 11:49:41 +00:00
Daniel P. Berrangé
1ba5f91001 po: add rules for integration with zanata
Add rules to handle pushing virt-viewer.pot to zanata, and refreshing .po
files with new content from zanata.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-03-12 11:49:40 +00:00
Daniel P. Berrangé
98503e1a72 po: remove language list from zanata configuration
The <locales> element in zanata.xml is no longer relevant as this info
is recorded server side.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-03-12 11:49:39 +00:00
Daniel P. Berrangé
8089cddfcb po: provide custom make rules for po file management
Historically we have relied on intltool to install a standard
po/Makefile.in.in which has very limited scope for customization.
intltool is deprecated in favour of standard gettextize tools,
but these share the same disadvantages.

Writing make rules for po file management is no more difficult
than any other rules virt-viewer has, so stop using intltool
and don't use gettextize ether.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-03-12 11:49:38 +00:00
Daniel P. Berrangé
cebaaa22ff po: fix syntax error in plural forms for lt language
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-03-12 11:49:19 +00:00
Daniel P. Berrangé
9e2e894673 Add src/virt-viewer-display-vte.c to POTFILES
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2018-12-21 17:19:09 +00:00
Daniel P. Berrange
55c4b04243 Refresh po files from zanata
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2017-12-04 16:39:45 +00:00