git-gui: Make backporting changes from i18n version easier
This is a very trivial hack to define a global mc procedure that does not actually perform i18n translations on its input strings. By declaring an mc procedure here in our maint version of git-gui we can take patches that are intended for the latest development version of git-gui and easily backport them without needing to tweak the mc calls first. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>maint
							parent
							
								
									63c4024ff0
								
							
						
					
					
						commit
						e7034d66ec
					
				
							
								
								
									
										12
									
								
								git-gui.sh
								
								
								
								
							
							
						
						
									
										12
									
								
								git-gui.sh
								
								
								
								
							|  | @ -62,6 +62,18 @@ if {![catch {set _verbose $env(GITGUI_VERBOSE)}]} { | |||
| 	} | ||||
| } | ||||
|  | ||||
| ###################################################################### | ||||
| ## | ||||
| ## Fake internationalization to ease backporting of changes. | ||||
|  | ||||
| proc mc {fmt args} { | ||||
| 	set cmk [string first @@ $fmt] | ||||
| 	if {$cmk > 0} { | ||||
| 		set fmt [string range $fmt 0 [expr {$cmk - 1}]] | ||||
| 	} | ||||
| 	return [eval [list format $fmt] $args] | ||||
| } | ||||
|  | ||||
| ###################################################################### | ||||
| ## | ||||
| ## read only globals | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Shawn O. Pearce
						Shawn O. Pearce