From owner-freebsd-doc@FreeBSD.ORG Wed Feb 19 02:30:34 2014 Return-Path: Delivered-To: freebsd-doc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CF45D936; Wed, 19 Feb 2014 02:30:34 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 61E48181A; Wed, 19 Feb 2014 02:30:34 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.8/8.14.8) with ESMTP id s1J2UR66053691 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 18 Feb 2014 19:30:28 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.8/8.14.8/Submit) with ESMTP id s1J2UREL053688; Tue, 18 Feb 2014 19:30:27 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Tue, 18 Feb 2014 19:30:27 -0700 (MST) From: Warren Block To: Benedict Reuschling Subject: Re: Translations (was Re: svn commit: r43974 - head/en_US.ISO8859-1/books/handbook/advanced-networking) In-Reply-To: <5303241B.8080906@FreeBSD.org> Message-ID: References: <201402180226.s1I2QS0x076422@svn.freebsd.org> <5302C7B9.7090208@delphij.net> <5302E05F.1050200@delphij.net> <5303241B.8080906@FreeBSD.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Tue, 18 Feb 2014 19:30:28 -0700 (MST) Cc: "freebsd-doc@freebsd.org" , d@delphij.net, Warren Block X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Feb 2014 02:30:34 -0000 On Tue, 18 Feb 2014, Benedict Reuschling wrote: > Another tool is textproc/po4a that Thomas Abthorpe showed me on one of > the hacker lounges two years ago in Canada. He set up a test project > for a translation into en_GB to see how these tools fit our toolchain. > > He send me the following mini-howto, which I extended a bit for a > first commit to the german doc repo recently: > > > install textproc/po4a > install editors/poedit # optional > install devel/gtranslator #optional > install lokalize # somewhere in kde4, too lazy to look > > To prep a new translation, inline, same directory the following works. > Substitute en_GB for the language of your choice. > > po4a-gettextize -f xml -m article.sgml -p article.pot # renders to pot > file I can use poedit to do the translation, but I always get article.pot:7: header field 'Project-Id-Version' still has the initial default value It does appear to save the translations to article.pot, this is something to do with catalogs. Manually editing article.pot and setting "Language: \n" to "Language: en_GB\n" then complains about the "Project-Id-Version" line having a default value. > I put everything in the DevSummit wiki page and will start a separate > one with the results from the summit to continue from there: > > https://wiki.freebsd.org/201405DevSummit/Translation The instructions don't seem to be there. On another page?