Code Monkey home page Code Monkey logo

Comments (15)

phmccarty avatar phmccarty commented on July 4, 2024 1

Also, for reference, the available locale data from glibc are stored in /usr/share/i18n/locales/. You'll see that en_DE is not present, so trying to localedef -i en_DE ... does not work.

However, you are always free to create locale data for en_DE, and then define a new locale using that data:

  1. Copy a locale data file from /usr/share/i18n/locales to use as a starting point for your new locale. You can store it anywhere, e.g. /usr/local/share/en_DE.
  2. Modify /usr/local/share/en_DE as needed.
  3. Run localedef -i /usr/local/share/en_DE -f UTF-8 en_DE.UTF-8
  4. Set LANG=en_DE.UTF-8 in /etc/locale.conf
  5. Log out / log back in

from distribution.

ahkok avatar ahkok commented on July 4, 2024

en_DE is pertinently incorrect though, there's no such thing as german english.

I'm not yet sure what needs to be done to be able to get more locales though, yet.

from distribution.

fenrus75 avatar fenrus75 commented on July 4, 2024

from distribution.

Andy2244 avatar Andy2244 commented on July 4, 2024

Supposedly its fixed this way:
fix

The problem is that from windows en_DE is valid, aka english language and german date/time format. The fix uses locale-gen/localedef to generate and remap, which i cant find in clearlinux.

from distribution.

iphutch avatar iphutch commented on July 4, 2024

@matthewrsj can you look into adding localedef

from distribution.

matthewrsj avatar matthewrsj commented on July 4, 2024

/usr/bin/localedef is already provided by both the c-basic and os-core-dev bundles.

from distribution.

phmccarty avatar phmccarty commented on July 4, 2024

@matthewrsj is correct. The localedef program is provided by two bundles, as discovered by running sudo swupd search /usr/bin/localedef.

@Andy2244 There are many locales you can define, but of out the box, the only defined locale is en_US.UTF-8. I recommend to define the locales you need using localedef, and set them using localectl set-locale ...

from distribution.

phmccarty avatar phmccarty commented on July 4, 2024

After further tests, localectl set-locale ... appears buggy, so you can modify /etc/locale.conf directly instead. For example, here's how you can define and set the fr_FR.UTF-8 locale:

sudo localedef -i fr_FR -f UTF-8 fr_FR.UTF-8
sudo sh -c 'echo LANG="fr_FR.UTF-8" > /etc/locale.conf'

For settings to take effect, log out and log back in.

from distribution.

ahkok avatar ahkok commented on July 4, 2024

Is this something we need to include in a more logical bundle? like, sysadmin-basic ? Having it in c-basic and os-core-dev is missing the point I think

from distribution.

Andy2244 avatar Andy2244 commented on July 4, 2024

Having it in c-basic and os-core-dev is missing the point I think

yeah that's really "strange"

I never had this particular problem on any of the "big" linux distro, so something seems off regarding clear-linux.

from distribution.

matthewrsj avatar matthewrsj commented on July 4, 2024

@ahkok localedef is provided by glibcwhich is why it is in those particular bundles. Do we want to add glibc to sysadmin-basic? Seems like a weird fit. Maybe a new locale-focused bundle?

from distribution.

bryteise avatar bryteise commented on July 4, 2024

Well it sits in glibc-locale currently (per the spec). It has a note mentioning spit on the section though. I'm pretty happy to add glibc-locale to sysadmin-basic. @phmccarty do you think opening an issue for localectl would make sense too?

from distribution.

Andy2244 avatar Andy2244 commented on July 4, 2024

Oki as noticed "en_DE.UTF-8" does not exist in the default linux world, strangely enough most distro's with a GUI setup, let me setup English language and German formats/time, similar to what Windows does.

So i just did localedef -i en_DK -f UTF-8 en_DE.UTF-8, since DK formats are similar and exists.

I'm closing this, since it seems linux in general deems it "strange" that this combination exists, while windows does not. So its not the fault of clear-linux, however "locale-gen/localedef" should exist in the same basic admin/locales package, both handle advanced locales.

from distribution.

phmccarty avatar phmccarty commented on July 4, 2024

As of the 22210 release, localedef is now present in the sysadmin-basic bundle, along with all of the locale data from /usr/share/i18n/.

from distribution.

ahkok avatar ahkok commented on July 4, 2024

from distribution.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.