#512: i18N Translation of welcome message in terminal not possible
-------------------------+--------------------------------------------------
Reporter: neteler | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: default | Version: svn-develbranch6
Keywords: | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
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?
#512: i18N Translation of welcome message in terminal not possible
--------------------------+-------------------------------------------------
Reporter: neteler | Owner: grass-dev@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
}}}