Debian 9: How to set English language with German Locale?
I want to use English language with German locale settings.
Right now my system runs with the following setup (configured during installation procedure in Debian Expert Installer):
- Language:
English - English (Default)
- Country, territory or area:
other -> Europe -> Austria
- Country to base default locale settings on:
United States - en_US.UTF-8
- Keyboard:
German
My question now is:
How can I preserve English language but switch the current locale (United States - en_US.UTF-8
) to desired German locale (de_DE.UTF-8
)?
During installation procedure this was not possible because an error occurred ("Invalid language/locale settings combination detected").
linux debian locale language
add a comment |
I want to use English language with German locale settings.
Right now my system runs with the following setup (configured during installation procedure in Debian Expert Installer):
- Language:
English - English (Default)
- Country, territory or area:
other -> Europe -> Austria
- Country to base default locale settings on:
United States - en_US.UTF-8
- Keyboard:
German
My question now is:
How can I preserve English language but switch the current locale (United States - en_US.UTF-8
) to desired German locale (de_DE.UTF-8
)?
During installation procedure this was not possible because an error occurred ("Invalid language/locale settings combination detected").
linux debian locale language
Related (duplicate?): unix.stackexchange.com/questions/15291/set-lc-but-not-lc-all
– Heinzi
Jul 17 '18 at 13:24
I was just looking on how to setup English with Dutch locale (same problem) and the first Google hit is this one. Long live StackExchange :-)
– Tonny
Jul 17 '18 at 13:55
1
Found this in "hot network questions" and now I'm interested: What are you trying to achieve? English, but with some words different specifically for German speakers? Like "I just took an Abitur exam" or "This is a train from Deutsche Bahn"?
– Fabian Röling
Jul 17 '18 at 14:18
@Fabian I suspect the use-case here is to have English messages, but German date formats etc.
– Stephen Kitt
Jul 19 '18 at 17:34
add a comment |
I want to use English language with German locale settings.
Right now my system runs with the following setup (configured during installation procedure in Debian Expert Installer):
- Language:
English - English (Default)
- Country, territory or area:
other -> Europe -> Austria
- Country to base default locale settings on:
United States - en_US.UTF-8
- Keyboard:
German
My question now is:
How can I preserve English language but switch the current locale (United States - en_US.UTF-8
) to desired German locale (de_DE.UTF-8
)?
During installation procedure this was not possible because an error occurred ("Invalid language/locale settings combination detected").
linux debian locale language
I want to use English language with German locale settings.
Right now my system runs with the following setup (configured during installation procedure in Debian Expert Installer):
- Language:
English - English (Default)
- Country, territory or area:
other -> Europe -> Austria
- Country to base default locale settings on:
United States - en_US.UTF-8
- Keyboard:
German
My question now is:
How can I preserve English language but switch the current locale (United States - en_US.UTF-8
) to desired German locale (de_DE.UTF-8
)?
During installation procedure this was not possible because an error occurred ("Invalid language/locale settings combination detected").
linux debian locale language
linux debian locale language
edited 2 hours ago
Rui F Ribeiro
41.5k1483140
41.5k1483140
asked Jul 17 '18 at 9:44
DaveDave
290217
290217
Related (duplicate?): unix.stackexchange.com/questions/15291/set-lc-but-not-lc-all
– Heinzi
Jul 17 '18 at 13:24
I was just looking on how to setup English with Dutch locale (same problem) and the first Google hit is this one. Long live StackExchange :-)
– Tonny
Jul 17 '18 at 13:55
1
Found this in "hot network questions" and now I'm interested: What are you trying to achieve? English, but with some words different specifically for German speakers? Like "I just took an Abitur exam" or "This is a train from Deutsche Bahn"?
– Fabian Röling
Jul 17 '18 at 14:18
@Fabian I suspect the use-case here is to have English messages, but German date formats etc.
– Stephen Kitt
Jul 19 '18 at 17:34
add a comment |
Related (duplicate?): unix.stackexchange.com/questions/15291/set-lc-but-not-lc-all
– Heinzi
Jul 17 '18 at 13:24
I was just looking on how to setup English with Dutch locale (same problem) and the first Google hit is this one. Long live StackExchange :-)
– Tonny
Jul 17 '18 at 13:55
1
Found this in "hot network questions" and now I'm interested: What are you trying to achieve? English, but with some words different specifically for German speakers? Like "I just took an Abitur exam" or "This is a train from Deutsche Bahn"?
– Fabian Röling
Jul 17 '18 at 14:18
@Fabian I suspect the use-case here is to have English messages, but German date formats etc.
– Stephen Kitt
Jul 19 '18 at 17:34
Related (duplicate?): unix.stackexchange.com/questions/15291/set-lc-but-not-lc-all
– Heinzi
Jul 17 '18 at 13:24
Related (duplicate?): unix.stackexchange.com/questions/15291/set-lc-but-not-lc-all
– Heinzi
Jul 17 '18 at 13:24
I was just looking on how to setup English with Dutch locale (same problem) and the first Google hit is this one. Long live StackExchange :-)
– Tonny
Jul 17 '18 at 13:55
I was just looking on how to setup English with Dutch locale (same problem) and the first Google hit is this one. Long live StackExchange :-)
– Tonny
Jul 17 '18 at 13:55
1
1
Found this in "hot network questions" and now I'm interested: What are you trying to achieve? English, but with some words different specifically for German speakers? Like "I just took an Abitur exam" or "This is a train from Deutsche Bahn"?
– Fabian Röling
Jul 17 '18 at 14:18
Found this in "hot network questions" and now I'm interested: What are you trying to achieve? English, but with some words different specifically for German speakers? Like "I just took an Abitur exam" or "This is a train from Deutsche Bahn"?
– Fabian Röling
Jul 17 '18 at 14:18
@Fabian I suspect the use-case here is to have English messages, but German date formats etc.
– Stephen Kitt
Jul 19 '18 at 17:34
@Fabian I suspect the use-case here is to have English messages, but German date formats etc.
– Stephen Kitt
Jul 19 '18 at 17:34
add a comment |
1 Answer
1
active
oldest
votes
en_DE
doesn’t exist as a default locale, so you can’t select English localised for German-speaking countries as a locale during installation. (Why should one use update-locale instead of directly setting LANGUAGE? describes the checks involved in choosing a locale.)
There are two approaches to achieve what you’re after.
- One is to create a new locale with your settings; see How to (easily) be able to use a new en_** locale? for details.
The other is to set up your locale settings in a finer-grained fashion, using the various
LC_
variables; for example:
export LANG=en_US.UTF-8
export LC_MONETARY=de_DE.UTF-8
export LC_TIME=de_DE.UTF-8
or, if you want German to be the default except for messages:
export LANG=de_DE.UTF-8
export LC_MESSAGES=en_US.UTF-8
(and unset any other conflicting
LC_
variables, in particularLC_ALL
which overrides all other settings). You can check your settings using thelocale
program; see How does the "locale" program work? for details.
Since LANG is only a fallback, your proposal does not work in case there are other LC_* variables.
– schily
Jul 17 '18 at 10:04
1
Well that’s the whole point of usingLANG
here, but I’ve clarified that, thanks.
– Stephen Kitt
Jul 17 '18 at 10:06
Thanks a lot for your great help Stephen! Do I first have to generate the German locale before I can type it into/etc/default/locale
? I guess right now I only have US-locale existent, so I fearde_DE.UTF-8
is not yet available on my system?
– Dave
Jul 17 '18 at 10:46
2
@Dave you’ll need to make it available, yes, either by runningsudo dpkg-reconfigure locales
or by installinglocales-all
. You shouldn’t edit/etc/default/locale
directly, but useupdate-locale
instead (see the first link in the answer).
– Stephen Kitt
Jul 17 '18 at 11:07
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f456726%2fdebian-9-how-to-set-english-language-with-german-locale%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
en_DE
doesn’t exist as a default locale, so you can’t select English localised for German-speaking countries as a locale during installation. (Why should one use update-locale instead of directly setting LANGUAGE? describes the checks involved in choosing a locale.)
There are two approaches to achieve what you’re after.
- One is to create a new locale with your settings; see How to (easily) be able to use a new en_** locale? for details.
The other is to set up your locale settings in a finer-grained fashion, using the various
LC_
variables; for example:
export LANG=en_US.UTF-8
export LC_MONETARY=de_DE.UTF-8
export LC_TIME=de_DE.UTF-8
or, if you want German to be the default except for messages:
export LANG=de_DE.UTF-8
export LC_MESSAGES=en_US.UTF-8
(and unset any other conflicting
LC_
variables, in particularLC_ALL
which overrides all other settings). You can check your settings using thelocale
program; see How does the "locale" program work? for details.
Since LANG is only a fallback, your proposal does not work in case there are other LC_* variables.
– schily
Jul 17 '18 at 10:04
1
Well that’s the whole point of usingLANG
here, but I’ve clarified that, thanks.
– Stephen Kitt
Jul 17 '18 at 10:06
Thanks a lot for your great help Stephen! Do I first have to generate the German locale before I can type it into/etc/default/locale
? I guess right now I only have US-locale existent, so I fearde_DE.UTF-8
is not yet available on my system?
– Dave
Jul 17 '18 at 10:46
2
@Dave you’ll need to make it available, yes, either by runningsudo dpkg-reconfigure locales
or by installinglocales-all
. You shouldn’t edit/etc/default/locale
directly, but useupdate-locale
instead (see the first link in the answer).
– Stephen Kitt
Jul 17 '18 at 11:07
add a comment |
en_DE
doesn’t exist as a default locale, so you can’t select English localised for German-speaking countries as a locale during installation. (Why should one use update-locale instead of directly setting LANGUAGE? describes the checks involved in choosing a locale.)
There are two approaches to achieve what you’re after.
- One is to create a new locale with your settings; see How to (easily) be able to use a new en_** locale? for details.
The other is to set up your locale settings in a finer-grained fashion, using the various
LC_
variables; for example:
export LANG=en_US.UTF-8
export LC_MONETARY=de_DE.UTF-8
export LC_TIME=de_DE.UTF-8
or, if you want German to be the default except for messages:
export LANG=de_DE.UTF-8
export LC_MESSAGES=en_US.UTF-8
(and unset any other conflicting
LC_
variables, in particularLC_ALL
which overrides all other settings). You can check your settings using thelocale
program; see How does the "locale" program work? for details.
Since LANG is only a fallback, your proposal does not work in case there are other LC_* variables.
– schily
Jul 17 '18 at 10:04
1
Well that’s the whole point of usingLANG
here, but I’ve clarified that, thanks.
– Stephen Kitt
Jul 17 '18 at 10:06
Thanks a lot for your great help Stephen! Do I first have to generate the German locale before I can type it into/etc/default/locale
? I guess right now I only have US-locale existent, so I fearde_DE.UTF-8
is not yet available on my system?
– Dave
Jul 17 '18 at 10:46
2
@Dave you’ll need to make it available, yes, either by runningsudo dpkg-reconfigure locales
or by installinglocales-all
. You shouldn’t edit/etc/default/locale
directly, but useupdate-locale
instead (see the first link in the answer).
– Stephen Kitt
Jul 17 '18 at 11:07
add a comment |
en_DE
doesn’t exist as a default locale, so you can’t select English localised for German-speaking countries as a locale during installation. (Why should one use update-locale instead of directly setting LANGUAGE? describes the checks involved in choosing a locale.)
There are two approaches to achieve what you’re after.
- One is to create a new locale with your settings; see How to (easily) be able to use a new en_** locale? for details.
The other is to set up your locale settings in a finer-grained fashion, using the various
LC_
variables; for example:
export LANG=en_US.UTF-8
export LC_MONETARY=de_DE.UTF-8
export LC_TIME=de_DE.UTF-8
or, if you want German to be the default except for messages:
export LANG=de_DE.UTF-8
export LC_MESSAGES=en_US.UTF-8
(and unset any other conflicting
LC_
variables, in particularLC_ALL
which overrides all other settings). You can check your settings using thelocale
program; see How does the "locale" program work? for details.
en_DE
doesn’t exist as a default locale, so you can’t select English localised for German-speaking countries as a locale during installation. (Why should one use update-locale instead of directly setting LANGUAGE? describes the checks involved in choosing a locale.)
There are two approaches to achieve what you’re after.
- One is to create a new locale with your settings; see How to (easily) be able to use a new en_** locale? for details.
The other is to set up your locale settings in a finer-grained fashion, using the various
LC_
variables; for example:
export LANG=en_US.UTF-8
export LC_MONETARY=de_DE.UTF-8
export LC_TIME=de_DE.UTF-8
or, if you want German to be the default except for messages:
export LANG=de_DE.UTF-8
export LC_MESSAGES=en_US.UTF-8
(and unset any other conflicting
LC_
variables, in particularLC_ALL
which overrides all other settings). You can check your settings using thelocale
program; see How does the "locale" program work? for details.
edited Jul 17 '18 at 10:17
answered Jul 17 '18 at 9:54
Stephen KittStephen Kitt
176k24401479
176k24401479
Since LANG is only a fallback, your proposal does not work in case there are other LC_* variables.
– schily
Jul 17 '18 at 10:04
1
Well that’s the whole point of usingLANG
here, but I’ve clarified that, thanks.
– Stephen Kitt
Jul 17 '18 at 10:06
Thanks a lot for your great help Stephen! Do I first have to generate the German locale before I can type it into/etc/default/locale
? I guess right now I only have US-locale existent, so I fearde_DE.UTF-8
is not yet available on my system?
– Dave
Jul 17 '18 at 10:46
2
@Dave you’ll need to make it available, yes, either by runningsudo dpkg-reconfigure locales
or by installinglocales-all
. You shouldn’t edit/etc/default/locale
directly, but useupdate-locale
instead (see the first link in the answer).
– Stephen Kitt
Jul 17 '18 at 11:07
add a comment |
Since LANG is only a fallback, your proposal does not work in case there are other LC_* variables.
– schily
Jul 17 '18 at 10:04
1
Well that’s the whole point of usingLANG
here, but I’ve clarified that, thanks.
– Stephen Kitt
Jul 17 '18 at 10:06
Thanks a lot for your great help Stephen! Do I first have to generate the German locale before I can type it into/etc/default/locale
? I guess right now I only have US-locale existent, so I fearde_DE.UTF-8
is not yet available on my system?
– Dave
Jul 17 '18 at 10:46
2
@Dave you’ll need to make it available, yes, either by runningsudo dpkg-reconfigure locales
or by installinglocales-all
. You shouldn’t edit/etc/default/locale
directly, but useupdate-locale
instead (see the first link in the answer).
– Stephen Kitt
Jul 17 '18 at 11:07
Since LANG is only a fallback, your proposal does not work in case there are other LC_* variables.
– schily
Jul 17 '18 at 10:04
Since LANG is only a fallback, your proposal does not work in case there are other LC_* variables.
– schily
Jul 17 '18 at 10:04
1
1
Well that’s the whole point of using
LANG
here, but I’ve clarified that, thanks.– Stephen Kitt
Jul 17 '18 at 10:06
Well that’s the whole point of using
LANG
here, but I’ve clarified that, thanks.– Stephen Kitt
Jul 17 '18 at 10:06
Thanks a lot for your great help Stephen! Do I first have to generate the German locale before I can type it into
/etc/default/locale
? I guess right now I only have US-locale existent, so I fear de_DE.UTF-8
is not yet available on my system?– Dave
Jul 17 '18 at 10:46
Thanks a lot for your great help Stephen! Do I first have to generate the German locale before I can type it into
/etc/default/locale
? I guess right now I only have US-locale existent, so I fear de_DE.UTF-8
is not yet available on my system?– Dave
Jul 17 '18 at 10:46
2
2
@Dave you’ll need to make it available, yes, either by running
sudo dpkg-reconfigure locales
or by installing locales-all
. You shouldn’t edit /etc/default/locale
directly, but use update-locale
instead (see the first link in the answer).– Stephen Kitt
Jul 17 '18 at 11:07
@Dave you’ll need to make it available, yes, either by running
sudo dpkg-reconfigure locales
or by installing locales-all
. You shouldn’t edit /etc/default/locale
directly, but use update-locale
instead (see the first link in the answer).– Stephen Kitt
Jul 17 '18 at 11:07
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f456726%2fdebian-9-how-to-set-english-language-with-german-locale%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Related (duplicate?): unix.stackexchange.com/questions/15291/set-lc-but-not-lc-all
– Heinzi
Jul 17 '18 at 13:24
I was just looking on how to setup English with Dutch locale (same problem) and the first Google hit is this one. Long live StackExchange :-)
– Tonny
Jul 17 '18 at 13:55
1
Found this in "hot network questions" and now I'm interested: What are you trying to achieve? English, but with some words different specifically for German speakers? Like "I just took an Abitur exam" or "This is a train from Deutsche Bahn"?
– Fabian Röling
Jul 17 '18 at 14:18
@Fabian I suspect the use-case here is to have English messages, but German date formats etc.
– Stephen Kitt
Jul 19 '18 at 17:34