[GRASS-SVN] r46333 - in
grass/branches/releasebranch_6_4/visualization/nviz: . scripts
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu May 19 15:06:49 EDT 2011
Author: marisn
Date: 2011-05-19 12:06:48 -0700 (Thu, 19 May 2011)
New Revision: 46333
Modified:
grass/branches/releasebranch_6_4/visualization/nviz/
grass/branches/releasebranch_6_4/visualization/nviz/scripts/config.tcl
grass/branches/releasebranch_6_4/visualization/nviz/scripts/nviz2.2_script
Log:
Move internationalization initialization to config, as script playing bypasses nviz2.2_script (merge from dev6 r46332)
Property changes on: grass/branches/releasebranch_6_4/visualization/nviz
___________________________________________________________________
Added: svn:mergeinfo
+ /grass/branches/develbranch_6/visualization/nviz:46331-46332
Modified: grass/branches/releasebranch_6_4/visualization/nviz/scripts/config.tcl
===================================================================
--- grass/branches/releasebranch_6_4/visualization/nviz/scripts/config.tcl 2011-05-19 18:29:48 UTC (rev 46332)
+++ grass/branches/releasebranch_6_4/visualization/nviz/scripts/config.tcl 2011-05-19 19:06:48 UTC (rev 46333)
@@ -74,6 +74,20 @@
# Override bindings for tk widgets
source $src_boot/etc/nviz2.2/scripts/extra_bindings.tcl
+# Overloading internationalization procedures
+# gui.tcl is not used to have separate translation file for NVIZ
+if [catch {package require msgcat}] {
+ proc G_msg {message} {
+ return $message
+ }
+} else {
+ ::msgcat::mcload $env(GISBASE)/etc/nviz2.2/msgs
+ proc G_msg {message} {
+ return [::msgcat::mc $message]
+ }
+}
+
+
##########################################################################
# Resources
##########################################################################
Modified: grass/branches/releasebranch_6_4/visualization/nviz/scripts/nviz2.2_script
===================================================================
--- grass/branches/releasebranch_6_4/visualization/nviz/scripts/nviz2.2_script 2011-05-19 18:29:48 UTC (rev 46332)
+++ grass/branches/releasebranch_6_4/visualization/nviz/scripts/nviz2.2_script 2011-05-19 19:06:48 UTC (rev 46333)
@@ -36,19 +36,6 @@
global DEBUG
set DEBUG 0
-# Overloading internationalization procedures
-# gui.tcl is not used to have separate translation file for NVIZ
-if [catch {package require msgcat}] {
- proc G_msg {message} {
- return $message
- }
-} else {
- ::msgcat::mcload $env(GISBASE)/etc/nviz2.2/msgs
- proc G_msg {message} {
- return [::msgcat::mc $message]
- }
-}
-
#Initialize ProcessName variable
set env(NV_processname) NVIZ
More information about the grass-commit
mailing list