Danish translations for weewx-skyfield, weewx-celestial and weewx-loopdata — and dates that follow your language

22 views
Skip to first unread message

John Kline

unread,
Aug 2, 2026, 1:38:52 PM (9 days ago) Aug 2
to weewx-user
Hi all,
  
All three of these extensions now speak Danish, thanks to Gert Andersen, who contributed complete translations of all three: the page prose, every panel string, the body names, the moon phases and compass points (east is Ø, west is V), and all 88 constellation names.  Tak, Gert!  The new releases are weewx-skyfield 1.17, weewx-celestial 7.8 and weewx-loopdata 6.8.
  
  
Also in weewx-skyfield 1.17: the Sky page's dates now follow the report's language (embarassingly, I had the date format hardcoded).  They used to be fixed in the English month-day style ("Aug 2") no matter the language; the date formats are now part of each translation, so a Danish or German page prints "2. aug", a French, Dutch or Spanish page "2 aug" — and English pages are unchanged.  The month and weekday names follow the report's locale, as everywhere in WeeWX: set lang to a full installed locale (e.g. lang = da_DK.UTF-8 — the Danish lang file still loads) and they render in your language too.
  
Turning it on
  
One line on the report's stanza in weewx.conf:
  
[StdReport]
    [[SkyfieldReport]]
        lang = da
and likewise for [[CelestialReport]] and [[LoopDataReport]].  (Or set it once under [StdReport] [[Defaults]] — skins that don't ship Danish simply stay English.) English reports render exactly as before.
  
Screenshots of all three pages in Danish are in the release notes:
  
  
(The pages were captured from my own station, so you'll see Danish labels over US units — units follow each report's own settings, not the lang file.)
  
Dutch and Spanish reviewers still wanted
  
The Danish arrives written by a native speaker.  The Dutch and Spanish translations (shipped in earlier releases) are still awaiting their native-speaker reviews, the same way the German and French left Beta (thanks again, Christian and Jacques!).  If you run WeeWX in Dutch or Spanish, or just read either language: turn it on, or read the screenshots in those release notes, and tell me what a native speaker would say differently — as a reply here, a GitHub issue, or a pull request against skins/*/lang/.
  
Other languages
  
A lang file is a self-contained, no-code contribution: each skin ships lang/en.conf as its reference dictionary, and a translation is that file with the right-hand sides in your language — partial is fine, every missing string falls back to English.  If there is demand for more languages, I'm happy to do the work if you are willing to review the translated text.
  
Full release notes for all three releases follow below.

Thanks,
John

weewx-skyfield 1.17

Two things in this release: a complete Danish translation of the Sky
page, contributed by native speaker Gert Andersen, and dates that
follow the report's language: "2. aug" on a
Danish or German page where every language used to get the English
"Aug 2". Drop-in upgrade from any 1.x — install over it, no config
changes; an English page looks exactly as before.


What's new

  • Danish ships.  lang/da.conf is a complete translation,
    contributed by native speaker Gert Andersen: the page prose, every
    panel string, the body names, the moon phases, the compass points
    (east is Ø, west V, SSW is SSV) and all 88 constellation names. One
    line turns it on:

    [StdReport]
        [[SkyfieldReport]]
            lang = da
    

    Tests keep the Danish complete the same way they keep the German,
    French, Dutch and Spanish: new strings cannot ship untranslated.

    The Sky page in Danish

    And single-column, as a tablet or phone sees it:

    The Sky page in Danish, single column

  • Dates follow the language. The page's three date formats — the
    header date, the countdown chips, the panel tooltip dates — were
    fixed in the code in the English month-day style; no setting could
    reorder them. They are now translatable [Texts] keys, so every
    shipped language gets its own order out of the box: "2. aug" for
    Danish and German, "2 aug" for French, Dutch and Spanish, and the
    English unchanged. The month and weekday names follow the
    report's locale, WeeWX-standard: set lang to a full installed
    locale — e.g. lang = da_DK.UTF-8, which still loads da.conf —
    and the names render in the report's language too (on Debian-family
    systems, enable the locale first with
    sudo dpkg-reconfigure locales). The manual's
    Translations page
    has the details.

  • Known Skyfield Issues — a new README section and
    manual page
    covering the rare, benign RuntimeWarning from Skyfield's
    almanac.py line 339 (upstream
    skyfield #1114;
    this extension's author diagnosed the root cause and contributed a
    proposed fix upstream). weewx-skyfield already discards the affected
    event, so reports render complete and no user action is needed.


Requirements

  • Python 3.9 or later
  • WeeWX 5.2 or later
  • Skyfield (1.47 or later) and NumPy in WeeWX's Python environment (see the
    README); PyEphem is NOT required


Installing/upgrading

Download weewx-skyfield.zip from this release, then:

weectl extension install weewx-skyfield.zip

Restart WeeWX. No weewx.conf changes are needed when upgrading from
1.x. Note that upgrading replaces the bundled skin (skins/Skyfield/,
including its lang/ files) — if you have edited an installed lang file
(trying out corrections, say), save a copy or send the corrections
upstream first; local additions such as extra star names survive
upgrades best as [[[Almanac]]] entries in weewx.conf (see the
manual).



weewx-celestial 7.8

A complete Danish translation of the sample skin ships, contributed by
native speaker Gert Andersen. Drop-in upgrade
from 7.x — install over it, no config changes, no loop-data field
changes; a page in any other language looks exactly as before.
Released alongside weewx-skyfield 1.17 and weewx-loopdata 6.8, which
ship the same Danish for their pages.


What's new

  • Danish ships.  lang/da.conf is a complete translation,
    contributed by native speaker Gert Andersen, whose shared vocabulary
    — body names, moon phases, compass points and all 88 constellation
    names — is copied verbatim from weewx-skyfield's Danish, and a test
    keeps the extensions in step (as it does for the German, French,
    Dutch and Spanish). Because the live loop-data values follow the
    language of loopdata's target report, one line switches the whole
    page, labels and live values alike:

    [StdReport]
        [[CelestialReport]]
            lang = da
    

    The Celestial page in Danish


Requirements

  • Python 3.9 or later
  • WeeWX 5.2 or later
  • weewx-loopdata
    5.0 or later
  • weewx-skyfield
    strongly recommended (required for Proxima Centauri), or PyEphem


Installing/upgrading

Download weewx-celestial.zip from this release, then install right over
the existing 7.x:

weectl extension install weewx-celestial.zip

Restart WeeWX. No weewx.conf changes are needed when upgrading from 7.x.
(Upgrading from 6.x or earlier follows the README's upgrade instructions —
those paths do need the uninstall step, and from 5.x the migration
utility.)


weewx-loopdata 6.8

A complete Danish translation of the sample report ships, contributed
by native speaker Gert Andersen. Drop-in
upgrade — install over 6.x; no configuration changes, and every
existing fields line produces the same values as before. Released
alongside weewx-skyfield 1.17 and weewx-celestial 7.8, which ship the
same Danish for their pages.


What's new

  • Danish ships.  lang/da.conf is a complete Danish translation
    of the sample report, contributed by native speaker Gert Andersen —
    the gauge headings (DugpunktBarometerNedbør,
    Solindstråling), the nine trend.barometer.desc tendency
    descriptions (StigendeStabilFaldende), and, for a loopdata
    instance whose target report is Danish, the compass ordinates (Ø for
    east, SSV for SSW), moon phases, body and all 88 constellation names
    — the shared vocabulary in step with weewx-skyfield's and
    weewx-celestial's Danish (the same cross-repo test that pins the
    German, French, Dutch and Spanish). Select it with lang = da on
    the report's stanza.

    The sample report in Danish


Requirements

  • WeeWX 4 or 5 (translations need WeeWX 4.6 or later)
  • Python 3.7 or later
  • No third-party Python packages required


Installing/upgrading

Download weewx-loopdata.zip
and install it over your existing copy, then restart weewxd:

weectl extension install weewx-loopdata.zip

(or wee_extension --install weewx-loopdata.zip on WeeWX 4).


Reply all
Reply to author
Forward
0 new messages