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.

    Translation "After one month" in Calendar Module

    Scheduled Pinned Locked Moved Troubleshooting
    15 Posts 4 Posters 7.7k Views 3 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.
    • M Offline
      MM-Hans
      last edited by

      Thanks Stefan, I appreciate your help!

      pjkoelemanP 1 Reply Last reply Reply Quote 0
      • pjkoelemanP Offline
        pjkoeleman @MM-Hans
        last edited by

        @MM-Hans said in Translation “After one month” in Calendar Module:

        Thanks Stefan, I appreciate your help!

        I answer this in Dutch because otherwise it will be difficult to explain. The used notation in moment.js is correct.

        Getallen tot twintig (20) worden normalieter uitgeschreven. Op het getal een worden accenten geplaatst als het een telwoord is.
        Uitzondering hierop is in samenstellingen met een worden geen accenten op de ee gezet, ook niet als het telwoord één bedoeld is.
        Voorbeeld hiervan is eendagsvlieg.

        Bron : onzetaal.nl

        No reason to change this, why would you like to do this?

        M 1 Reply Last reply Reply Quote 1
        • M Offline
          MM-Hans @pjkoeleman
          last edited by

          @pjkoeleman

          Thanks for your posting. When an event is over, let’s say, five weeks MM displays “één maand”. But in my opinion “één” means more exactly one month and not “een maand”. In English “one month” vs. “a month”. So I would like to change it. I have found two installs of moment.js and translated in both “één” to “een” but after rebooting and power off several times it was not translated on the mirror so far.

          yawnsY 1 Reply Last reply Reply Quote 0
          • yawnsY Offline
            yawns Moderator @MM-Hans
            last edited by

            @MM-Hans
            That’s strange. I will check on my mirror tomorrow

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              MM-Hans @yawns
              last edited by

              @yawns

              Possibly it is a browser cache problem, I use an Android tablet and a full screen browser within my mirror (http://192.168.2.xxx:8080). In that case there must be a way to refresh the MM tablet page, preferable from the MM install on the RPi. Something with “nocache”? I’m not sure…

              1 Reply Last reply Reply Quote 0
              • B Offline
                barnosch
                last edited by

                maybe a stupid question,
                but why do you want to see a event on your mirror,
                which was already one month ago?
                Or if i did not catched the timeing correctly, why do you want to see events which are more then one month away?
                ;)

                1 Reply Last reply Reply Quote 0
                • M Offline
                  MM-Hans
                  last edited by

                  Think I translated wrong, writing “An event is over one month” I ment “An event is after one month” ;-)

                  1 Reply Last reply Reply Quote 0
                  • yawnsY Offline
                    yawns Moderator
                    last edited by

                    Okay MM-Hans. After looking at vendor.js I noticed moment.js is loaded from "moment.js" : "node_modules/moment/min/moment-with-locales.js",

                    So if you go ahead, open "~/MagicMirror/vendor/node_modules/moment/min/moment-with-locales.js", and scroll down to line 10649 (no, I’m not kidding) and change één to een you are good to go.

                    0_1518780654875_een.PNG

                    M 1 Reply Last reply Reply Quote 1
                    • M Offline
                      MM-Hans @yawns
                      last edited by

                      @yawns said in Translation “After one month” in Calendar Module:

                      vendor/node_modules/moment/min/

                      Hi Stefan. You almost need to be a digital detective to locate that phrases ;-) But finally the issue is solved, thanks for your assistance!

                      yawnsY 1 Reply Last reply Reply Quote 1
                      • yawnsY Offline
                        yawns Moderator @MM-Hans
                        last edited by

                        @MM-Hans said in Translation “After one month” in Calendar Module:

                        @yawns said in Translation “After one month” in Calendar Module:

                        vendor/node_modules/moment/min/

                        Hi Stefan. You almost need to be a digital detective to locate that phrases ;-) But finally the issue is solved, thanks for your assistance!

                        You are welcome!

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 2 / 2
                        • First post
                          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