brewster76 / fuzzy-archer

Graphical gauges and history table generators for Weewx
GNU General Public License v2.0
39 stars 32 forks source link

Not picking up singular / plural correctly #109

Closed swfrx closed 1 year ago

swfrx commented 1 year ago

I have my windspeed in knots, so added a line to the Labels in lang/en.conf:

    [[Labels]]

        # These are singular, plural
        meter             = " meter",  " meters"
        day               = " day",    " days"
        hour              = " hour",   " hours"
        minute            = " minute", " minutes"
        second            = " second", " seconds"
        knot              = " knot",    " knots"

To my surprise I had 'knot, knots' under the windspeed!

Screenshot 2023-04-17 162644

I checked there were no strange characters in the line. If I remove it I get 'knots' regardless of if it's 1 or more.

mKainzbauer commented 1 year ago

Fixed with https://github.com/brewster76/fuzzy-archer/commit/3b457d7a863867572f85b1dd72de13f22152b191