Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 271812 - french translation does not work on kde4.2.3
Summary: french translation does not work on kde4.2.3
Status: VERIFIED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-29 21:21 UTC by Stephane ANGOT
Modified: 2009-07-15 22:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
strace of konqueror loading (konqueror.strace,1.54 MB, text/plain)
2009-05-29 21:56 UTC, Stephane ANGOT
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephane ANGOT 2009-05-29 21:21:29 UTC
The interface is not translated at all.
I've straced konqueror, and all the access and stat64 are ok, it find the mo files :

for example :
access("/usr/share/locale/fr/LC_MESSAGES/kdelibs4.mo", R_OK) = 0
stat64("/usr/share/locale/fr/LC_MESSAGES/kdelibs4.mo", {st_mode=S_IFREG|0644, st_size=219943, ...}) = 0

but konqueror never try to read those files

the only thing that are french translated in kde are the applications in the menu and the content of system-settings icons, not the menu

I also noticed that konqueror was trying to open the en_US files, with no success because they don't exist :
for example :
access("/home/scoony/.kde4/share/locale/en_US/LC_MESSAGES/kdelibs4.mo", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/locale/en_US/LC_MESSAGES/kdelibs4.mo", R_OK) = -1 ENOENT (No such file or directory)

and last thing, it try to stat some french js file, with no success :

for example :
access("/home/scoony/.kde4/share/locale/fr/LC_SCRIPTS/kdeqt/kdeqt.js", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/locale/fr/LC_SCRIPTS/kdeqt/kdeqt.js", R_OK) = -1 ENOENT (No such file or directory)

I need help :)

Reproducible: Always

Steps to Reproduce:
1. add and activate french language
2. restart kde
3. start any application, it's still in english

Actual Results:  
the apps are still in english

Expected Results:  
the apps should be translated into french

I've tried any version of kde4.2 (4.2.0, 4.2.1, 4.2.2, 4.2.3) with no success (same result)

I've tried with and without kdeprefix flag (total recompilation each time)
Comment 1 Stephane ANGOT 2009-05-29 21:56:32 UTC
Created attachment 192932 [details]
strace of konqueror loading
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2009-05-29 22:07:41 UTC
Hello,
i have no idea how to reproduce it since mine czech translation is definetly working.

Would you mind opening upstream bug on bugs.kde.org where you will ask upstream directly?

Just add the bug number you opened there to this bug as comment so we can track it.

And when they fix it we can apply patch on our kde release so you can get it right away.

Also when upstream fixes the bug just click on reopen button so we notice :]

Cheers
Comment 3 Stephane ANGOT 2009-06-01 12:42:57 UTC
Hi,

This "bug" is resolved. It was my locales (etc/env.d/02locales) that were not well defined

Thanks
Comment 4 Lamarque V. Souza 2009-07-15 19:32:58 UTC
(In reply to comment #3)
> Hi,
> 
> This "bug" is resolved. It was my locales (etc/env.d/02locales) that were not
> well defined

What have you don wrong in 02locales? I have this same problem with pt_BR.UTF-8. My 02locale looks like this:

LANG="pt_BR.UTF-8"
LINGUAS="pt_BR.UTF-8"
LC_CTYPE="pt_BR.UTF-8"
LC_ALL="pt_BR.UTF-8"
LC_MESSAGES="pt_BR.UTF-8"


Comment 5 Stephane ANGOT 2009-07-15 19:59:29 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > Hi,
> > 
> > This "bug" is resolved. It was my locales (etc/env.d/02locales) that were not
> > well defined
> 
> What have you don wrong in 02locales? I have this same problem with
> pt_BR.UTF-8. My 02locale looks like this:
> 
> LANG="pt_BR.UTF-8"
> LINGUAS="pt_BR.UTF-8"
> LC_CTYPE="pt_BR.UTF-8"
> LC_ALL="pt_BR.UTF-8"
> LC_MESSAGES="pt_BR.UTF-8"
> 

Hi,

I changed all the locales from UTF-8 to ISO-8859-15

Maybe it would work with you, no idea.
Comment 6 Lamarque V. Souza 2009-07-15 20:14:59 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > (In reply to comment #3)
> > > Hi,
> > > 
> > > This "bug" is resolved. It was my locales (etc/env.d/02locales) that were not
> > > well defined
> > 
> > What have you don wrong in 02locales? I have this same problem with
> > pt_BR.UTF-8. My 02locale looks like this:
> > 
> > LANG="pt_BR.UTF-8"
> > LINGUAS="pt_BR.UTF-8"
> > LC_CTYPE="pt_BR.UTF-8"
> > LC_ALL="pt_BR.UTF-8"
> > LC_MESSAGES="pt_BR.UTF-8"
> > 
> 
> Hi,
> 
> I changed all the locales from UTF-8 to ISO-8859-15
> 
> Maybe it would work with you, no idea.
> 

It did not work :-/ The strange thing is that gettext -s -d kdelibs4 "&File" translate into &Arquivo correctly, but KDE applications still do not open kdelibs4.mo file according to strace.
Comment 7 Lamarque V. Souza 2009-07-15 22:20:13 UTC
Now it is working. kdelibs was not compiled with nls USE flag.