Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Add Swedish translation.

Received: by 10.114.173.5 with SMTP id v5mr1059037wae.6.1284384970610;
        Mon, 13 Sep 2010 06:36:10 -0700 (PDT)
X-BeenThere: git-version-control@googlegroups.com
Received: by 10.115.85.40 with SMTP id n40ls591284wal.0.p; Mon, 13 Sep 2010
 06:36:10 -0700 (PDT)
Received: by 10.114.94.18 with SMTP id r18mr953760wab.16.1284384970320;
        Mon, 13 Sep 2010 06:36:10 -0700 (PDT)
Received: by 10.114.94.18 with SMTP id r18mr953759wab.16.1284384970248;
        Mon, 13 Sep 2010 06:36:10 -0700 (PDT)
Return-Path: <git-ow...@vger.kernel.org>
Received: from vger.kernel.org (vger.kernel.org [209.132.180.67])
        by gmr-mx.google.com with ESMTP id r11si7568913waj.0.2010.09.13.06.36.10;
        Mon, 13 Sep 2010 06:36:10 -0700 (PDT)
Received-SPF: pass (google.com: best guess record for domain of git-ow...@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of git-ow...@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mail=git-ow...@vger.kernel.org; dkim=neutral (body hash did not verify) header...@gmail.com
Received: (majord...@vger.kernel.org) by vger.kernel.org via listexpand
	id S1754373Ab0IMNgB (ORCPT
	<rfc822;git-version-control-garchive-63808@googlegroups.com>);
	Mon, 13 Sep 2010 09:36:01 -0400
Received: from mail-gw0-f46.google.com ([74.125.83.46]:55905 "EHLO
	mail-gw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S1753062Ab0IMNgA convert rfc822-to-8bit (ORCPT
	<rfc822;g...@vger.kernel.org>); Mon, 13 Sep 2010 09:36:00 -0400
Received: by gwj17 with SMTP id 17so2027142gwj.19
        for <g...@vger.kernel.org>; Mon, 13 Sep 2010 06:35:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:received:in-reply-to
         :references:date:message-id:subject:from:to:cc:content-type
         :content-transfer-encoding;
        bh=1bZLIMykTX7weKCYjJZKEb1Ir9MUmcQ1SMO6qQGegnM=;
        b=fvY22c0/a2FoXIzJTGJ1vg3Eb9ccdUGl3ZRAUL0fOHwJmcOtWk7vlpTexaT+kxAZXW
         npf+/v9401rhYYXHY8toWgIYQ3LqkfLGonK5yp0dlDhCRHdq2a8cGAE0uQbVW97AFERX
         ks4+RH1CY8FOsriADLWrQELqbYpcvk7XrIEUY=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :cc:content-type:content-transfer-encoding;
        b=fx9yyjENbliJAgKBIyAJlYgIu7iXo14tbiXAEnRVHoBUALDcke93HlPH3Jxw4HIrFT
         EBSvq12HwkGlCyCed3ZHeHyH0uzPnKf1NcQcf7rt+SMO/XvgxE8Yhuth7B96yj/y3bug
         QVF4l3Z4wp5JmJ/ULZoUYFZSoI75w6I+EEyNo=
MIME-Version: 1.0
Received: by 10.101.176.29 with SMTP id d29mr236673anp.163.1284384959277; Mon,
 13 Sep 2010 06:35:59 -0700 (PDT)
Received: by 10.231.171.145 with HTTP; Mon, 13 Sep 2010 06:35:59 -0700 (PDT)
In-Reply-To: <alpine.DEB.2.00.1009130810580.31...@ds9.cixit.se>
References: <20100912202111.B11522FC00@perkele>
	<AANLkTikg1vD33f6Rj4UEzsbrUemta6NbRWWH22h2Y...@mail.gmail.com>
	<alpine.DEB.2.00.1009130810580.31...@ds9.cixit.se>
Date: Mon, 13 Sep 2010 13:35:59 +0000
Message-ID: <AANLkTinhmBHQzkdEY88Oa-XsZQ4VAUz0Tci+gOt=f...@mail.gmail.com>
Subject: Re: [PATCH 2/2] Add Swedish translation.
From: =?UTF-8?B?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= <ava...@gmail.com>
To: Peter Krefting <pe...@softwolves.pp.se>
Cc: g...@vger.kernel.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8BIT
Sender: git-ow...@vger.kernel.org
Precedence: bulk
List-ID: <git.vger.kernel.org>
X-Mailing-List: g...@vger.kernel.org

On Mon, Sep 13, 2010 at 07:15, Peter Krefting <pe...@softwolves.pp.se> wrote:
> Ævar Arnfjörð Bjarmason:
>
>> * Doesn't follow the "Initializing a .po file" docs in
>>  t/README. Here's what you get after applying the little Perl
>>  cleanup program there to it:
>
> Well, I just used the standard commands for creating it.

What commands did you use? I different things on GNU gettext 0.18.1
using the commands documented in po/README, e.g.:

    @@ -12,0 +13 @@ msgstr ""
    +"Language: sv\n"

    @@ -16 +17 @@ msgstr ""
    -"Plural-Forms: nplurals=2; plural=(n != 1);"
    +"Plural-Forms: nplurals=2; plural=(n != 1);\n"

And the line wrapping is different after a msgmerge:

    @@ -533 +532,3 @@ msgid "-a and -r options to 'git branch' do not
make sense with a branch name"
    -msgstr "flaggorna -a och -r på \"git branch\" kan inte anges
tillsammans med ett grennamn"
    +msgstr ""
    +"flaggorna -a och -r på \"git branch\" kan inte anges tillsammans med ett "
    +"grennamn"

Which is probably because you edited it with an unofficial PO editor
(i.e. not Emacs's po-mode.el) and didn't do msgmerge afterwards.

>>       @@ -1,54 +1,38 @@
>>       -# Swedish translation of git
>>       -# Copyright © 2010 Peter krefting <pe...@softwolves.pp.se>
>>       -# Peter Krefting <pe...@softwolves.pp.se>, 2010.
>>       -#
>
> That's a standard header, which is good to keep for clarity. If we want to
> go through Translation Project (which I still do recommend), it is required.

We could just autogenerate it from the git.git logs before uploading
to the Translation Project if it comes to that. Having comments before
the <msgstr ""> also means it can't be updated with the example
snippet in po/README.

>>       -"PO-Revision-Date: 2010-09-12 21:07+0100\n"
>
> That's a good reference header to see how out-of-date the translation is.

But redundant to `git log sv.po | grep ^Date | head -n1`. And since
it's autogenerated it'll cause merge conflicts across different git
branches eventually.

>>       -"Last-Translator: Peter Krefting <pe...@softwolves.pp.se>\n"
>>       -"Language-Team: Swedish <tp...@listor.tp-sv.se>\n"
>
> These are standard headers to make it easier to find out who to blame the
> translation on. I haven't actually submitted my translation for review on
> the Swedish list yet, but will do so soon enough.

Ditto redundant to `git log sv.po | grep ^Author`.  .

>>       -#: wt-status.c:56
>
> These context lines are invaluable when figuring out how to translate stuff,
> and to track back strings after the fact. I do not like the idea of removing
> them.

Yes they're useful while translating. But as documented in po/README's
"Updating a .po file" you can use them while doing that without
submitting them to git.git.

If they're included the majority of any po/*.po update will be updates
to auto-generated line number comments.

Anyway, I don't feel strongly about any of the above. Maybe we're
omitting some some PO header entries that we should use, and maybe we
should include PO commits (although that'd need a custom merge
driver).

But we should do that with a patch to po/README and implement it
consistently across all the po/*.po files, having something that
deviates from the norm is a pain to maintain.

>> * Commit message should be "po/sv.po: add Swedish translation". It
>>  makes it much easier to `git log --grep=po/` or `git log
>>  --grep=po/sv.po` in the future.
>
> Git has that information already, no need to put it in the commit message
> :-)

It's not using the "<subsystem>: <message> <no-full-stop>"
convention. All the existing commits in ab/i18n use that convention,
and I'd prefer to keep it that way.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html