96
return [eval [list format $fmt] $args]
97
}
98
99
+proc strcat {args} {
100
+ return [join $args {}]
101
+}
102
+
103
::msgcat::mcload $oguimsg
104
unset oguimsg
105
544
-icon error \
545
-type ok \
546
-title [mc "git-gui: fatal error"] \
543
- -message [append [mc "Cannot parse Git version string:"] "\n\n$_git_version"]
547
+ -message [strcat [mc "Cannot parse Git version string:"] "\n\n$_git_version"]
548
exit 1
549
}
550
726
set _prefix [git rev-parse --show-prefix]
727
} err]} {
728
catch {wm withdraw .}
725
- error_popup [append [mc "Cannot find the git directory:"] "\n\n$err"]
729
+ error_popup [strcat [mc "Cannot find the git directory:"] "\n\n$err"]
730
exit 1
731
}
732
if {![file isdirectory $_gitdir] && [is_Cygwin]} {
734
}
735
if {![file isdirectory $_gitdir]} {
736
catch {wm withdraw .}
733
- error_popup [append [mc "Git directory not found:"] "\n\n$_gitdir"]
737
+ error_popup [strcat [mc "Git directory not found:"] "\n\n$_gitdir"]
738
exit 1
739
}
740
if {$_prefix ne {}} {
741
regsub -all {[^/]+/} $_prefix ../ cdup
742
if {[catch {cd $cdup} err]} {
743
catch {wm withdraw .}
740
- error_popup [append [mc "Cannot move to top of working directory:"] "\n\n$err"]
744
+ error_popup [strcat [mc "Cannot move to top of working directory:"] "\n\n$err"]
745
exit 1
746
}
747
unset cdup
748
} elseif {![is_enabled bare]} {
749
if {[lindex [file split $_gitdir] end] ne {.git}} {
750
catch {wm withdraw .}
747
- error_popup [append [mc "Cannot use funny .git directory:"] "\n\n$_gitdir"]
751
+ error_popup [strcat [mc "Cannot use funny .git directory:"] "\n\n$_gitdir"]
752
exit 1
753
}
754
if {[catch {cd [file dirname $_gitdir]} err]} {
755
catch {wm withdraw .}
752
- error_popup [append [mc "No working directory"] " [file dirname $_gitdir]:\n\n$err"]
756
+ error_popup [strcat [mc "No working directory"] " [file dirname $_gitdir]:\n\n$err"]
757
exit 1
758
}
759
}
1662
font configure $font $cn $cv
1663
}
1664
} err]} {
1661
- error_popup [append [mc "Invalid font specified in %s:" "gui.$name"] "\n\n$err"]
1665
+ error_popup [strcat [mc "Invalid font specified in %s:" "gui.$name"] "\n\n$err"]
1666
}
1667
foreach {cn cv} [font configure $font] {
1668
font configure ${font}bold $cn $cv