We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21778
    • 223 Posts
    Hey modx mentors! smiley

    Post Updated: I have the latest installment of the Kalender snippet running on my site. The issue i have been struggling with is somehow related to my modx configuration, i suspect. All the months and week days are displayed in English, and i want to change this into Danish. However i cant really figure out where it get this information from? modx?

    Thanks!!
      • 21778
      • 223 Posts
      Upgraded to Kalender Enhanced.

      Found this:

      $lang [string] [ ’en’ | ’de’ | ’fr’ | ’nl’ (etc.) ]
      language to use for the calendar

      Dose not work with ’da’ though, it works with the ones mentioned in the example.

      if i used this in the snippet setlocale(LC_TIME, "da_DK.ISO8859-1");   it works. but it can’t display danish letters laugh

      EDIT: IT WORKS IT WORKS!!! PERSISTENCE IS KEY TO VICTORY!  da_DK.UTF8 , there are no capital letters though


      Now.... how do i change the publish date from PM/AM to danish =)