MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    UNSOLVED Problem with the calendar module in Danish

    Troubleshooting
    2
    4
    387
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fribse last edited by

      Hi All

      I’m looking into the magic mirror again, now that the mirror piece is getting closer to being ordered.

      I just noticed that my language code in the config was set to da for danish, but it should be dk according to the yrthen module.

      But if I set the language code in the config to dk, the calendar will not load, it just shows loading, the YrThen module shows danish though.
      If I set it to da, the calendar is showing the right language, but then the weather is showing norwegian instead.

      So what is the correct language code, is it the YrThen module that is wrong?

      F 1 Reply Last reply Reply Quote 0
      • F
        fribse @fribse last edited by

        @fribse Ok, I modified the MMM-YrThen.js so it checks for the language code da instead of dk, then it’s shown correctly, but which is it, is it da or dk for danish in MagicMirror, usually it’s da but who knows here?

        ? 1 Reply Last reply Reply Quote 0
        • ?
          A Former User @fribse last edited by A Former User

          @fribse
          ‘dk’ is country code(ISO-3166) for Denmark.
          ‘da’ is language code(ISO-639) for Danish.
          They could be composed to present locale ‘da-dk’. That scheme is named as IETF language tag(RFC-5646)
          Ideally, ‘da’ should be used for linguistic identification . ‘dk’ should be used for location identification. But sometimes both are confused by mistakes or ignorance(of developer)

          F 1 Reply Last reply Reply Quote 0
          • F
            fribse @Guest last edited by

            @Sean Gotcha, thankyou for clearing it up.
            So now @fmandal just needs to modify the files to reflect on da instead of dk 🙂

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy