Hi Yves, 

which exact version of the skin are you using?

try adding locale = {desired_locale} to each Bootstrap stanza:

 [[Bootstrap-fr]]
        skin = Bootstrap
        HTML_ROOT = /var/www/weewx/fr
        lang = fr
        enable = true
        locale = fr_FR

    [[Bootstrap-en]]
        skin = Bootstrap
        HTML_ROOT = /var/www/weewx/en
        lang = en
        enable = true
        enable = en_US

    [[Bootstrap-es]]
        skin = Bootstrap
        HTML_ROOT = /var/www/weewx/es
        lang = es
        enable = true
        enable = es_ES

Note: some parts of the page will use your systems locale, regardless of 
what you set in the config, see https://github.com/weewx/weewx/issues/867

Anyway, this is an issue since the locale should be pre-defined in each 
language file. Please file an issue, if 
possible: https://github.com/brewster76/fuzzy-archer/issues

Yves Martin schrieb am Montag, 10. Juli 2023 um 23:06:03 UTC+2:

> Hi,
>
> I am trying the new Boostrap and I have a lot of trouble...
>
> I want to use the multi-language option so I set as the documentation says 
> in weewx.conf:
>
>     [[StandardReport]]
>         # See the customizing guide to change the units, plot types and 
> line
>         # colors, modify the fonts, display additional sensor data, and 
> other
>         # customizations. Many of those changes can be made here by 
> overriding
>         # parameters, or by modifying templates within the skin itself.
>
>         # The StandardReport uses the 'Standard' skin, which contains the
>         # images, templates and plots for the report.
>         skin = Bootstrap
>
>     [[Bootstrap-fr]]
>         skin = Bootstrap
>         HTML_ROOT = /var/www/weewx/fr
>         lang = fr
>         enable = true
>
>     [[Bootstrap-en]]
>         skin = Bootstrap
>         HTML_ROOT = /var/www/weewx/en
>         lang = en
>         enable = true
>
>     [[Bootstrap-es]]
>         skin = Bootstrap
>         HTML_ROOT = /var/www/weewx/es
>         lang = es
>         enable = true
>
> But I have this error :
>
> Jul 10 16:56:46 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: 
> Evaluation of template /etc/weewx/skins/Bootstrap/history.html.tmpl failed.
> Jul 10 16:56:46 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: **** 
> Ignoring template /etc/weewx/skins/Bootstrap/history.html.tmpl
> Jul 10 16:56:46 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: **** 
> Reason: cannot find 'locale'
> Jul 10 16:56:46 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: **** 
> To debug, try inserting '#errorCatcher Echo' at top of template
> Jul 10 16:56:46 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: 
> Evaluation of template /etc/weewx/skins/Bootstrap/stats.html.tmpl failed.
> Jul 10 16:56:46 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: **** 
> Ignoring template /etc/weewx/skins/Bootstrap/stats.html.tmpl
> Jul 10 16:56:46 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: **** 
> Reason: cannot find 'locale'
> Jul 10 16:56:46 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: **** 
> To debug, try inserting '#errorCatcher Echo' at top of template
> Jul 10 16:56:46 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: 
> Evaluation of template /etc/weewx/skins/Bootstrap/history.html.tmpl failed.
> Jul 10 16:56:46 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: **** 
> Ignoring template /etc/weewx/skins/Bootstrap/history.html.tmpl
> Jul 10 16:56:46 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: **** 
> Reason: cannot find 'locale'
> Jul 10 16:56:46 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: **** 
> To debug, try inserting '#errorCatcher Echo' at top of template
> Jul 10 16:56:47 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: 
> Evaluation of template /etc/weewx/skins/Bootstrap/indiceUV.html.tmpl failed.
> Jul 10 16:56:47 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: **** 
> Ignoring template /etc/weewx/skins/Bootstrap/indiceUV.html.tmpl
> Jul 10 16:56:47 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: **** 
> Reason: cannot find 'time_since_last_rain'
> Jul 10 16:56:47 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: **** 
> To debug, try inserting '#errorCatcher Echo' at top of template
> Jul 10 16:56:47 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: 
> Evaluation of template /etc/weewx/skins/Bootstrap/day.html.tmpl failed.
> Jul 10 16:56:47 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: **** 
> Ignoring template /etc/weewx/skins/Bootstrap/day.html.tmpl
> Jul 10 16:56:47 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: **** 
> Reason: cannot find 'locale'
> Jul 10 16:56:47 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: **** 
> To debug, try inserting '#errorCatcher Echo' at top of template
> Jul 10 16:56:47 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: 
> Evaluation of template /etc/weewx/skins/Bootstrap/week.html.tmpl failed.
> Jul 10 16:56:47 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: **** 
> Ignoring template /etc/weewx/skins/Bootstrap/week.html.tmpl
> Jul 10 16:56:47 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: **** 
> Reason: cannot find 'locale'
> Jul 10 16:56:47 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: **** 
> To debug, try inserting '#errorCatcher Echo' at top of template
> Jul 10 16:56:47 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: 
> Evaluation of template /etc/weewx/skins/Bootstrap/month.html.tmpl failed.
> Jul 10 16:56:47 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: **** 
> Ignoring template /etc/weewx/skins/Bootstrap/month.html.tmpl
> Jul 10 16:56:47 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: **** 
> Reason: cannot find 'locale'
> Jul 10 16:56:47 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: **** 
> To debug, try inserting '#errorCatcher Echo' at top of template
> Jul 10 16:56:47 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: 
> Evaluation of template /etc/weewx/skins/Bootstrap/year.html.tmpl failed.
> Jul 10 16:56:47 meteo-raspi weewx[1797] ERROR weewx.cheetahgenerator: **** 
> Ignoring template /etc/weewx/skins/Bootstrap/year.html.tmpl
>
> (...)
>
> YM
>

-- 
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/07aef399-7001-4599-b7a5-4b69a1a74a4fn%40googlegroups.com.

Reply via email to