Merge lp:~dpm/ubuntu/lucid/xorg/bug-528908 into lp:ubuntu/lucid/xorg

Proposed by David Planella
Status: Merged
Merge reported by: James Westby
Merged at revision: not available
Proposed branch: lp:~dpm/ubuntu/lucid/xorg/bug-528908
Merge into: lp:ubuntu/lucid/xorg
Diff against target: 20 lines (+10/-0)
1 file modified
debian/local/Failsafe/failsafeXServer (+10/-0)
To merge this branch: bzr merge lp:~dpm/ubuntu/lucid/xorg/bug-528908
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+20425@code.launchpad.net
To post a comment you must log in.
Revision history for this message
David Planella (dpm) wrote :

This branch provides a fix for bug 528908, in which the environment file are sourced to export the LANG and LANGUAGE variables, so that the locale can be set and thus translations for the failsafe dialogs can be loaded.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/local/Failsafe/failsafeXServer'
2--- debian/local/Failsafe/failsafeXServer 2010-01-25 15:33:13 +0000
3+++ debian/local/Failsafe/failsafeXServer 2010-03-02 06:54:13 +0000
4@@ -24,6 +24,16 @@
5 # not, write to the Free Software Foundation, Inc., 59 Temple Place,
6 # Suite 330, Boston, MA 02111-1307 USA
7
8+# Upstart jobs don't have a particular environment, we need to source the
9+# variables needed for localization ourselves
10+if [ -r /etc/default/locale ]; then
11+ . /etc/default/locale
12+ export LANG LANGUAGE
13+elif [ -r /etc/environment ]; then
14+ . /etc/environment
15+ export LANG LANGUAGE
16+fi
17+
18 xorg_conf_failsafe=${BPX_XORG_CONF_FAILSAFE:-"/etc/X11/xorg.conf.failsafe"}
19 xorg_conf=${BPX_XORG_CONF:-"/etc/X11/xorg.conf"}
20 fallback_driver=${BPX_FALLBACK_DRIVER:-"vesa"}

Subscribers

People subscribed via source and target branches

to all changes: