weewx / weewx

WeeWX code repository
http://weewx.com
GNU General Public License v3.0
1.01k stars 298 forks source link

Docs: Configuring the html lang tag #749

Closed glennmckechnie closed 2 years ago

glennmckechnie commented 2 years ago

https://weewx.com/docs/customizing.htm#Internationalize_the_template

To change the html lang attribute in the html file the docs indicate that $gettext is used. This is incorrect.

Just using $lang is required (as defined in the appropriate weewx.conf section.)


"At the top of the template, change the HTML "lang" attribute to a configurable value."

Currently it states this...

<!DOCTYPE html>
<html lang="$gettext("lang")">
  <head>
    <meta charset="UTF-8">
    ...

When it should be...

<!DOCTYPE html>
<html lang="$lang">
  <head>
    <meta charset="UTF-8">
    ...
tkeffer commented 2 years ago

Fixed.

Thanks, Glenn.