You are not logged in.
Pages: 1
Time widget shows me time in following format:
mytextclock = awful.widget.textclock("%A, %d %B - %H:%M:%S", 1)Result is in english:
Thursday, 16 May - 21:21:45but, command date returns time correctly
$ date "+%A, %d %B - %H:%M:%S"
czwartek, 16 maj - 21:25:53How to set proper language for time widget?
Locale:
$ locale
LANG=pl_PL.UTF-8
LC_CTYPE=pl_PL.UTF-8
LC_NUMERIC="pl_PL.UTF-8"
LC_TIME="pl_PL.UTF-8"
LC_COLLATE="pl_PL.UTF-8"
LC_MONETARY="pl_PL.UTF-8"
LC_MESSAGES="pl_PL.UTF-8"
LC_PAPER="pl_PL.UTF-8"
LC_NAME="pl_PL.UTF-8"
LC_ADDRESS="pl_PL.UTF-8"
LC_TELEPHONE="pl_PL.UTF-8"
LC_MEASUREMENT="pl_PL.UTF-8"
LC_IDENTIFICATION="pl_PL.UTF-8"
LC_ALL=Last edited by n0rv (2013-05-17 20:43:21)
Offline
locale pl_PL.UTF-8 is not avaliable in lua?
$ lua
Lua 5.2.2 Copyright (C) 1994-2013 Lua.org, PUC-Rio
> print(os.setlocale('C'))
C
> print(os.setlocale('zh_CN.UTF-8'))
zh_CN.UTF-8
> print(os.setlocale('pl_PL.UTF-8'))
nil
> print(os.setlocale('en_US.UTF-8'))
en_US.UTF-8
> Offline
locale pl_PL.UTF-8 is not avaliable in lua?
I dont think so...
$ lua
Lua 5.2.2 Copyright (C) 1994-2013 Lua.org, PUC-Rio
> print(os.date("%A, %d %B - %H:%M:%S"))
Friday, 17 May - 22:37:01
> print(os.setlocale('pl_PL.UTF-8'))
pl_PL.UTF-8
> print(os.date("%A, %d %B - %H:%M:%S"))
piątek, 17 maj - 22:37:12
> As you can see, locale pl_PL.UTF-8 is available in lua.
Edit.
Adding following line:
os.setlocale("pl_PL.UTF-8")to rc.lua solve problem ![]()
Last edited by n0rv (2013-05-17 20:43:00)
Offline
Pages: 1