Opened 11 years ago

Closed 13 months ago

#512 closed defect (fixed)

i18N Translation of welcome message in terminal not possible

Reported by: neteler Owned by: grass-dev@…
Priority: major Milestone: 6.4.6
Component: Translations Version: svn-develbranch6
Keywords: init.sh, init.bat Cc:
CPU: All Platform: All

Description

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

Change History (6)

comment:1 in reply to:  description Changed 11 years ago by glynn

Replying to 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

comment:2 Changed 6 years ago by hamish

Component: DefaultTranslations
CPU: UnspecifiedAll
Keywords: init.sh init.bat added
Milestone: 6.4.06.4.4
Platform: UnspecifiedAll

comment:3 Changed 6 years ago by marisn

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

comment:4 Changed 3 years ago by neteler

Milestone: 6.4.46.4.6

comment:5 Changed 13 months ago by wenzeslaus

Is this still an issue? comment:3 suggests it is not since around 6.4.4. Can somebody using a translated version confirm?

comment:6 Changed 13 months ago by marisn

Resolution: fixed
Status: newclosed

It is fixed for 7.x long time a go. If there are some untranslated messages, a new bug indicating the message should be filled.

Note: See TracTickets for help on using tickets.