Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #36565

Re: Opera browser, localisation of toLocaleString and of spell-check?

Newsgroups comp.lang.javascript
Date 2019-05-03 11:42 -0700
References <e0405e6a-4af4-4e30-a954-3fbbb56d563e@googlegroups.com> <92dfa990-91a6-4a23-9efe-4c633a57522b@googlegroups.com> <202ebcd6-ce22-46c3-b76f-4c0b6b688dc8@googlegroups.com>
Message-ID <80c22cdb-a0c1-4503-b6da-440d0caadee2@googlegroups.com> (permalink)
Subject Re: Opera browser, localisation of toLocaleString and of spell-check?
From "Michael Haufe (TNO)" <tno@thenewobjective.com>

Show all headers | View raw


dr.j.r...@gmail.com wrote:
> Michael Haufe (TNO)  wrote:
> > dr.j.r...@gmail.com wrote:
> > > I have three Windows 10 PCs, with Opera 60.0 update done today.
> > > Opera and Windows are set, as far as I know possible, for UK
> > > and for ISO 8601 date and time, YYYY-MM-DD hh:mm:ss 24-hr.
> > > 
> > > In one PC, using Opera, new Date().toLocaleString() gives a British
> > > date and 24-hour clock, :-) .  In the others, it gives a US date
> > > and AM/PM clock, :-( .
> > > 
> > > How do I rectify that?
> > > 
> > > Also, Opera in each of them is set for English display, and I
> > > see that I can change it to American.  But in each of them the
> > > spelling checker is American & cannot be changed by me - a
> > > one-option setting.  Presumably, I think, an English dictionary
> > > needs to be installed for Opera (and, IIRC, Chrome) ... How?
> > 
> > 
> > Have you tried any of the options?
> > 
> > <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString>
> 
> 
> That is the Mozilla site, and, as far as I can see, that page
> says nothing about how to adjust a copy of Opera so that its
> default format for toLocaleString is as desired for any
> JavaScript-containing page whatsoever.

The Mozilla website is now the accepted community wiki for Web Development [1]. What I was implying is that you should explicitly specify the locale and other options if you need a different display format.

If you are saying that you still want to override what the default implementation is, you should verify that the locale settings of the operating system is set appropriately. Also, Opera's settings have a Language setting you can verify in addition

> But I did not know about "tamldec", and I might, for fun, insert
> a Tamil-digits date into the page - I can do that semi-secretly,
> so as not to confuse non-Tamil readers.

So, you do not own these three machines? Are they part of a Group Policy at a work place?

[1] https://www.bleepingcomputer.com/news/technology/browser-makers-agree-to-move-web-documentation-to-mozillas-portal/

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Opera browser, localisation of toLocaleString and of spell-check? dr.j.r.stockton@gmail.com - 2019-05-02 11:56 -0700
  Re: Opera browser, localisation of toLocaleString and of spell-check? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2019-05-02 22:57 -0700
    Re: Opera browser, localisation of toLocaleString and of spell-check? dr.j.r.stockton@gmail.com - 2019-05-03 04:10 -0700
      Re: Opera browser, localisation of toLocaleString and of spell-check? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2019-05-03 11:42 -0700
        Re: Opera browser, localisation of toLocaleString and of spell-check? dr.j.r.stockton@gmail.com - 2019-05-04 05:26 -0700
  Re: Opera browser, localisation of toLocaleString and of spell-check? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-05-03 09:08 +0200
    Re: Opera browser, localisation of toLocaleString and of spell-check? dr.j.r.stockton@gmail.com - 2019-05-03 04:11 -0700
      Re: Opera browser, localisation of toLocaleString and of spell-check? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-05-03 15:38 +0200
        Re: Opera browser, localisation of toLocaleString and of spell-check? dr.j.r.stockton@gmail.com - 2019-05-03 11:39 -0700
          Re: Opera browser, localisation of toLocaleString and of spell-check? Flng Fck <nothanks@invalid.invalid> - 2019-05-06 09:28 +0200
            Re: Opera browser, localisation of toLocaleString and of spell-check? dr.j.r.stockton@gmail.com - 2019-05-06 02:36 -0700
              Re: Opera browser, localisation of toLocaleString and of spell-check? Flng Fck <nothanks@invalid.invalid> - 2019-05-06 12:31 +0200
              Re: Opera browser, localisation of toLocaleString and of spell-check? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-05-06 22:20 +0200

csiph-web