[pve-devel] Updating translations

Claudio Ferreira filhocf at gmail.com
Fri Sep 24 16:00:02 CEST 2021


I was taking a look in pt-BR translation and I saw a lot of commented fuzzy
translations at the end of the file. I haven't idea if this strings are or
not necessary, so I I took a peek in Makefile to see what is possible to do.

I saw an option "update" that updates repo and tries to update pot/po
files. When I run this command, it returns an error that I can't resolv.

$ make update
git submodule foreach 'git pull --ff-only origin master'
Entering 'pmg-gui'
>From git://git.proxmox.com/git/pmg-gui
* branch            master     -> FETCH_HEAD
Already up to date.
Entering 'proxmox-backup'
>From git://git.proxmox.com/git/proxmox-backup
* branch              master     -> FETCH_HEAD
Already up to date.
Entering 'proxmox-widget-toolkit'
>From git://git.proxmox.com/git/proxmox-widget-toolkit
* branch            master     -> FETCH_HEAD
Already up to date.
Entering 'pve-manager'
>From git://git.proxmox.com/git/pve-manager
* branch              master     -> FETCH_HEAD
Already up to date.
make do_update
make[1]: Entrando no diretório '/home/claudio/git/proxmox-i18n'

make update_pot
make[2]: Entrando no diretório '/home/claudio/git/proxmox-i18n'

test  -f pmg-gui/Makefile -a -f proxmox-backup/Makefile -a -f
pve-manager/Makefile \
   || git submodule update --init
./jsgettext.pl -p "proxmox-widget-toolkit
c91a73150fdfb9ab7952ae3d1499f26b013f90c1" -o proxmox-widget-toolkit.pot prox
Can't locate PVE/Tools.pm in @INC (you may need to install the PVE::Tools
module) (@INC contains: /etc/perl /usr/local
/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1
/usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 /
usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32
/usr/share/perl/5.32 /usr/local/lib/site_perl)
at ./jsgettext.pl line 5.
BEGIN failed--compilation aborted at ./jsgettext.pl line 5.
make[2]: *** [Makefile:62: update_pot] Erro 2
make[2]: Saindo do diretório '/home/claudio/git/proxmox-i18n'

make[1]: *** [Makefile:68: do_update] Erro 2
make[1]: Saindo do diretório '/home/claudio/git/proxmox-i18n'

make: *** [Makefile:74: update] Erro 2

So, some questions.
* How can we update our po files (in my case, pt-BR)?
* How to resolve this problem?
* When can we see if have an update in pot files?
* How can I try my translation in a personal env?

Claudio Ferreira

More information about the pve-devel mailing list