Internationalization of git-gui
PATCH 1/1 Internationalization of git-gui
This is an initial patch of how internationalization (i18n) in git could be done, starting with the git-gui application (because I need that one in German to convince my workplace of switching to git).
Does this implementation look okay? If yes, I'd happily i18n'ize the rest of git-gui and provide a full German translation as well.
Thanks,
Christian Stimming
Quoted 1 line
From
ea66070d95061e623cb5430fe88efea653e511e0Mon Sep 17 00:00:00 2001
From: Christian Stimming <[email protected]>
Date: Thu, 19 Jul 2007 12:48:08 +0200
Subject: [PATCH] Initialize msgcat (gettext).
--- git-gui/git-gui.sh | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
git-gui/git-gui.sh +6 -0
@@ -108,6 +108,12 @@ if {$idx ne {}} { } unset -nocomplain oguirel idx fd +## Internationalization (i18n) through gettext. See +## http://www.gnu.org/software/gettext/manual/html_node/Tcl.html +package require msgcat +::msgcat::mcload [file join $oguilib msgs] +proc _ {s} {return [::msgcat::mc $s]} + ###################################################################### ## ## read only globals
Signature · 1 line
1.5.3.rc2.4.g726f9
Quoted 1 line
From
154d29786bdda205357595e22b3385d7cdb77453Mon Sep 17 00:00:00 2001
From: Christian Stimming <[email protected]>
Date: Thu, 19 Jul 2007 12:49:09 +0200
Subject: [PATCH] Mark strings for translation
--- git-gui/git-gui.sh | 154 ++++++++++++++++++++++++++-------------------------- 1 files changed, 77 insertions(+), 77 deletions(-)
git-gui/git-gui.sh +77 -77
431 lines not on this page · raw message
Signature · 1 line
1.5.3.rc2.4.g726f9
Quoted 1 line
From
3ff00ecdabb82448b95ad3b9e738441236c0eb11Mon Sep 17 00:00:00 2001
From: Christian Stimming <[email protected]>
Date: Thu, 19 Jul 2007 12:49:11 +0200
Subject: [PATCH] Enclose strings in quotes, not in braces, so that xgettext finds them
--- git-gui/git-gui.sh | 104 ++++++++++++++++++++++++++-------------------------- 1 files changed, 52 insertions(+), 52 deletions(-)
git-gui/git-gui.sh +52 -52
314 lines not on this page · raw message
Signature · 1 line
1.5.3.rc2.4.g726f9
Quoted 1 line
From
9b7ef0f5d5627e65e5ab354cf99c8939770416d9Mon Sep 17 00:00:00 2001
From: Christian Stimming <[email protected]>
Date: Thu, 19 Jul 2007 12:50:19 +0200
Subject: [PATCH] Initial German translation for testing of i18n.
--- git-gui/po/de.po | 249 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 249 insertions(+), 0 deletions(-) create mode 100644 git-gui/po/de.po
git-gui/po/de.po new file +249 -0
249 lines not on this page · raw message
Signature · 1 line
1.5.3.rc2.4.g726f9
Quoted 1 line
From
a91dc11906f6ced938dc79bded2fa46fcc147524Mon Sep 17 00:00:00 2001
From: Christian Stimming <[email protected]>
Date: Thu, 19 Jul 2007 12:50:32 +0200
Subject: [PATCH] Makefile rules for message catalog generation and installation.
--- git-gui/Makefile | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-)
git-gui/Makefile +16 -1
@@ -103,6 +103,19 @@ $(patsubst %.sh,%,$(SCRIPT_SH)) : % : %.sh $(GITGUI_BUILT_INS): git-gui $(QUIET_BUILT_IN)rm -f $@ && ln git-gui $@ +XGETTEXT ?= xgettext +msgsdir ?= $(libdir)/msgs +msgsdir_SQ = $(subst ','\'',$(msgsdir)) +PO_TEMPLATE = po/git-gui.pot +ALL_LINGUAS = de + +$(PO_TEMPLATE): $(SCRIPT_SH) $(ALL_LIBFILES) + $(XGETTEXT) -k_ -LTcl -o $@ $(SCRIPT_SH) $(ALL_LIBFILES) +update-po:: $(PO_TEMPLATE) + ( cd po ; for A in *.po ; do echo Updating $${A} ; msgmerge -U $${A} ../$(PO_TEMPLATE) ; done ) +catalogs:: $(PO_TEMPLATE) + ( cd po ; for A in $(ALL_LINGUAS) ; do echo Generating catalog $${A} ; msgfmt --statistics --tcl $${A}.po -l $${A} -d . ; done ) + lib/tclIndex: $(ALL_LIBFILES) $(QUIET_INDEX)if echo \ $(foreach p,$(PRELOAD_FILES),source $p\;) \
@@ -136,7 +149,7 @@ GIT-GUI-VARS: .FORCE-GIT-GUI-VARS echo 1>$@ "$$VARS"; \ fi -all:: $(ALL_PROGRAMS) lib/tclIndex +all:: $(ALL_PROGRAMS) lib/tclIndex catalogs install: all $(QUIET)$(INSTALL_D0)'$(DESTDIR_SQ)$(gitexecdir_SQ)' $(INSTALL_D1)
@@ -145,6 +158,8 @@ install: all $(QUIET)$(INSTALL_D0)'$(DESTDIR_SQ)$(libdir_SQ)' $(INSTALL_D1) $(QUIET)$(INSTALL_R0)lib/tclIndex $(INSTALL_R1) '$(DESTDIR_SQ)$(libdir_SQ)' $(QUIET)$(foreach p,$(ALL_LIBFILES), $(INSTALL_R0)$p $(INSTALL_R1) '$(DESTDIR_SQ)$(libdir_SQ)' &&) true + $(QUIET)$(INSTALL_D0)'$(DESTDIR_SQ)$(msgsdir_SQ)' $(INSTALL_D1) + $(QUIET)$(foreach p,$(ALL_LINGUAS), $(INSTALL_R0)po/$p.msg $(INSTALL_R1) '$(DESTDIR_SQ)$(msgsdir_SQ)' &&) true dist-version: @mkdir -p $(TARDIR)
Signature · 1 line
1.5.3.rc2.4.g726f9
Hi,
Quoted 1 line · Christian Stimming
Does this implementation look okay?
This is valuable work, but unfortunately, it does not follow the recommendation in Documentation/SubmittingPatches at all.
For starters, please send the patches inlined, one per mail. And you might want to Cc the maintainer of git-gui (Shawn Pearce), too...
Ciao,
Dscho
Quoted 9 lines · Johannes Schindelin
Quoted 1 line · Christian Stimming
Does this implementation look okay?
This is valuable work, but unfortunately, it does not follow the recommendation in
Documentation/SubmittingPatchesat all.For starters, please send the patches inlined, one per mail. And you might want to Cc the maintainer of git-gui (Shawn Pearce), too...
I agree that internationalization of git-gui is worth doing. I've thought about working on it, but haven't yet because nobody else has seemed interested in having it done. Apparently someone is, so patches towards that end are most welcome.
Signature · 1 line
Shawn.
Quoted 8 lines · Shawn O. Pearce
Quoted 7 lines · Johannes Schindelin
Quoted 1 line · Christian Stimming
Does this implementation look okay?
This is valuable work, but unfortunately, it does not follow the recommendation in
Documentation/SubmittingPatchesat all.
Quoted 7 lines
Quoted 2 lines
For starters, please send the patches inlined, one per mail. And you might want to Cc the maintainer of git-gui (Shawn Pearce), too...
I agree that internationalization of git-gui is worth doing. I've thought about working on it, but haven't yet because nobody else has seemed interested in having it done. Apparently someone is, so patches towards that end are most welcome.
Hi Shawn,
I volunteer to translate all the git-gui messages in Italian.
Just let me if you are interested and please give me an hint on how to produce the translation so that you can incorporate it.
Thanks.
Regards,
Signature · 3 lines
Paolo "Tutto cio' che merita di essere fatto,merita di essere fatto bene" Philip Stanhope IV conte di Chesterfield
Quoted 4 lines · Paolo Ciarrocchi
I volunteer to translate all the git-gui messages in Italian.
Just let me if you are interested and please give me an hint on how to produce the translation so that you can incorporate it.
Ah, am I expected to volunteer for Japanese part?
Unless yashi, yoshifuji, or nanako3 volunteer, although I do not mind doing that myself, that is (if there are any Japanese people I forgot, I apologize). I wonder how many people outside English zone are regularly on the list...
Quoted 4 lines · Junio C Hamano
I wonder how many people outside
English zone are regularly on the list...From a scandinavian country (Denmark) but really I would never use
a translated version. So some decent amount of pressure would be needed to convince me to add danish :-)
Sam
Quoted 2 lines · Junio C Hamano
I wonder how many people outside
English zone are regularly on the list...
I am a Chinese, subscribed today.
Xudong
Hi,
Quoted 4 lines · Junio C Hamano
Quoted 2 lines · Paolo Ciarrocchi
I volunteer to translate all the git-gui messages in Italian.
Quoted 8 lines
Quoted 2 lines
Just let me if you are interested and please give me an hint on how to produce the translation so that you can incorporate it.
Ah, am I expected to volunteer for Japanese part?
Unless yashi, yoshifuji, or nanako3 volunteer, although I do not mind doing that myself, that is (if there are any Japanese people I forgot, I apologize).
According to http://en.wikipedia.org/wiki/Japan, you forgot roughly 127,433,490 people ;-)
Quoted 2 lines
I wonder how many people outside English zone are regularly on the list...
Here is one, but Christian already volunteered for the German part, I understand...
Ciao,
Dscho
On 7/20/07, Johannes Schindelin <[email protected]> wrote:
[...]
Quoted 2 lines
Quoted 2 lines
I wonder how many people outside English zone are regularly on the list...
I tried to verify the results of the survey I sent out last year:
http://git.or.cz/gitwiki/GitSurvey
unfortunately that page seems to be full of spam.
Ciao,
Signature · 1 line
Paolo
Hi,
Quoted 8 lines · Paolo Ciarrocchi
On 7/20/07, Johannes Schindelin <[email protected]> wrote:
[...]Quoted 2 lines
Quoted 2 lines
I wonder how many people outside English zone are regularly on the list...
I tried to verify the results of the survey I sent out last year:
http://git.or.cz/gitwiki/GitSurvey
unfortunately that page seems to be full of spam.
No longer. FWIW you can do it yourself: if you are logged in, there is a "restore" link to the far right on the "Info" page of every wiki page.
Hth,
Dscho
Quoting Junio C Hamano <[email protected]>:
Quoted 7 lines
Quoted 4 lines · Paolo Ciarrocchi
I volunteer to translate all the git-gui messages in Italian.
Just let me if you are interested and please give me an hint on how to produce the translation so that you can incorporate it.
Quoted 6 lines
Ah, am I expected to volunteer for Japanese part?
Unless yashi, yoshifuji, or nanako3 volunteer, although I do not mind doing that myself, that is (if there are any Japanese people I forgot, I apologize). I wonder how many people outside English zone are regularly on the list...
I can help. What's involved?
Signature · 6 lines
Nanako Shiraishi http://ivory.ap.teacup.com/nanako3/ ---------------------------------------------------------------------- Free pop3 email with a spam filter. http://www.bluebottle.com/tag/5
Quoted 8 lines · しらいしななこ
Quoting Junio C Hamano <[email protected]>:
Quoted 4 lines
Ah, am I expected to volunteer for Japanese part?
Unless yashi, yoshifuji, or nanako3 volunteer, although I do not mind doing that myself,...
I can help. What's involved?
Wonderful.
As Johannes announced the 'mob' stuff, I think it would be easiest to work there as others --- for this type of work, there probably won't be much stepping on each other's toes involved as long as there are not more than one translator per language.
What's involved to get a new language 'xy' started is roughly:
- Run 'make' once, to get po/git-gui.pot generated;
- Copy po/git-gui.pot to po/xy.po;
- Update the placeholder strings at the beginning of the po/xy.po file appropriately.
- Add 'xy' to the list of languages to ALL_LINGUAS list in the Makefile.
After that, add translations to the (initially empty) string on the lines that begin with 'msgstr'. Set of msgid's need to be kept in sync with the source as the translated software evolve, but gettext framework hopefully will take care of most of the chore.
I'll get on the 'mob' bandwagon and try to push out something like the attached patch, so that you do not necessarily have to have the whole gettext toolchain.
-- >8 --
This gets the ball started for Japanese translation, but as I am lazy, I only translated three words. I took credit by placing my name on the "Last-Translator" line, but shifted most of the remaining work to Nana, who showed interest on the list, by naming her at the beginnign of the file ;-)
--- Makefile | 2 +- po/ja.po | 250 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 251 insertions(+), 1 deletions(-) create mode 100644 po/ja.po
Makefile +1 -1
@@ -107,7 +107,7 @@ XGETTEXT ?= xgettext msgsdir ?= $(libdir)/msgs msgsdir_SQ = $(subst ','\'',$(msgsdir)) PO_TEMPLATE = po/git-gui.pot -ALL_LINGUAS = de +ALL_LINGUAS = de ja $(PO_TEMPLATE): $(SCRIPT_SH) $(ALL_LIBFILES) $(XGETTEXT) -k_ -LTcl -o $@ $(SCRIPT_SH) $(ALL_LIBFILES)
po/ja.po new file +250 -0
250 lines not on this page · raw message
Signature · 1 line
1.5.3.rc2.22.g69a9b
PATCH 1/1 Initial Chinese translation
Simplified Chinese, in UTF-8 encoding.
--- po/zh.po | 250 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 250 insertions(+), 0 deletions(-) create mode 100644 po/zh.po
po/zh.po new file +250 -0
@@ -0,0 +1,250 @@ +# Translation of git-gui to Chinese +# Copyright (C) 2007 Shawn Pearce +# This file is distributed under the same license as the git-gui package. +# Xudong Guan <[email protected]>, 2007. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: git-gui\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2007-07-21 23:46+0100\n" +"PO-Revision-Date: 2007-07-21 01:23-0700\n" +"Last-Translator: Xudong Guan <[email protected]>\n" +"Language-Team: Chinese\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: git-gui.sh:1656 +msgid "Repository" +msgstr "ç‰ˆæœ¬æ ‘" + +#: git-gui.sh:1657 +msgid "Edit" +msgstr "编辑" + +#: git-gui.sh:1659 +msgid "Branch" +msgstr "分支" + +#: git-gui.sh:1662 git-gui.sh:1840 +msgid "Commit" +msgstr "æ��交" + +#: git-gui.sh:1665 +msgid "Merge" +msgstr "å�ˆå¹¶" + +#: git-gui.sh:1666 +msgid "Fetch" +msgstr "导入" + +#: git-gui.sh:1667 +msgid "Push" +msgstr "ä¸Šä¼ " + +#: git-gui.sh:1676 +msgid "Browse Current Branch's Files" +msgstr "æµ�览当å‰�分支文件" + +#: git-gui.sh:1685 +msgid "Visualize Current Branch's History" +msgstr "调用gitk显示当å‰�分支" + +#: git-gui.sh:1689 +msgid "Visualize All Branch History" +msgstr "调用gitk显示所有分支" + +#: git-gui.sh:1694 +msgid "Database Statistics" +msgstr "æ•°æ�®åº“统计数æ�®" + +#: git-gui.sh:1697 +msgid "Compress Database" +msgstr "压缩数æ�®åº“" + +#: git-gui.sh:1700 +msgid "Verify Database" +msgstr "验è¯�æ•°æ�®åº“" + +#: git-gui.sh:1707 git-gui.sh:1711 git-gui.sh:1715 +msgid "Create Desktop Icon" +msgstr "创建桌é�¢å›¾æ ‡" + +#: git-gui.sh:1720 +msgid "Quit" +msgstr "退出" + +#: git-gui.sh:1727 +msgid "Undo" +msgstr "撤销" + +#: git-gui.sh:1730 +msgid "Redo" +msgstr "é‡�å�š" + +#: git-gui.sh:1734 git-gui.sh:2249 +msgid "Cut" +msgstr "剪切" + +#: git-gui.sh:1737 git-gui.sh:2252 git-gui.sh:2323 git-gui.sh:2395 +msgid "Copy" +msgstr "å¤�制" + +#: git-gui.sh:1740 git-gui.sh:2255 +msgid "Paste" +msgstr "粘贴" + +#: git-gui.sh:1743 git-gui.sh:2258 +msgid "Delete" +msgstr "åˆ é™¤" + +#: git-gui.sh:1747 git-gui.sh:2262 git-gui.sh:2399 +msgid "Select All" +msgstr "全选" + +#: git-gui.sh:1756 +msgid "Create..." +msgstr "新建..." + +#: git-gui.sh:1762 +msgid "Checkout..." +msgstr "切æ�¢..." + +#: git-gui.sh:1768 +msgid "Rename..." +msgstr "改å��..." + +#: git-gui.sh:1773 git-gui.sh:1871 +msgid "Delete..." +msgstr "åˆ é™¤..." + +#: git-gui.sh:1778 +msgid "Reset..." +msgstr "é‡�置所有修动..." + +#: git-gui.sh:1790 +msgid "New Commit" +msgstr "æ–°æ��交" + +#: git-gui.sh:1798 +msgid "Amend Last Commit" +msgstr "修订上次æ��交" + +#: git-gui.sh:1807 +msgid "Rescan" +msgstr "é‡�新扫æ��" + +#: git-gui.sh:1813 +msgid "Add To Commit" +msgstr "æ·»åŠ åˆ°æœ¬æ¬¡æ��交" + +#: git-gui.sh:1818 +msgid "Add Existing To Commit" +msgstr "æ·»åŠ é»˜è®¤ä¿®æ”¹æ–‡ä»¶" + +#: git-gui.sh:1824 +msgid "Unstage From Commit" +msgstr "从本次æ��交移除" + +#: git-gui.sh:1829 +msgid "Revert Changes" +msgstr "æ�¢å¤�修改" + +#: git-gui.sh:1836 git-gui.sh:2273 +msgid "Sign Off" +msgstr "ç¾å��" + +#: git-gui.sh:1851 +msgid "Local Merge..." +msgstr "本地å�ˆå¹¶..." + +#: git-gui.sh:1856 +msgid "Abort Merge..." +msgstr "å�–消å�ˆå¹¶..." + +#: git-gui.sh:1868 +msgid "Push..." +msgstr "ä¸Šä¼ ..." + +#: git-gui.sh:1878 +msgid "Apple" +msgstr "苹果" + +#: git-gui.sh:1881 git-gui.sh:1928 +#, tcl-format +msgid "About %s" +msgstr "关于%s" + +#: git-gui.sh:1883 git-gui.sh:1889 git-gui.sh:2441 +msgid "Options..." +msgstr "选项..." + +#: git-gui.sh:1913 +msgid "Tools" +msgstr "工具" + +#: git-gui.sh:1915 +msgid "Migrate" +msgstr "ç§»æ¤�" + +#: git-gui.sh:1924 +msgid "Help" +msgstr "帮助" + +#: git-gui.sh:1965 +msgid "Online Documentation" +msgstr "在线文档" + +#: git-gui.sh:2215 +msgid "Initial Commit Message:" +msgstr "åˆ�å§‹æ��交æ��è¿°:" + +#: git-gui.sh:2216 +msgid "Amended Commit Message:" +msgstr "修订æ��交æ��è¿°:" + +#: git-gui.sh:2217 +msgid "Amended Initial Commit Message:" +msgstr "修订åˆ�å§‹æ��交æ��è¿°:" + +#: git-gui.sh:2218 +msgid "Amended Merge Commit Message:" +msgstr "修订å�ˆå¹¶æ��交æ��è¿°:" + +#: git-gui.sh:2219 +msgid "Merge Commit Message:" +msgstr "å�ˆå¹¶æ��交æ��è¿°:" + +#: git-gui.sh:2220 +msgid "Commit Message:" +msgstr "æ��交æ��è¿°:" + +#: git-gui.sh:2265 git-gui.sh:2403 +msgid "Copy All" +msgstr "全部å¤�制" + +#: git-gui.sh:2391 +msgid "Refresh" +msgstr "刷新" + +#: git-gui.sh:2412 +msgid "Apply/Reverse Hunk" +msgstr "" + +#: git-gui.sh:2418 +msgid "Decrease Font Size" +msgstr "缩å°�å—体" + +#: git-gui.sh:2422 +msgid "Increase Font Size" +msgstr "放大å—体" + +#: git-gui.sh:2427 +msgid "Show Less Context" +msgstr "显示更多diff上下文" + +#: git-gui.sh:2434 +msgid "Show More Context" +msgstr "显示更少diff上下文"
Signature · 1 line
1.5.0.rc3.81.g8188e
Re: [PATCH] Initial Chinese translation
Quoted 6 lines · Xudong Guan
Simplified Chinese, in UTF-8 encoding.
Signed-off-by Xudong Guan <[email protected]>--- po/zh.po | 250 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 250 insertions(+), 0 deletions(-)
This raises another point in the current i18n scheme. How would we allow zh_CN and zh_TW to coexist?
Re: [PATCH] Initial Chinese translation
Quoted 11 lines · Junio C Hamano
Quoted 6 lines · Xudong Guan
Simplified Chinese, in UTF-8 encoding.
Signed-off-by Xudong Guan <[email protected]>--- po/zh.po | 250 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 250 insertions(+), 0 deletions(-)This raises another point in the current i18n scheme. How would we allow
zh_CNandzh_TWto coexist?
They probably should be po/zh_CN.po and po/zh_TW.po. Tcl msgcat loads the file that best matches the user's local preferences, so zh.po would be the fallback if neither zh_CN and zh_TW were present, or if the user was using say zh_US as their preferred local.
Signature · 1 line
Shawn.
Re: [PATCH] Initial Chinese translation
Quoted 10 lines · Shawn O. Pearce
Quoted 9 lines · Junio C Hamano
Quoted 6 lines · Xudong Guan
Simplified Chinese, in UTF-8 encoding.
Signed-off-by Xudong Guan <[email protected]>--- po/zh.po | 250 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 250 insertions(+), 0 deletions(-)
Quoted 4 lines
Quoted 2 lines
This raises another point in the current i18n scheme. How would we allow
zh_CNandzh_TWto coexist?They probably should be po/zh_CN.po and po/zh_TW.po.
Yeah, I was hinting to rename this file to zh_CN.po from day one.
Re: [PATCH] Initial Chinese translation
Quoted 2 lines · Junio C Hamano
Yeah, I was hinting to rename this file to zh_CN.po from day one.
I agree.
I am new to the patch-in-email way of doing things. If I could do better, please give me hints. Can I push directly to mob? Like:
$ git clone http://repo.or.cz/r/git-gui/git-gui-i18n hack hack hack .... $ git push http://repo.or.cz/r/git-gui/git-gui-i18n master:mob
-- >8 --
From 936787ddbdeaf0bcecbb1359179dae90c20418b0 Mon Sep 17 00:00:00 2001
From: Xudong Guan <[email protected]>
Date: Sun, 22 Jul 2007 09:41:12 +0100
Subject: [PATCH] git-gui: renamed po/zh.po -> po/zh_CN.po
--- po/zh.po | 250 ----------------------------------------------------------- po/zh_CN.po | 250 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 250 insertions(+), 250 deletions(-) delete mode 100644 po/zh.po create mode 100644 po/zh_CN.po
po/zh.po deleted +0 -250
@@ -1,250 +0,0 @@ -# Translation of git-gui to Chinese -# Copyright (C) 2007 Shawn Pearce -# This file is distributed under the same license as the git-gui package. -# Xudong Guan <[email protected]>, 2007. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: git-gui\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2007-07-21 23:46+0100\n" -"PO-Revision-Date: 2007-07-21 01:23-0700\n" -"Last-Translator: Xudong Guan <[email protected]>\n" -"Language-Team: Chinese\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#: git-gui.sh:1656 -msgid "Repository" -msgstr "版本树" - -#: git-gui.sh:1657 -msgid "Edit" -msgstr "编辑" - -#: git-gui.sh:1659 -msgid "Branch" -msgstr "分支" - -#: git-gui.sh:1662 git-gui.sh:1840 -msgid "Commit" -msgstr "提交" - -#: git-gui.sh:1665 -msgid "Merge" -msgstr "合并" - -#: git-gui.sh:1666 -msgid "Fetch" -msgstr "导入" - -#: git-gui.sh:1667 -msgid "Push" -msgstr "上传" - -#: git-gui.sh:1676 -msgid "Browse Current Branch's Files" -msgstr "浏览当前分支文件" - -#: git-gui.sh:1685 -msgid "Visualize Current Branch's History" -msgstr "调用gitk显示当前分支" - -#: git-gui.sh:1689 -msgid "Visualize All Branch History" -msgstr "调用gitk显示所有分支" - -#: git-gui.sh:1694 -msgid "Database Statistics" -msgstr "数据库统计数据" - -#: git-gui.sh:1697 -msgid "Compress Database" -msgstr "压缩数据库" - -#: git-gui.sh:1700 -msgid "Verify Database" -msgstr "验证数据库" - -#: git-gui.sh:1707 git-gui.sh:1711 git-gui.sh:1715 -msgid "Create Desktop Icon" -msgstr "创建桌面图标" - -#: git-gui.sh:1720 -msgid "Quit" -msgstr "退出" - -#: git-gui.sh:1727 -msgid "Undo" -msgstr "撤销" - -#: git-gui.sh:1730 -msgid "Redo" -msgstr "重做" - -#: git-gui.sh:1734 git-gui.sh:2249 -msgid "Cut" -msgstr "剪切" - -#: git-gui.sh:1737 git-gui.sh:2252 git-gui.sh:2323 git-gui.sh:2395 -msgid "Copy" -msgstr "复制" - -#: git-gui.sh:1740 git-gui.sh:2255 -msgid "Paste" -msgstr "粘贴" - -#: git-gui.sh:1743 git-gui.sh:2258 -msgid "Delete" -msgstr "删除" - -#: git-gui.sh:1747 git-gui.sh:2262 git-gui.sh:2399 -msgid "Select All" -msgstr "全选" - -#: git-gui.sh:1756 -msgid "Create..." -msgstr "新建..." - -#: git-gui.sh:1762 -msgid "Checkout..." -msgstr "切换..." - -#: git-gui.sh:1768 -msgid "Rename..." -msgstr "改名..." - -#: git-gui.sh:1773 git-gui.sh:1871 -msgid "Delete..." -msgstr "删除..." - -#: git-gui.sh:1778 -msgid "Reset..." -msgstr "重置所有修动..." - -#: git-gui.sh:1790 -msgid "New Commit" -msgstr "新提交" - -#: git-gui.sh:1798 -msgid "Amend Last Commit" -msgstr "修订上次提交" - -#: git-gui.sh:1807 -msgid "Rescan" -msgstr "重新扫描" - -#: git-gui.sh:1813 -msgid "Add To Commit" -msgstr "添加到本次提交" - -#: git-gui.sh:1818 -msgid "Add Existing To Commit" -msgstr "添加默认修改文件" - -#: git-gui.sh:1824 -msgid "Unstage From Commit" -msgstr "从本次提交移除" - -#: git-gui.sh:1829 -msgid "Revert Changes" -msgstr "恢复修改" - -#: git-gui.sh:1836 git-gui.sh:2273 -msgid "Sign Off" -msgstr "签名" - -#: git-gui.sh:1851 -msgid "Local Merge..." -msgstr "本地合并..." - -#: git-gui.sh:1856 -msgid "Abort Merge..." -msgstr "取消合并..." - -#: git-gui.sh:1868 -msgid "Push..." -msgstr "上传..." - -#: git-gui.sh:1878 -msgid "Apple" -msgstr "苹果" - -#: git-gui.sh:1881 git-gui.sh:1928 -#, tcl-format -msgid "About %s" -msgstr "关于%s" - -#: git-gui.sh:1883 git-gui.sh:1889 git-gui.sh:2441 -msgid "Options..." -msgstr "选项..." - -#: git-gui.sh:1913 -msgid "Tools" -msgstr "工具" - -#: git-gui.sh:1915 -msgid "Migrate" -msgstr "移植" - -#: git-gui.sh:1924 -msgid "Help" -msgstr "帮助" - -#: git-gui.sh:1965 -msgid "Online Documentation" -msgstr "在线文档" - -#: git-gui.sh:2215 -msgid "Initial Commit Message:" -msgstr "初始提交描述:" - -#: git-gui.sh:2216 -msgid "Amended Commit Message:" -msgstr "修订提交描述:" - -#: git-gui.sh:2217 -msgid "Amended Initial Commit Message:" -msgstr "修订初始提交描述:" - -#: git-gui.sh:2218 -msgid "Amended Merge Commit Message:" -msgstr "修订合并提交描述:" - -#: git-gui.sh:2219 -msgid "Merge Commit Message:" -msgstr "合并提交描述:" - -#: git-gui.sh:2220 -msgid "Commit Message:" -msgstr "提交描述:" - -#: git-gui.sh:2265 git-gui.sh:2403 -msgid "Copy All" -msgstr "全部复制" - -#: git-gui.sh:2391 -msgid "Refresh" -msgstr "刷新" - -#: git-gui.sh:2412 -msgid "Apply/Reverse Hunk" -msgstr "" - -#: git-gui.sh:2418 -msgid "Decrease Font Size" -msgstr "缩小字体" - -#: git-gui.sh:2422 -msgid "Increase Font Size" -msgstr "放大字体" - -#: git-gui.sh:2427 -msgid "Show Less Context" -msgstr "显示更多diff上下文" - -#: git-gui.sh:2434 -msgid "Show More Context" -msgstr "显示更少diff上下文"
po/zh_CN.po new file +250 -0
250 lines not on this page · raw message
Signature · 1 line
1.5.0.rc3.81.g8188e
Re: [PATCH] Initial Chinese translation
Quoted 7 lines · Xudong Guan
Quoted 2 lines · Junio C Hamano
Yeah, I was hinting to rename this file to zh_CN.po from day one.
I agree.
I am new to the patch-in-email way of doing things...
Well, as Johannes already has your original patch in his tree, it probably is easiest to give him an email requesting a rename on his end ;-).
Re: [PATCH] Initial Chinese translation
In reply to Xudong GuanHi,
Quoted 11 lines · Xudong Guan
Quoted 2 lines · Junio C Hamano
Yeah, I was hinting to rename this file to zh_CN.po from day one.
I agree.
I am new to the patch-in-email way of doing things. If I could do better, please give me hints. Can I push directly to mob? Like:
$ git clone http://repo.or.cz/r/git-gui/git-gui-i18n hack hack hack .... $ git push http://repo.or.cz/r/git-gui/git-gui-i18n master:mob
Almost:
$ git push [email protected]:/srv/git/git-gui/git-gui-i18n.git master:mob
If it says that you might want to pull first, please consider pulling from mob with
$ git pull http://repo.or.cz/r/git-gui/git-gui-i18n.git/ mob
or rebasing with
$ git fetch http://repo.or.cz/r/git-gui/git-gui-i18n.git/ mob $ git rebase FETCH_HEAD
Quoted 4 lines
Quoted 1 line
From
936787ddbdeaf0bcecbb1359179dae90c20418b0Mon Sep 17 00:00:00 2001From: Xudong Guan <[email protected]>
Date: Sun, 22 Jul 2007 09:41:12 +0100
Subject: [PATCH] git-gui: renamed po/zh.po -> po/zh_CN.po
Thanks. Applied.
Before applying, I usually compile test, and it seems like just one translation is missing: Apply/Revert Hunk. Could you please add that, too? Thank you.
Quoted 3 lines
--- po/zh.po | 250 ----------------------------------------------------------- po/zh_CN.po | 250 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Just a tip for the next time: the git diff family -- including format-patch -- knows about renames, when you call it with "-M". The patch will be much shorter then, saying that there was a rename. It is not turned on by default, since only Git knows about this extension for the time being. But that's what we're using, so no problem there.
Ciao,
Dscho
Re: [PATCH] Initial Chinese translation
Hi,
Quoted 6 lines · Johannes Schindelin
Quoted 4 lines
Quoted 1 line
From
936787ddbdeaf0bcecbb1359179dae90c20418b0Mon Sep 17 00:00:00 2001From: Xudong Guan <[email protected]>
Date: Sun, 22 Jul 2007 09:41:12 +0100
Subject: [PATCH] git-gui: renamed po/zh.po -> po/zh_CN.poThanks. Applied.
Ooops. I amended it, because msgformat seems to downcase the name in tcl mode. So it is now called po/zh_cn.po.
I hope it did not inconvenience anybody that I did not do a brown-paper bag commit, but forced a push.
Ciao,
Dscho
Re: [PATCH] Initial Chinese translation
In reply to Xudong GuanQuoted 1 line · Xudong Guan
Simplified Chinese, in UTF-8 encoding.
From: Xudong Guan <[email protected]>
Subject: [PATCH] Initial Chinese translation
To: [email protected]
Cc: Xudong Guan <[email protected]>
Date: Sun, 22 Jul 2007 01:08:56 +0100
Message-ID: <[email protected]>
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Your MUA disagrees with you, at least in the copy I see on gmane.
Re: [PATCH] Initial Chinese translation
In reply to Xudong GuanHi,
Quoted 1 line · Xudong Guan
Simplified Chinese, in UTF-8 encoding.
Unfortunately, I am not able to verify ;-)
I applied it an pushed it out. AFAICT the UTF-8 was imported correctly this time ;-)
Ciao,
Dscho
Re: [PATCH] Initial Chinese translation
Quoted 1 line · Johannes Schindelin
Unfortunately, I am not able to verify ;-)
I pulled and saw your commit. The encoding is good.
Xudong
On 7/21/07, Junio C Hamano <[email protected]> wrote:
paolo@paolo-desktop:~/git-gui-i18n$ ls git-gui.sh GIT-VERSION-GEN lib Makefile po
Quoted 1 line
- Run 'make' once, to get po/git-gui.pot generated;
paolo@paolo-desktop:~/git-gui-i18n$ make GITGUI_VERSION = 0.8.GITGUI * new locations or Tcl/Tk interpreter GEN git-gui BUILTIN git-citool INDEX lib/
paolo@paolo-desktop:~/git-gui-i18n$ ls po/ de.msg de.po glossary.csv ja.msg ja.po
There is "po/git-gui.pot" file in my repository.
Am I doing something wrong?
Thanks!
Ciao,
Signature · 3 lines
Paolo "Tutto cio' che merita di essere fatto,merita di essere fatto bene" Philip Stanhope IV conte di Chesterfield
Hi,
Quoted 15 lines · Paolo Ciarrocchi
On 7/21/07, Junio C Hamano <[email protected]> wrote:
paolo@paolo-desktop:~/git-gui-i18n$ ls git-gui.sh GIT-VERSION-GEN lib Makefile poQuoted 1 line
- Run 'make' once, to get po/git-gui.pot generated;
paolo@paolo-desktop:~/git-gui-i18n$ make GITGUI_VERSION = 0.8.GITGUI * new locations or Tcl/Tk interpreter GEN git-gui BUILTIN git-citool INDEX lib/
Quoted 4 lines
paolo@paolo-desktop:~/git-gui-i18n$ ls po/ de.msg de.po glossary.csv ja.msg ja.poThere is "po/git-gui.pot" file in my repository.
My fault. I was rebasing Junio's patch on top of Christian's new series. Alas, the PO_TEMPLATE was no longer created by default.
Should be fixed now.
Thanks,
Dscho
Quoted 9 lines · Johannes Schindelin
Quoted 4 lines
paolo@paolo-desktop:~/git-gui-i18n$ ls po/ de.msg de.po glossary.csv ja.msg ja.poThere is "po/git-gui.pot" file in my repository.
My fault. I was rebasing Junio's patch on top of Christian's new series. Alas, the
PO_TEMPLATEwas no longer created by default.Should be fixed now.
Note that if everybody agrees that the division of labor between the developer, the i18n coordinator and translators I suggested in the earlier message is the way to go, po/git-gui.pot should be managed by the i18n coordinator and revision tracked in-tree. Simple "make" should not try to update it for ordinary people, but we can have a "i18n coordinator only" maintenance target to update it.
That way, translators do not have to touch anything other than their own po/xx.po files.
Hi,
Quoted 20 lines · Junio C Hamano
Quoted 9 lines · Johannes Schindelin
Quoted 4 lines
paolo@paolo-desktop:~/git-gui-i18n$ ls po/ de.msg de.po glossary.csv ja.msg ja.poThere is "po/git-gui.pot" file in my repository.
My fault. I was rebasing Junio's patch on top of Christian's new series. Alas, the
PO_TEMPLATEwas no longer created by default.Should be fixed now.
Note that if everybody agrees that the division of labor between the developer, the i18n coordinator and translators I suggested in the earlier message is the way to go, po/git-gui.pot should be managed by the i18n coordinator and revision tracked in-tree. Simple "make" should not try to update it for ordinary people, but we can have a "i18n coordinator only" maintenance target to update it.
Quoted 2 lines
That way, translators do not have to touch anything other than their own po/xx.po files.
Done.
Ciao,
Dscho
Hi,
Quoted 4 lines · Junio C Hamano
As Johannes announced the 'mob' stuff, I think it would be easiest to work there as others --- for this type of work, there probably won't be much stepping on each other's toes involved as long as there are not more than one translator per language.
Already merged into git-gui-i18n's master.
Ciao,
Dscho