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>
Avi Halachmi (:avih) committed
Dec 11, 2024 at 10:07 UTC
66496dabd4fe26e8b2093ab923c7dea30e0fe7e4
1 file changed
+5
-5
gitk
+5
-5
@@ -2223,7 +2223,7 @@ proc makewindow {} {
2223
set sha1entry .tf.bar.sha1
2224
set entries $sha1entry
2225
set sha1but .tf.bar.sha1label
2226
- button $sha1but -text "[mc "SHA1 ID:"] " -state disabled -relief flat \
2226
+ button $sha1but -text "[mc "Commit ID:"] " -state disabled -relief flat \
2227
-command gotocommit -width 8
2228
$sha1but conf -disabledforeground [$sha1but cget -foreground]
2229
pack .tf.bar.sha1label -side left
@@ -8756,7 +8756,7 @@ proc sha1change {n1 n2 op} {
8756
if {$state == "normal"} {
8757
$sha1but conf -state normal -relief raised -text "[mc "Goto:"] "
8758
} else {
8759
- $sha1but conf -state disabled -relief flat -text "[mc "SHA1 ID:"] "
8759
+ $sha1but conf -state disabled -relief flat -text "[mc "Commit ID:"] "
8760
}
8761
}
8762
@@ -8775,7 +8775,7 @@ proc gotocommit {} {
8775
set matches [longid $id]
8776
if {$matches ne {}} {
8777
if {[llength $matches] > 1} {
8778
- error_popup [mc "Short SHA1 id %s is ambiguous" $id]
8778
+ error_popup [mc "Short commit ID %s is ambiguous" $id]
8779
return
8780
}
8781
set id [lindex $matches 0]
@@ -8792,7 +8792,7 @@ proc gotocommit {} {
8792
return
8793
}
8794
if {[regexp {^[0-9a-fA-F]{4,}$} $sha1string]} {
8795
- set msg [mc "SHA1 id %s is not known" $sha1string]
8795
+ set msg [mc "Commit ID %s is not known" $sha1string]
8796
} else {
8797
set msg [mc "Revision %s is not in the current view" $sha1string]
8798
}
@@ -11594,7 +11594,7 @@ proc prefspage_general {notebook} {
11594
${NS}::checkbutton $page.showlocal -text [mc "Show local changes"] \
11595
-variable showlocalchanges
11596
grid x $page.showlocal -sticky w
11597
- ${NS}::checkbutton $page.autoselect -text [mc "Auto-select SHA1 (length)"] \
11597
+ ${NS}::checkbutton $page.autoselect -text [mc "Auto-select commit ID (length)"] \
11598
-variable autoselect
11599
spinbox $page.autosellen -from 1 -to 40 -width 4 -textvariable autosellen
11600
grid x $page.autoselect $page.autosellen -sticky w