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

Re: Not translatable strings in Git

From
Jeff King <peff@peff.net>
Date
May 9, 2017, 04:07 UTC
Message-ID
<20170509040722.dd2yt4254g3raeev@sigill.intra.peff.net>
In-Reply-To
<CAGZ79kbtT6QCbd3-MpWiTm3r_cyBOLsa9kvd-KLNr8eEe+9v9Q@mail.gmail.com>
On Mon, May 08, 2017 at 09:49:34AM -0700, Stefan Beller wrote:
Show 17 quoted lines
> On Sat, May 6, 2017 at 1:40 AM, Jordi Mas <jmas@softcatala.org> wrote:
> > Hello,
> >
> > When translating git (https://github.com/git/git/tree/master/po)
> >
> > The following strings cannot be translated:
> >
> >  remote: Counting objects: 331, done.
> >  remote: Compressing objects: 100% (213/213), done.
> >  remote: Total 244 (delta 184), reused 34 (delta 29)
> 
> This is what the remote server tells a client, but the client did not
> tell the server which locale it has.
> 
> Now consider we have hosting service that hosts projects accessible from
> a wide range of users, all of them having different locales. Which language
> should the remote speak? (Not knowing which language the client speaks).

In theory the client could pass the locale variables. We probably already do by default over ssh. Likewise we could ask curl to send an HTTP header based on the current locale, and the server could respect that. That probably wouldn't even be that much code. I think it's just something that nobody has bothered to implement so far.

Show 6 quoted lines
> >  27 files changed, 3399 insertions(+), 3320 deletions(-)
> >  create mode 100644 build-aux/flatpak/org.gnome.Nautilus-stable.json
> >  delete mode 100755 build-aux/meson/check_libgd.sh
> 
> These sound like they are done locally and could be translated easily.
> However I wonder if we have issues with leaky plumbing in the user porcelain.

I don't think the diffstat summary is marked for translation at all, plumbing or not. There's some history there:

  http://public-inbox.org/git/1345922816-20616-1-git-send-email-pclouds@gmail.com/t/#u
There was an attempt to re-enable it for local-only commands:
  http://public-inbox.org/git/alpine.DEB.2.00.1210231323480.602@ds9.cixit.se/

but nobody seems to have responded (I don't have much of an opinion myself).

-Peff
Previous: Stefan BellerNext: Junio C Hamano
Message 3 of 4 in “Not translatable strings in Git”
  1. Jordi MasMay 6, 2017
  2. Stefan BellerMay 8, 2017
  3. Jeff KingMay 9, 2017
  4. Junio C HamanoMay 9, 2017

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.