git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 2/2] Add Swedish translation.

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Sep 13, 2010, 13:35 UTC
Message-ID
<AANLkTinhmBHQzkdEY88Oa-XsZQ4VAUz0Tci+gOt=fXmE@mail.gmail.com>
In-Reply-To
<alpine.DEB.2.00.1009130810580.31516@ds9.cixit.se>
On Mon, Sep 13, 2010 at 07:15, Peter Krefting <peter@softwolves.pp.se> wrote:
Show 7 quoted lines
> Æ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.

Show 8 quoted lines
>>       @@ -1,54 +1,38 @@
>>       -# Swedish translation of git
>>       -# Copyright © 2010 Peter krefting <peter@softwolves.pp.se>
>>       -# Peter Krefting <peter@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.

Show 6 quoted lines
>>       -"Last-Translator: Peter Krefting <peter@softwolves.pp.se>\n"
>>       -"Language-Team: Swedish <tp-sv@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`.  .
Show 5 quoted lines
>>       -#: 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.

Show 6 quoted lines
>> * 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.

Previous: Ævar Arnfjörð BjarmasonNext: Peter Krefting
Message 5 of 24 in “Add Swedish translation.”
  1. 2/2 Add Swedish translation.Peter Krefting, Sep 12, 2010
  2. Ævar Arnfjörð BjarmasonSep 12, 2010
  3. Peter KreftingSep 13, 2010
  4. Makefile: only add gettext tests on XGETTEXT_INCLUDE_TESTS=YesPleaseÆvar Arnfjörð Bjarmason, Sep 13, 2010
  5. Ævar Arnfjörð BjarmasonSep 13, 2010
  6. Peter KreftingSep 13, 2010
  7. Ævar Arnfjörð BjarmasonSep 13, 2010
  8. Peter KreftingSep 14, 2010
  9. Ævar Arnfjörð BjarmasonSep 15, 2010
  10. Peter KjellerstedtSep 13, 2010
  11. Peter KreftingSep 15, 2010
  12. Peter KjellerstedtSep 15, 2010
  13. Robin RosenbergSep 15, 2010
  14. Peter KjellerstedtSep 16, 2010
  15. Jeremiah FosterSep 16, 2010
  16. Peter KreftingSep 16, 2010
  17. Ævar Arnfjörð BjarmasonSep 16, 2010
  18. Michael J GruberSep 16, 2010
  19. Ævar Arnfjörð BjarmasonSep 16, 2010
  20. Peter KreftingSep 16, 2010
  21. Robin RosenbergSep 16, 2010
  22. Peter KreftingSep 16, 2010
  23. Ævar Arnfjörð BjarmasonSep 16, 2010
  24. Göran UddeborgSep 18, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.