Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DateEntry

42 views
Skip to first unread message

Victor Machado

unread,
Oct 2, 2023, 10:01:43 PM10/2/23
to
I need to put the days of the week in Spanish in the DateEntry widget, how do I do it? Please
Thank

Rich

unread,
Oct 2, 2023, 10:50:30 PM10/2/23
to
Victor Machado <vicsoa...@gmail.com> wrote:
> I need to put the days of the week in Spanish in the DateEntry
> widget, how do I do it? Please

By reading the source for dateentry, noticing that a "-language" option
exists, and passing "-language es" when creating the widget.

greg

unread,
Oct 3, 2023, 5:53:43 AM10/3/23
to
Rich schrieb am Dienstag, 3. Oktober 2023 um 04:50:30 UTC+2:
> iwrote:
> > I need to put the days of the week in Spanish in the DateEntry
> > widget, how do I do it? Please
> By reading the source for dateentry, noticing that a "-language" option
> exists, and passing "-language es" when creating the widget.

# widget::calendar
#https://core.tcl-lang.org/tklib/doc/trunk/embedded/md/tklib/files/modules/widget/widget_calendar.md

In my opinion you are missing option -locale in when using clock in calendar.tcl
-language has no effect on clock
several (4) changes in source code from calendar.tcl

option -locale -default en
set $options($option) [clock format $now -format $options(-dateformat) -locale $options(-locale)]
set fmtdate [clock format $date -format $options(-dateformat) -locale $options(-locale)]
set fmtdate [clock format $date -format $options(-dateformat) -locale $options(-locale)]
set today "$LANGS(today,$options(-language)) [clock format $now -format $options(-dateformat) -locale $options(-locale)]"




0 new messages