[pve-devel] Updating translations

Claudio Ferreira filhocf at gmail.com
Mon Sep 27 14:23:08 CEST 2021


Hi

Replying to some of my questions:
* How can we update our po files (in my case, pt-BR)?

You need to install some packages, like make, gettext and any other
requirements listed in output, signed as error. After this, you need to run
the command:

$ make update

After some updates, push some git repo and processing, it will generate the
main pot files for proxmox-widget-toolkit.pot proxmox-mailgateway.pot
pve-manager.pot proxmox-backup.pot > messages.pot, and from this file,
messages.pot, it will update all langs getting old po files, generating a
new file and updating all strings from old file. So, get the fresh po file
for your language and go ahead!

* How to resolve this problem?

My problem was caused by the lack of pve-manager package and its
dependencies. The script need a perl module PVE::Tools. For me, I chose to
do a chroot environment for bullseye and install the no-subscription
repository of Proxmox. Now, works fine.

* When can we see if have an update in pot files?

I appreciate to have this question answered. I saw that I can do it at any
time, but is a good practice to have the translation process better
documented.

* How can I try my translation in a personal env?

I appreciate more yet to have this question answered too.

Em sex., 24 de set. de 2021 às 11:00, Claudio Ferreira <filhocf at gmail.com>
escreveu:

> Hi
>
> 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
> mox-widget-toolkit/
> 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?
>
> Regards,
> Claudio Ferreira
>
>


More information about the pve-devel mailing list