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

Re: [PATCH v2] i18n: notes: mark comment for translation

From
Vasco Almeida <vascomalmeida@sapo.pt>
Date
Jul 27, 2016, 10:40 UTC
Message-ID
<1469616036.1858.21.camel@sapo.pt>
In-Reply-To
<xmqqvazs1g9o.fsf@gitster.mtv.corp.google.com>
A Ter, 26-07-2016 às 10:05 -0700, Junio C Hamano escreveu:
> In any case, I do not understand why you want to exclude the LFs
> from the message.

As Ævar Arnfjörð Bjarmason pointed out [1], it is to assure that a translator does not break the output by mistake, by removing a LF. I agree because I have seen a few mistakes about blanks in translations. I do them myself. I think it is easy to do them if you are translating a lot of strings, like if you were to start translating Git to a new language right now. Thus I think it is a good idea to assure that this kind of mistakes do not occur.

Although msgfmt can catch some mistakes, like source string and translation must end both with \n, it does not catch all possible mistakes. For example, I think it does not check a start \n, which is relevant here. For that translator must use other quality assurance tools. I know of translate toolkit [2] and msgcheck [3].

Show 7 quoted lines
> If a translation for a particular language is
> very long and would not fit on a single line, the translator is
> allowed to make the message much longer, i.e. the translated version
> of the <message> part may contain one or more LFs (which is what the
> add-commented-lines function was invented for).  I'd think having
> LFs in the to-be-translated-original will serve as a good hint to
> signal translators that is the case.

When I am translating I always assume that it is fine do add or remove some lines as needed, unless I'm told otherwise (by a comment for translators, e.g.).

[1] http://www.mail-archive.com/git@vger.kernel.org/msg98793.html [2] http://docs.translatehouse.org/projects/translate-toolkit/ [3] https://github.com/flashcode/msgcheck

Previous: Junio C HamanoNext: Vasco Almeida
Message 5 of 11 in “i18n: notes: mark comment for translation”
  1. i18n: notes: mark comment for translationVasco Almeida, Jul 23, 2016
  2. Junio C HamanoJul 25, 2016
  3. Vasco AlmeidaJul 26, 2016
  4. Junio C HamanoJul 26, 2016
  5. Vasco AlmeidaJul 27, 2016
  6. i18n: notes: mark comment for translationVasco Almeida, Jul 26, 2016
  7. Junio C HamanoJul 26, 2016
  8. Vasco AlmeidaJul 27, 2016
  9. Junio C HamanoJul 27, 2016
  10. i18n: notes: mark comment for translationVasco Almeida, Jul 28, 2016
  11. Junio C HamanoJul 28, 2016

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.