Unfortunately, Version 4 allows only one locale to be set. Version 5 will allow a locale to be set for each report.
It's a bit of a hack, but one thing you could try is to put something like this at the top of a template (NOT TESTED): #import locale #locale.setlocale(locale.LC_ALL, 'es_ES') This would set the locale. It will stay set until the next call to setlocale(). Note that this will set the locale for *every* time that the template is used. -t On Wed, Nov 29, 2023 at 12:03 AM Juan Antonio Mosquera Casais < [email protected]> wrote: > Hello, > I have installed the latest version of stable weewx, belchertown theme on > Raspberry (raspbian). I have a problem with coding, I want to be able to > generate templates like FTP with en_US coding and belchertown with es_ES > coding (the Belchertown configuration allows it). But having installed in > the system the two locales (en_US and es_ES) with en_US by default. When I > start weewx, the first generation of the tmpl generates it correctly with > en_US encoding (with dotted decimal separator) but the following > generations of the file appear as es_ES. I don't understand what the > problem is. > thank you > > -- > You received this message because you are subscribed to the Google Groups > "weewx-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/594953ce-dca3-4fec-a4c1-949cbb011bd1n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/594953ce-dca3-4fec-a4c1-949cbb011bd1n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEDErh%2BcUeBU67x1M6tE%2BKSOR%3DdPNMxGGnrVr_Fg8_GV8g%40mail.gmail.com.
