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

Re: gettext, multiple Preferred languages, and English

From
Andrew Janke <floss@apjanke.net>
Date
Apr 21, 2019, 13:27 UTC
Message-ID
<ffac5d4b-190c-16d6-497c-4b0f1f12115c@apjanke.net>
In-Reply-To
<bd5ee770-a213-b663-208c-c9980a738fe9@talktalk.net>
On 4/21/19 8:59 AM, Philip Oakley wrote:
Show 12 quoted lines
> Hi Andrew,
> 
> On 21/04/2019 12:08, Andrew Janke wrote:
> https://public-inbox.org/git/d001a2b5-57c3-1eb3-70fd-679919bb2eb6@apjanke.net/
> 
>> I don't think it would even have
>> to be actively maintained, because for new message strings that aren't
>> included in the .po file, it would fall back to the non-translated input
>> strings, which are in English anyway, which is the desired behavior.
> Given the above comment, could the en.po file
> (https://github.com/apjanke/git/blob/english-dummy-translation/po/en.po)
> be some very very short version with only one 'translated' string?

Yes, I believe so. I only provided a full translation file because it was trivial for me to create using the "msginit" instructions I found in po/README. Since all the translations are just identity relationships, I believe that is effectively the same as their not being there in the first place.

I tested your approach locally, and it seems to work for me.
Show 8 quoted lines
> This
> may be a way-off comment, but if it could be such a simple maintenance
> free file then that sounds sensible.
> 
> also adding in Jiang Xin <worldhello.net@gmail.com>, the coordinator for
> extra comment.
> 
> Philip
Previous: Philip OakleyNext: Andrew Janke
Message 3 of 9 in “gettext, multiple Preferred languages, and English”
  1. Andrew JankeApr 21, 2019
  2. Philip OakleyApr 21, 2019
  3. Andrew JankeApr 21, 2019
  4. Andrew JankeApr 22, 2019
  5. Junio C HamanoApr 21, 2019
  6. Duy NguyenApr 22, 2019
  7. Andrew JankeApr 22, 2019
  8. Ævar Arnfjörð BjarmasonApr 22, 2019
  9. Andrew JankeApr 23, 2019

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.