gitk: UI text: change "SHA1 ID" to "Commit ID"

SHA1 might not stay forever, and plans to use SHA256 already exist,
so use the official name for it - "Commit ID".

Only visible UI texts are modified to reduce the noise when using
git-blame, while comments and variable names still contain SHA1/sha1.

Signed-off-by: Avi Halachmi (:avih) <avihpit@yahoo.com>
This commit is contained in:
Avi Halachmi (:avih)
2024-12-11 10:07:54 +02:00
parent b952bd0c2e
commit 66496dabd4

10
gitk
View File

@@ -2223,7 +2223,7 @@ proc makewindow {} {
set sha1entry .tf.bar.sha1 set sha1entry .tf.bar.sha1
set entries $sha1entry set entries $sha1entry
set sha1but .tf.bar.sha1label set sha1but .tf.bar.sha1label
button $sha1but -text "[mc "SHA1 ID:"] " -state disabled -relief flat \ button $sha1but -text "[mc "Commit ID:"] " -state disabled -relief flat \
-command gotocommit -width 8 -command gotocommit -width 8
$sha1but conf -disabledforeground [$sha1but cget -foreground] $sha1but conf -disabledforeground [$sha1but cget -foreground]
pack .tf.bar.sha1label -side left pack .tf.bar.sha1label -side left
@@ -8756,7 +8756,7 @@ proc sha1change {n1 n2 op} {
if {$state == "normal"} { if {$state == "normal"} {
$sha1but conf -state normal -relief raised -text "[mc "Goto:"] " $sha1but conf -state normal -relief raised -text "[mc "Goto:"] "
} else { } else {
$sha1but conf -state disabled -relief flat -text "[mc "SHA1 ID:"] " $sha1but conf -state disabled -relief flat -text "[mc "Commit ID:"] "
} }
} }
@@ -8775,7 +8775,7 @@ proc gotocommit {} {
set matches [longid $id] set matches [longid $id]
if {$matches ne {}} { if {$matches ne {}} {
if {[llength $matches] > 1} { if {[llength $matches] > 1} {
error_popup [mc "Short SHA1 id %s is ambiguous" $id] error_popup [mc "Short commit ID %s is ambiguous" $id]
return return
} }
set id [lindex $matches 0] set id [lindex $matches 0]
@@ -8792,7 +8792,7 @@ proc gotocommit {} {
return return
} }
if {[regexp {^[0-9a-fA-F]{4,}$} $sha1string]} { if {[regexp {^[0-9a-fA-F]{4,}$} $sha1string]} {
set msg [mc "SHA1 id %s is not known" $sha1string] set msg [mc "Commit ID %s is not known" $sha1string]
} else { } else {
set msg [mc "Revision %s is not in the current view" $sha1string] set msg [mc "Revision %s is not in the current view" $sha1string]
} }
@@ -11594,7 +11594,7 @@ proc prefspage_general {notebook} {
${NS}::checkbutton $page.showlocal -text [mc "Show local changes"] \ ${NS}::checkbutton $page.showlocal -text [mc "Show local changes"] \
-variable showlocalchanges -variable showlocalchanges
grid x $page.showlocal -sticky w grid x $page.showlocal -sticky w
${NS}::checkbutton $page.autoselect -text [mc "Auto-select SHA1 (length)"] \ ${NS}::checkbutton $page.autoselect -text [mc "Auto-select commit ID (length)"] \
-variable autoselect -variable autoselect
spinbox $page.autosellen -from 1 -to 40 -width 4 -textvariable autosellen spinbox $page.autosellen -from 1 -to 40 -width 4 -textvariable autosellen
grid x $page.autoselect $page.autosellen -sticky w grid x $page.autoselect $page.autosellen -sticky w