From owner-freebsd-translators@freebsd.org Sun Mar 28 21:43:35 2021 Return-Path: Delivered-To: freebsd-translators@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 01F485B08C3 for ; Sun, 28 Mar 2021 21:43:35 +0000 (UTC) (envelope-from dbaio@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F7q2t6mwVz3hWL; Sun, 28 Mar 2021 21:43:34 +0000 (UTC) (envelope-from dbaio@FreeBSD.org) Received: from t480.local (unknown [177.132.127.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: dbaio/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 33A4D22165; Sun, 28 Mar 2021 21:43:34 +0000 (UTC) (envelope-from dbaio@FreeBSD.org) Date: Sun, 28 Mar 2021 18:43:29 -0300 From: "Danilo G. Baio" To: Fernando =?utf-8?Q?Apestegu=C3=ADa?= Cc: freebsd-translators@freebsd.org Subject: Re: How to test Weblate translated article Message-ID: <20210328214329.3ibfejhfmk5jiwel@t480.local> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="anbue5c32wo4odcd" Content-Disposition: inline In-Reply-To: X-BeenThere: freebsd-translators@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Translators List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Mar 2021 21:43:35 -0000 --anbue5c32wo4odcd Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 28, 2021 at 08:01:03PM +0200, Fernando Apestegu=EDa wrote: > Hi all, >=20 > I want to test a couple of articles that are already translated in > Weblate. None of them have a directory in es/articles yet. I can > download the .po file, but I don't know how to get from there to the > _index.adoc :-) >=20 > I read this: >=20 > https://wiki.freebsd.org/DocTranslationOnWeblate#Building_the_Translated_= Document >=20 > but it seems to me that the information is outdated or I missed > something because I can not "make tran" in any article. >=20 > How can I build test the article so I can inspect the final result? >=20 > Thanks! Hi Fernando. I've just updated the build instructions[1], thanks. Basically is this: $ git clone https://github.com/doc-br/freebsd-doc-weblate && cd freebsd-doc= -weblate # for pt_BR Language $ KEEP_ENV=3D0 ./tools/translate.sh documentation pt_BR # or, translate only .PO files with more than 80% of translations $ ./tools/translate.sh documentation pt_BR # Necessary step only for Weblate languages that don't use the # same directory name in the project. # 'pt_BR' needs; 'es' don't; $ cp -aRfv documentation/content/pt_BR/* documentation/content/pt-br/ # This will build the 'documentation' and 'website' $ make # This will build only the 'documentation' $ make documentation The script 'tools/translate.sh' is not in the upstream yet, I'll submit it soon. For your recent work, you can check the output from Jenkins here [2] and [3]. Regards. 1 - https://wiki.freebsd.org/DocTranslationOnWeblate#Building_the_Translate= d_Document 2 - https://ci.fugbr.org/files/24/ 3 - https://ci.fugbr.org/files/24/documentation/es/articles/leap-seconds/ --=20 Danilo G. Baio (dbaio) --anbue5c32wo4odcd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEORj0UTsjzCy+enIkmpN7LfMuiNcFAmBg+H1fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDM5 MThGNDUxM0IyM0NDMkNCRTdBNzIyNDlBOTM3QjJERjMyRTg4RDcACgkQmpN7LfMu iNfGTQ//biOn2gAOnGbrPyhmoJT8fec4YJOy22RGRoY0HHsJ1ocwI1yoEps9CH80 IcEyxyxsplS4eTstQpbjj5is3bs9eIbDTmbKDh3H1AX5qJ0oKxQbTu36Q0k2SIvl 2WZvIkf3eFWZagWKDditxu2ZrlfJXhE8JQ0/IlhzcnWhXNwzA4XFTb0ZIhuyfU5m lZoq9L51xsZGmNzu3sOLv5FYmJkv2orXLlMkIIZOZv6SbFMX70I5BUd+A5oGotGX 6Djt/zpAyrmt66/7qXfRNMQkFBMdNF5toXTaAU9HsCRbcVPXyxoeZ3nKvVKqMwBR B1mXwPXlEzKb8vOZYbY+TcoeMToJ0juQPuF9FEuDiinDPLherToBlJUHV7tC2R92 0ZWPJPlEb44c4lgGYTVjX+Y0qAdZkNGq21hqGVYduu5Obd2jOPlMpgDfo6ouNf72 75c8iVENoYrGbeU5uUKwupQzGvsAolJ7A39JyzDEs2f8eE1EGJUtlsTPIDGIX3TE qeuobVBZ1MBKjpYYqrTfdVeB7Julgg0YvGyWIk0MkWQhGcU+gsl0N9cmt7+SJ8ZW ucLnMgr9USH/Px1kfGH4uk/yOn3eUzloe+oZE88jIowJeHkXydKME9qZXTF2kMpk bFkbCvVJOeMb26hH/8ATUlPj3TtOTEghwYdbimE/izmgtEyPXkw= =eZMS -----END PGP SIGNATURE----- --anbue5c32wo4odcd--