Programs not respecting locales

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












2















I have a fresh installation of Debian 9 (stretch) on my machine and I've set locales through dpkg-reconfigure to a non-english language. Since I'm using KDE, I've also set this as the only language in the Preferred languages list in System Settings and I've installed the relative kde-l10n package through apt-get.



Now KDE-related programs are in the correct language, but all the others (Firefox, Thunderbird, Kaffeine, Telgram for example) keep displaying the relative interface texts in english. In particular in Firefox I've also noticed that the displayed dates use the UTC timezone instead of CET (which would be the correct one for my locale), and the French dictionary, which has nothing to do with my locale, was preinstalled for some reason.



env | grep LANG shows that the LANG and LANGUAGE env variables are correctly set to the desired language, while env | grep LC returns nothing (from what I've read LANG is just a fallback variable in case no LC_*s are found)



Why do programs not respect my locale and how can this be fixed?










share|improve this question



















  • 1





    Many big programs come with their own locale packages. Did you install them as well?

    – ctrl-d
    Jan 27 at 19:41











  • As I just mentioned in a comment to @icarus' reply I did not install locale packages, but these, for the exact same packages, were not needed on my previous Ubuntu-based installations in order to have these programs displaying interface texts in my language.

    – RVKS
    Jan 27 at 21:13











  • That's probably a good clarification, as your current question could easily be misinterpreted as you having already installed the language-specific versions of the packages. (as per ctrl-d's comment as well)

    – Jeff Schaller
    Jan 28 at 12:51















2















I have a fresh installation of Debian 9 (stretch) on my machine and I've set locales through dpkg-reconfigure to a non-english language. Since I'm using KDE, I've also set this as the only language in the Preferred languages list in System Settings and I've installed the relative kde-l10n package through apt-get.



Now KDE-related programs are in the correct language, but all the others (Firefox, Thunderbird, Kaffeine, Telgram for example) keep displaying the relative interface texts in english. In particular in Firefox I've also noticed that the displayed dates use the UTC timezone instead of CET (which would be the correct one for my locale), and the French dictionary, which has nothing to do with my locale, was preinstalled for some reason.



env | grep LANG shows that the LANG and LANGUAGE env variables are correctly set to the desired language, while env | grep LC returns nothing (from what I've read LANG is just a fallback variable in case no LC_*s are found)



Why do programs not respect my locale and how can this be fixed?










share|improve this question



















  • 1





    Many big programs come with their own locale packages. Did you install them as well?

    – ctrl-d
    Jan 27 at 19:41











  • As I just mentioned in a comment to @icarus' reply I did not install locale packages, but these, for the exact same packages, were not needed on my previous Ubuntu-based installations in order to have these programs displaying interface texts in my language.

    – RVKS
    Jan 27 at 21:13











  • That's probably a good clarification, as your current question could easily be misinterpreted as you having already installed the language-specific versions of the packages. (as per ctrl-d's comment as well)

    – Jeff Schaller
    Jan 28 at 12:51













2












2








2








I have a fresh installation of Debian 9 (stretch) on my machine and I've set locales through dpkg-reconfigure to a non-english language. Since I'm using KDE, I've also set this as the only language in the Preferred languages list in System Settings and I've installed the relative kde-l10n package through apt-get.



Now KDE-related programs are in the correct language, but all the others (Firefox, Thunderbird, Kaffeine, Telgram for example) keep displaying the relative interface texts in english. In particular in Firefox I've also noticed that the displayed dates use the UTC timezone instead of CET (which would be the correct one for my locale), and the French dictionary, which has nothing to do with my locale, was preinstalled for some reason.



env | grep LANG shows that the LANG and LANGUAGE env variables are correctly set to the desired language, while env | grep LC returns nothing (from what I've read LANG is just a fallback variable in case no LC_*s are found)



Why do programs not respect my locale and how can this be fixed?










share|improve this question
















I have a fresh installation of Debian 9 (stretch) on my machine and I've set locales through dpkg-reconfigure to a non-english language. Since I'm using KDE, I've also set this as the only language in the Preferred languages list in System Settings and I've installed the relative kde-l10n package through apt-get.



Now KDE-related programs are in the correct language, but all the others (Firefox, Thunderbird, Kaffeine, Telgram for example) keep displaying the relative interface texts in english. In particular in Firefox I've also noticed that the displayed dates use the UTC timezone instead of CET (which would be the correct one for my locale), and the French dictionary, which has nothing to do with my locale, was preinstalled for some reason.



env | grep LANG shows that the LANG and LANGUAGE env variables are correctly set to the desired language, while env | grep LC returns nothing (from what I've read LANG is just a fallback variable in case no LC_*s are found)



Why do programs not respect my locale and how can this be fixed?







debian locale language






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 28 at 16:27









icarus

6,05111130




6,05111130










asked Jan 27 at 17:04









RVKSRVKS

111




111







  • 1





    Many big programs come with their own locale packages. Did you install them as well?

    – ctrl-d
    Jan 27 at 19:41











  • As I just mentioned in a comment to @icarus' reply I did not install locale packages, but these, for the exact same packages, were not needed on my previous Ubuntu-based installations in order to have these programs displaying interface texts in my language.

    – RVKS
    Jan 27 at 21:13











  • That's probably a good clarification, as your current question could easily be misinterpreted as you having already installed the language-specific versions of the packages. (as per ctrl-d's comment as well)

    – Jeff Schaller
    Jan 28 at 12:51












  • 1





    Many big programs come with their own locale packages. Did you install them as well?

    – ctrl-d
    Jan 27 at 19:41











  • As I just mentioned in a comment to @icarus' reply I did not install locale packages, but these, for the exact same packages, were not needed on my previous Ubuntu-based installations in order to have these programs displaying interface texts in my language.

    – RVKS
    Jan 27 at 21:13











  • That's probably a good clarification, as your current question could easily be misinterpreted as you having already installed the language-specific versions of the packages. (as per ctrl-d's comment as well)

    – Jeff Schaller
    Jan 28 at 12:51







1




1





Many big programs come with their own locale packages. Did you install them as well?

– ctrl-d
Jan 27 at 19:41





Many big programs come with their own locale packages. Did you install them as well?

– ctrl-d
Jan 27 at 19:41













As I just mentioned in a comment to @icarus' reply I did not install locale packages, but these, for the exact same packages, were not needed on my previous Ubuntu-based installations in order to have these programs displaying interface texts in my language.

– RVKS
Jan 27 at 21:13





As I just mentioned in a comment to @icarus' reply I did not install locale packages, but these, for the exact same packages, were not needed on my previous Ubuntu-based installations in order to have these programs displaying interface texts in my language.

– RVKS
Jan 27 at 21:13













That's probably a good clarification, as your current question could easily be misinterpreted as you having already installed the language-specific versions of the packages. (as per ctrl-d's comment as well)

– Jeff Schaller
Jan 28 at 12:51





That's probably a good clarification, as your current question could easily be misinterpreted as you having already installed the language-specific versions of the packages. (as per ctrl-d's comment as well)

– Jeff Schaller
Jan 28 at 12:51










1 Answer
1






active

oldest

votes


















1














Programs have to be written to respect the locale. For example if I write



 #!/bin/sh
echo hello


and I run it with a french locale, I do not expect it to output bonjour



The timezone has nothing to do with the locale setting, English is spoken all over the world, but not all the world has the same time as London. Set the TZ variable to specify the timezone, e.g. TZ=PST8PDT or TZ=America/LosAngeles, for an individual program, or make /etc/localtime have the correct information to set it globally.






share|improve this answer























  • I'm obviously talking about programs which support mutiple languages like the ones I've mentioned. In my previous installations, mostly on Ubuntu-based distributions, these programs would automatically be displayed in the correct local language, set through the mentioned environment varaibles. Now, instead, on my current Debian installation the default language for all non-KDE programs is English despite the locales define a different default language. The same is valid for time zones.

    – RVKS
    Jan 27 at 17:46











  • I am glad it is obvious to you that you are talking about programs that support multiple languages. Have you actually installed the french support for firefox, e.g. packages.debian.org/stretch/firefox-esr-l10n-fr ?

    – icarus
    Jan 27 at 20:47











  • I did not install that package because I don't want any french language pack (that's not my language). The french thing I was mentioning in the OP is the dictionary, needed for spell checking: for some reason which I can't understand the Firefox package I installed from sid did include the french dictionary, which has nothing to do with my locale. In addition, in my previous, Ubuntu-based installations, Firefox and the other programs I'm mentioning automatically set my local language without the need to install any additional package other than dependencies. Could it be some apt setting?

    – RVKS
    Jan 27 at 21:10











  • What locale do you actually want? Did you install the firefox package for that locale?

    – icarus
    Jan 27 at 21:34






  • 1





    In Debian, less assumptions are made by the system, it's left up to the user to decide things, such as automatically also installing locales for a package you want to install. That's why it's not recommended for newbies.

    – ctrl-d
    Jan 27 at 23:55










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
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f497044%2fprograms-not-respecting-locales%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









1














Programs have to be written to respect the locale. For example if I write



 #!/bin/sh
echo hello


and I run it with a french locale, I do not expect it to output bonjour



The timezone has nothing to do with the locale setting, English is spoken all over the world, but not all the world has the same time as London. Set the TZ variable to specify the timezone, e.g. TZ=PST8PDT or TZ=America/LosAngeles, for an individual program, or make /etc/localtime have the correct information to set it globally.






share|improve this answer























  • I'm obviously talking about programs which support mutiple languages like the ones I've mentioned. In my previous installations, mostly on Ubuntu-based distributions, these programs would automatically be displayed in the correct local language, set through the mentioned environment varaibles. Now, instead, on my current Debian installation the default language for all non-KDE programs is English despite the locales define a different default language. The same is valid for time zones.

    – RVKS
    Jan 27 at 17:46











  • I am glad it is obvious to you that you are talking about programs that support multiple languages. Have you actually installed the french support for firefox, e.g. packages.debian.org/stretch/firefox-esr-l10n-fr ?

    – icarus
    Jan 27 at 20:47











  • I did not install that package because I don't want any french language pack (that's not my language). The french thing I was mentioning in the OP is the dictionary, needed for spell checking: for some reason which I can't understand the Firefox package I installed from sid did include the french dictionary, which has nothing to do with my locale. In addition, in my previous, Ubuntu-based installations, Firefox and the other programs I'm mentioning automatically set my local language without the need to install any additional package other than dependencies. Could it be some apt setting?

    – RVKS
    Jan 27 at 21:10











  • What locale do you actually want? Did you install the firefox package for that locale?

    – icarus
    Jan 27 at 21:34






  • 1





    In Debian, less assumptions are made by the system, it's left up to the user to decide things, such as automatically also installing locales for a package you want to install. That's why it's not recommended for newbies.

    – ctrl-d
    Jan 27 at 23:55















1














Programs have to be written to respect the locale. For example if I write



 #!/bin/sh
echo hello


and I run it with a french locale, I do not expect it to output bonjour



The timezone has nothing to do with the locale setting, English is spoken all over the world, but not all the world has the same time as London. Set the TZ variable to specify the timezone, e.g. TZ=PST8PDT or TZ=America/LosAngeles, for an individual program, or make /etc/localtime have the correct information to set it globally.






share|improve this answer























  • I'm obviously talking about programs which support mutiple languages like the ones I've mentioned. In my previous installations, mostly on Ubuntu-based distributions, these programs would automatically be displayed in the correct local language, set through the mentioned environment varaibles. Now, instead, on my current Debian installation the default language for all non-KDE programs is English despite the locales define a different default language. The same is valid for time zones.

    – RVKS
    Jan 27 at 17:46











  • I am glad it is obvious to you that you are talking about programs that support multiple languages. Have you actually installed the french support for firefox, e.g. packages.debian.org/stretch/firefox-esr-l10n-fr ?

    – icarus
    Jan 27 at 20:47











  • I did not install that package because I don't want any french language pack (that's not my language). The french thing I was mentioning in the OP is the dictionary, needed for spell checking: for some reason which I can't understand the Firefox package I installed from sid did include the french dictionary, which has nothing to do with my locale. In addition, in my previous, Ubuntu-based installations, Firefox and the other programs I'm mentioning automatically set my local language without the need to install any additional package other than dependencies. Could it be some apt setting?

    – RVKS
    Jan 27 at 21:10











  • What locale do you actually want? Did you install the firefox package for that locale?

    – icarus
    Jan 27 at 21:34






  • 1





    In Debian, less assumptions are made by the system, it's left up to the user to decide things, such as automatically also installing locales for a package you want to install. That's why it's not recommended for newbies.

    – ctrl-d
    Jan 27 at 23:55













1












1








1







Programs have to be written to respect the locale. For example if I write



 #!/bin/sh
echo hello


and I run it with a french locale, I do not expect it to output bonjour



The timezone has nothing to do with the locale setting, English is spoken all over the world, but not all the world has the same time as London. Set the TZ variable to specify the timezone, e.g. TZ=PST8PDT or TZ=America/LosAngeles, for an individual program, or make /etc/localtime have the correct information to set it globally.






share|improve this answer













Programs have to be written to respect the locale. For example if I write



 #!/bin/sh
echo hello


and I run it with a french locale, I do not expect it to output bonjour



The timezone has nothing to do with the locale setting, English is spoken all over the world, but not all the world has the same time as London. Set the TZ variable to specify the timezone, e.g. TZ=PST8PDT or TZ=America/LosAngeles, for an individual program, or make /etc/localtime have the correct information to set it globally.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 27 at 17:34









icarusicarus

6,05111130




6,05111130












  • I'm obviously talking about programs which support mutiple languages like the ones I've mentioned. In my previous installations, mostly on Ubuntu-based distributions, these programs would automatically be displayed in the correct local language, set through the mentioned environment varaibles. Now, instead, on my current Debian installation the default language for all non-KDE programs is English despite the locales define a different default language. The same is valid for time zones.

    – RVKS
    Jan 27 at 17:46











  • I am glad it is obvious to you that you are talking about programs that support multiple languages. Have you actually installed the french support for firefox, e.g. packages.debian.org/stretch/firefox-esr-l10n-fr ?

    – icarus
    Jan 27 at 20:47











  • I did not install that package because I don't want any french language pack (that's not my language). The french thing I was mentioning in the OP is the dictionary, needed for spell checking: for some reason which I can't understand the Firefox package I installed from sid did include the french dictionary, which has nothing to do with my locale. In addition, in my previous, Ubuntu-based installations, Firefox and the other programs I'm mentioning automatically set my local language without the need to install any additional package other than dependencies. Could it be some apt setting?

    – RVKS
    Jan 27 at 21:10











  • What locale do you actually want? Did you install the firefox package for that locale?

    – icarus
    Jan 27 at 21:34






  • 1





    In Debian, less assumptions are made by the system, it's left up to the user to decide things, such as automatically also installing locales for a package you want to install. That's why it's not recommended for newbies.

    – ctrl-d
    Jan 27 at 23:55

















  • I'm obviously talking about programs which support mutiple languages like the ones I've mentioned. In my previous installations, mostly on Ubuntu-based distributions, these programs would automatically be displayed in the correct local language, set through the mentioned environment varaibles. Now, instead, on my current Debian installation the default language for all non-KDE programs is English despite the locales define a different default language. The same is valid for time zones.

    – RVKS
    Jan 27 at 17:46











  • I am glad it is obvious to you that you are talking about programs that support multiple languages. Have you actually installed the french support for firefox, e.g. packages.debian.org/stretch/firefox-esr-l10n-fr ?

    – icarus
    Jan 27 at 20:47











  • I did not install that package because I don't want any french language pack (that's not my language). The french thing I was mentioning in the OP is the dictionary, needed for spell checking: for some reason which I can't understand the Firefox package I installed from sid did include the french dictionary, which has nothing to do with my locale. In addition, in my previous, Ubuntu-based installations, Firefox and the other programs I'm mentioning automatically set my local language without the need to install any additional package other than dependencies. Could it be some apt setting?

    – RVKS
    Jan 27 at 21:10











  • What locale do you actually want? Did you install the firefox package for that locale?

    – icarus
    Jan 27 at 21:34






  • 1





    In Debian, less assumptions are made by the system, it's left up to the user to decide things, such as automatically also installing locales for a package you want to install. That's why it's not recommended for newbies.

    – ctrl-d
    Jan 27 at 23:55
















I'm obviously talking about programs which support mutiple languages like the ones I've mentioned. In my previous installations, mostly on Ubuntu-based distributions, these programs would automatically be displayed in the correct local language, set through the mentioned environment varaibles. Now, instead, on my current Debian installation the default language for all non-KDE programs is English despite the locales define a different default language. The same is valid for time zones.

– RVKS
Jan 27 at 17:46





I'm obviously talking about programs which support mutiple languages like the ones I've mentioned. In my previous installations, mostly on Ubuntu-based distributions, these programs would automatically be displayed in the correct local language, set through the mentioned environment varaibles. Now, instead, on my current Debian installation the default language for all non-KDE programs is English despite the locales define a different default language. The same is valid for time zones.

– RVKS
Jan 27 at 17:46













I am glad it is obvious to you that you are talking about programs that support multiple languages. Have you actually installed the french support for firefox, e.g. packages.debian.org/stretch/firefox-esr-l10n-fr ?

– icarus
Jan 27 at 20:47





I am glad it is obvious to you that you are talking about programs that support multiple languages. Have you actually installed the french support for firefox, e.g. packages.debian.org/stretch/firefox-esr-l10n-fr ?

– icarus
Jan 27 at 20:47













I did not install that package because I don't want any french language pack (that's not my language). The french thing I was mentioning in the OP is the dictionary, needed for spell checking: for some reason which I can't understand the Firefox package I installed from sid did include the french dictionary, which has nothing to do with my locale. In addition, in my previous, Ubuntu-based installations, Firefox and the other programs I'm mentioning automatically set my local language without the need to install any additional package other than dependencies. Could it be some apt setting?

– RVKS
Jan 27 at 21:10





I did not install that package because I don't want any french language pack (that's not my language). The french thing I was mentioning in the OP is the dictionary, needed for spell checking: for some reason which I can't understand the Firefox package I installed from sid did include the french dictionary, which has nothing to do with my locale. In addition, in my previous, Ubuntu-based installations, Firefox and the other programs I'm mentioning automatically set my local language without the need to install any additional package other than dependencies. Could it be some apt setting?

– RVKS
Jan 27 at 21:10













What locale do you actually want? Did you install the firefox package for that locale?

– icarus
Jan 27 at 21:34





What locale do you actually want? Did you install the firefox package for that locale?

– icarus
Jan 27 at 21:34




1




1





In Debian, less assumptions are made by the system, it's left up to the user to decide things, such as automatically also installing locales for a package you want to install. That's why it's not recommended for newbies.

– ctrl-d
Jan 27 at 23:55





In Debian, less assumptions are made by the system, it's left up to the user to decide things, such as automatically also installing locales for a package you want to install. That's why it's not recommended for newbies.

– ctrl-d
Jan 27 at 23:55

















draft saved

draft discarded
















































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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f497044%2fprograms-not-respecting-locales%23new-answer', 'question_page');

);

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






Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay