Merge commit
c8c5df79df34b40119c4bf8e3079520762f258d1
Merge branch 'jx/i18n-fix' of github.com:jiangxin/gitk
* 'jx/i18n-fix' of github.com:jiangxin/gitk: gitk: l10n: make PO headers identify the Gitk project gitk: ignore generated POT file gitk: i18n: use "Gitk" as package name in POT file Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Johannes Sixt <j6t@kdbg.org> · 2026-03-20 08:23 UTC
Combined diff: only what this merge did beyond taking one side. Added lines are colored by the parent they came from; bold lines came from none of them; removed lines are red.
2 files changed,
+6
−4
modified Makefile
| @@@ -68,12 -68,9 +68,12 @@@ gitk-wish: gitk GIT-TCLTK-VAR | ||
| 68 | $(SHELL_PATH) ./generate-tcl.sh "$(TCLTK_PATH_SQ)" "$<" "$@" | |
| 69 | ||
| 70 | $(PO_TEMPLATE): gitk | |
| - | $(XGETTEXT) -kmc -LTcl -o $@ gitk | |
| 71 | + | $(XGETTEXT) -kmc -LTcl --package-name=Gitk -o $@ gitk |
| 72 | update-po:: $(PO_TEMPLATE) | |
| - | $(foreach p, $(ALL_POFILES), echo Updating $p ; msgmerge -U $p $(PO_TEMPLATE) ; ) | |
| 73 | + | $(foreach p, $(ALL_POFILES), echo Updating $p ; msgmerge -U --add-location $p $(PO_TEMPLATE) ; ) |
| 74 | + | @echo "Before committing changes, ensure that a clean-filter is installed:"; \ |
| 75 | + | echo; \ |
| 76 | + | echo " git config filter.gettext-no-location.clean \"msgcat --no-location -\"" |
| 77 | $(ALL_MSGFILES): %.msg : %.po | |
| 78 | @echo Generating catalog $@ | |
| 79 | $(MSGFMT) --statistics --tcl -l $(basename $(notdir $<)) -d $(dir $@) $< | |
modified po/zh_cn.po
| @@@ -2,9 -2,10 +2,9 @@@ | ||
| 2 | # | |
| 3 | # Translators: | |
| 4 | # YanKe <imyanke@163.com>, 2017 | |
| - | ||
| 5 | msgid "" | |
| 6 | msgstr "" | |
| - | "Project-Id-Version: Git Chinese Localization Project\n" | |
| 7 | + | "Project-Id-Version: Gitk Chinese Localization Project\n" |
| 8 | "Report-Msgid-Bugs-To: \n" | |
| 9 | "POT-Creation-Date: 2017-02-28 23:11+0800\n" | |
| 10 | "PO-Revision-Date: 2017-03-11 02:27+0800\n" | |