make po in handbook doesn't work
Warren Block
wblock at wonkity.com
Wed Jan 6 20:39:46 UTC 2016
On Thu, 7 Jan 2016, Hoyoung Kim wrote:
> Hello :)
>
> I recently resumed Korean translation and got in trouble. I followed
> the instruction in 12.3. of
> fdp-primer(http://www.freebsd.org/doc/en_US.ISO8859-1/books/fdp-primer/po-translations-creating.html)
> to generate PO files. This worked fine with some articles(bsdl-gpl,
> contributing and explaining-bsd) and books(developers-handbook, faq,
> fdp-primer and porters-handbook).
>
> However, I got the error when I tried to generate po for handbook:
>
> hwong at TeamAFK:~/freebsd-doc-kr/ko_KR.UTF-8/books/handbook % make po
> make: don't know how to make /usr/home/hwong/freebsd-doc-kr/en_US.ISO8859-1/books/handbook/mirrors.lastmod.inc. Stop
>
> I looked around for several files, but failed to fix. Makefile of
> handbook and current structure of Korean directory can be found here:
>
> https://github.com/kr-bsd/freebsd-doc-kr/blob/master/ko_KR.UTF-8/books/handbook/Makefile
This looks okay, although there are a lot of things that can be removed.
For any PO document, the SRCS only needs to be book.xml or article.xml.
Makefile entries about chapters or calculating things can all be
removed. That is not the problem here, but the extras need to be
removed.
The problem here is that the English version generates a list of
FreeBSD mirrors, and the PO process does not see how to do create those
nonexistent files. The rules to create them are in the English
version's Makefile.
> What should I do to create po file for handbook?
For now, generate those files by hand in the English directory:
% cd ~/doc/en_US.ISO8859-1/books/handbook/
% make make mirrors.lastmod.inc mirrors.xml.ftp.inc mirrors.xml.ftp.index.inc eresources.xml.www.inc eresources.xml.www.index.inc
After this, creating the PO in the Korean directory works.
> Thank you, and Happy New Year!
Thank you, and Happy New Year to you also!
More information about the freebsd-translators
mailing list