{"thread":{"id":"14821","subject":"[PATCH] Update to it.po","startedAt":"2008-08-03T10:11:31Z","lastAt":"2008-08-03T14:24:36Z","messageCount":5,"participants":["Paolo Ciarrocchi","Michele Ballabio"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"86056","messageId":"20080803121131.589e672b@paolo-desktop","threadId":"14821","inReplyTo":null,"subject":"[PATCH] Update to it.po","fromName":"Paolo Ciarrocchi","fromEmail":"paolo.ciarrocchi@gmail.com","sentAt":"2008-08-03T10:11:31Z","receivedAt":"2008-08-03T10:11:31Z","isPatch":true,"sender":{"key":"paolo.ciarrocchi@gmail.com","avatar":null},"body":"Some fairly simply changes to it.po\n\n\nSigned-off-by: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>\n---\n\nShawn,\na simple make in the git-gui-i18n repository fails with the following msg:\npaolo@paolo-desktop:~/git-gui-i18n$ make\nGITGUI_VERSION = 0.9.GITGUI-dirty\n    * new locations or Tcl/Tk interpreter\n    GEN git-gui\n    INDEX lib/\n    MSGFMT    po/bg.msg 391 translated.\n    MSGFMT    po/de.msg 383 translated, 5 fuzzy, 3 untranslated.\n    MSGFMT    po/es.msg 122 translated, 269 untranslated.\n    MSGFMT    po/fr.msg 391 translated.\n    MSGFMT    po/hu.msg 391 translated.\n    MSGFMT    po/it.msg make: *** [po/it.msg] Error 1\n\nBefore and after the following patch :-)\n\n po/it.po |   13 ++++++-------\n 1 files changed, 6 insertions(+), 7 deletions(-)\n\ndiff --git a/po/it.po b/po/it.po\nindex 197e6fa..aa3ed13 100644\n--- a/po/it.po\n+++ b/po/it.po\n@@ -10,12 +10,12 @@ msgstr \"\"\n \"Project-Id-Version: git-gui\\n\"\n \"Report-Msgid-Bugs-To: \\n\"\n \"POT-Creation-Date: 2008-03-14 07:18+0100\\n\"\n-\"PO-Revision-Date: 2008-03-17 14:12+0100\\n\"\n-\"Last-Translator: Michele Ballabio <barra_cuda@katamail.com>\\n\"\n+\"PO-Revision-Date: 2008-08-03 11:59+0200\\n\"\n+\"Last-Translator: Paolo Ciarrocchi <Paolo.Ciarrocchi@gmail.com>\\n\"\n \"Language-Team: Italian <tp@lists.linux.it>\\n\"\n \"MIME-Version: 1.0\\n\"\n \"Content-Type: text/plain; charset=UTF-8\\n\"\n-\"Content-Transfer-Encoding: 8bit\\n\"\n+\"Content-Transfer-Encoding: 8bit\"\n \n #: git-gui.sh:41 git-gui.sh:634 git-gui.sh:648 git-gui.sh:661 git-gui.sh:744\n #: git-gui.sh:763\n@@ -1022,7 +1022,7 @@ msgstr \"Calcolo oggetti\"\n \n #: lib/choose_repository.tcl:628\n msgid \"buckets\"\n-msgstr \"\"\n+msgstr \"buckets\"\n \n #: lib/choose_repository.tcl:652\n #, tcl-format\n@@ -1910,16 +1910,14 @@ msgid \"Spell checker silently failed on startup\"\n msgstr \"Il correttore ortografico ha riportato un errore all'avvio\"\n \n #: lib/spellcheck.tcl:80\n-#, fuzzy\n msgid \"Unrecognized spell checker\"\n-msgstr \"Correttore ortografico sconosciuto\"\n+msgstr \"Correttore ortografico non riconosciuto\"\n \n #: lib/spellcheck.tcl:180\n msgid \"No Suggestions\"\n msgstr \"Nessun suggerimento\"\n \n #: lib/spellcheck.tcl:381\n-#, fuzzy\n msgid \"Unexpected EOF from spell checker\"\n msgstr \"Il correttore ortografico ha mandato un EOF inaspettato\"\n \n@@ -1994,3 +1992,4 @@ msgstr \"Utilizza 'thin pack' (per connessioni lente)\"\n #: lib/transport.tcl:168\n msgid \"Include tags\"\n msgstr \"Includi etichette\"\n+\n-- \n1.5.6.rc1.21.g03300\n"},{"id":"86059","messageId":"200808031312.14804.barra_cuda@katamail.com","threadId":"14821","inReplyTo":"20080803121131.589e672b@paolo-desktop","subject":"[PATCH] git-gui: add a part about format strings in po/README","fromName":"Michele Ballabio","fromEmail":"barra_cuda@katamail.com","sentAt":"2008-08-03T11:12:14Z","receivedAt":"2008-08-03T11:12:14Z","isPatch":true,"sender":{"key":"barra_cuda@katamail.com","avatar":"https://avatars.githubusercontent.com/u/16371673?v=4"},"body":"This should help tranlators that need to reorder words and strings.\nOriginal explanation by Christian Stimming.\n\nAlso remove unneeded backslashes.\n\nSigned-off-by: Michele Ballabio <barra_cuda@katamail.com>\n---\n\nOn Sunday 03 August 2008, Paolo Ciarrocchi wrote:\n> Shawn,\n> a simple make in the git-gui-i18n repository fails with the following msg:\n> paolo@paolo-desktop:~/git-gui-i18n$ make\n> GITGUI_VERSION = 0.9.GITGUI-dirty\n>     * new locations or Tcl/Tk interpreter\n>     GEN git-gui\n>     INDEX lib/\n>     MSGFMT    po/bg.msg 391 translated.\n>     MSGFMT    po/de.msg 383 translated, 5 fuzzy, 3 untranslated.\n>     MSGFMT    po/es.msg 122 translated, 269 untranslated.\n>     MSGFMT    po/fr.msg 391 translated.\n>     MSGFMT    po/hu.msg 391 translated.\n>     MSGFMT    po/it.msg make: *** [po/it.msg] Error 1\n> \n> Before and after the following patch :-)\n\nI think that's this commit: c6fb29db5a50df150280b641d3c2a6703589b529\n(Fixed usage of positional parameters in it.po and ja.po).\nIt didn't fix anything and was harmful instead.\n\nMaybe this patch could be useful.\n\n po/README |   17 +++++++++++------\n 1 files changed, 11 insertions(+), 6 deletions(-)\n\ndiff --git a/po/README b/po/README\nindex 5e77a7d..595bbf5 100644\n--- a/po/README\n+++ b/po/README\n@@ -101,7 +101,7 @@ matching msgid lines.  A few tips:\n    \"printf()\"-like functions.  Make sure \"%s\", \"%d\", and \"%%\" in your\n    translated messages match the original.\n \n-   When you have to change the order of words, you can add \"<number>\\$\"\n+   When you have to change the order of words, you can add \"<number>$\"\n    between '%' and the conversion ('s', 'd', etc.) to say \"<number>-th\n    parameter to the format string is used at this point\".  For example,\n    if the original message is like this:\n@@ -111,12 +111,17 @@ matching msgid lines.  A few tips:\n    and if for whatever reason your translation needs to say weight first\n    and then length, you can say something like:\n \n-\t\"WEIGHT IS %2\\$d, LENGTH IS %1\\$d\"\n+\t\"WEIGHT IS %2$d, LENGTH IS %1$d\"\n \n-   The reason you need a backslash before dollar sign is because\n-   this is a double quoted string in Tcl language, and without\n-   it the letter introduces a variable interpolation, which you\n-   do not want here.\n+   A format specification with a '*' (asterisk) refers to *two* arguments\n+   instead of one, hence the succeeding argument number is two higher\n+   instead of one. So, a message like this\n+\n+\t\"%s ... %*i of %*i %s (%3i%%)\"\n+\n+   is equivalent to\n+\n+\t\"%1$s ... %2$*i of %4$*i %6$s (%7$3i%%)\"\n \n  - A long message can be split across multiple lines by ending the\n    string with a double quote, and starting another string on the next\n-- \n1.6.0.rc1\n"},{"id":"86063","messageId":"200808031349.03170.barra_cuda@katamail.com","threadId":"14821","inReplyTo":"20080803121131.589e672b@paolo-desktop","subject":"Re: [PATCH] Update to it.po","fromName":"Michele Ballabio","fromEmail":"barra_cuda@katamail.com","sentAt":"2008-08-03T11:49:03Z","receivedAt":"2008-08-03T11:49:03Z","isPatch":true,"sender":{"key":"barra_cuda@katamail.com","avatar":"https://avatars.githubusercontent.com/u/16371673?v=4"},"body":"On Sunday 03 August 2008, Paolo Ciarrocchi wrote:\n> Some fairly simply changes to it.po\n> \n> \n> Signed-off-by: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>\n> ---\n\n[...]\n\n>  po/it.po |   13 ++++++-------\n>  1 files changed, 6 insertions(+), 7 deletions(-)\n\nBTW, I think you posted a patch against git-gui-i18n.git, but that repo is\nway behind git-gui.git and not updated for a while.\n\nHere is a patch against current master (attached to prevent encoding issues).\n\nThe strings missing translation now is \"Buckets\". I know what\nit means but I can't came up with a translation that I like.\n"},{"id":"86069","messageId":"4d8e3fd30808030516g64f5cdb7r884632ac109063cb@mail.gmail.com","threadId":"14821","inReplyTo":"200808031349.03170.barra_cuda@katamail.com","subject":"Re: [PATCH] Update to it.po","fromName":"Paolo Ciarrocchi","fromEmail":"paolo.ciarrocchi@gmail.com","sentAt":"2008-08-03T12:16:46Z","receivedAt":"2008-08-03T12:16:46Z","isPatch":true,"sender":{"key":"paolo.ciarrocchi@gmail.com","avatar":null},"body":"On Sun, Aug 3, 2008 at 1:49 PM, Michele Ballabio\n<barra_cuda@katamail.com> wrote:\n> On Sunday 03 August 2008, Paolo Ciarrocchi wrote:\n>> Some fairly simply changes to it.po\n>>\n>>\n>> Signed-off-by: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>\n>> ---\n>\n> [...]\n>\n>>  po/it.po |   13 ++++++-------\n>>  1 files changed, 6 insertions(+), 7 deletions(-)\n>\n> BTW, I think you posted a patch against git-gui-i18n.git, but that repo is\n> way behind git-gui.git and not updated for a while.\n\nOps... I thought that was still the right process...\n\n> Here is a patch against current master (attached to prevent encoding issues).\n>\n> The strings missing translation now is \"Buckets\". I know what\n> it means but I can't came up with a translation that I like.\n\nConfused. Even in the repo i used buckets was the only missing translation.\nIf you look at my patch:\n\n #: lib/choose_repository.tcl:628\n msgid \"buckets\"\n-msgstr \"\"\n+msgstr \"buckets\"\n\nyou'll notice that we agree on not translating that word :)\n\nThat said, I'd like too see the following hunk be part of your patch as well:\n #: lib/spellcheck.tcl:80\n-#, fuzzy\n msgid \"Unrecognized spell checker\"\n-msgstr \"Correttore ortografico sconosciuto\"\n+msgstr \"Correttore ortografico non riconosciuto\"\n\nCan you please clarify how you are working on the po file?\nI was used to use gtransalator and I'm a bit confused by hunks like\nthe following:\n-#: lib/option.tcl:192\n+#: lib/option.tcl:194\n\nThanks.\n\n\n-- \nPaolo\nhttp://paolo.ciarrocchi.googlepages.com/\n"},{"id":"86074","messageId":"200808031624.36328.barra_cuda@katamail.com","threadId":"14821","inReplyTo":"4d8e3fd30808030516g64f5cdb7r884632ac109063cb@mail.gmail.com","subject":"Re: [PATCH] Update to it.po","fromName":"Michele Ballabio","fromEmail":"barra_cuda@katamail.com","sentAt":"2008-08-03T14:24:36Z","receivedAt":"2008-08-03T14:24:36Z","isPatch":true,"sender":{"key":"barra_cuda@katamail.com","avatar":"https://avatars.githubusercontent.com/u/16371673?v=4"},"body":"On Sunday 03 August 2008, Paolo Ciarrocchi wrote:\n> > Here is a patch against current master (attached to prevent encoding issues).\n> >\n> > The strings missing translation now is \"Buckets\". I know what\n> > it means but I can't came up with a translation that I like.\n> \n> Confused. Even in the repo i used buckets was the only missing translation.\n> If you look at my patch:\n> \n>  #: lib/choose_repository.tcl:628\n>  msgid \"buckets\"\n> -msgstr \"\"\n> +msgstr \"buckets\"\n> \n> you'll notice that we agree on not translating that word :)\n\nOk, but translating it with \"buckets\" has no real sense since it is not\ncommonly used in Italian, IMO. I'd leave it empty (the default English\nword - \"buckets\" - will show up anyway) and hope that someone will come up\nwith an idea :)\n\n> That said, I'd like too see the following hunk be part of your patch as well:\n>  #: lib/spellcheck.tcl:80\n> -#, fuzzy\n>  msgid \"Unrecognized spell checker\"\n> -msgstr \"Correttore ortografico sconosciuto\"\n> +msgstr \"Correttore ortografico non riconosciuto\"\n\nOk, done in this version (attached).\n\n> Can you please clarify how you are working on the po file?\n> I was used to use gtransalator and I'm a bit confused by hunks like\n> the following:\n> -#: lib/option.tcl:192\n> +#: lib/option.tcl:194\n\nSome explanation is in po/README. The workflow is/should be:\n  * normal development in git-gui.git happens\n  * nearing a release, Shawn updates po/git-gui.pot\n  * all translators update their po/*.po files with\n\n\t$ msgmerge -U po/it.po po/git-gui.pot\n\n    where \"it\" is an example. This command updates strings and line numbers\n    in the .po file (as in the two lines you quoted), and adds \"fuzzy\"\n    to old/machine-guessed translations.\n  * now the translator can use his tool of choice (but nearly any editor\n    should do) to search for fuzzy or new strings and update it all.\n"}]}