We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18463
    • 121 Posts
    Martijn van Turnhout Reply #1, 16 years, 1 month ago
    Hi,

    first of all: the WordPress configuration of Ditto and Reflect works like a charm for me. I’ve even managed to get the Reflect placeholders

    <h2>[+wp_month+] [+wp_year+]</h2>


    visible on the archive page. Seemed it was just a matter of making the Ditto call cachable and the page itself uncachable.

    However, I was wondering how I can modify the locale settings (i.e. the language) of those Reflect placeholders.

    Now it’s showing me this:

    <h2>June 2010</h2>


    But I want the Dutch version:

    <h2>Juli 2010</h2>


    I’ve already put

    setlocale(LC_ALL, 'nl_NL');


    inside of the PHP code for the Reflect snippet. That seems to work for the unordered list archive, but not for those WP placeholders on the archive page itself. In other words: placeholders like [+wp_month+] and [+wp_year+] aren’t translated. How can I fix this?

    Any help would be hugely appreciated. Thanks!
      • 19339
      • 6 Posts
      Just looking around for the same issue and I can’t seem to find the right info anywhere on the forum either,
      Martijn have you had any luck in solving this?

      Greetings, Michiel
        • 18463
        • 121 Posts
        Martijn van Turnhout Reply #3, 15 years, 11 months ago
        Hi Michiel,

        nothing unfortunately. I’ve decided to leave those placeholders out.
          • 19339
          • 6 Posts
          Martijn I’ve got it;

          What you put in the snippet is correct; now i added this in my call:
          &setlocale=`nld_nld`


          My reflect call is now:

          [[Reflect? &config=`wordpress` &dittoSnippetParameters=`parents:44` &id=`wp` &getDocuments=`1` &setlocale=`nld_nld` ]]


          The month names of my archive are now in dutch but I do not use
          <h2>[+wp_month+] [+wp_year+]</h2>
          So let me know if this works for you too..

          Greetings, M