How to submit my leap-second translation (with PO translation)?
RayCherng Yu
raycherng at gmail.com
Mon Oct 26 07:35:09 UTC 2015
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 at FreeBSD </home/raycherng> svn mkdir --parents
~/doc/zh_TW.UTF-8/articles/leap-seconds/
A /home/raycherng/doc/zh_TW.UTF-8/articles/leap-seconds
raycherng at FreeBSD </home/raycherng> 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 at FreeBSD </home/raycherng> cd
~/doc/zh_TW.UTF-8/articles/leap-seconds/raycherng at FreeBSD
</home/raycherng/doc/zh_TW.UTF-8/articles/leap-seconds> ls
Makefile
raycherng at FreeBSD </home/raycherng/doc/zh_TW.UTF-8/articles/leap-seconds>
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:10:
parser error : Entity 'os' not defined
<title>&os; Support for Leap Seconds</title>
^
/usr/home/raycherng/doc/en_US.ISO8859-1/articles/leap-seconds/article.xml:20:
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:40:
parser error : Entity 'os' not defined
<title>Default Leap Second Handling on &os;</title>
^
/usr/home/raycherng/doc/en_US.ISO8859-1/articles/leap-seconds/article.xml:43:
parser error : Entity 'os' not defined
<acronym>POSIX</acronym> time rules &os; uses by default,
^
/usr/home/raycherng/doc/en_US.ISO8859-1/articles/leap-seconds/article.xml:45:
parser error : Entity 'url.books.handbook' not defined
xlink:href="&url.books.handbook;/network-ntp.html"><acronym>NTP</acronym></link
^
/usr/home/raycherng/doc/en_US.ISO8859-1/articles/leap-seconds/article.xml:70:
parser error : Entity 'os' not defined
<para>We believe and expect that &os;, if provided correct and
^
/usr/home/raycherng/doc/en_US.ISO8859-1/articles/leap-seconds/article.xml:82:
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:104:
parser error : Entity 'prompt.user' not defined
<screen>&prompt.user; <userinput>ntpq -c 'rv 0
leap'</userinput></screen>
^
/usr/home/raycherng/doc/en_US.ISO8859-1/articles/leap-seconds/article.xml:115:
parser error : Entity 'os' not defined
<para>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 <raycherng at gmail.com>:
> 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 <wblock at wonkity.com>:
>
>> 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..."
>
>
> — Warren Buffett.
>
--
"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..."
— Warren Buffett.
More information about the freebsd-translators
mailing list