Date: Wed, 6 Jan 2016 13:39:44 -0700 (MST) From: Warren Block <wblock@wonkity.com> To: Hoyoung Kim <trig4800@gmail.com> Cc: freebsd-translators@FreeBSD.org, wblock@FreeBSD.org Subject: Re: make po in handbook doesn't work Message-ID: <alpine.BSF.2.20.1601061235100.45870@wonkity.com> In-Reply-To: <CAFqJeOJyWzF22ns4V8D7NFJY1jca%2BFyifRchXrOK=KAbMsOjYQ@mail.gmail.com> References: <CAFqJeOJyWzF22ns4V8D7NFJY1jca%2BFyifRchXrOK=KAbMsOjYQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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! From owner-freebsd-translators@freebsd.org Wed Jan 6 23:49:08 2016 Return-Path: <owner-freebsd-translators@freebsd.org> 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 6807AA64181 for <freebsd-translators@mailman.ysv.freebsd.org>; Wed, 6 Jan 2016 23:49:08 +0000 (UTC) (envelope-from trig4800@gmail.com) Received: from mail-pa0-x22f.google.com (mail-pa0-x22f.google.com [IPv6:2607:f8b0:400e:c03::22f]) (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 45BFE1149 for <freebsd-translators@freebsd.org>; Wed, 6 Jan 2016 23:49:08 +0000 (UTC) (envelope-from trig4800@gmail.com) Received: by mail-pa0-x22f.google.com with SMTP id uo6so224412121pac.1 for <freebsd-translators@freebsd.org>; Wed, 06 Jan 2016 15:49:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=8WS2dmomVIpooIAzlQeu/pQGMqsZAy7MnkdTCo1a55s=; b=CVuJTiOpApa5pU5cUTr57AXxNrioPx4NYuWblBOqBNpW8rXjEs1DentWMNfp9ZY/G4 /Ohvf5SdboVcf7sHG5IP/9a8NFWmkdvGyUaYjR5Wnm0ewsNwdbhIOnorb8dwJzd36Vmi 7s7NA4XQNkxSm/0WHHdBgT8HPhoFnjmIhL6u1rzQYbvTB+Nbya8OtSmY2SFroutMh/TS Gw/5UX1ZAhkGlOCuNxmuCDuQb2CsMM8D2ieQTe1nfIAeM7hNlTuhkCjfCv8N6RdC4bcN wCX2UzeskvZk20X4HK8DwQAApL+RSUsXzlIiyYC0Br+5G9teG+i2TVQUHIi137mR8tAt VJVA== X-Received: by 10.66.222.101 with SMTP id ql5mr146407443pac.144.1452124147793; Wed, 06 Jan 2016 15:49:07 -0800 (PST) Received: from [10.0.1.4] ([121.167.148.137]) by smtp.gmail.com with ESMTPSA id yn8sm144287192pac.32.2016.01.06.15.49.06 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 06 Jan 2016 15:49:07 -0800 (PST) Subject: Re: make po in handbook doesn't work To: Warren Block <wblock@wonkity.com> References: <CAFqJeOJyWzF22ns4V8D7NFJY1jca+FyifRchXrOK=KAbMsOjYQ@mail.gmail.com> <alpine.BSF.2.20.1601061235100.45870@wonkity.com> Cc: freebsd-translators@FreeBSD.org From: Hoyoung Kim <trig4800@gmail.com> Message-ID: <568DA7EE.4040302@gmail.com> Date: Thu, 7 Jan 2016 08:49:02 +0900 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <alpine.BSF.2.20.1601061235100.45870@wonkity.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-translators@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Translators <freebsd-translators.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-translators>, <mailto:freebsd-translators-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-translators/> List-Post: <mailto:freebsd-translators@freebsd.org> List-Help: <mailto:freebsd-translators-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-translators>, <mailto:freebsd-translators-request@freebsd.org?subject=subscribe> X-List-Received-Date: Wed, 06 Jan 2016 23:49:08 -0000 On Thu, 7 Jan 2016, Warren Block wrote: > 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@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. Oh, now I understood that more than I expected can be removed also -- I was just focusing on removing `SRC+= */chapter.xml` only. (Actually, I had problem when running `make FORMATS=html` which says `don't know how to make chapters.ent`. removing extra SRC+= * solved this problem :) > 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. This solution (it seems that `make` is appropriate rather than `make make`) with trimming Makefile made the whole translation process working. Thanks!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1601061235100.45870>