Re: [PATCH/RFC v7 1/2] Add infrastructure for translating Git with gettext
From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:48:55
Ævar Arnfjörð Bjarmason wrote:
IMO trying to plan in advance what we should and shouldn't translate is a bit premature. I think it's better to just add glue so that everything can be translated, then we can try decide later if some arbitrary subset shouldn't have translations (even for human readable error messages) and act appropriately.
Certainly there is no need to commit to decisions that will have no observable effect. However, setlocale() - takes some small amount of time (probably negligible); - changes the semantics of regular expression matching (this affects ‘git grep’, ‘git diff’'s search for a function header, and http-backend’s service-command regexps); - changes the human language used for strerror(). We could avoid these issues by turning translations off by default and calling it experimental, which might be the right thing to do anyway. Alternatively we can make some choice and stick to it (e.g., all git commands use setlocale(), or just the translated ones, or whatever). I just want to ensure it is a conscious choice. Jonathan