• DateEntry

    From Victor Machado@21:1/5 to All on Mon Oct 2 19:01:40 2023
    I need to put the days of the week in Spanish in the DateEntry widget, how do I do it? Please
    Thank

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rich@21:1/5 to Victor Machado on Tue Oct 3 02:50:25 2023
    Victor Machado <[email protected]> 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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From greg@21:1/5 to Rich on Tue Oct 3 02:53:40 2023
    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)]"

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)