#512: i18N Translation of welcome message in terminal not possible
--------------------------+-------------------------------------------------
Reporter: neteler | Owner: [email protected]
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>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev