Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-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 A417010867 for ; Wed, 24 Dec 2014 18:41:48 +0000 (UTC) Received: (qmail 62053 invoked by uid 500); 24 Dec 2014 18:41:48 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 62006 invoked by uid 500); 24 Dec 2014 18:41:48 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 61994 invoked by uid 99); 24 Dec 2014 18:41:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Dec 2014 18:41:46 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kant2002@googlemail.com designates 209.85.223.170 as permitted sender) Received: from [209.85.223.170] (HELO mail-ie0-f170.google.com) (209.85.223.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Dec 2014 18:41:43 +0000 Received: by mail-ie0-f170.google.com with SMTP id rd18so8029198iec.1 for ; Wed, 24 Dec 2014 10:41:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=eYnYWkHJ+nqDAUqHKrxavc2LSutm7mcWKBL5OFCsKbQ=; b=wYn9KQIESSAYmVuMKNKXNawioulyTRa79UJAV6gVEqzc3I+IE7s9PRd8u0FwR3t49v sNap37xdq9v3dn3+ZWaQWLXABFXxp8nKnQWaGuFjJs/BlHiS6bLMArq5TKyFlhKGWIjr jDy+oDehnjbbj3nO3LTb9N+x07bGjfntaRt5CmR/i6gJFNNZgMvvkDtDKis6B06G8Veh MB35T4BWz/YG5SLI5Pnk2ZEZo4ry41qByebON8DF161wRfxw1ZlulR4aXz14ydzM0CGg n5uE/OJzvYkzh38AAcZqvdW4eBDCszDCnZKqVtp+Lgx4j45f8MiF+XDOMRupbKGN0VZL tYkg== MIME-Version: 1.0 X-Received: by 10.50.50.140 with SMTP id c12mr21324430igo.5.1419446482170; Wed, 24 Dec 2014 10:41:22 -0800 (PST) Received: by 10.64.87.132 with HTTP; Wed, 24 Dec 2014 10:41:22 -0800 (PST) Date: Thu, 25 Dec 2014 00:41:22 +0600 Message-ID: Subject: Thought on improving translation and docs From: Andrey Kurdumov To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=047d7bdc117e58fad3050afaa34b X-Virus-Checked: Checked by ClamAV on apache.org --047d7bdc117e58fad3050afaa34b Content-Type: text/plain; charset=UTF-8 Once I finish moving documentation generation to JS I now have plans how to move forward with improving translation. First thing to finish is to cleanup task which was left after migration These which was mentioned by Andrew: - update the README.md to describe how to generate using the new generator - delete the ruby files! - Change path for generation from public/test/ to public/ Next is the improve quality of translation. Right now autolinking in translated languages almost is broken. You could compare [1] and [2] or [3] to understand what I mean. That's when you change header of the page, you should go across all pages where this term is used and change reference to that page everywhere. That's almost impossible to do without tooling support. So I decide to create tool(s) which will help keep consistency. Here I will use Russian as a second language which I will translate. Tool 1: Translation comparator I compare how many links I have in English translation with links which I have in Russian traslation and generate report of differences. This tool could give overview of translation quality for language. Example usage: ./bin/translationreport ru edge Example output: Comparing translation for en and ru for version edge Comparing index.md .... OK Comparing guide/platforms/index.md .... Found differences Tool 2. Find autolinks This tool will report which part of Markdown file will be used in the autolinking feature. That's to know what text should you use during translation in the other parts. Example usage: ./bin/findautolinks en/edge/config_ref/images.md Example output: Found terms: Icons and Splash Screens Example configuration Supported platforms Splashscreen Plugin Tool 3. Find linked pages When given Markdown file name, then this tool will report from which other Markdown files this file is referenced. Example usage: ./bin/findrefautolinks en/edge/guide/cli/index.md Example output: Searching for autolinks Found: guide/platforms/index.md config_ref/images.md ....... Alternative way is to move away from autolinking completely and provide another tool Tool 4. Replace places in existing MD files where autolinking happens with direct links Example usage ./bin/replaceautolinks en edge Example output: Performed replace That's just my ideas how translation could be improved. I just want to bring this to discussion, to have broader view on the topic before start doing something. Also I have question about CrowdIn - I want to intensively check what how my translation in Crowdin broke the autolinking. Is is possible have readonly API keys which allows me doing translation in CrowdIn, and generate documentation locally, to check that changes in wording, don't break autolinking? [1] http://cordova.apache.org/docs/en/edge/index.html [2] http://cordova.apache.org/docs/ru/edge/index.html [3] http://cordova.apache.org/docs/es/edge/index.html Thanks, Andrey --047d7bdc117e58fad3050afaa34b--