View Single Post
Posts: 58 | Thanked: 19 times | Joined on Jan 2012 @ Finland
#1062
Originally Posted by sponka View Post
I use {full-date} on my screen and it's displayed in english, it looks like:
Thursday, 9 January 2017

Is it possible to have some script/file with names for days and months in another language and use with existing commands (weekday name, month name, etc.) to display them on screen. The above output would be:
Četrtek, 9. januar 2014

Pretty please


EDIT: I see sometning like this on page 95, will check there first if I can adapt.
What is your phones locale set? I think {full-date} shows date acc. to set locale.

With this simple script you can output weekday names as you wish.
Code:
#!/bin/sh
day=$(date +%u)
echo | awk -v d=$day '{split("Mon Tue Wed Thu Fri Sat Sun",a," ")
printf a[d]}'