[GRASS-dev] Re: [GRASS GIS] #512: i18N Translation of welcome message in terminal not possible

GRASS GIS trac at osgeo.org
Mon Mar 2 21:48:43 EST 2009


#512: i18N Translation of welcome message in terminal not possible
--------------------------+-------------------------------------------------
  Reporter:  neteler      |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect       |      Status:  new                      
  Priority:  major        |   Milestone:  6.4.0                    
 Component:  default      |     Version:  svn-develbranch6         
Resolution:               |    Keywords:                           
  Platform:  Unspecified  |         Cpu:  Unspecified              
--------------------------+-------------------------------------------------
Comment (by glynn):

 Replying to [ticket:512 neteler]:
 > The help text in lib/init/init.sh | lib/init/init.bat are not yet
 extracted to the .po files.
 > According to locale/scriptstrings/README the translations of the
 messages contained in the shell scripts is done with 'g.parser -t ...'.
 >
 > How to do something similar for the help text and cmd line welcome
 message?

 The welcome message is take from $GISBASE/locale/<locale>/etc/welcome if
 it exists.

 The help text could be handled similarly, except that the text currently
 undergoes some variable substitutions ($CMD_NAME and $DEFAULT_GUI). That
 could be handled with sed, e.g.:
 {{{
     sed -e "s/@CMD_NAME@/$CMD_NAME/" -e "s/@DEFAULT_GUI@/$DEFAULT_GUI/" <
 $GISBASE/locale/$LOCALE/etc/helpmsg
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/512#comment:1>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list