From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthieu Moy Subject: Re: [PATCH v2 07/10] ref-filter: make %(upstream:track) prints "[gone]" for invalid upstreams Date: Sun, 11 Oct 2015 20:10:17 +0200 Message-ID: References: <1444295885-1657-1-git-send-email-Karthik.188@gmail.com> <1444295885-1657-8-git-send-email-Karthik.188@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Git , Christian Couder , Junio C Hamano To: Karthik Nayak X-From: git-owner@vger.kernel.org Sun Oct 11 20:10:31 2015 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZlL4o-0003v5-Fv for gcvg-git-2@plane.gmane.org; Sun, 11 Oct 2015 20:10:30 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752168AbbJKSK0 (ORCPT ); Sun, 11 Oct 2015 14:10:26 -0400 Received: from mx2.imag.fr ([129.88.30.17]:54931 "EHLO rominette.imag.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751616AbbJKSKZ (ORCPT ); Sun, 11 Oct 2015 14:10:25 -0400 Received: from clopinette.imag.fr (clopinette.imag.fr [129.88.34.215]) by rominette.imag.fr (8.13.8/8.13.8) with ESMTP id t9BIAFje007583 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sun, 11 Oct 2015 20:10:15 +0200 Received: from anie (anie.imag.fr [129.88.7.32]) by clopinette.imag.fr (8.13.8/8.13.8) with ESMTP id t9BIAHXM024875; Sun, 11 Oct 2015 20:10:17 +0200 In-Reply-To: (Karthik Nayak's message of "Sun, 11 Oct 2015 23:16:48 +0530") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (rominette.imag.fr [129.88.30.17]); Sun, 11 Oct 2015 20:10:16 +0200 (CEST) X-IMAG-MailScanner-Information: Please contact MI2S MIM for more information X-MailScanner-ID: t9BIAFje007583 X-IMAG-MailScanner: Found to be clean X-IMAG-MailScanner-SpamCheck: X-IMAG-MailScanner-From: matthieu.moy@grenoble-inp.fr MailScanner-NULL-Check: 1445191818.40158@7H28JgGrgVFt0jF7gKvePA Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Karthik Nayak 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 | grep "some-plumbing-message" will always get the same result regardless of the current locale. -- Matthieu Moy http://www-verimag.imag.fr/~moy/