openhab-core icon indicating copy to clipboard operation
openhab-core copied to clipboard

Ephemeris localization for Sweden not supported as documentation mentions

Open ebuckland81 opened this issue 4 years ago • 1 comments

Ephemeris localization for Sweden should be available according to the Documentation https://www.openhab.org/docs/configuration/actions.html#ephemeris. This seems however not to be supported although the following parameters where added to runtime.cfg in openHAB 2.5.11: localization region=SE and language=sv and also Ephemeris country=se. All output from getHolidayDescription defaults to the English descriptions. Also, a local properties file was added to the services-directory as per instructions in https://www.openhab.org/docs/configuration/actions.html#ephemeris, without success.

Also see https://community.openhab.org/t/ephemeris-localized-getholidaydescription/111300?u=erik_backlund.

ebuckland81 avatar Dec 27 '20 18:12 ebuckland81

Pretty sure this is part of the problem: https://github.com/svendiedrichsen/jollyday/blob/master/src/main/java/de/jollyday/HolidayCalendar.java there is a set of supported holiday calendars, and although sweden is listed, it's not listed with Locale.SWEDEN.getCountry() as parameter, so maybe jollyday doesn't even try to use a provided properties file at all. Seems to be a problem to be solved by svendiedrichsen...

udo1toni avatar Dec 29 '23 16:12 udo1toni