title: FullCalendar today-button: date instead of text // issue with the lang
body: <p>I want to show the current date instead of a fixed text in the today-button.
  This >> <a href="http://irismediainfo3.lili.de/spip.php?lang=de&amp;var_mode=recalcul" rel="nofollow">irismediainfo3.lili.de</a> is the development-website I am working on.
  I could not find an option for that in the docs, so I searched in the moment.js-docs and found:</p>
  
  <pre><code>moment().format();
  </code></pre>
  
  <p>and used it in the FullCalendar like this:</p>
  
  <pre><code>buttonText: {
                  next: '&gt;',
                  nextYear: '&gt;&gt;',
                  prev: '&lt;',
                  prevYear: '&lt;&lt;',
                  today: moment().format("MMMM YYYY")
              },
  </code></pre>
  
  <p>The result was good, but only in English.
  The FullCalendar should be multilingual, so I tried to combined it with</p>
  
  <pre><code>moment.locale(String);
  </code></pre>
  
  <p>First try:</p>
  
  <pre><code>buttonText: {
                  next: '&gt;',
                  nextYear: '&gt;&gt;',
                  prev: '&lt;',
                  prevYear: '&lt;&lt;',
                  today: moment().locale('de').format("MMMM YYYY")
                  },
  </code></pre>
  
  <p>But there were no changes. I thought moment.js maybe could access the lang-files of FullCalendar. And here comes my first question:</p>
  
  <p>moment.js is included in FullCalendar. Where do I have to put the lang-files in the FullCalendar directory to make it accessible for the moment.js?</p>
  
  <p>I found a more complex syntax and the next try which did not crash my FullCalendar was:</p>
  
  <pre><code>buttonText: {
                  next: '&gt;',
                  nextYear: '&gt;&gt;',
                  prev: '&lt;',
                  prevYear: '&lt;&lt;',
                  today: moment().locale('de', {months : "Januar_Februar_M&amp;#228;rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_")}).format("MMMM YYYY")
          },
  </code></pre>
  
  <p>It did not crash my FullCalendar, but it also did not have any influence.</p>
  
  <p>Actually the 'de' in the code and the long string with the months names is created by the compiler of the CMS I use. It is called SPIP. The URL at the beginning contains a language-variable. If you change that variable to "en", "fr" or "de" (others work as well, but the website will be made for those languages) you can see the FullCalendar changing the language. Only the today-button stays in English.
  The language-variable from the URL will be given to the FullCalendar code automatically. As long as the rest of the FullCalendar is changing the language the variable from the URL is passed correctly.</p>
  
  <p>I even tried to take the full moment.js code with all languages from the momentjs.com homepage and paste it in the moment.js file in the FullCalendar lib directory. But even then the language did not change.</p>
  
  <p>Is it possible to define the language moment.js is supposed to use inline?</p>
  
  <p>Thanks for your time and help.
  Nils T.</p>