LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 09-28-2019, 12:06 PM   #1
gacl
Member
 
Registered: Feb 2004
Posts: 64

Rep: Reputation: 23
I want to install the locale en_SE on openSUSE 15.1


Hello,

I want to install the locale en_SE on openSUSE 15.1. I use it in other devices but unfortunately it is not installed in this particular system

locale -a doesn't list it

It's not present in /usr/share/i18n/locales/ either

Where can I download this locale and how do I install it?

Thanks
 
Old 09-28-2019, 12:17 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,345

Rep: Reputation: Disabled
Quote:
Originally Posted by gacl View Post
locale -a doesn't list it

It's not present in /usr/share/i18n/locales/ either
That's because it's not a standard locale; it's English with various modifications to emulate the date format (and other settings) of a non-English (typically European) locale.
Quote:
Originally Posted by gacl View Post
Where can I download this locale and how do I install it?
I can't say for sure, but there's a chance a highly advanced Google search might turn up something.
 
Old 09-28-2019, 02:12 PM   #3
gacl
Member
 
Registered: Feb 2004
Posts: 64

Original Poster
Rep: Reputation: 23
I did
Code:
sudo touch en_SE
in /usr/share/i18n/locales/ and pasted the code from GitHub. However,
Code:
sudo locale-gen en_SE
gives
Code:
sudo: locale-gen: command not found
 
Old 09-28-2019, 02:28 PM   #4
gacl
Member
 
Registered: Feb 2004
Posts: 64

Original Poster
Rep: Reputation: 23
It seems
Code:
sudo localedef -i en_SE en_SE
is the right command. I think I'll have to log out for this to work...
 
Old 09-28-2019, 03:34 PM   #5
gacl
Member
 
Registered: Feb 2004
Posts: 64

Original Poster
Rep: Reputation: 23
With the last command all accented characters were replaced with question marks in Konsole. The following command does work:
Code:
sudo localedef -i en_SE -f UTF-8 en_SE
 
Old 10-04-2019, 05:38 PM   #6
gacl
Member
 
Registered: Feb 2004
Posts: 64

Original Poster
Rep: Reputation: 23
One more thing: I tried this with my other computer and it didn't work. There were no locales or maps available, or even an i18n directory, so when I ran localedef all I got was errors. I solved this by installing glibc-i18ndata
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
locale: Cannot Set LC_ALL to default locale: No such file or directory. asym Linux - General 11 10-24-2018 05:54 PM
cannot lock locale archive "/usr/lib64/locale/locale-archive": Permission denied when building Multilib Cross Linux from Scratch Gunnersky2002 Linux - Software 2 06-13-2018 09:28 AM
How to change the locale by setting the system default locale letdoit Slackware 6 08-18-2011 03:34 AM
C locale and system locale johnnydangerous Fedora 4 04-11-2005 03:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration