Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

If it smells it's chemistry, if it crawls it's biology, if it doesn't work it's physics.


devel / comp.lang.tcl / Re: DateEntry

SubjectAuthor
* DateEntryVictor Machado
`* DateEntryRich
 `- DateEntrygreg

1
DateEntry

<0d8237db-f53c-4465-804a-43798928c6b6n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=12207&group=comp.lang.tcl#12207

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:15b:b0:774:1c49:2d6b with SMTP id e27-20020a05620a015b00b007741c492d6bmr204353qkn.12.1696298501297;
Mon, 02 Oct 2023 19:01:41 -0700 (PDT)
X-Received: by 2002:a05:6808:152c:b0:3ae:554b:583e with SMTP id
u44-20020a056808152c00b003ae554b583emr7191735oiw.6.1696298500871; Mon, 02 Oct
2023 19:01:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Mon, 2 Oct 2023 19:01:40 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=170.84.136.6; posting-account=U6CwYQoAAAC9OyDU3nKxnjC7tcnh9iwU
NNTP-Posting-Host: 170.84.136.6
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0d8237db-f53c-4465-804a-43798928c6b6n@googlegroups.com>
Subject: DateEntry
From: vicsoase...@gmail.com (Victor Machado)
Injection-Date: Tue, 03 Oct 2023 02:01:41 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1062
 by: Victor Machado - Tue, 3 Oct 2023 02:01 UTC

I need to put the days of the week in Spanish in the DateEntry widget, how do I do it? Please
Thank

Re: DateEntry

<uffvhh$3bsh4$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=12208&group=comp.lang.tcl#12208

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ric...@example.invalid (Rich)
Newsgroups: comp.lang.tcl
Subject: Re: DateEntry
Date: Tue, 3 Oct 2023 02:50:25 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <uffvhh$3bsh4$1@dont-email.me>
References: <0d8237db-f53c-4465-804a-43798928c6b6n@googlegroups.com>
Injection-Date: Tue, 3 Oct 2023 02:50:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="05b9f5fcedcba0bdd5eec7ec9531a82e";
logging-data="3535396"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+pzbH72VWUQETXjo3WtX0m"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.117 (x86_64))
Cancel-Lock: sha1:i2oNwo4AxWT0QssXEAaaqwixTqA=
 by: Rich - Tue, 3 Oct 2023 02:50 UTC

Victor Machado <vicsoasesores@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.

Re: DateEntry

<9b02068f-faac-43ce-ba94-0a2242568629n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=12209&group=comp.lang.tcl#12209

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:1a8a:b0:417:971e:ab19 with SMTP id s10-20020a05622a1a8a00b00417971eab19mr187944qtc.12.1696326820856;
Tue, 03 Oct 2023 02:53:40 -0700 (PDT)
X-Received: by 2002:a05:6808:bcd:b0:3a7:5742:ce92 with SMTP id
o13-20020a0568080bcd00b003a75742ce92mr6713259oik.0.1696326820523; Tue, 03 Oct
2023 02:53:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 3 Oct 2023 02:53:40 -0700 (PDT)
In-Reply-To: <uffvhh$3bsh4$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=185.250.212.33; posting-account=99ziWAoAAADLScDbI_CyfIcpa_gFZ0zh
NNTP-Posting-Host: 185.250.212.33
References: <0d8237db-f53c-4465-804a-43798928c6b6n@googlegroups.com> <uffvhh$3bsh4$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9b02068f-faac-43ce-ba94-0a2242568629n@googlegroups.com>
Subject: Re: DateEntry
From: gregor.e...@googlemail.com (greg)
Injection-Date: Tue, 03 Oct 2023 09:53:40 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2178
 by: greg - Tue, 3 Oct 2023 09:53 UTC

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

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor