From nobody Fri Apr 21 00:15:45 2023 X-Original-To: dev-commits-doc-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q2Zmx6Rjjz46p40 for ; Fri, 21 Apr 2023 00:15:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q2Zmx5vnJz40MR; Fri, 21 Apr 2023 00:15:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682036145; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Z3EKaMkpcT8XXDYg8IkEMA4+lnxbmFGcwsgN2nKvS6g=; b=mW57bTjHUaKzCAK/w+KwvIumtDwElYM2n0VZJe0lJuLGMjW4L1sGdRUtCe+AYSwsNpaY1M 28i2WTtqrpvcwXorbM5B/a/Ub+IXBQ968KPh79PyHOgwJbUxSm6wcczVabL0GaqVVFu2mY 0SLKh6UELjmkjSFmzphk2dAZYNOTansbpg9SlTvZlsZuaYJB4M5YsaAMGt3qowzSNngwLq Nerr+IFlMf2dpaj4XbHVHslGcCl4GunHtQ9Hc5UJuY3WG9yodar9aOLtyatg1Qz4Nf2w7O RnyMT73iJvjVO4HYEZPXcDhrI5YSp72AuNMvGdHfB1ibvHRdmkWic7QHdoUfzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682036145; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Z3EKaMkpcT8XXDYg8IkEMA4+lnxbmFGcwsgN2nKvS6g=; b=mUsuk/K1Bsov4mCjh/g1St2hA67mv2tw7H84dosRctgZn+L7PbqPVB4hHUFRqxhwHgAzps jIw3O4EORI6JJ580nqQHUa4niSKojlEb66vnQzWbOdc5XH2OOGxgW8JkgBwkR4WDN8OdYB PuiY+XiZ0LFvde5eUQtGLu5zxkVj9dMT3VpM5AmXlsVlyIxKAnrO4GyBpww1D8XUflJQlP s3YXZB1xN3DqqD+Huz6smrqaPYj9r1BcdgtGHLzGCObh4S0CL77Jg1BiQV/GBz+0udFvS7 +Gdo/XkXRExIKwf4ljbKiSwO0yCJwAaxNgZ3/ofK0mgdLgn28/v1YWKbNDi3Ww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682036145; a=rsa-sha256; cv=none; b=T4aSqycGNmYVanFu+6unAJzbZF7r4HF4XQz6tmSO3fAzIP3enrpeLlTjff5QyXYjPXigB3 1VsYEbSoJ1THFHHb5GEKKa8tcYtKMTZsOakxccid02xxTlV8rQMRUX/ytos5C9lRy7aP+h XnaDeeti4D/8ouTPfH/hh8AGWIHcvyw3MmtReNypWQFpaliAWA2cvXNvTprMlDoz3wP4BS uhFzaHUd0g/cT5wDVPvKfpRQcNCsSp8pSno+SF94jApPQqr28bEp4bL7z2Dzo2fTL3iqnp 3stc9X4ioYr4orNkXadICva4ilUjaWmd7KO0KJpCjDPvNO4HIZTKwKPJzLbO8A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q2Zmx4v0NzyRy; Fri, 21 Apr 2023 00:15:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33L0Fj1l037957; Fri, 21 Apr 2023 00:15:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33L0Fj03037956; Fri, 21 Apr 2023 00:15:45 GMT (envelope-from git) Date: Fri, 21 Apr 2023 00:15:45 GMT Message-Id: <202304210015.33L0Fj03037956@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: "Danilo G. Baio" Subject: git: 8fd03d23ef - main - tools/translate: Use po4a-updatepo to extract strings from the source files List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-doc-all@freebsd.org X-BeenThere: dev-commits-doc-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dbaio X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8fd03d23efc4443ec6260bbff2520a2bc556c5a5 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dbaio: URL: https://cgit.FreeBSD.org/doc/commit/?id=8fd03d23efc4443ec6260bbff2520a2bc556c5a5 commit 8fd03d23efc4443ec6260bbff2520a2bc556c5a5 Author: Danilo G. Baio AuthorDate: 2023-04-21 00:14:01 +0000 Commit: Danilo G. Baio CommitDate: 2023-04-21 00:14:01 +0000 tools/translate: Use po4a-updatepo to extract strings from the source files --- tools/update_translate_template.sh | 37 ++++++++++++------------------------- 1 file changed, 12 insertions(+), 25 deletions(-) diff --git a/tools/update_translate_template.sh b/tools/update_translate_template.sh index 00509a031b..d205decc38 100755 --- a/tools/update_translate_template.sh +++ b/tools/update_translate_template.sh @@ -76,31 +76,18 @@ for component in $COMPONENTS; do dirbase=$(dirname "$document") echo "$document" - if [ -f "$dirbase/$name.po" ]; then - po4a-updatepo \ - --format asciidoc \ - --option compat=asciidoctor \ - --option tablecells=1 \ - --option yfm_keys=title,part,description \ - --master "$document" \ - --master-charset "UTF-8" \ - --copyright-holder "The FreeBSD Project" \ - --package-name "FreeBSD Documentation" \ - --po "$dirbase/$name.po" - if [ -f "$dirbase/$name.po~" ]; then - rm -f "$dirbase/$name.po~" - fi - else - po4a-gettextize \ - --format asciidoc \ - --option compat=asciidoctor \ - --option tablecells=1 \ - --option yfm_keys=title,part,description \ - --master "$document" \ - --master-charset "UTF-8" \ - --copyright-holder "The FreeBSD Project" \ - --package-name "FreeBSD Documentation" \ - --po "$dirbase/$name.po" + po4a-updatepo \ + --format asciidoc \ + --option compat=asciidoctor \ + --option tablecells=1 \ + --option yfm_keys=title,part,description \ + --master "$document" \ + --master-charset "UTF-8" \ + --copyright-holder "The FreeBSD Project" \ + --package-name "FreeBSD Documentation" \ + --po "$dirbase/$name.po" + if [ -f "$dirbase/$name.po~" ]; then + rm -f "$dirbase/$name.po~" fi done done