[GRASS-dev] [GRASS GIS] #1278: d.mon strings from grassmods po files not localised at runtime

#1278: d.mon strings from grassmods po files not localised at runtime
--------------------------+-------------------------------------------------
Reporter: msieczka | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.1
Component: Translations | Version: svn-releasebranch64
Keywords: locale | Platform: All
      Cpu: All |
--------------------------+-------------------------------------------------
d.mon strings from grassmods po files are not localised at runtime. See
e.g. for GRASS built --with-nls, run in pl_PL.UTF-8 locale:

{{{
GRASS 6.4.1svn (spearfish60):~ > d.mon stop=x0
Monitor 'x0' terminated
}}}

The '''message is in English''', although Polish translation is there -
source:/grass/branches/releasebranch_6_4/locale/po/grassmods_pl.po@head#L15822
:

{{{
#: ../display/d.mon/pgms/stop.c:70
#, c-format
msgid "Monitor '%s' terminated"
msgstr "Monitor '%s' został zamknięty"
}}}

Other strings from grassmods are translated OK at runtime.

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

#1278: d.mon strings from grassmods po files not localised at runtime
--------------------------+-------------------------------------------------
Reporter: msieczka | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.1
Component: Translations | Version: svn-releasebranch64
Keywords: locale | Platform: All
      Cpu: All |
--------------------------+-------------------------------------------------

Comment(by glynn):

Replying to [ticket:1278 msieczka]:
> d.mon strings from grassmods po files are not localised at runtime.

This is because PACKAGE doesn't get defined. Module.make and Multi.make
define it as "grassmods", while Lib.make defines it as "grasslibs".
display/d.mon/pgms/Makefile doesn't include any of these, so the mon.*
programs don't use any message catalogue.

It should suffice to add:
{{{
PACKAGE = "grassmods"
}}}
to the top of display/d.mon/pgms/Makefile.

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

#1278: d.mon strings from grassmods po files not localised at runtime
--------------------------+-------------------------------------------------
Reporter: msieczka | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.1
Component: Translations | Version: svn-releasebranch64
Keywords: locale | Platform: All
      Cpu: All |
--------------------------+-------------------------------------------------

Comment(by hamish):

Replying to [comment:1 glynn]:
> It should suffice to add:
> {{{
> PACKAGE = "grassmods"
> }}}
> to the top of display/d.mon/pgms/Makefile.

committed to 6.5svn in r45396.

Hamish

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

#1278: d.mon strings from grassmods po files not localised at runtime
---------------------------+------------------------------------------------
  Reporter: msieczka | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.4.1
Component: Translations | Version: svn-releasebranch64
Resolution: fixed | Keywords: locale
  Platform: All | Cpu: All
---------------------------+------------------------------------------------
Changes (by neteler):

  * status: new => closed
  * resolution: => fixed

Comment:

Great, this helps. committed to 6.4svn in r45397. Closing.

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