[GRASS-dev] gettext: accumulation of unrelated messages in .po file bottom

Hi,

I observe that more and more messages are accumulated
without file/line reference in the bottom of the .po files.

I wonder
- how come?
- can we remove it as junk (manually??)?

Markus

Markus Neteler wrote:

I observe that more and more messages are accumulated
without file/line reference in the bottom of the .po files.

I wonder
- how come?
- can we remove it as junk (manually??)?

Looking at the messages, I think that these correspond to strings
which no longer occur in the source code.

E.g. looking at the bottom of grasslibs_de.po in 7.0, there are a lot
of messages which relate to display monitors, or appear to be prompts
for interaction.

Also, amongst the first such messages are:

  msgid "G_malloc: out of memory"
  msgstr "G_malloc: Kein Speicher mehr da."
  
  msgid "G_calloc: out of memory"
  msgstr "G_calloc: Kein Speicher mehr da."
  
  msgid "G_realloc: out of memory"
  msgstr "G_realloc: Kein Speicher mehr da."

The error messages were recently changed to specify the number of
bytes along with the source file and line number of the caller.

I suggest that unused messages are retained for reference. If a
message is only changed slightly, e.g. by adding additional text, the
new translation should avoid unnecessary changes.

--
Glynn Clements <glynn@gclements.plus.com>