• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Problem with the calendar module in Danish

Scheduled Pinned Locked Moved Unsolved Troubleshooting
4 Posts 2 Posters 863 Views 2 Watching
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 Offline
    fribse
    last edited by Mar 6, 2020, 2:27 PM

    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 Mar 6, 2020, 2:46 PM Reply Quote 0
    • F Offline
      fribse @fribse
      last edited by Mar 6, 2020, 2:46 PM

      @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 Mar 6, 2020, 9:03 PM Reply Quote 0
      • ? Offline
        A Former User @fribse
        last edited by A Former User Mar 6, 2020, 9:05 PM Mar 6, 2020, 9:03 PM

        @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 Mar 6, 2020, 9:54 PM Reply Quote 0
        • F Offline
          fribse @Guest
          last edited by Mar 6, 2020, 9:54 PM

          @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
          1 / 1
          • First post
            1/4
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy