{"thread":{"id":"23078","subject":"Re: [egit-dev] Translation of reflog messages?","startedAt":"2010-03-19T09:42:01Z","lastAt":"2010-03-19T09:42:01Z","messageCount":1,"participants":["Robin Rosenberg"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"137193","messageId":"201003191042.01536.robin.rosenberg@dewire.com","threadId":"23078","inReplyTo":"20100319040420.GA14689@spearce.org","subject":"Re: [egit-dev] Translation of reflog messages?","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg@dewire.com","sentAt":"2010-03-19T09:42:01Z","receivedAt":"2010-03-19T09:42:01Z","isPatch":false,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"fredagen den 19 mars 2010 05.04.20 skrev  Shawn O. Pearce:\n> \"Lay, Stefan\" <stefan.lay@sap.com> wrote:\n> > Do we need to externalize reflog messages?\n> >\n> > We proposed a change to externalize all translatable Strings in egit.core\n> > (http://egit.eclipse.org/r/#change,332). It contains code that writes to\n> > the reflog, for example in BranchOperation:\n> >\n> > RefUpdate u = repository.updateRef(Constants.HEAD);\n> > u.setRefLogMessage(\"checkout: moving to \" + refName, false);\n> >\n> > Is this message subject to translation? Or maybe only part of it, namely\n> > the name of the git command \"checkout\"? Are there tools which parse the\n> > reflog message and rely on standardized texts?\n> \n> Nope.  Currently nobody relies on the format of the message part of a\n> reflog record.  So translating them should not break an application.\n\n> Since these are strictly local to the repository, it probably makes\n> sense to translate these messages for the user, so they make sense\n> to them when they are reading a reflog history in some sort of\n> browser UI.\n> \n> I say, translate them.\n\nOn the other hand we try to use the same format as C git, which doesn't \ntranslate. Keeping the current messages and trying to translate on read is\nanother option. Be careful to translate only those parts that can be \npositively identified, so some pattern matching is required.  \n\nIf the contents of the reflog is translated before putting it there we destroy\nall ability for people to make ad-hoc use of it using . I occasionally grep \nthe log and a mix of swedish and english makes that much harder.\n\n(Cc:ing the Git ML)\n\n-- robin\n"}]}