* 'master' of https://github.com/j6t/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
  gitk: commit translation files without file information
  gitk: support link color in the Preferences dialog
  gitk: use config settings for head/tag colors
This commit is contained in:
Junio C Hamano committed 2026-03-21 09:25:10 -07:00
commit b70a02dcc9
19 files changed
+187 -4509

No files matched your search

+1
View File
@@ -1,2 +1,3 @@
/GIT-TCLTK-VARS
/gitk-wish
po/gitk.pot
+5 -2
View File
@@ -68,9 +68,12 @@ 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) ; )
$(foreach p, $(ALL_POFILES), echo Updating $p ; msgmerge -U --add-location $p $(PO_TEMPLATE) ; )
@echo "Before committing changes, ensure that a clean-filter is installed:"; \
echo; \
echo " git config filter.gettext-no-location.clean \"msgcat --no-location -\""
$(ALL_MSGFILES): %.msg : %.po
@echo Generating catalog $@
$(MSGFMT) --statistics --tcl -l $(basename $(notdir $<)) -d $(dir $@) $<
+15 -6
View File
@@ -6831,16 +6831,18 @@ proc drawtags {id x xt y1} {
} else {
# draw a head or other ref
if {[incr nheads -1] >= 0} {
set col $headbgcolor
set refoutlinecol $headoutlinecolor
set reffillcol $headbgcolor
if {$tag eq $mainhead} {
set font mainfontbold
}
} else {
set col "#ddddff"
set refoutlinecol black
set reffillcol "#ddddff"
}
set xl [expr {$xl - $delta/2}]
$canv create polygon $x $yt $xr $yt $xr $yb $x $yb \
-width 1 -outline black -fill $col -tags tag.$id
-width 1 -outline $refoutlinecol -fill $reffillcol -tags tag.$id
if {[regexp {^(remotes/[^/]*/|remotes/)} $tag match remoteprefix]} {
set rwid [font measure mainfont $remoteprefix]
set xi [expr {$x + 1}]
@@ -6850,7 +6852,8 @@ proc drawtags {id x xt y1} {
-width 0 -fill $remotebgcolor -tags tag.$id
}
}
set t [$canv create text $xl $y1 -anchor w -text $tag -fill $headfgcolor \
set textfgcolor [expr {$ntags >= 0 ? $tagfgcolor : $headfgcolor}]
set t [$canv create text $xl $y1 -anchor w -text $tag -fill $textfgcolor \
-font $font -tags [list tag.$id text]]
if {$ntags >= 0} {
$canv bind $t <1> $tagclick
@@ -11796,7 +11799,7 @@ proc prefspage_general {notebook} {
proc prefspage_colors {notebook} {
global bgcolor fgcolor ctext diffcolors selectbgcolor markbgcolor
global diffbgcolors
global diffbgcolors linkfgcolor
global themeloader
set page [create_prefs_page $notebook.colors]
@@ -11873,6 +11876,11 @@ proc prefspage_colors {notebook} {
-command [list choosecolor selectbgcolor {} $page [mc "background"]]
grid x $page.selbgbut $page.selbgsep -sticky w
label $page.linkfg -padx 40 -relief sunk -background $linkfgcolor
ttk::button $page.linkfgbut -text [mc "Link"] \
-command [list choosecolor linkfgcolor {} $page [mc "link"]]
grid x $page.linkfgbut $page.linkfg -sticky w
grid columnconfigure $page 2 -weight 1
return $page
@@ -11880,7 +11888,7 @@ proc prefspage_colors {notebook} {
proc prefspage_set_colorswatches {page} {
global bgcolor fgcolor ctext diffcolors selectbgcolor markbgcolor
global diffbgcolors
global diffbgcolors linkfgcolor
$page.bg configure -background $bgcolor
$page.fg configure -background $fgcolor
@@ -11891,6 +11899,7 @@ proc prefspage_set_colorswatches {page} {
$page.hunksep configure -background [lindex $diffcolors 2]
$page.markbgsep configure -background $markbgcolor
$page.selbgsep configure -background $selectbgcolor
$page.linkfg configure -background $linkfgcolor
}
proc prefspage_fonts {notebook} {
+1
View File
@@ -0,0 +1 @@
/*.po filter=gettext-no-location
+1 -1
View File
@@ -6,7 +6,7 @@
#
msgid ""
msgstr ""
"Project-Id-Version: gitk master\n"
"Project-Id-Version: Gitk master\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-07-22 18:34+0200\n"
"PO-Revision-Date: 2025-07-28 13:38+0200\n"
+1 -311
View File
File diff suppressed because it is too large. Load diff
+4 -314
View File
File diff suppressed because it is too large. Load diff
+1 -311
View File
File diff suppressed because it is too large. Load diff
+19 -322
View File
File diff suppressed because it is too large. Load diff
+1 -311
View File
File diff suppressed because it is too large. Load diff
+1 -311
View File
File diff suppressed because it is too large. Load diff
+9 -318
View File
File diff suppressed because it is too large. Load diff
+1 -311
View File
File diff suppressed because it is too large. Load diff
+1 -315
View File
File diff suppressed because it is too large. Load diff
+58 -339
View File
File diff suppressed because it is too large. Load diff
+1 -327
View File
File diff suppressed because it is too large. Load diff
+26 -365
View File
File diff suppressed because it is too large. Load diff
+1 -311
View File
File diff suppressed because it is too large. Load diff
+40 -334
View File
File diff suppressed because it is too large. Load diff