]> git.ipfire.org Git - thirdparty/git.git/commitdiff
gitk: i18n: use "Gitk" as package name in POT file
authorJiang Xin <worldhello.net@gmail.com>
Thu, 19 Mar 2026 09:06:25 +0000 (17:06 +0800)
committerJiang Xin <worldhello.net@gmail.com>
Fri, 20 Mar 2026 01:31:04 +0000 (09:31 +0800)
Use "Gitk" instead of the placeholder "PACKAGE" in the header of the
generated po/gitk.pot file. In particular, the "Project-Id-Version"
field in the header entry should be set to:

    "Project-Id-Version: Gitk\n"

New PO files generated from this POT file will inherit that package
name.

Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
Makefile

index cc32dcab4b2a6b0478ddbea4625fc61e40f4bfca..a9675a21456940f3fc67f87a2915d603aba4d907 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -68,7 +68,7 @@ gitk-wish: gitk GIT-TCLTK-VARS
        $(SHELL_PATH) ./generate-tcl.sh "$(TCLTK_PATH_SQ)" "$<" "$@"
 
 $(PO_TEMPLATE): gitk
-       $(XGETTEXT) -kmc -LTcl -o $@ gitk
+       $(XGETTEXT) -kmc -LTcl --package-name=Gitk -o $@ gitk
 update-po:: $(PO_TEMPLATE)
        $(foreach p, $(ALL_POFILES), echo Updating $p ; msgmerge -U $p $(PO_TEMPLATE) ; )
 $(ALL_MSGFILES): %.msg : %.po