Tom Keffer schrieb am Freitag, 13. August 2021 um 19:07:54 UTC+2: > Notable change since the alpha versions is that the "lang" files have been > "flattened." This makes them easier to maintain. >
I would like to comment this. For the skins that come with WeeWX like Seasons skin I would agree with you that the flattened language files are easier to maintain. For big skins that are available as an extension there is a reason that speaks against flattened files. That is: If the skin has a lot of pages and thus a log of templates, the author may use a central .inc file to define the HTML and page headers including page dependent meta tags and the page title H1 tag. And in this case $gettext[$page]['title'] and something comes in useful as you can put it into the .inc file and it picks the appropriate text for the given template automatically. -- You received this message because you are subscribed to the Google Groups "weewx-development" 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-development/6adf05be-c438-4f76-adc2-9e2751aca6cbn%40googlegroups.com.
