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

#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?

Markus

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/512&gt;
GRASS GIS <http://grass.osgeo.org>

#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
}}}

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

#512: i18N Translation of welcome message in terminal not possible
-------------------------------+--------------------------------------------
Reporter: neteler | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.4
Component: Translations | Version: svn-develbranch6
Keywords: init.sh, init.bat | Platform: All
      Cpu: All |
-------------------------------+--------------------------------------------
Changes (by hamish):

  * keywords: => init.sh, init.bat
  * platform: Unspecified => All
  * component: Default => Translations
  * cpu: Unspecified => All
  * milestone: 6.4.0 => 6.4.4

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/512#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#512: i18N Translation of welcome message in terminal not possible
-------------------------------+--------------------------------------------
Reporter: neteler | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.4
Component: Translations | Version: svn-develbranch6
Keywords: init.sh, init.bat | Platform: All
      Cpu: All |
-------------------------------+--------------------------------------------

Comment(by marisn):

Starting from r41856 and r59163 whole GRASS 7 startup is i18n friendly. I
would vote for closing this bug.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/512#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>