Daveiano/weewx-wdc

Add Moon phases translations

aryiu opened this issue · 3 comments

Is your feature request related to a problem? Please describe.
No possibility of translating Moon phases in Celestial page.
moon-phases

Describe the solution you'd like

  • Add a way for getting these words translated in your translation file (i.e. it.conf)
  • Also, maybe it would be great to add by default the planet name strings, although these translations work right now if you add the strings manually. For example: "Mars" = "Marte" (and it's shown correctly)

Added in 8006446 and will be included in the next release.

You can translate the moon phases by adding something like this to it.conf:

[Almanac]
    # The labels to be used for the phases of the moon:
    moon_phases = Nuova, Crescente, Primo quarto, Gibbosa crescente, Piena, Gibbosa calante, Ultimo quarto, Calante

I also added defaults for the planet names in it.conf:

    "Mars" = "Marte"
    "Jupiter" = "Giove"
    "Saturn" = "Saturno"
    "Venus" = "Venere"

Thank you! You can also add this in the [Texts] section of it.conf for translating the card tags:

 "Phase" = "X"
 "New moon" = "X"
 "Full moon" = "X"

@aryiu You are right, some translations were missing. I added everything I found untranslated, and it looks good to me:

GH-264

You can test it by copying the updated translations files into your skin dir locally from https://github.com/Daveiano/weewx-wdc/tree/3.x/skins/weewx-wdc/lang

Please let me know if you find something left untranslated!