Wrong language and country in kdeglobals

Bug #59334 reported by Raphaël Pinson
6
Affects Status Importance Assigned to Milestone
kubuntu-default-settings (Ubuntu)
Invalid
Wishlist
Unassigned

Bug Description

Binary package hint: kubuntu-default-settings

When installing Kubuntu, the language and country are not properly set in kdeglobals.

Although KDE is installed in the right language and seems to use the right country settings, the fact of providing kdeglobals in /usr/share/kubuntu-default-settings/kde-profile/default/share/config/kdeglobals without the [Locale] settings seems to force using default (C, en). In systemsettings the default language is thus shown as being American English.

Revision history for this message
Raphaël Pinson (raphink) wrote :

Although that might be a bit dirty, maybe kubuntu-default-settings could get the language code from "locale" in the postinst and add it to kdeglobals.

What do you guys think?

Revision history for this message
Raphaël Pinson (raphink) wrote :

Very dirty, but well at least that would fix it if done in postinst...

cat << __EOF >> kubuntu-default-settings

[Locale]
Country=`locale | sed -n "s/LANGUAGE=[a-z]*_\([A-Z]*\):.*/\1/p" | tr [A-Z] [a-z]`
Language=`locale | sed -n "s/LANGUAGE=[a-z]*_\([a-z]*\):.*/\1/p"`

__EOF

Revision history for this message
Raphaël Pinson (raphink) wrote :

sorry, not kubuntu-default-settings for the file name (doh). I meant a $file variable that would go to a `mktemp /tmp/kdeglobals` or so.

Revision history for this message
Anthony Mercatante (tonio) wrote :

I tried to fix this in kds kdeglobal file, but that doesn't seem to be the cause sorry...
The error looks like in kde code directly.

Revision history for this message
Anthony Mercatante (tonio) wrote :

I tried to investigate this and here it is...
It looks like this is not a bug, but hardcoded locale in kde code...
"nor a bug, a feature !"

$ cat kdebase-3.5.4/kcontrol/locale/default/Makefile.am
kcm_locale_data_DATA = entry.desktop
kcm_locale_datadir = $(kde_locale)/en_US

KDE seems to have done lots of improvement on kcontrol modules this summer, so 3.5.5 will by chance handle this correctly... Maybe, if possible, we will provide a patch for this if resolved in kde svn.

Revision history for this message
Anthony Mercatante (tonio) wrote :

Changing this to wishlist as it does not appear to be a bug.

Changed in kubuntu-default-settings:
importance: Untriaged → Wishlist
Revision history for this message
Javier Jardón (jjardon) wrote :

Kubuntu Feisty 7.04, fresh install

I choose spanish in the installation. When finish programs are in spanish BUT:
  - KDM is in english -> i should change it in systemsettings to spanish
  - Country, currence.... are in C/english/$ --->i should change it in systemsettings to spain/spanish

Changed in kubuntu-default-settings:
status: Unconfirmed → Confirmed
Revision history for this message
Javier Jardón (jjardon) wrote :

Related: bug #62613

Revision history for this message
Javier Jardón (jjardon) wrote :
Revision history for this message
Harald Sitter (apachelogger) wrote :

Is this still an issue in 8.10?

Changed in kubuntu-default-settings:
status: Confirmed → Incomplete
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in kubuntu-default-settings:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.