You also use Bootstrap in [[StandardReport]] and need to specify a lang:

[[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
        lang = {one_of_the_available_languages}

Without the lang, there is no locale
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/d95c728e-1ced-4f1b-afe6-b8e0e51a9255n%40googlegroups.com.

Reply via email to