git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Bulgarian translation of git

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Feb 13, 2012, 14:00 UTC
Message-ID
<20120213133957.GA4838@burratino>
In-Reply-To
<7vy5s7idxb.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
> Jiang Xin <worldhello.net@gmail.com> writes:
Show 9 quoted lines
>> I have a question, which version of po should be maintained? master
>> branch or maint branch.
>
> I would say for this round the git-po repository and its pot file should
> pick up whatever new translatable strings are added to 'master'.
>
> After this is merged in 1.7.10, we may want to maintain separate tracks,
> but at this moment there is no point maintaining something mergeable to
> 1.7.9.x maintenance track.

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? Jonathan

diff --git i/Makefile w/Makefile
index 1e91b19c..5dbc6205 100644
--- i/Makefile
+++ w/Makefile
@@ -2103,7 +2103,8 @@ LOCALIZED_C := $(C_OBJ:o=c)
 LOCALIZED_SH := $(SCRIPT_SH)
 
 po/git.pot: $(LOCALIZED_C)
-	$(QUIET_XGETTEXT)$(XGETTEXT) -o$@+ $(XGETTEXT_FLAGS_C) $(LOCALIZED_C)
+	cp $@ $@+
+	$(QUIET_XGETTEXT)$(XGETTEXT) -o$@+ --join-existing $(XGETTEXT_FLAGS_C) $(LOCALIZED_C)
 	$(QUIET_XGETTEXT)$(XGETTEXT) -o$@+ --join-existing $(XGETTEXT_FLAGS_SH) \
 		$(LOCALIZED_SH)
 	mv $@+ $@
Previous: Jiang XinNext: Jiang Xin
Message 7 of 12 in “Bulgarian translation of git”
  1. =?UTF-8?Q? Alexander_Shopov_(=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=8A=D1=80_=D0=A8=D0=BE=D0=BF=D0=BE=D0=B2) ?=Feb 10, 2012
  2. Jiang XinFeb 13, 2012
  3. Junio C HamanoFeb 13, 2012
  4. Jiang XinFeb 13, 2012
  5. Junio C HamanoFeb 13, 2012
  6. Jiang XinFeb 13, 2012
  7. Jonathan NiederFeb 13, 2012
  8. Jiang XinFeb 13, 2012
  9. Jonathan NiederFeb 13, 2012
  10. Junio C HamanoFeb 13, 2012
  11. Jiang XinFeb 15, 2012
  12. Junio C HamanoFeb 15, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.