Opened 15 years ago

Closed 6 years 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)

in reply to:  description comment:1 by glynn, 15 years ago

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 by hamish, 11 years ago

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

comment:3 by marisn, 10 years ago

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

comment:4 by neteler, 8 years ago

Milestone: 6.4.46.4.6

comment:5 by wenzeslaus, 6 years ago

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 by marisn, 6 years ago

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.