{"thread":{"id":"45885","subject":"Not translatable strings in Git","startedAt":"2017-05-06T08:41:13Z","lastAt":"2017-05-09T04:31:47Z","messageCount":4,"participants":["Jordi Mas","Stefan Beller","Jeff King","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"318927","messageId":"f3bfb85c-1722-e720-3d36-40c29a692867@softcatala.org","threadId":"45885","inReplyTo":null,"subject":"Not translatable strings in Git","fromName":"Jordi Mas","fromEmail":"jmas@softcatala.org","sentAt":"2017-05-06T08:40:56Z","receivedAt":"2017-05-06T08:41:13Z","isPatch":false,"sender":{"key":"jmas@softcatala.org","avatar":"https://avatars.githubusercontent.com/u/309265?v=4"},"body":"Hello,\n\nWhen translating git (https://github.com/git/git/tree/master/po)\n\nThe following strings cannot be translated:\n\n  remote: Counting objects: 331, done.\n  remote: Compressing objects: 100% (213/213), done.\n  remote: Total 244 (delta 184), reused 34 (delta 29)\n  27 files changed, 3399 insertions(+), 3320 deletions(-)\n  create mode 100644 build-aux/flatpak/org.gnome.Nautilus-stable.json\n  delete mode 100755 build-aux/meson/check_libgd.sh\n\nSince they are not in the PO files.\n\nWhen working on making these strings localisable, I suggest checking \nthat in the same modules there are other hardcoded strings that cannot \nbe localised.\n\nThanks\n\nJordi,\n\n\n---\nThis email has been checked for viruses by AVG.\nhttp://www.avg.com\n\n"},{"id":"319095","messageId":"CAGZ79kbtT6QCbd3-MpWiTm3r_cyBOLsa9kvd-KLNr8eEe+9v9Q@mail.gmail.com","threadId":"45885","inReplyTo":"f3bfb85c-1722-e720-3d36-40c29a692867@softcatala.org","subject":"Re: Not translatable strings in Git","fromName":"Stefan Beller","fromEmail":"sbeller@google.com","sentAt":"2017-05-08T16:49:34Z","receivedAt":"2017-05-08T16:49:40Z","isPatch":false,"sender":{"key":"stefanbeller@gmail.com","avatar":"https://avatars.githubusercontent.com/u/455868?v=4"},"body":"On Sat, May 6, 2017 at 1:40 AM, Jordi Mas <jmas@softcatala.org> wrote:\n> Hello,\n>\n> When translating git (https://github.com/git/git/tree/master/po)\n>\n> The following strings cannot be translated:\n>\n>  remote: Counting objects: 331, done.\n>  remote: Compressing objects: 100% (213/213), done.\n>  remote: Total 244 (delta 184), reused 34 (delta 29)\n\nThis is what the remote server tells a client, but the client did not\ntell the server which locale it has.\n\nNow consider we have hosting service that hosts projects accessible from\na wide range of users, all of them having different locales. Which language\nshould the remote speak? (Not knowing which language the client speaks).\n\n\n>  27 files changed, 3399 insertions(+), 3320 deletions(-)\n>  create mode 100644 build-aux/flatpak/org.gnome.Nautilus-stable.json\n>  delete mode 100755 build-aux/meson/check_libgd.sh\n\nThese sound like they are done locally and could be translated easily.\nHowever I wonder if we have issues with leaky plumbing in the user porcelain.\n\nThanks,\nStefan\n"},{"id":"319162","messageId":"20170509040722.dd2yt4254g3raeev@sigill.intra.peff.net","threadId":"45885","inReplyTo":"CAGZ79kbtT6QCbd3-MpWiTm3r_cyBOLsa9kvd-KLNr8eEe+9v9Q@mail.gmail.com","subject":"Re: Not translatable strings in Git","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2017-05-09T04:07:22Z","receivedAt":"2017-05-09T04:07:29Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Mon, May 08, 2017 at 09:49:34AM -0700, Stefan Beller wrote:\n\n> On Sat, May 6, 2017 at 1:40 AM, Jordi Mas <jmas@softcatala.org> wrote:\n> > Hello,\n> >\n> > When translating git (https://github.com/git/git/tree/master/po)\n> >\n> > The following strings cannot be translated:\n> >\n> >  remote: Counting objects: 331, done.\n> >  remote: Compressing objects: 100% (213/213), done.\n> >  remote: Total 244 (delta 184), reused 34 (delta 29)\n> \n> This is what the remote server tells a client, but the client did not\n> tell the server which locale it has.\n> \n> Now consider we have hosting service that hosts projects accessible from\n> a wide range of users, all of them having different locales. Which language\n> should the remote speak? (Not knowing which language the client speaks).\n\nIn theory the client could pass the locale variables. We probably\nalready do by default over ssh. Likewise we could ask curl to send an\nHTTP header based on the current locale, and the server could respect\nthat. That probably wouldn't even be that much code. I think it's just\nsomething that nobody has bothered to implement so far.\n\n> >  27 files changed, 3399 insertions(+), 3320 deletions(-)\n> >  create mode 100644 build-aux/flatpak/org.gnome.Nautilus-stable.json\n> >  delete mode 100755 build-aux/meson/check_libgd.sh\n> \n> These sound like they are done locally and could be translated easily.\n> However I wonder if we have issues with leaky plumbing in the user porcelain.\n\nI don't think the diffstat summary is marked for translation at all,\nplumbing or not.  There's some history there:\n\n  http://public-inbox.org/git/1345922816-20616-1-git-send-email-pclouds@gmail.com/t/#u\n\nThere was an attempt to re-enable it for local-only commands:\n\n  http://public-inbox.org/git/alpine.DEB.2.00.1210231323480.602@ds9.cixit.se/\n\nbut nobody seems to have responded (I don't have much of an opinion\nmyself).\n\n-Peff\n"},{"id":"319165","messageId":"xmqq7f1q4pn8.fsf@gitster.mtv.corp.google.com","threadId":"45885","inReplyTo":"20170509040722.dd2yt4254g3raeev@sigill.intra.peff.net","subject":"Re: Not translatable strings in Git","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2017-05-09T04:31:39Z","receivedAt":"2017-05-09T04:31:47Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Jeff King <peff@peff.net> writes:\n\n> I don't think the diffstat summary is marked for translation at all,\n> plumbing or not.  There's some history there:\n>\n>   http://public-inbox.org/git/1345922816-20616-1-git-send-email-pclouds@gmail.com/t/#u\n\nWow, that's a long thread.\n\n> There was an attempt to re-enable it for local-only commands:\n>\n>   http://public-inbox.org/git/alpine.DEB.2.00.1210231323480.602@ds9.cixit.se/\n>\n> but nobody seems to have responded (I don't have much of an opinion\n> myself).\n\nI still think that the latter is wrong, especially the part that\ntouches log-tree.c, pp_header(), and other lower level things that\nwill be read and interpreted by scripts.  The change to diff.c about\nthe diffstat reverts a bugfix made in v1.8.0 timeperiod, it seems.\n\n\n\n"}]}