]> git.ipfire.org Git - thirdparty/libvirt.git/commit
remote: stop trying to print help as giant blocks of text
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 18 Jul 2019 11:30:22 +0000 (12:30 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 9 Aug 2019 13:06:22 +0000 (14:06 +0100)
commitd5f0c1b6dd51f0fbab2f8a25733c55d8be6b937b
treecc70f5ebefa916e89b348c047385c80cea91c3b2
parent73663a284e1adf164d4f44f93fdf047fb7b88687
remote: stop trying to print help as giant blocks of text

The remote daemon tries to print out its help text in a couple of giant
blocks of text. This has already lead to duplication of the text for the
privileged vs unprivileged execution mode. With the introduction of more
daemons, this text is going to be duplicated many more times with small
variations. This is very unfriendly to translators as they have to
translate approximately the same text many times with small tweaks.

Splitting the text up into individual strings to print means that each
piece will only need translating once. It also gets rid of all the
layout information from the translated strings, so avoids the problem of
translators breaking formatting by mistake.

Reviewed-by: Christophe de Dinechin <dinechin@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/remote/Makefile.inc.am
src/remote/remote_daemon.c
src/remote/remote_driver.h