From: Claudio Ferreira <filhocf@gmail.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>
Subject: Re: [pve-devel] Updating translations
Date: Mon, 27 Sep 2021 09:23:08 -0300 [thread overview]
Message-ID: <CAC=mJXcFfkNT-gkA6R=9C3wgvFSL2b4Xcr4jMv+Wm3hHo-w9cw@mail.gmail.com> (raw)
In-Reply-To: <CAC=mJXeqNHR044bxqj_x0dae9c270qO-SCLbov=6j8L6mps1+A@mail.gmail.com>
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@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
>
>
prev parent reply other threads:[~2021-09-27 12:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-24 14:00 Claudio Ferreira
2021-09-27 12:23 ` Claudio Ferreira [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAC=mJXcFfkNT-gkA6R=9C3wgvFSL2b4Xcr4jMv+Wm3hHo-w9cw@mail.gmail.com' \
--to=filhocf@gmail.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox