From owner-freebsd-translators@freebsd.org Mon Oct 26 07:35:09 2015 Return-Path: Delivered-To: freebsd-translators@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 16DFFA1D2A0 for ; Mon, 26 Oct 2015 07:35:09 +0000 (UTC) (envelope-from raycherng@gmail.com) Received: from mail-io0-x22e.google.com (mail-io0-x22e.google.com [IPv6:2607:f8b0:4001:c06::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D00D61D5E for ; Mon, 26 Oct 2015 07:35:08 +0000 (UTC) (envelope-from raycherng@gmail.com) Received: by iofz202 with SMTP id z202so176926973iof.2 for ; Mon, 26 Oct 2015 00:35:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Osn5TrCOU4LSkl/vHVLGi3eDKtoV9KX8cCXKvgvu4qM=; b=M+bKLhiZQDkirfBqz2sYhwD+d5tlk1QDDPQcUXsiQIkzm5WF72RZxvYGLRo4DFUDsr ZAMI8pmv+ylpFkrs/PA7hfejeo6Z2BhkIq28FEoiWkIaSQnK0aLaeRrU2f4OWSBz9xXi gAUqw8RfgtwYux0BbfMhzcdA1bJEcPUi9STc0P0dXC19Iv7JQgw/djUkqQmwS47k06c8 Q6eqlpX2X9vGszT8+sq4SC7X72XPZ8o5cnYc6kJobiGUwKJMAfvc6CKCMePLieWmXEdn uJ64RtBRL/wHTCqxUe9iLQwrQFobE5lI4VcMeSYL6YhEnGTTXjoBiTwcVJ2WzXhfBkET mwTw== MIME-Version: 1.0 X-Received: by 10.107.152.211 with SMTP id a202mr32667845ioe.179.1445844908055; Mon, 26 Oct 2015 00:35:08 -0700 (PDT) Received: by 10.107.8.25 with HTTP; Mon, 26 Oct 2015 00:35:07 -0700 (PDT) In-Reply-To: References: Date: Mon, 26 Oct 2015 15:35:07 +0800 Message-ID: Subject: Re: How to submit my leap-second translation (with PO translation)? From: RayCherng Yu To: Warren Block Cc: freebsd-translators@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-translators@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Translators List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Oct 2015 07:35:09 -0000 I remove my ~/doc(rm -r doc) and .subversion directory. Then, I checkout again (svn checkout https://svn0.us-west.FreeBSD.org/doc/head ~/doc) And make po again. I got the same result. raycherng@FreeBSD svn mkdir --parents ~/doc/zh_TW.UTF-8/articles/leap-seconds/ A /home/raycherng/doc/zh_TW.UTF-8/articles/leap-seconds raycherng@FreeBSD svn cp ~/doc/en_US.ISO8859-1/articles/leap-seconds/Makefile ~/doc/zh_TW.UTF-8/articles/leap-seconds/ A /home/raycherng/doc/zh_TW.UTF-8/articles/leap-seconds/Makefile raycherng@FreeBSD cd ~/doc/zh_TW.UTF-8/articles/leap-seconds/raycherng@FreeBSD ls Makefile raycherng@FreeBSD make po file:///usr/home/raycherng/doc/share/xml/freebsd50.dtd:20: warning: failed to load external entity "file:///usr/home/raycherng/doc/share/xml/entities.ent" %orig-entities; ^ Entity: line 1: %orig-entities; ^ /usr/home/raycherng/doc/en_US.ISO8859-1/articles/leap-seconds/article.xml:1= 0: parser error : Entity 'os' not defined &os; Support for Leap Seconds ^ /usr/home/raycherng/doc/en_US.ISO8859-1/articles/leap-seconds/article.xml:2= 0: parser error : Entity 'os' not defined This article describes how &os; interacts with leap ^ /usr/home/raycherng/doc/en_US.ISO8859-1/articles/leap-seconds/article.xml:4= 0: parser error : Entity 'os' not defined Default Leap Second Handling on &os; ^ /usr/home/raycherng/doc/en_US.ISO8859-1/articles/leap-seconds/article.xml:4= 3: parser error : Entity 'os' not defined POSIX time rules &os; uses by default, ^ /usr/home/raycherng/doc/en_US.ISO8859-1/articles/leap-seconds/article.xml:4= 5: parser error : Entity 'url.books.handbook' not defined xlink:href=3D"&url.books.handbook;/network-ntp.html">NTP= We believe and expect that &os;, if provided correct and ^ /usr/home/raycherng/doc/en_US.ISO8859-1/articles/leap-seconds/article.xml:8= 2: parser error : Entity 'os' not defined handle the leap-second the same way as &os;, and systems without ^ /usr/home/raycherng/doc/en_US.ISO8859-1/articles/leap-seconds/article.xml:1= 04: parser error : Entity 'prompt.user' not defined &prompt.user; ntpq -c 'rv 0 leap' ^ /usr/home/raycherng/doc/en_US.ISO8859-1/articles/leap-seconds/article.xml:1= 15: parser error : Entity 'os' not defined In practice, leap seconds are usually not a problem on &os;. ^ *** Error code 4 Stop. make: stopped in /usr/home/raycherng/doc/zh_TW.UTF-8/articles/leap-seconds Anything wrong with my command? Or something wrong with FreeBSD-doc? 2015-10-23 6:32 GMT+08:00 RayCherng Yu : > I started with a a full checkout of the doc tree(rm -r ~/doc and checkout > a full new doc tree) > > Ok, I'll try it later > > > 2015-10-23 5:46 GMT+08:00 Warren Block : > >> On Fri, 23 Oct 2015, RayCherng Yu wrote: >> >> I delete my doc dir and svn checkout again >>> When I make po again to test translation of leap second article. >>> I got the following messages: >>> >>> make po >>> file:///usr/home/raycherng/doc/share/xml/freebsd50.dtd:20: warning: >>> failed to load external entity >>> "file:///usr/home/raycherng/doc/share/xml/entities.ent" >>> %orig-entities; >>> ^ >>> Entity: line 1: >>> %orig-entities; >>> ^ >>> >> ... >> >>> *** Error code 4 >>> >>> Stop. >>> make: stopped in >>> /usr/home/raycherng/doc/zh_TW.UTF-8/articles/leap-seconds >>> >> >> It worked here just now, starting without a PO file. Was this a full >> checkout of the doc tree? >> >> There were a couple of recent changes to handle entities correctly. >> First, clean out any temporary files: >> >> % cd /usr/home/raycherng/doc/zh_TW.UTF-8/articles/leap-seconds >> % make clean >> >> Then try 'make po' again. If it still fails, start with a fresh >> directory with only the Makefile present. There might still be old >> localized entities in the PO file. > > > > > -- > "Life is like a snowball. The important thing is finding wet snow and a > really long hill." > > "Price is what you pay. Value is what you get." > > "The first rule of Investing is don't lose money; the second rule is > don't forget rule #1..." > > "Wall Street is the only place that people ride to work in a Rolls-Royce > to get advice from those who take the subway..." > > > =E2=80=94 Warren Buffett. > --=20 "Life is like a snowball. The important thing is finding wet snow and a really long hill." "Price is what you pay. Value is what you get." "The first rule of Investing is don't lose money; the second rule is don't forget rule #1..." "Wall Street is the only place that people ride to work in a Rolls-Royce to get advice from those who take the subway..." =E2=80=94 Warren Buffett.