From owner-freebsd-doc@freebsd.org Sun Sep 9 17:01:04 2018 Return-Path: Delivered-To: freebsd-doc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1B5BB10994E8 for ; Sun, 9 Sep 2018 17:01:04 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 9A86379F77 for ; Sun, 9 Sep 2018 17:01:03 +0000 (UTC) (envelope-from mad@madpilot.net) Received: by mailman.ysv.freebsd.org (Postfix) id 5BC6710994E4; Sun, 9 Sep 2018 17:01:03 +0000 (UTC) Delivered-To: doc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 39D0A10994E3 for ; Sun, 9 Sep 2018 17:01:03 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail.madpilot.net (vogon.madpilot.net [159.69.1.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BF37879F71; Sun, 9 Sep 2018 17:01:02 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail (mail [192.168.254.3]) by mail.madpilot.net (Postfix) with ESMTP id 427crR1ldjz6dcG; Sun, 9 Sep 2018 19:00:55 +0200 (CEST) Received: from mail.madpilot.net ([192.168.254.3]) by mail (mail.madpilot.net [192.168.254.3]) (amavisd-new, port 10024) with ESMTP id mUG4btrOLcna; Sun, 9 Sep 2018 19:00:53 +0200 (CEST) Received: from marvin.madpilot.net (host145-124-dynamic.19-79-r.retail.telecomitalia.it [79.19.124.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.madpilot.net (Postfix) with ESMTPSA; Sun, 9 Sep 2018 19:00:53 +0200 (CEST) Subject: Re: Help with generating the translated handbook correctly To: "Danilo G. Baio" Cc: doc@FreeBSD.org References: <7bd73f84-86e7-4695-5a0e-4a6bb0801e16@madpilot.net> <20180908174613.fid3unq2acbaa2nh@dx240.localdomain> From: Guido Falsi Openpgp: preference=signencrypt Autocrypt: addr=mad@madpilot.net; prefer-encrypt=mutual; keydata= xsBNBE+G+l0BCADi/WBQ0aRJfnE7LBPsM0G3m/m3Yx7OPu4iYFvS84xawmRHtCNjWIntsxuX fptkmEo3Rsw816WUrek8dxoUAYdHd+EcpBcnnDzfDH5LW/TZ4gbrFezrHPdRp7wdxi23GN80 qPwHEwXuF0X4Wy5V0OO8B6VT/nA0ADYnBDhXS52HGIJ/GCUjgqJn+phDTdCFLvrSFdmgx4Wl c0W5Z1p5cmDF9l8L/hc959AeyNf7I9dXnjekGM9gVv7UDUYzCifR3U8T0fnfdMmS8NeI9NC+ wuREpRO4lKOkTnj9TtQJRiptlhcHQiAlG1cFqs7EQo57Tqq6cxD1FycZJLuC32bGbgalABEB AAHNHkd1aWRvIEZhbHNpIDxtYWRAbWFkcGlsb3QubmV0PsLAeQQTAQgAIwIbAwIeAQIXgAUL CQgHAwUVCgkICwQWAgMBBQJS79AgAhkBAAoJEBrmhg5Wy9KTc0kH/RO64ORBlTbTHaUaOj8F Je5O5NU2Pt9Cyt5ZWBRvxntr1zPTJGKRPS9ihlIfqT4ZvEngQGp57EUyFbCpI0UWasTerImM tt5WACnGmCzUTB39UXx8Oy4b1EgWeTJQ747e/F1mQLXTNa6ijRBE9fYlTb4gAkPN88/wVV9v 3PZozKLTg16ghBzHM/P7Lk8L7clPEZChX1FTa/6eSt3nvzfCuTMZbBPJF/ph+q1KyPqRgVfh tyhu5dvgMoPz/ni41IfeSrkJTD5RXzdyGR9q4Z1NYeBsLkRjC4LxKAP5KqUsvlOUjKvO1byj ApYdMarol+IGkaSk9e3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IX33T2U9pG8bhu5YVR88FQ8OQ0cEsPBpDncg== Message-ID: <4e27a91c-5da0-60ab-1589-847dcaa9b91a@madpilot.net> Date: Sun, 9 Sep 2018 19:00:41 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180908174613.fid3unq2acbaa2nh@dx240.localdomain> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="LrGPXyd9hLs09B5r1kC5bKj2sqyBJSKP1" X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Sep 2018 17:01:04 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --LrGPXyd9hLs09B5r1kC5bKj2sqyBJSKP1 Content-Type: multipart/mixed; boundary="zzsWmRyOfnRd75L8GgDhPUxGfPo17GvBR"; protected-headers="v1" From: Guido Falsi To: "Danilo G. Baio" Cc: doc@FreeBSD.org Message-ID: <4e27a91c-5da0-60ab-1589-847dcaa9b91a@madpilot.net> Subject: Re: Help with generating the translated handbook correctly References: <7bd73f84-86e7-4695-5a0e-4a6bb0801e16@madpilot.net> <20180908174613.fid3unq2acbaa2nh@dx240.localdomain> In-Reply-To: <20180908174613.fid3unq2acbaa2nh@dx240.localdomain> --zzsWmRyOfnRd75L8GgDhPUxGfPo17GvBR Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 9/8/18 7:46 PM, Danilo G. Baio wrote: > On Sat, Sep 08, 2018 at 05:44:46PM +0200, Guido Falsi wrote: >> Hi, >> >> While translating the handbook to Italian I'm generating in work in >> progress copies of the handbook. I'm following instructions from the >> primer, but I'm not getting exactly what I expect. >> >> In detail some paragraphs from the handbook which do have translations= >> in the po file get anyway rendered in English. >> >> To generate the html file I'm doing: >> >> % cd doc/head/it_IT.ISO8859-15/books/handbook/ >> % cp /path/to/it_IT.po . >> % make tran >> % make FORMATS=3Dhtml >> >> The po file I'm using can be viewed here: >> >> https://github.com/madpilot78/FreeBSD-doc-it/tree/master/books/it_IT >> >> The resulting output is here: >> >> https://people.freebsd.org/~madpilot/ItalianTranslation/handbook.html >> >> If you go the section 1.3 About the FreeBSD Project you can see the >> string of the title itself is in English (should read "Informazioni su= l >> FreeBSD Project"), and also below that in the history part the 1st, 4t= h, >> 5th and 6th paragraphs are in english. >> >> If you look at the .po file you'll see there actually are translations= >> there for these paragraphs, and I also double checked they're not mark= ed >> as drafts. >> >> I'm clearly doing something wrong or missing some point. Anyone so kin= d >> to spare a little time helping me with this? >> >> Thanks in advance! >> >> --=20 >> Guido Falsi >=20 >=20 > Hi. >=20 > This happens because the English document was changed. >=20 > I suggest you to freeze your testing repository with the same revision = at Zanata. >=20 > When the English document is updated, the PO file is merged and all str= ings changed became "fuzzy". >=20 > For instance: >=20 > #. (itstool) path: sect1/title > #: book.translate.xml:2321 > msgid "About the FreeBSDProject" > msgstr "Informazioni sul FreeBSD Project" >=20 >=20 > $ make tran > it_IT.po exists, merging > .......................... > [...] >=20 >=20 > #. (itstool) path: sect1/title > #: book.translate.xml:2323 > #, fuzzy > msgid "About the FreeBSD=A0Project" > msgstr "Informazioni sul FreeBSD Project" >=20 Hi again, I finally solved the problem. My pot file was actually aligned with the local checkout I'm using. The problem was I generated the pot file the wrong way. The correct command was: xgettext -L PO -o handbook.pot it_IT.po Your help has been useful anyway in putting me on the right track! Thanks again! --=20 Guido Falsi --zzsWmRyOfnRd75L8GgDhPUxGfPo17GvBR-- --LrGPXyd9hLs09B5r1kC5bKj2sqyBJSKP1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE8xcgV+F+Tjo9pZ4dGuaGDlbL0pMFAluVUcQACgkQGuaGDlbL 0pO7KwgAzALeIqR3rToo7vq33v27kvbOfjh+u8k24RkCk3FIx5u5N0GLAJ6+Oc/j xzYKtrdXRskgf26VIWX5juby/uMlx8wMr/JtxCJ/XKui3Q/2YUZQBPSNJDCVk/Ul IVDgXBW9pvRmdFM9RB2qNSaH6CAGzQHq3mPZBiiJmch5RlgBQA8DxwE/0Uw717Yu 8btvhbGS2QYTMtoEKaB9pvPLmr5+u5yiVr8dozT7PJIJbBYOqv7ByKx/9lqIcKRS 4nBMWn+juQzKhUnhzE6j8CdynQn4wNsi1TZ8fbiaUGaP5pxc18QmEzXY4zGESBBJ 76RbBMeDQcbdTisSU+/7dBvFVjmUhw== =vuuD -----END PGP SIGNATURE----- --LrGPXyd9hLs09B5r1kC5bKj2sqyBJSKP1--