GithubHelp home page GithubHelp logo

Comments (6)

ammgws avatar ammgws commented on June 30, 2024 1

FYI Chrono now supports localisation (chronotope/chrono#453)

We still have to get LC_TIME ourselves though. Or add another option to the time block to specify the locale.

from i3status-rust.

cecton avatar cecton commented on June 30, 2024 1

https://crates.io/crates/locale_config maybe this could be useful?

from i3status-rust.

ammgws avatar ammgws commented on June 30, 2024 1

@oschoudhury This should be fixed in #863. For now you'll have to manually specify your locale in the config but in the future it could be made to retrieve your system LC_TIME by default.

from i3status-rust.

greshake avatar greshake commented on June 30, 2024

Well, all the formatting is done by the chrono crate, and I have't given much thought to locales so far. Maybe you can investigate whether this is a missing feature/bug in chrono/bug in the time block?

from i3status-rust.

oschoudhury avatar oschoudhury commented on June 30, 2024

I forgot to answer here. It seems like it should be able by combining the chrono crate with the locale crate, the problem is however that on rust-locale it says "This version is mostly useless. Major rewrite is pending for version 0.3.".

So I guess that for the moment it is a "won't fix" situation.

from i3status-rust.

ammgws avatar ammgws commented on June 30, 2024

Let's keep an eye on this: chronotope/chrono#199

from i3status-rust.

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.