Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0DFA110762 for ; Mon, 21 Oct 2013 21:59:47 +0000 (UTC) Received: (qmail 63201 invoked by uid 500); 21 Oct 2013 21:54:15 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 61793 invoked by uid 500); 21 Oct 2013 21:52:43 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 60423 invoked by uid 99); 21 Oct 2013 21:50:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Oct 2013 21:50:22 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ipad.wenk@gmail.com designates 209.85.215.49 as permitted sender) Received: from [209.85.215.49] (HELO mail-la0-f49.google.com) (209.85.215.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Oct 2013 21:50:16 +0000 Received: by mail-la0-f49.google.com with SMTP id eh20so1088231lab.36 for ; Mon, 21 Oct 2013 14:49:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=iy30uFTDiS1I2OvF+xTXyOi1SSjQc8c1nMRAarnB094=; b=eIntN4AFgd7WbsvtV8iEaZZFEgx8Qdts7ZNLpqd1jJnwllYRLjJPR49xgF4Ndag5z1 394zsF+7yYdJXqGOVB/3/8EvcCRQHmF5szaY+a2xA1rMNqb5+LOB0BKIe30gInV+N4iV tJFYVolnwDNYMR5hfwly7AGJrhD8sBGoEn4CZbRcQ8zw9U0TtGMcBhtjCTGRvufjPL53 6bK5KDoBnGXVoXffIC+hpkFaQGsNY0MSx89EjOygo5vVbtV3L7V12atedW0x7JhHjzXz EeAcmh1PheIcLxwjMPCz/ggR/2+ruAOHubwjscc5K5xAQGHDOJ26HlONGE73QCBB2+N/ HVNQ== X-Received: by 10.112.72.229 with SMTP id g5mr14895921lbv.10.1382392196146; Mon, 21 Oct 2013 14:49:56 -0700 (PDT) MIME-Version: 1.0 Sender: ipad.wenk@gmail.com Received: by 10.112.65.97 with HTTP; Mon, 21 Oct 2013 14:49:35 -0700 (PDT) In-Reply-To: References: From: Andy Wenk Date: Mon, 21 Oct 2013 23:49:35 +0200 X-Google-Sender-Auth: atsHSv2bOKpFSjJWVaPXF9okdvg Message-ID: Subject: Re: Suggested process for integrating l10n into the CouchDB source To: l10n@couchdb.apache.org, dev@couchdb.apache.org Content-Type: multipart/alternative; boundary=001a11c238e8caaaea04e94743f5 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c238e8caaaea04e94743f5 Content-Type: text/plain; charset=UTF-8 On 21 October 2013 23:46, Andy Wenk wrote: > Hi all, > > I have written together a suggestion for integrating i10n into the CouchDB > source. Pleas take this as a draft. I have no deeper insights into the > organization of the build process of CouchDB yet so I expect that some of > my suggestions are not working. But I want to get things rollin' ;-) > > prerequisites: > > / install sphinx-intl > > 1.) add the following to share/doc/src/conf.py > > locale_dirs = ["../locale/"] > gettext_compact = False > > 2.) create the folder share/doc/locale > > 3.) create .pot files in share/doc/locale/pot > > cd share/doc/src > sphinx-build -b gettext . ../locale/pot > > 4.) create language target folders in share/doc/locale > > sphinx-intl update -p ../locale/pot -l de -l fr > > Now we have a lot of .po files. These files are needed for translation. As > we want to use the pootle service we need to transfer the .po files to > https://translate.apache.org/projects/CouchDB/. I am not sure how this > has to be done as I don't know the service there. > > 5.) when the .po files are translated, we put them back into the folder > locale and convert them into a binary format .mo > > sphinx-intl build > > 6.) the last step is to create the html files. I suggest to have them in a > language folder under share/www > > share/www <- en > share/www/de > share/www/fr > > This is where share/doc/build/makefile.am has to be adjusted. It can be > done with this (from share/doc/src): > > sphinx-build -b html -d src/doctrees . ../www/en > sphinx-build -b html -D language='de' -d src/doctrees . ../www/de > sphinx-build -b html -D language='fr' -d src/doctrees . ../www/fr > > Now we have made translated html files from one source. You can see a > little translation in share/doc/www/de/contributing.html (just to prove > that it works ;-) ). > > 7.) If we added new sources (.rst) to the documentation we create .pot > files with > > sphinx-build -b gettext . ../locale/pot > > as seen in 1.). Then we have to update the .po files with this command: > > sphinx-intl update -p ../locale/pot > > If we add a new language, we invoke: > > sphinx-intl update -p ../locale/pot -l 'es' > > > I have put the result into the branch l10n at git@github.com: > andywenk/couchdb.git > > I would love to get your feedback, thoughts, ideas and finally somebody > who is doing the implementation or helping me to do it so that I can send a > PR. > > Cheers > > Andy > -- > Andy Wenk > Hamburg - Germany > RockIt! > > I forgot to mention that there is already https://translate.apache.org/projects/CouchDB/ and that we should use this service. So we need also a process to deliver the .po files there ... not sure how this has to be done ... -- Andy Wenk Hamburg - Germany RockIt! --001a11c238e8caaaea04e94743f5--