1523 Commits

Author SHA1 Message Date
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
Pino Toscano
e4e6462818 mime: rename <_comment> to <comment>
Since gettext is used to extract this file, there is no more need to
prefix the translatable tags with underscore as intltool required.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-25 06:51:10 +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
7f3317e578 VM selection: sort items
Even if the view has search capabilities built-in, show the VM names
sorted so it is easier to visually search for them.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-24 13:01:57 +00:00
Pino Toscano
4b7f2ac0ec Use VM descriptions if available
When listing the running VMs in a libvirt connection, use the
descriptions as tooltips if available.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-24 13:01:57 +00:00
Pino Toscano
e2abe953ed VM selection: expand models for tooltip column
Add a new column in the list models for the VM selection dialog, and use
this new column to hold the tooltip of the items in the list.

At the moment nothing is set in the new column, so there is no behavior
change.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-24 13:01:57 +00:00
Pino Toscano
2e46ffc08d Use VM titles if available
When listing the running VMs in a libvirt connection, use the titles if
available.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-24 13:01:57 +00:00
Pino Toscano
74d25742ea VM selection: expand models for UI/key columns
Add a new column in the list models for the VM selection dialog, and use
this new column to hold the key of the VM. This way, the first column
represents the UI representation of the VM without affecting the key.

At the moment the VM name is set for both, so there is no behavior
change.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-24 13:01:57 +00:00
Pino Toscano
c28374d8a8 Unconditionally use virDomainOpenGraphicsFD
libvirt 1.2.8 is required now.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-24 11:38:16 +02:00
Pino Toscano
00515915e5 build: bump libvirt requirement to 1.2.8
It was released almost 6 years ago, so already available for a long time
in supported distributions. This way, it is possible to use
virDomainOpenGraphicsFD without checks.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-24 11:38:16 +02:00
Pino Toscano
e05169c0e8 Modernize AppStream file
- use the "desktop-application" component instead of the old "desktop"
- do not specify a type for the id, and remove the .desktop suffix;
  it is implicit for type=desktop-application
- move the URLs of screenshots within <image> tags
- simply remove the non-standard <updatecontact>, instead of converting
  it to <url type="contact">, as it is the same
- add URLs for the bug tracking, and the translation system

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-23 16:43:59 +02:00
Pino Toscano
05de79c4db build: appdata -> metainfo
Rename our makefile bits to metainfo as better naming.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-23 16:43:04 +02:00
Pino Toscano
e1e345a9a3 Install the AppStream file to the canonical location
The canonical location for AppStream XML files has been changed to
/usr/share/metainfo four years ago at least, with /usr/share/appdata
left as legacy location. It is time to switch to the right location.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-23 16:41:41 +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
35443daed4 Remove unused i18n translation
All the g_printerr does is printing the message of the GError with a
newline at the end. Hence, use a simple format string without the need
to translate it.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-23 12:01:52 +02:00
Pino Toscano
0325901984 Create single strings for the window title
Currently there is a strings with four placeholders that represents
optional bits: the "press to release", a whitespace (!), the subtitle,
and the application title. This is suboptimal, because it hides the way
the title is composed, and makes it hard to properly translate.

Instead of this string puzzle, create separate strings for each case
(there are only four of them, and one is only the application title).
Each of the string has all the static text availale, with a proper
comment explaining the layout.

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
debedd40d1 Disambiguate "unknown" messages
Give them a context to explain what is the "unknown thing", so it is
possible to provide proper translations.

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
Pino Toscano
8db413e689 Fix few spellings
"ID", "oVirt", "SSH", "UNIX", "URI", "UUID"

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-23 12:01:52 +02:00
Pino Toscano
b2a2a02b5b Show localized accelerators in Send key menu
Turn the menu labels into GTK accelerator strings, so we can parse them
to convert them into a proper user representation.

There is a small behaviour change: the menu items do not have mnemonics
anymore by default.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-23 12:01:38 +02:00
Pino Toscano
671f79bd7d ui: improve homepage in about dialog
Switch the homepage URL to https, and synchronize the label with the
URL. Also, do not make the label translatable, as it is pointless (it is
only a URL).

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-22 12:08:25 +02:00
Pino Toscano
44c03148f1 ui: use the standard about dialog license type
Use the standard gpl-2-0 license type of GtkAboutDialog, instead of the
custom license text: this way, the dialog will show a translated text
with the license type, and a link to the full license text.

As side change due to the editing of this file in glade 3.36: set the
logo icon name to "virt-viewer", even if at runtime a logo/image will be
loaded. glade needs a logo set, either as icon name or as pixmap.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-22 12:04:33 +02:00
Frediano Ziglio
522cca5ac1 virt-viewer-file-transfer-dialog: Reports detailed errors
Instead of showing just a generic error with a list of files group
files by error and show them.

This solves https://bugzilla.redhat.com/show_bug.cgi?id=1753563

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2020-07-15 10:52:24 +01:00
Frediano Ziglio
ae25f6ca6b More specific key accelerator description
The default key accelerator to release mouse if left control and
left alt but the current description is "Ctrl+Alt", change to
"Ctrl_L+Alt_L" to avoid misunderstanding.

This solves https://bugzilla.redhat.com/show_bug.cgi?id=1548371

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2020-07-15 08:13:45 +01: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é
9562e0cbcd ci: adapt for meson 0.55 change in cross compilers
Previously meson searched $PATH for libgcrypt-config, but it no longer
does this for cross-builds.

The dockerfile changes can be dropped when the following hits rawhide
container images:

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

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-07-13 18:54:11 +01:00
Frediano Ziglio
2f0d080179 iso-dialog: Fix leak and quoting
Do not leak memory in case of task cancelled.
Quote "msg" in case it contains some no-xml character that could
came from translated strings.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2020-07-10 09:11:52 +01:00
Frediano Ziglio
8297a178c4 Minor updates to accel_key_to_keys
Make "modifiers" static, potentially avoids a copy to stack.
Use G_N_ELEMENTS also to allocate keys, as in the next loop
allowing to easily change "modifiers" size.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2020-07-10 09:11:52 +01:00
Frediano Ziglio
ff11d5937e iso-dialog: Give less scary error if there are no ISOs
Instead of a fail simply reply that there are no ISO files.

Message text was suggested by Radek Duda who reported the issue.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2020-07-10 09:11:19 +01:00
Eduardo Lima (Etrunko)
53dcc7fe52 foreign-menu: Avoid leaking 'name' variable in error path
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2020-07-01 11:14:38 -03:00
Daniel P. Berrangé
82a0612cc8 gitlab: add coverage of mingw builds
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-06-26 15:50:50 +01:00
Daniel P. Berrangé
a0f4d1490a gitlab: add builds on CentOS 8 Stream
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-06-26 15:50:50 +01:00
Daniel P. Berrangé
aa4482a223 gitlab: refactor recipe for native builds
Currently on every distro we build against the latest git libvirt
and related deps. We need to test multiple axis:

 - A variety of libvirt versions
 - A variety of distro versions

So this changes most jobs to build against the distro provided
libvirt and related deps. The CentOS 8 job is kept building
against latest git master libvirt and deps.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-06-26 15:50:50 +01:00
Daniel P. Berrangé
42752d3ff0 data: replace unix2dos with sed
This avoids needing to install extra packages in the CI system

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-06-26 15:50:50 +01:00