Message ID | 20210414120234.2761-1-valter.jansons@gmail.com |
---|---|
State | Superseded |
Headers |
Return-Path: <location-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4FL1MD4XKmz40R0 for <patchwork@web04.haj.ipfire.org>; Wed, 14 Apr 2021 12:03:04 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4FL1MD2JwhzYc; Wed, 14 Apr 2021 12:03:04 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4FL1MD1PXDz2xcW; Wed, 14 Apr 2021 12:03:04 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4FL1MC1J74z2xS8 for <location@lists.ipfire.org>; Wed, 14 Apr 2021 12:03:03 +0000 (UTC) Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4FL1MB2QkFzYc for <location@lists.ipfire.org>; Wed, 14 Apr 2021 12:03:02 +0000 (UTC) Received: by mail-ej1-x630.google.com with SMTP id e14so30969995ejz.11 for <location@lists.ipfire.org>; Wed, 14 Apr 2021 05:03:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=16kyUav/RNCw2BHs3vlu/fUVNDfSLvdo5gTlN4QITak=; b=TQ3J+HkAv0TkkLtxNIF5JR+OeBTq39SngbAWnqbNBi+6ip9gop7NxeZ2ZhJJGPjb0V G78fblqWhbtuYMn8vG46FbHI7adxDm5Hu20uHGwJdTmpWApr/YiTdy12vHxMdwyj2UCI bR4bCogdsZlvguOW0gKMwUbPcXLS+uqLVkgk8GxcQqjkhoswfd8AAKuoAxd+d4nX2TFp 1MD2ZtlXoXNt5uDR0JQUrpPn5vB9IIBwqj0ym2UQ87kYxSfLrkTxSmeLapy4SxJxnaq8 UUMsR4vBYei3cvbMp/zWE/Ixv9bfm+eRQI0fqF2XACr1wF5cvR8wQg6aY/LOfHq/6TBh 8bpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=16kyUav/RNCw2BHs3vlu/fUVNDfSLvdo5gTlN4QITak=; b=YdYoTPWBuVRsUDow03+PQSQypq6HnstYEpeUJ1/9KBWxikk3RG6RFYuG8RePk9gocz mPqCXLi7Skti5TRaZ3JpwhF+rvTTNzZUwlrWgur0tDewfQgN5YmXrcF9WmRXsNO5oJv+ LlgvT3j0mhyfVA5P5XTivo3Y8p3lAkv3IGAlhskyDoq9XNeBIC3+uvrrEhTt4caplVqc uXUgbr+jE85nL98nqipQpCAfWQLnMJXcYNtAzjTOUhFLwIlG7Nd0au2g0v874BV1OMby Xr7YfOvR+wX0nSqpSO7OKJVaOneOjJOGzSqo8RrnsApJFH/iRXea7ShzVV+da+CsXwDs /xAA== X-Gm-Message-State: AOAM531w3NK/U7srOnMVMLKOYDCvfgoj0JCLODLtEPDkms2SIg44XGi3 PvF8ty6IGtvxIBiS8jY3RHwy+2tyDjht7w== X-Google-Smtp-Source: ABdhPJwLrMbKoV5J+lB0tbUeUIHzRJCGMhFVNib8zgYtIsaHFT3j8RCPnAc25BIt8mU7BbwhRDpBWQ== X-Received: by 2002:a17:907:6289:: with SMTP id nd9mr36735972ejc.384.1618401781316; Wed, 14 Apr 2021 05:03:01 -0700 (PDT) Received: from DESKTOP-30GCCHK.localdomain ([80.232.183.114]) by smtp.gmail.com with ESMTPSA id s12sm11664314edx.18.2021.04.14.05.03.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Apr 2021 05:03:00 -0700 (PDT) From: Valters Jansons <valter.jansons@gmail.com> To: IPFire Location Mailing List <location@lists.ipfire.org> Subject: [PATCH v2] po: Update translations Date: Wed, 14 Apr 2021 15:02:34 +0300 Message-Id: <20210414120234.2761-1-valter.jansons@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1618401782; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=16kyUav/RNCw2BHs3vlu/fUVNDfSLvdo5gTlN4QITak=; b=Md1kbj5Ix2HYXZqywabNQe9kB2HaRHlokjh44kR5W6Jo9Sj5oegwRZ+BGD0TSCep4WvlpZ G+YIVuNQDeoH2XgNGq7SBfI/oLCOu9TahtDU6E26bZaY+6ZKJg2eDX/HI0XJYCOeqbd/Mc EqHAm+3PNVBeGxF4HeOUKvptWduioVOFipfidzdmANe1p+RgxdfYFHy30hRz7yKoNmjHfu ZSMfr301bJuzRfW/Uyidpq66ubviOIQq1x1q2GeTmxslTMHQBC9E5azhRLN5W1NS3ZIJvX fv/AY6t3Mc1aEsGhgP91kKOZ0qHyGfNNOjcuuzKN6AhdEcRbnWuRSbMyMC0c+w== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=TQ3J+HkA; spf=pass (mail01.ipfire.org: domain of valterjansons@gmail.com designates 2a00:1450:4864:20::630 as permitted sender) smtp.mailfrom=valterjansons@gmail.com ARC-Seal: i=1; s=202003rsa; d=lists.ipfire.org; t=1618401782; a=rsa-sha256; cv=none; b=qLBAXusXrW2S1PwqXrOHxqBXDocPhlI8DOczICgecYg4w58jdVq/EOMaKCke4vZoTNrqQJ SQUjp455rdkx4itSVZuAvCOXW0YsfQRxatDazAMBGjccVl1Gce00cU5VAxT2a/88ShXpT0 r9v7MPoPG22wl+a2LqrsC8Ygg1wuyqoCpIh6tZtGNgvTWCa1T80h7nWDpKoOl+ae16YEOW PSU9/MuGDI7k9WSYNu8ti3qnYj+txXi8LJFfx3EqLF7CDherVei+JGWN0cUeakb+G/BsrR DqbiVsJ8Xc+bfyR77Cldli/zhmJ3zwI3UOOJuUmTj12rwiwQP61h61AefQzDEQ== X-Rspamd-Server: mail01.haj.ipfire.org X-Spamd-Result: default: False [-1.71 / 11.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; R_MISSING_CHARSET(2.50)[]; BROKEN_CONTENT_TYPE(1.50)[]; ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; IP_REPUTATION_HAM(-0.71)[asn: 15169(-0.21), country: US(-0.01), ip: 2a00:1450:4864:20::(-0.14)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; BAYES_HAM(-3.00)[99.99%]; FROM_HAS_DN(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[location@lists.ipfire.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::630:from]; NEURAL_HAM(-1.00)[-1.000]; FREEMAIL_CC(0.00)[gmail.com]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4FL1MB2QkFzYc Authentication-Results: mail01.ipfire.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=TQ3J+HkA; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mail01.ipfire.org: domain of valterjansons@gmail.com designates 2a00:1450:4864:20::630 as permitted sender) smtp.mailfrom=valterjansons@gmail.com X-BeenThere: location@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <location.lists.ipfire.org> List-Unsubscribe: <https://lists.ipfire.org/mailman/options/location>, <mailto:location-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/location/> List-Post: <mailto:location@lists.ipfire.org> List-Help: <mailto:location-request@lists.ipfire.org?subject=help> List-Subscribe: <https://lists.ipfire.org/mailman/listinfo/location>, <mailto:location-request@lists.ipfire.org?subject=subscribe> Errors-To: location-bounces@lists.ipfire.org Sender: "Location" <location-bounces@lists.ipfire.org> |
Series |
[v2] po: Update translations
|
|
Commit Message
Valters Jansons
April 14, 2021, 12:02 p.m. UTC
The POTFILES.in is regenerated based on a fresh checkout of the
repository. As the src/python/__init__.py file is not present in
the tree, it's being removed from POTFILES.in.
Signed-off-by: Valters Jansons <valter.jansons@gmail.com>
---
po/POTFILES.in | 3 +--
po/de.po | 5 ++---
2 files changed, 3 insertions(+), 5 deletions(-)
Comments
Hello Valters, We have a command that automatically generates this file which would not respect this change: make update-po Do you have a way to modify the find/grep construction so that it won’t include any files when a “.in” file is available. Maybe .gitignore is useful here, too? -Michael > On 14 Apr 2021, at 13:02, Valters Jansons <valter.jansons@gmail.com> wrote: > > The POTFILES.in is regenerated based on a fresh checkout of the > repository. As the src/python/__init__.py file is not present in > the tree, it's being removed from POTFILES.in. > > Signed-off-by: Valters Jansons <valter.jansons@gmail.com> > --- > po/POTFILES.in | 3 +-- > po/de.po | 5 ++--- > 2 files changed, 3 insertions(+), 5 deletions(-) > > diff --git a/po/POTFILES.in b/po/POTFILES.in > index 9088986..5d2cc46 100644 > --- a/po/POTFILES.in > +++ b/po/POTFILES.in > @@ -1,11 +1,10 @@ > src/libloc.pc.in > +src/python/__init__.py.in > src/python/database.py > src/python/downloader.py > src/python/export.py > src/python/i18n.py > src/python/importer.py > -src/python/__init__.py > -src/python/__init__.py.in > src/python/location-importer.in > src/python/location.in > src/python/logger.py > diff --git a/po/de.po b/po/de.po > index c35f348..7083958 100644 > --- a/po/de.po > +++ b/po/de.po > @@ -7,7 +7,7 @@ msgid "" > msgstr "" > "Project-Id-Version: libloc 0\n" > "Report-Msgid-Bugs-To: \n" > -"POT-Creation-Date: 2020-08-04 15:44+0000\n" > +"POT-Creation-Date: 2021-04-14 12:00+0000\n" > "PO-Revision-Date: 2018-02-01 14:05+0000\n" > "Last-Translator: Michael Tremer <michael.tremer@ipfire.org>\n" > "Language-Team: German\n" > @@ -217,8 +217,7 @@ msgstr "" > msgid "AS%(asn)s belongs to %(name)s" > msgstr "" > > -#, python-format > -msgid "The datase has recently be updated recently (%s)" > +msgid "The database has been updated recently" > msgstr "" > > msgid "You must at least pass one flag" > -- > 2.31.1 >
On Wed, Apr 14, 2021 at 6:20 PM Michael Tremer <michael.tremer@ipfire.org> wrote: > We have a command that automatically generates this file which would not respect this change: > > make update-po $ git clone git://git.ipfire.org/location/libloc.git $ cd libloc $ autoreconf --install --symlink $ intltoolize --force --automake $ ./configure --prefix=/usr --sysconfdir=/etc --libdir=/lib $ rm po/POTFILES.in && make po/POTFILES.in $ make update-po For me this appears to produce the exact diff that has been provided in the v2 patch. > Do you have a way to modify the find/grep construction so that it won’t include any files when a “.in” file is available. Maybe .gitignore is useful here, too? Which target in which Makefile do you believe needs further modifications? I really feel like I am missing something here. --Valters
Hello, > On 14 Apr 2021, at 16:51, Valters Jansons <valter.jansons@gmail.com> wrote: > > On Wed, Apr 14, 2021 at 6:20 PM Michael Tremer > <michael.tremer@ipfire.org> wrote: >> We have a command that automatically generates this file which would not respect this change: >> >> make update-po > > $ git clone git://git.ipfire.org/location/libloc.git > $ cd libloc > $ autoreconf --install --symlink > $ intltoolize --force --automake > $ ./configure --prefix=/usr --sysconfdir=/etc --libdir=/lib > $ rm po/POTFILES.in && make po/POTFILES.in > $ make update-po > > For me this appears to produce the exact diff that has been provided > in the v2 patch. After running those commands I see the following diff which almost entirely reverts all changes in your patch: root@michael:/build/libloc# git diff diff --git a/po/POTFILES.in b/po/POTFILES.in index 5d2cc46..9088986 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,10 +1,11 @@ src/libloc.pc.in -src/python/__init__.py.in src/python/database.py src/python/downloader.py src/python/export.py src/python/i18n.py src/python/importer.py +src/python/__init__.py +src/python/__init__.py.in src/python/location-importer.in src/python/location.in src/python/logger.py diff --git a/po/de.po b/po/de.po index 7083958..042e52a 100644 --- a/po/de.po +++ b/po/de.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: libloc 0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-04-14 12:00+0000\n" +"POT-Creation-Date: 2021-04-14 10:04+0000\n" "PO-Revision-Date: 2018-02-01 14:05+0000\n" "Last-Translator: Michael Tremer <michael.tremer@ipfire.org>\n" "Language-Team: German\n" >> Do you have a way to modify the find/grep construction so that it won’t include any files when a “.in” file is available. Maybe .gitignore is useful here, too? > > Which target in which Makefile do you believe needs further modifications? > > I really feel like I am missing something here. What we would need is to have the command that generates POTFILES.in a mechanism that reads .gitignore and filters out what we do not want (in this case __init__.py). Does that sound like it makes sense? https://git.ipfire.org/?p=location/libloc.git;a=blob;f=Makefile.am;h=e8ee791d57366088e9bcf9919e5eb8db4980f39d;hb=HEAD#l81 -Michael > > --Valters
On Thu, Apr 15, 2021 at 1:58 PM Michael Tremer <michael.tremer@ipfire.org> wrote: > After running those commands I see the following diff which almost entirely reverts all changes in your patch: Strange -- I wonder where the .py file comes from for you. > What we would need is to have the command that generates POTFILES.in a mechanism that reads .gitignore and filters out what we do not want (in this case __init__.py). > > Does that sound like it makes sense? Yes. I sent in a v3 patch which uses git-check-ignore for this purpose. I would really like to avoid working with the .gitignore files directly for the sake of avoiding complex loops with the various .gitignore files that could live in all kinds of subdirectories, along with managing exclusions that are valid in .gitignore. --Valters
diff --git a/po/POTFILES.in b/po/POTFILES.in index 9088986..5d2cc46 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,11 +1,10 @@ src/libloc.pc.in +src/python/__init__.py.in src/python/database.py src/python/downloader.py src/python/export.py src/python/i18n.py src/python/importer.py -src/python/__init__.py -src/python/__init__.py.in src/python/location-importer.in src/python/location.in src/python/logger.py diff --git a/po/de.po b/po/de.po index c35f348..7083958 100644 --- a/po/de.po +++ b/po/de.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: libloc 0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-08-04 15:44+0000\n" +"POT-Creation-Date: 2021-04-14 12:00+0000\n" "PO-Revision-Date: 2018-02-01 14:05+0000\n" "Last-Translator: Michael Tremer <michael.tremer@ipfire.org>\n" "Language-Team: German\n" @@ -217,8 +217,7 @@ msgstr "" msgid "AS%(asn)s belongs to %(name)s" msgstr "" -#, python-format -msgid "The datase has recently be updated recently (%s)" +msgid "The database has been updated recently" msgstr "" msgid "You must at least pass one flag"