From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id AF6AD6D1D9 for ; Mon, 27 Sep 2021 14:23:28 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 9A7C821AA6 for ; Mon, 27 Sep 2021 14:23:28 +0200 (CEST) Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 905F721A90 for ; Mon, 27 Sep 2021 14:23:26 +0200 (CEST) Received: by mail-lf1-x130.google.com with SMTP id u8so75814628lff.9 for ; Mon, 27 Sep 2021 05:23:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=UDPU8xNpP2Wbl+tEsRbuhSP8P31JLyMhWHj9gNwdNBg=; b=XJKGYC5eAtdEcf2pG/jI2H+XrzNDvZ0IF/w9I3lf2N4wSyhFRR9MATFDXyNK/gjAmu HuNSO2WDfGgBihpySmmnKJgCYtqm7hoWLGXQ61mTypgGienvNMd/iVelCDqUcSdUQ/J4 6LYAHHVxuHl/LrdHEAC552Bb4x6oMkXRBSmHzBwfrYdBufLRL5FCAieFaUSQRbGAfjne JBEEeuGVn1yTZTGsftNCWLe2sqXBEdaHwFokMFlAFkVW+CGcRPmyZxlOJXOuNjaKiW97 Ww2+LCtKGdQLiNgmZtXRrH6+Kzarm6JtA7P7CecjLVFXLcIqsg8Z+/HPCTxanyqX6RsL Bnzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=UDPU8xNpP2Wbl+tEsRbuhSP8P31JLyMhWHj9gNwdNBg=; b=rz0s/rRBVUca1oCWBygFEZPQtprDEZxJrTdZRM1u+5QZ9qD3yNH3LTL0dRMI+5A05h CUhS1NLLydHTtVhBsRPhyTn41kbDT0quu6iAjG5157jpzK7HjhyBfJToEDeJUigYhioW by6adahdj10HFvHKxJQWMgt/zzJNpCC3a9lMCxnjFxYInKpRHt68mrioIsV0iUW8CEQn rvMfEzVxO/v1c5YdIVoOAAL5nP10nBbjyTlc08ge3TlZdLDn2hTIOy3rcuycIibBFOxD dGogWcTp+J8PgmwWd7kIZ0VVx/4UcXINTizvFksKc9u+NuzmpILNvxLWwTz1bGEPXljP 32BQ== X-Gm-Message-State: AOAM531MOt9B+s3e3fOPShU1DB6KxRbqh+Nh3mLy3oTzx0Be5zMEEExD +p2lL8FxCvkYMFVCKYBUxJMr9YFFgmGXHFuJV4uXLqnRd7DNVg== X-Google-Smtp-Source: ABdhPJxflBhfh3LwcMDqN9TmIwyk+avcUOXzGApXJhH+5iw9qqLZU/vQRjudbGmymwVT6ltqvNCHwMCXAbm8lwAmgXk= X-Received: by 2002:a05:6512:1196:: with SMTP id g22mr24925814lfr.449.1632745399399; Mon, 27 Sep 2021 05:23:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Claudio Ferreira Date: Mon, 27 Sep 2021 09:23:08 -0300 Message-ID: To: Proxmox VE development discussion X-SPAM-LEVEL: Spam detection results: 0 AWL 0.066 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain FREEMAIL_FROM 0.001 Sender email is commonly abused enduser mail provider HTML_MESSAGE 0.001 HTML included in message RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [pve-devel] Updating translations X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2021 12:23:28 -0000 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 =C3=A0s 11:00, Claudio Ferreira 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=C3=B3rio '/home/claudio/git/proxmox-i18n' > > make update_pot > make[2]: Entrando no diret=C3=B3rio '/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 p= rox > 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=C3=B3rio '/home/claudio/git/proxmox-i18n' > > make[1]: *** [Makefile:68: do_update] Erro 2 > make[1]: Saindo do diret=C3=B3rio '/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 > >