Thomas Lamprecht [Tue, 23 Jan 2018 08:33:11 +0000 (09:33 +0100)]
buildsys: refactor building and language initialization
rsync everything in a temporary build directory and let buildpackage
handle the rest.
Has the advantage that both packages can be assembled in one
buildpackage run, whereas previous it was called twice.
Further, we can omit the do `make install` manually before calling
dpkg-buildpackage and use .SECONDARY so that make keeps the files.
It's not used anywhere else in our build systems and not really
needed.
If a new language gets added just run:
make init-XY.po
This won't happen that often, so an auto create has not a real use,
especially as the .po file must then be edited anyway.
Also we now can reuse the new 'messages.pot' target in the 'update'
target and a strict separation between initialising a new language
and updating a existing one seems reasonable.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dominik Csapak [Fri, 19 Jan 2018 11:06:47 +0000 (12:06 +0100)]
make only one po file per language
instead of creating a po file per source package
(that are: pmg-gui, proxmox-widget-toolkit and pve-manager),
but combine the messages from them and create one
po file per language.
to not include unneeded strings in the (pve|pmg)-lang-*.js files,
we use the references value in po2js.pl to filter out unwanted strings
also include a git submodule update in the 'update' target, so that
we get the newest version when updating the po file