My settings:
  os.setlocale("zh_CN.UTF-8")
  mytextclock = widget({ type = "textbox", align = "right" })
  myclock = timer({ timeout = 1 })
  myclock:add_signal("timeout", function() mytextclock.text = os.date(" 
%Y年%m月%d日 %H:%M:%S %A ") end)

Note that 'os.setlocale' is required whatever locale you're using.
I don't know why it is needed as my locale is already that, though.

BTW, I just noticed that, when I reply to mails in this maillist, the
mail goes to the sender, instead of the list. Why is this happening?

On Wed, Dec 08, 2010 at 05:50:17PM +0800, 桂林 wrote:
> I want show week in chinese, Wed to "星期三", can I do it?
> 
> 2010/12/8 桂林 <[email protected]>
> 
> > any good idea?
> >
> > 2010/12/8 Julien Danjou <[email protected]>
> >
> > On Wed, Dec 08 2010, Gwenhael Le Moine wrote:
> >>
> >> > You need to override the default 60s timeout when you create the widget,
> >> > like this:
> >> >         mytextclock = awful.widget.textclock( " %d.%m.%Y %H:%M ", 1 )
> >> >
> >> > the second parameter, 1, is the timeout, the widget will be refreshed
> >> every
> >> > second.
> >> > Note that I'm not sure how it will affect the load...
> >>
> >> It does not load much, but it makes awesome be awaken every second,
> >> which can be considered a bad thing wrt power management.
> >>
> >> --
> >> Julien Danjou
> >> // ᐰ <[email protected]>   http://julien.danjou.info
> >>
> >
> >
> >
> > --
> > Best regards,
> >
> > Jason Green
> > 桂林
> >
> >
> >
> 
> 
> -- 
> Best regards,
> 
> Jason Green
> 桂林

-- 
Best regards,
lilydjwg

我的博客 http://lilydjwg.is-programmer.com/

-- 
To unsubscribe, send mail to [email protected].

Reply via email to