Bug 500 - incorrect installation of translated messages
Status:
RESOLVED FIXED
Component:
GUI
Version:
1.8.1
Hardware:
PC Linux
Importance:
P2 normal
Target Milestone:
---
Assignee:
Rob Caelers
URL:
Depends on:
Blocks:
Reported:
Dec 1 2005 01:05:00 UTC
by:
et**@po**.de
Modified:
Jan 15 2006 13:07:51 UTC
WhoWhenWhatRemovedAdded
Rob CaelersJan 15 2006 13:07:51 UTCstatusNEWRESOLVED
resolutionFIXED
Description
et**@po**.de  Dec 1 2005 01:05:00 UTC
I noticed that none of the messages, with the exception of those in the
excersises player were translated. It turns out that the language files
were installed as workrave.po instead of workrave.mo; simply renaming them
after installation solved the problem. This is what 'make install' does in
the ./po directory:

bash-3.00# make install
if test -n ""; then \
   /opt/Gnome/share; \
else \
  /bin/sh ../mkinstalldirs /opt/Gnome/share; \
fi
installing nl.gmo as /opt/Gnome/share/locale/nl/LC_MESSAGES/workrave.po
installing de.gmo as /opt/Gnome/share/locale/de/LC_MESSAGES/workrave.po
installing fr.gmo as /opt/Gnome/share/locale/fr/LC_MESSAGES/workrave.po
if test "workrave" = "glib"; then \
  if test -n ""; then \
     /opt/Gnome/share/glib-2.0/gettext/po; \
  else \
    /bin/sh ../mkinstalldirs /opt/Gnome/share/glib-2.0/gettext/po; \
  fi; \
  /bin/install -c -p -m 644 ./Makefile.in.in \
                  /opt/Gnome/share/glib-2.0/gettext/po/Makefile.in.in; \
else \
  : ; \
fi
-------------------------------------------

This should have been:
/opt/Gnome/share/locale/nl/LC_MESSAGES/workrave.mo
etc.
The file format is correct though:
bash-3.00# file /opt/Gnome/share/locale/nl/LC_MESSAGES/workrave.po
/opt/Gnome/share/locale/nl/LC_MESSAGES/workrave.po: GNU message catalog (little endian), revision 0, 222 messages