Bug 152512 - Wrong encoding in the translations
Summary: Wrong encoding in the translations
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Translations (show other bugs)
Version: Beta 3
Hardware: PC Other
: P5 - None : Minor (vote)
Target Milestone: ---
Assignee: Mike Fabian
QA Contact: Karl Eichwalder
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-21 15:42 UTC by Michalis Kabrianis
Modified: 2006-02-24 20:52 UTC (History)
3 users (show)

See Also:
Found By: Third Party Developer/Partner
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
screenshot of the file selector (26.55 KB, image/png)
2006-02-21 15:43 UTC, Michalis Kabrianis
Details
fileselector and gnome-terminal (29.19 KB, image/png)
2006-02-24 12:28 UTC, Michalis Kabrianis
Details
~/Documents/.directory (1.09 KB, application/octet-stream)
2006-02-24 20:52 UTC, Mike Fabian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michalis Kabrianis 2006-02-21 15:42:39 UTC
Some translations are incorrectly encoded, thus having a strange effect. 
Attached is a screenshot, in which one can see proper Greek on the left-side pane, and probably wrongly encoded (the word .directory) on the right-side pane (file selector). At the same selector you may see a file with Greek name I created using the command touch, thus proving that the appearance of Greek letters is correct there.
Comment 1 Michalis Kabrianis 2006-02-21 15:43:57 UTC
Created attachment 69601 [details]
screenshot of the file selector
Comment 2 Karl Eichwalder 2006-02-21 16:16:35 UTC
Before creating a file with touch, check your locale settings (locale).  Does this happen with GNOME and the gnome terminal?  For me, it works with touch.  Please create a new user, check the locale, and try again.
Comment 3 Michalis Kabrianis 2006-02-21 16:35:56 UTC
Sorry I wasn't clear.
My locale is correct: 
LANG=el_GR.UTF-8
The file I generate with touch, is correctly displayed (the first name in the screenshot on green background)
The name that is NOT displayed correctly is the second one (in grey background) and is written obviously by the translators as from the gnome-terminal I can see that the original file name is ".directory".
Comment 4 Karl Eichwalder 2006-02-22 12:29:15 UTC
Mike, can you please check this issue, too?  I cannot reproduce the problem.
Comment 5 Michalis Kabrianis 2006-02-22 12:31:51 UTC
Mike and Karl
If you tell me where to find the respective .po file, I can correct that.
Comment 6 Mike Fabian 2006-02-23 15:59:54 UTC
I have problems reproducing that as well.

How can you see that the original file name is ".directory"?
Comment 7 Michalis Kabrianis 2006-02-24 12:27:32 UTC
Please see the attached image.
In the foreground there is the file selector of Gimp. You may see the strange characters The path, is visible and is /home/mkab/Documents.
In the background there is a gnome-terminal in the same directory, and a "ls -la" shows that the only file in there is .directory


Comment 8 Michalis Kabrianis 2006-02-24 12:28:10 UTC
Created attachment 70161 [details]
fileselector and gnome-terminal
Comment 9 Mike Fabian 2006-02-24 19:14:47 UTC
Can you please attach the file .directory as well?

I would like to see it's contents.
Comment 10 Mike Fabian 2006-02-24 19:32:05 UTC
Judging from the file size, the file seems to come from
/etc/skel/Documents/.directory:

root@magellan:~# LANG=el_GR.UTF-8 ll /etc/skel/Documents/.directory
-rw-r--r-- 1 root root 1106 Μάρ  4  2002 /etc/skel/Documents/.directory
root@magellan:~#
Comment 11 Mike Fabian 2006-02-24 20:15:21 UTC
Thanks to Takashi IWAI <tiwai@suse.de> I can reproduce the problem
now. One has to use the complete Gnome desktop, it is not enough to
start a Gnome application from some other desktop (I used fvwm,
therefore I could not reproduce it).

Comment 12 Mike Fabian 2006-02-24 20:45:45 UTC
Actually the problem with the wrong encoding was not in the Greek
translation in that file. The translations for most language were
encoded correctly. The translations for Icelandic and Tamil
were broken though and the file was therefore not valid UTF-8 anymore.

This caused that the translations were not displayed at all for some
languages (e.g. for Japanese) and were displayed broken for some other
languages (e.g. Greek, Russian).

Fixing the broken encoding for Icelandic and Tamil fixes the
display problems for the other languages as a side effect.

Comment 13 Mike Fabian 2006-02-24 20:48:21 UTC
Fixed aaa_skel package (which contains the /etc/skel/Documents/.directory file)
submitted to STABLE.

I.e. this should be fixed for the next Beta.

Closing as FIXED.
Comment 14 Mike Fabian 2006-02-24 20:52:29 UTC
Created attachment 70257 [details]
~/Documents/.directory

Overwrite your ~/Documents/.directory file with the file attached
here. This is the fixed file which is in the fixed aaa_skel package
now.

Then you can try that it works.