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)]"