Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localization #66

Closed
532910 opened this issue Mar 31, 2019 · 6 comments
Closed

Localization #66

532910 opened this issue Mar 31, 2019 · 6 comments

Comments

@532910
Copy link

532910 commented Mar 31, 2019

Please add locale support. (weekday name for example)

@ghost
Copy link

ghost commented May 26, 2019

The only thing I miss in tty-clock :)

@1BertoMR
Copy link

sorry, my english is bad.
for tty-clock detected OS locale
agree in file

  • ttyclock.h
    #include<locale.h>
  • ttyclock.c
    init(void){
    setlocale(LC_TIME,””);
    //or forced locale setlocale(LC_TIME,"spanish")

    }

@anarcat
Copy link
Collaborator

anarcat commented Dec 13, 2019

patches welcome, @1BertoMR :)

@1BertoMR
Copy link

patches welcome, @1BertoMR :)

my capture

@anarcat
Copy link
Collaborator

anarcat commented Dec 16, 2019

hola @1BertoMR - puedes enviar una arreglo para su problema? :)

i am sorry, my spanish is also very poor, but i would be quite happy to merge your patch if you actually send it as a pull request here. See this documentation for more information:

https://help.github.com/es/github/collaborating-with-issues-and-pull-requests/about-pull-requests

Gracias!

MoonCactus added a commit to MoonCactus/tty-clock-timer that referenced this issue Mar 19, 2021
@MoonCactus
Copy link
Contributor

MoonCactus commented Mar 19, 2021

Thanks @1BertoMR for the no brainer, I fixed it in my fork: LANG=fr_FR.utf8 ./tty-clock -f %A
@anarcat may be you will be interested to merge my fork, it has various functions and cleanups (I can make a somehow heavy-handed pull request). You can check here master...MoonCactus:master

MoonCactus added a commit to MoonCactus/tty-clock-timer that referenced this issue Mar 30, 2021
anarcat added a commit that referenced this issue Apr 6, 2021
Allow external locale (github #66)
@anarcat anarcat closed this as completed Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants