From owner-freebsd-translators@freebsd.org Tue Oct 13 02:58:19 2015 Return-Path: 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 90C75A109CC for ; Tue, 13 Oct 2015 02:58:19 +0000 (UTC) (envelope-from raycherng@gmail.com) Received: from mail-io0-x22b.google.com (mail-io0-x22b.google.com [IPv6:2607:f8b0:4001:c06::22b]) (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 59D5A1C7 for ; Tue, 13 Oct 2015 02:58:19 +0000 (UTC) (envelope-from raycherng@gmail.com) Received: by iofl186 with SMTP id l186so7489388iof.2 for ; Mon, 12 Oct 2015 19:58:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=T8n4q1Yn5uxK5YwMM4KgFN7JcxXbYLXrRw7FAdeVEBc=; b=CZVT2vyAr/8+8u/yiK1fw2GGquYJDN5VQR8cxI9utXxD4qafAhUxYzfQ2huPNYzPE4 vCOtpPFCxfAfqn5bO7lHutVDPqkWySogKFDyFUoMm13H0dmAB/57dkjL6Sqe++8CBvKz N/YlTb5rxWaCkjGPZedf5dioHj4zi74PGl5qwGZJhdmt7H3GT0YLev7Vjwp8QJtsk2NI PZpA+WGdlNiFpx7o0YETXW1SdfmXGaC1dIVbpDnidG3zwbjYHQ0AySlcgXkkWHeERnDD pqOBhZq0ke+qGsd/9gKggJ/DMiU4IsULBOVMA/52Orh6WVAGxmzXYGIZ/AVrr6lhzI0k YPow== MIME-Version: 1.0 X-Received: by 10.107.47.30 with SMTP id j30mr30176739ioo.168.1444705098838; Mon, 12 Oct 2015 19:58:18 -0700 (PDT) Received: by 10.107.56.136 with HTTP; Mon, 12 Oct 2015 19:58:18 -0700 (PDT) In-Reply-To: References: Date: Tue, 13 Oct 2015 10:58:18 +0800 Message-ID: Subject: Re: How to submit my leap-second translation (with PO translation)? From: RayCherng Yu To: Warren Block Cc: freebsd-translators@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-translators@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Translators List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Oct 2015 02:58:19 -0000 I svn add these four files yesterday and I got this message: Linting... No lint engine configured for this project. Running unit tests... No unit test engine is configured for this project. Exception Diff Parse Exception: Expected hunk target '+++ path/to/file.ext (revision N)'. Raw input file was written to: /tmp/bkxzd4yvri8088ks/1356-b958I7 1 Index: zh_TW.UTF-8/articles/leap-seconds/article.translate.xml 2 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>> 3 =E7=84=A1=E6=B3=95=E9=A1=AF=E7=A4=BA: =E6=AA=94=E6=A1=88=E6=A8=99=E7= =A4=BA=E7=82=BA=E4=BA=8C=E9=80=B2=E5=88=B6=E9=A1=9E=E5=9E=8B. 4 svn:mime-type =3D application/xml 5 Index: zh_TW.UTF-8/articles/leap-seconds/article.translate.xml 6 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 7 --- zh_TW.UTF-8/articles/leap-seconds/article.translate.xml (revision 0) 8 +++ zh_TW.UTF-8/articles/leap-seconds/article.translate.xml (working copy= ) (Run with `--trace` for a full exception trace.) Then, I run with --trace arc diff --trace --create zh_TW.UTF-8/articles/leap-seconds/ libphutil loaded from '/usr/local/lib/php/libphutil/src'. arcanist loaded from '/usr/local/lib/php/arcanist/src'. Config: Reading user configuration file "/home/raycherng/.arcrc"... Config: Did not find system configuration at "/etc/arcconfig". Working Copy: Reading .arcconfig from "/usr/home/raycherng/doc/.arcconfig". Working Copy: Path "/usr/home/raycherng/doc" is part of `svn` working copy "/usr/home/raycherng/doc". Working Copy: Project root is at "/usr/home/raycherng/doc". Config: Did not find local configuration at "/usr/home/raycherng/doc/.svn/arc/config". >>> [0] user.whoami() >>> [1] https://reviews.freebsd.org/api/user.whoami <<< [1] 1,333,287 us <<< [0] 1,334,422 us >>> [2] $ svn --xml status 'zh_TW.UTF-8/articles/leap-seconds/' <<< [2] 566,210 us >>> [3] diff.didCollectChanges <<< [3] 124 us You have a saved revision message in '.svn/arc/create-message'. Message begins: Traditional Chinese transation of the leap second article to=E2=80=A6 You can use this message, or discard it. Do you want to use this message? [Y/n] y >>> [4] diff.willBuildMessage <<< [4] 164 us >>> [5] $ vim '/tmp//edit.6m6p13rrwjoko844/new-commit' "/tmp/edit.6m6p13rrwjoko844/new-commit" 18L, 471C =E5=B7=B2=E5=AF=AB=E5=85= =A5 <<< [5] 8,987,231 us >>> [6] differential.parsecommitmessage() >>> [7] https://reviews.freebsd.org/....../differential...... <<< [7] 301,569 us <<< [6] 301,843 us >>> [8] user.query() >>> [9] https://reviews.freebsd.org/api/user.query <<< [9] 306,092 us <<< [8] 306,427 us >>> [10] diff.didBuildMessage <<< [10] 102 us Linting... No lint engine configured for this project. Running unit tests... No unit test engine is configured for this project. >>> [11] $ svn diff --depth empty --diff-cmd '/usr/local/lib/php/arcanist/scripts/repository/binary_safe_diff.sh' -x -U32767 'zh_TW.UTF-8/articles/leap-seconds' >>> [12] $ svn info '/usr/home/raycherng/doc/zh_TW.UTF-8/articles/leap-seconds'@ >>> [13] $ svn diff --depth empty --diff-cmd '/usr/local/lib/php/arcanist/scripts/repository/binary_safe_diff.sh' -x -U32767 'zh_TW.UTF-8/articles/leap-seconds/Makefile' >>> [14] $ svn info '/usr/home/raycherng/doc/zh_TW.UTF-8/articles/leap-seconds/Makefile'@ >>> [15] $ svn diff --depth empty --diff-cmd '/usr/local/lib/php/arcanist/scripts/repository/binary_safe_diff.sh' -x -U32767 'zh_TW.UTF-8/articles/leap-seconds/article.translate.xml' >>> [16] $ svn info '/usr/home/raycherng/doc/zh_TW.UTF-8/articles/leap-seconds/article.translat= e.xml'@ >>> [17] $ svn diff --depth empty --diff-cmd '/usr/local/lib/php/arcanist/scripts/repository/binary_safe_diff.sh' -x -U32767 'zh_TW.UTF-8/articles/leap-seconds/article.xml' >>> [18] $ svn info '/usr/home/raycherng/doc/zh_TW.UTF-8/articles/leap-seconds/article.xml'@ <<< [12] 56,586 us <<< [14] 63,302 us <<< [15] 49,432 us <<< [16] 48,036 us <<< [17] 28,424 us <<< [18] 15,812 us >>> [19] $ svn diff --depth empty --diff-cmd '/usr/local/lib/php/arcanist/scripts/repository/binary_safe_diff.sh' -x -U32767 'zh_TW.UTF-8/articles/leap-seconds/zh_TW.mo' >>> [20] $ svn info '/usr/home/raycherng/doc/zh_TW.UTF-8/articles/leap-seconds/zh_TW.mo'@ >>> [21] $ svn diff --depth empty --diff-cmd '/usr/local/lib/php/arcanist/scripts/repository/binary_safe_diff.sh' -x -U32767 'zh_TW.UTF-8/articles/leap-seconds/zh_TW.po' >>> [22] $ svn info '/usr/home/raycherng/doc/zh_TW.UTF-8/articles/leap-seconds/zh_TW.po'@ <<< [19] 39,179 us <<< [20] 46,764 us <<< [22] 39,318 us <<< [21] 95,647 us <<< [13] 187,377 us <<< [11] 193,976 us [2015-10-12 06:45:33] EXCEPTION: (Exception) Diff Parse Exception: Expected hunk target '+++ path/to/file.ext (revision N)'. Raw input file was written to: /tmp/4pom455w97ggwwk8/754-vLrVj4 1 Index: zh_TW.UTF-8/articles/leap-seconds/article.translate.xml 2 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>> 3 =E7=84=A1=E6=B3=95=E9=A1=AF=E7=A4=BA: =E6=AA=94=E6=A1=88=E6=A8=99=E7= =A4=BA=E7=82=BA=E4=BA=8C=E9=80=B2=E5=88=B6=E9=A1=9E=E5=9E=8B. 4 svn:mime-type =3D application/xml 5 Index: zh_TW.UTF-8/articles/leap-seconds/article.translate.xml 6 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 7 --- zh_TW.UTF-8/articles/leap-seconds/article.translate.xml (revision 0) 8 +++ zh_TW.UTF-8/articles/leap-seconds/article.translate.xml (working copy= ) at [/src/parser/ArcanistDiffParser.php:1221] arcanist(), phutil() #0 ArcanistDiffParser::didFailParse(string) called at [/src/parser/ArcanistDiffParser.php:863] #1 ArcanistDiffParser::parseHunkTarget() called at [/src/parser/ArcanistDiffParser.php:799] #2 ArcanistDiffParser::parseIndexHunk(ArcanistDiffChange) called at [/src/parser/ArcanistDiffParser.php:321] #3 ArcanistDiffParser::parseDiff(string) called at [/src/parser/ArcanistDiffParser.php:88] #4 ArcanistDiffParser::parseSubversionDiff(ArcanistSubversionAPI, array) called at [/src/workflow/ArcanistDiffWorkflow.php:940] #5 ArcanistDiffWorkflow::generateChanges() called at [/src/workflow/ArcanistDiffWorkflow.php:497] #6 ArcanistDiffWorkflow::run() called at [/scripts/arcanist.php:382] Another question is which files should I upload/submit ? only the zh_TW.po and article.xml? RayCherng 2015-10-13 9:51 GMT+08:00 Warren Block : > On Mon, 12 Oct 2015, RayCherng Yu wrote: > > I have tested the PO translation to translate leap second article to >> traditoinal Chinese. I upload my translation with arc diff, I got this >> message: >> >> >> arc diff --create zh_TW.UTF-8/articles/ >> >> You have untracked files in this working copy. >> >> Working copy: /usr/home/raycherng/doc/ >> >> Untracked changes in working copy: >> (To ignore these changes, add them to "svn:ignore".) >> zh_TW.UTF-8/articles/leap-seconds/article.translate.xml >> zh_TW.UTF-8/articles/leap-seconds/article.xml >> zh_TW.UTF-8/articles/leap-seconds/zh_TW.mo >> zh_TW.UTF-8/articles/leap-seconds/zh_TW.po >> >> Ignore these untracked files and continue? [y/N] N >> >> Usage Exception: User aborted the workflow. >> >> >> How could I upload my translation? >> thanks >> > > Use 'svn add' to add the PO and translated XML file: > > % cd zh_TW.UTF-8/articles/leap-seconds/ > % svn add zh_TW.po > % svn add article.xml > > This assumes that 'svn mkdir' was used to create the leap-seconds > directory. If not, the directory must be added, too. > > Then create a diff of just those two files. For example, with 'svn > diff'. This example changes to the base doc directory first. That is ni= ce > because the paths in the diff help the reader see where the files go. > > % cd ../../.. > % svn diff zh_TW.UTF-8/articles/leap-seconds/zh_TW.po > zh_TW.UTF-8/articles/leap-seconds/article.xml > /tmp/zh-leap-seconds.diff > > The wiki shows more detail on using the diff tools with more context: > https://wiki.freebsd.org/CodeReview#Create_a_Revision_via_Web_Interface > > Thanks! > --=20 "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..." =E2=80=94 Warren Buffett.