From: Jiang Xin Date: Mon, 13 Feb 2012 15:43:45 GMT Subject: Re: Bulgarian translation of git Message-ID: In-Reply-To: <20120213133957.GA4838@burratino> 2012/2/13 Jonathan Nieder : > I wonder if there's a simple to ask the gettext tools to make a po > template including strings from both 'maint' and 'master'.  (Hackish way > demonstrated below.) > > Hopefully that would make it easier for translators to keep both > tracks well maintained at the same time.  If a problem in the > translation of a string shared by 'master' and 'maint' is only noticed > while working on 'master', there would be no need to go through the > "switch branches; make the change; switch back; merge" dance. > > What do you think? Translators on a new language may not like this. Translating the obsolete messages in pot file is boring and waste of time. >  po/git.pot: $(LOCALIZED_C) > -       $(QUIET_XGETTEXT)$(XGETTEXT) -o$@+ $(XGETTEXT_FLAGS_C) $(LOCALIZED_C) > +       cp $@ $@+ Failed if po/git.pot does not exist. touch one first? > +       $(QUIET_XGETTEXT)$(XGETTEXT) -o$@+ --join-existing $(XGETTEXT_FLAGS_C) $(LOCALIZED_C) >        $(QUIET_XGETTEXT)$(XGETTEXT) -o$@+ --join-existing $(XGETTEXT_FLAGS_SH) \ >                $(LOCALIZED_SH) >        mv $@+ $@ -- Jiang Xin