Re: [PATCH v2 07/10] ref-filter: make %(upstream:track) prints "[gone]" for invalid upstreams
- From
Karthik Nayak <karthik.188@gmail.com>
- Date
- Oct 11, 2015, 19:38 UTC
- Message-ID
- <CAOLa=ZT5ADOY0x_rFRWVx5DtWtOBH3MvqBgh8v4COC1a1ND3NA@mail.gmail.com>
- In-Reply-To
- <vpqvbadz37a.fsf@grenoble-inp.fr>
On Sun, Oct 11, 2015 at 11:40 PM, Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> wrote:
Show 15 quoted lines
> Karthik Nayak <karthik.188@gmail.com> writes:
>
>> A little blurry on how this works, as in how translation takes place,
>> probably need to look at some code.
>
> What you really need to understand is: _("foo") is translated, "foo" is
> not and will always be "foo". Technically, _ is a macro, it could be
> called get_the_translated_string_for(...) but that would be too long.
>
> In git, _("foo") should be used when talking to a user (porcelain), and
> "foo" when talking to a program (plumbing). This way a user running
>
> git <plumbing-command> | grep "some-plumbing-message"
>
> will always get the same result regardless of the current locale.That helped a lot, thanks a bunch.
-- Regards, Karthik Nayak