Bug 103464 - Problems with localisation
Problems with localisation
Status: CLOSED RAWHIDE
Product: Red Hat Linux Beta
Classification: Retired
Component: switchdesk (Show other bugs)
beta1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Ngo Than
David Lawrence
:
: 73178 85415 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-08-31 07:52 EDT by Kjartan Maraas
Modified: 2007-04-18 12:57 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-04-07 11:34:34 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Norwegian translation of the meny entry (904 bytes, patch)
2003-08-31 07:55 EDT, Kjartan Maraas
no flags Details | Diff
patch to fix localisation (599 bytes, patch)
2003-08-31 09:29 EDT, Kjartan Maraas
no flags Details | Diff
Patch fixing the Qt frontend. (4.57 KB, patch)
2003-08-31 10:01 EDT, Miloslav Trmac
no flags Details | Diff
screendump (29.83 KB, image/png)
2003-08-31 10:12 EDT, Kjartan Maraas
no flags Details

  None (edit)
Description Kjartan Maraas 2003-08-31 07:52:09 EDT
Description of problem:

When running switchdesk with Norwegian locale I still get the english strings. I
think the problem could be in switchdesk/src/switchdesk-gnome.c where config.h
should be the very first include instead of being placed down with the intl.h
include.

Also attaching a norwegian translation for the .desktop file.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
    
Actual results:


Expected results:


Additional info:
Comment 1 Kjartan Maraas 2003-08-31 07:54:26 EDT
Also, should the .desktop file be utf8 encoded?
Comment 2 Kjartan Maraas 2003-08-31 07:55:49 EDT
Created attachment 94094 [details]
Norwegian translation of the meny entry
Comment 3 Kjartan Maraas 2003-08-31 08:24:04 EDT
*** Bug 85415 has been marked as a duplicate of this bug. ***
Comment 4 Kjartan Maraas 2003-08-31 09:28:19 EDT
Attaching a tested patch for switchdesk-gnome.c - the KDE variant doesn't work
here and I don't know KDE's i18n framework well enough to look into it.
Comment 5 Kjartan Maraas 2003-08-31 09:29:15 EDT
Created attachment 94095 [details]
patch to fix localisation
Comment 6 Kjartan Maraas 2003-08-31 09:36:51 EDT
After looking at the strace output when running the KDE variant it seems as if
it's looking in the wrong place for the message catalog. switchdesk-kde is
looking in /usr/share/locale/no_NO.UTF-8/LC_MESSAGES when it's really in
/usr/share/locale/no/LC_MESSAGES

Comment 7 Miloslav Trmac 2003-08-31 10:01:08 EDT
Created attachment 94096 [details]
Patch fixing the Qt frontend.

Patch fixing the Qt frontend (not tested with USE_KDE2):
* switchdesk was looking for "messages.mo" instead of "switchdesk.mo"
* The translations were assumed to be in Latin-1

TODO: use intltool for .desktop translation, if someone cares enough.
Comment 8 Kjartan Maraas 2003-08-31 10:11:04 EDT
Attaching a screenshot that shows the text is overlapped with the logo.
Comment 9 Kjartan Maraas 2003-08-31 10:12:00 EDT
Created attachment 94097 [details]
screendump
Comment 10 Kjartan Maraas 2003-09-05 09:33:07 EDT
*** Bug 73178 has been marked as a duplicate of this bug. ***
Comment 11 Ngo Than 2004-02-03 16:27:03 EST
it's fixed in 4.0.0, which is available in rawhide
Comment 12 Miloslav Trmac 2004-04-07 09:40:03 EDT
OK, please push it to elvis.redhat.com (including updated .po files)
so that it can be translated.

Thanks.
Comment 13 Ngo Than 2004-04-07 09:47:59 EDT
It's already on elvis a month ago! Could you please check it from CVS
again.
Comment 14 Miloslav Trmac 2004-04-07 10:12:38 EDT
Yes, the code is there, but the .po files are not updated.
The glade file has revisions dated 2004/02/15 and 2004/04/06,
but (grep -h POT-Creation-Date *|sort -u) shows the files
were updated last time on 2004/02/01, some of them even
2003/01/02.

The way it currently works (I don't like it that much either)
is that developers should manually run (make -C po update-po)
and push the results to elvis.
Comment 15 Ngo Than 2004-04-07 11:11:56 EDT
ok, i have done the po files update and already commited the changes
into CVS. Could you please check again. Thanks
Comment 16 Miloslav Trmac 2004-04-07 11:34:34 EDT
Looks fine, thanks a lot!

Note You need to log in before you can comment on or make changes to this bug.