Kubuntu-settings-desktop makes the Grub lose the translations

Bug #1245216 reported by moray33
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kubuntu-settings (Ubuntu)
Fix Released
Low
Harald Sitter

Bug Description

The modifications that the package kubuntu-settings-desktop does to the Grub make it lose the translations. In my case, I can see the Grub in Spanish if I uninstall kubuntu-settings-desktop, but with that package installed I only can see it in English.

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: kubuntu-default-settings 1:13.10ubuntu15
ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
Uname: Linux 3.11.0-12-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.12.5-0ubuntu2.1
Architecture: amd64
Date: Sun Oct 27 17:17:43 2013
InstallationDate: Installed on 2013-02-07 (261 days ago)
InstallationMedia: Kubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.1)
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=es
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=es_ES.UTF-8
 SHELL=/bin/bash
SourcePackage: kubuntu-settings
UpgradeStatus: Upgraded to saucy on 2013-10-20 (6 days ago)

Revision history for this message
moray33 (moray33) wrote :
moray33 (moray33)
summary: - Kubuntu-default-settings makes Grub lose the translations
+ Kubuntu-default-settings makes the Grub lose the translations
Revision history for this message
Harald Sitter (apachelogger) wrote : Re: Kubuntu-default-settings makes the Grub lose the translations

Are you sure you do not mean kubuntu-settings-desktop?

Changed in kubuntu-settings (Ubuntu):
status: New → Incomplete
Revision history for this message
moray33 (moray33) wrote :

Well, yes, kubuntu-settings-desktop is more correct since kubuntu-default-settings is a transitional package.

summary: - Kubuntu-default-settings makes the Grub lose the translations
+ Kubuntu-settings-desktop makes the Grub lose the translations
description: updated
Changed in kubuntu-settings (Ubuntu):
status: Incomplete → New
Revision history for this message
Harald Sitter (apachelogger) wrote :

I absolutely cannot reproduce this.

please post the output of

`env && cat /etc/default/locale && /etc/environment && cat ~/.kde/env/*.sh && file /etc/grub.d/00_header && grep -r LANG /etc/grub.d && cat /etc/default/grub && dpkg -S grub.mo`

Changed in kubuntu-settings (Ubuntu):
status: New → Incomplete
Revision history for this message
Harald Sitter (apachelogger) wrote :

Actually that wrong, should have been:

env ; cat /etc/default/locale ; cat /etc/environment ; cat ~/.kde/env/*.sh ; file /etc/grub.d/00_header ; grep -r LANG /etc/grub.d ; cat /etc/default/grub ; dpkg -S grub.mo

Revision history for this message
Harald Sitter (apachelogger) wrote :

screenshot of what grub appears after a spanish install of 13.10

Revision history for this message
moray33 (moray33) wrote :
Download full text (4.3 KiB)

This is not a fresh install, I don't know if the issue is because of this.

XDG_VTNR=7
SSH_AGENT_PID=1281
XDG_SESSION_ID=c1
KDE_MULTIHEAD=false
SESSION=kde-plasma
GPG_AGENT_INFO=/tmp/gpg-1KhVmz/S.gpg-agent:1279:1
SHELL=/bin/bash
TERM=xterm
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/moray33/.gtkrc-2.0:/home/moray33/.kde/share/config/gtkrc-2.0
KONSOLE_DBUS_SERVICE=:1.79
KONSOLE_PROFILE_NAME=Intérprete de órdenes
GS_LIB=/home/moray33/.fonts
GTK_RC_FILES=/etc/gtk/gtkrc:/home/moray33/.gtkrc:/home/moray33/.kde/share/config/gtkrc
WINDOWID=75497498
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1221
SHELL_SESSION_ID=002144f8eef9400092279b7d2676b3b1
KDE_FULL_SESSION=true
USER=moray33
XCURSOR_SIZE=0
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
SSH_AUTH_SOCK=/tmp/ssh-gHnOsfKEFlAy/agent.1276
SESSION_MANAGER=local/Jose:@/tmp/.ICE-unix/1734,unix/Jose:/tmp/.ICE-unix/1734
DEFAULTS_PATH=/usr/share/gconf/kde-plasma.default.path
XDG_CONFIG_DIRS=/etc/xdg/xdg-kde-plasma:/usr/share/upstart/xdg:/etc/xdg
DESKTOP_SESSION=kde-plasma
PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
JOB=dbus
PWD=/home/moray33
KONSOLE_DBUS_WINDOW=/Windows/1
KDE_SESSION_UID=1000
LANG=es_ES.UTF-8
MANDATORY_PATH=/usr/share/gconf/kde-plasma.mandatory.path
GDM_LANG=es
IM_CONFIG_PHASE=1
KONSOLE_DBUS_SESSION=/Sessions/1
GDMSESSION=kde-plasma
SESSIONTYPE=
SHLVL=1
HOME=/home/moray33
COLORFGBG=15;0
XDG_SEAT=seat0
KDE_SESSION_VERSION=4
LANGUAGE=es
XCURSOR_THEME=oxy-white
UPSTART_INSTANCE=
UPSTART_EVENTS=started xsession
LOGNAME=moray33
XDG_DATA_DIRS=/usr/share:/usr/share/kde-plasma:/usr/local/share/:/usr/share/
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-O71WtilTTd
TEXTDOMAIN=im-config
INSTANCE=
UPSTART_JOB=startkde
PROFILEHOME=
XDG_RUNTIME_DIR=/run/user/1000
DISPLAY=:0
QT_PLUGIN_PATH=/home/moray33/.kde/lib/kde4/plugins/:/usr/lib/kde4/plugins/
XDG_CURRENT_DESKTOP=KDE
TEXTDOMAINDIR=/usr/share/locale/
XAUTHORITY=/tmp/kde-moray33/xauth-1000-_0
_=/usr/bin/env
LANG="es_ES.UTF-8"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
cat: /home/moray33/.kde/env/*.sh: No existe el archivo o el directorio
/etc/grub.d/00_header: POSIX shell script, ASCII text executable
/etc/grub.d/00_header:grub_lang=`echo $LANG | cut -d . -f 1`
/etc/grub.d/00_header:if [ "x${LANG}" != "xC" ] ; then
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || ...

Read more...

Revision history for this message
Harald Sitter (apachelogger) wrote :

> This is not a fresh install, I don't know if the issue is because of this.

It's possible. But I still couldn't imagine how kubuntu-settings-desktop would affect the language. As far as I know that is really straight foward ... if LANG != C localization will be enabled and the language value is written into the grub config, that is it.

Please do the following
sudo apt-get install kubuntu-settings-desktop
cp /boot/grub/grub.cfg ~/grub-ksd.cfg
sudo apt-get purge kubuntu-settings-desktop
cp /boot/grub/grub.cfg ~/

In your home you should find a file called grub-ksd.cfg and another one called grub.cfg. Please attach both of them to this report.

Oh and what just came to mind. In case you have not tried that before... check if you now have translations even after installing kubuntu-settings-desktop. Uninstalling the package will update grub, so it could be that grub was not localized for completely unrelated releases but uninstalling the package simply updated the config and "fixed" the issue.

Revision history for this message
moray33 (moray33) wrote :

I tried twice but without results.

I attach the files.

Revision history for this message
moray33 (moray33) wrote :
Revision history for this message
moray33 (moray33) wrote :
Revision history for this message
Harald Sitter (apachelogger) wrote :

Very curious.

Let's try something:

kdesudo kate /etc/default/grub.d/50-kubuntu.cfg

delete the second line reading 'set -e' and save

then run

sudo update-grub

check if /boot/grub/grub.cfg contains ' set lang=es_ES' now

Revision history for this message
moray33 (moray33) wrote :

It does.

Revision history for this message
Harald Sitter (apachelogger) wrote :

Perfect. Thank you very much for the report. Will get it fixed for 14.04.

Changed in kubuntu-settings (Ubuntu):
assignee: nobody → Harald Sitter (apachelogger)
importance: Undecided → Low
status: Incomplete → Triaged
Changed in kubuntu-settings (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kubuntu-settings - 1:14.04ubuntu2

---------------
kubuntu-settings (1:14.04ubuntu2) trusty; urgency=low

  [ Harald Sitter ]
  * Drop set -e and sh shebang from grub.d/50_kubuntu.cfg to prevent
    localization from getting messed up (LP: #1245216)

  [ Jonathan Riddell ]
  * Replace/break old plasma-nm for upgrade script which is in
    plasma-nm in saucy-updates
 -- Jonathan Riddell <email address hidden> Wed, 30 Oct 2013 16:27:11 +0000

Changed in kubuntu-settings (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
moray33 (moray33) wrote :

Whith the file /etc/default/grub.d/50_kubuntu.cfg modified when I install/uninstall a version of the kernel the Grub lose the translation again, but if I do sudo update-grub the Grub is translated again. Is this behaviour normal?

Revision history for this message
Harald Sitter (apachelogger) wrote :

Most certainly not. Please file a bug against grub. It seems very strange that it would work with update-grub manually though since a new kernel would as far as I know also simply call update-grub.

Revision history for this message
moray33 (moray33) wrote :

Reported in Bug #1249002 .

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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