Jump to:

10842 Posts in 2513 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » [Solved] Event calendar - ignoring i18n::set_locale('nl_NL');

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1132 Views
  • borriej
    Avatar
    Community Member
    267 Posts

    [Solved] Event calendar - ignoring i18n::set_locale('nl_NL'); Link to this post

    How do i get my event calendar into dutch?

    i need to add translations proberbly, but what are they en_US?

  • borriej
    Avatar
    Community Member
    267 Posts

    Re: [Solved] Event calendar - ignoring i18n::set_locale('nl_NL'); Link to this post

    Ok i've translated the en_US to nl_NL

    <?php
    // -------------------------------------------------------------------
    // This file was automatically generated by the LangBuilder.php script
    // Date of creation: 2009/04/13 18:57:21
    // -------------------------------------------------------------------
    global $lang;

    /** Date Templating **/

    // e.g. Oct 4th, 2009
    $lang['nl_NL']['Calendar']['OneDay'] =
       '%{sMonShort}. %{sDayNumShort}, %{sYearFull}';

    // e.g. Oct 4th - 6th, 2009
    $lang['nl_NL']['Calendar']['SameMonthSameYear'] =
       '%{sMonShort}. %{sDayNumShort} - %{eDayNumShort}, %{eYearFull}';

    // e.g. Oct 4th - Nov. 6th, 2009
    $lang['nl_NL']['Calendar']['DiffMonthSameYear'] =
       '%{sMonShort}. %{sDayNumShort} - %{eMonShort}. %{eDayNumShort}, %{eYearFull}';

    // e.g. Dec 30th, 2008 - Jan 2nd, 2009
    $lang['nl_NL']['Calendar']['DiffMonthDiffYear'] =
       '%{sMonShort}. %{sDayNumShort}, %{sYearFull} - %{eMonShort} %{eDayNumShort}, %{eYearFull}';

    // "Headers" control the display when a date range is given to the calendar through the URL.
    $lang['nl_NL']['Calendar']['OneDayHeader'] =
       '%{sMonFull} %{sDayNumShort}%{sDaySuffix}, %{sYearFull}';

    $lang['nl_NL']['Calendar']['MonthHeader'] =
       '%{sMonFull}, %{sYearFull}';

    $lang['nl_NL']['Calendar']['YearHeader'] =
       '%{sYearFull}';   
       
    /** Language **/

    // Output for class or file: Calendar
    $lang['nl_NL']['Calendar']['NUMBEROFEVENTS'] =
       'Hoeveel activiteiten moeten er weergegeven worden op de standaard weergave?.';
    $lang['nl_NL']['Calendar']['DEFAULTDATEHEADER'] =
       'Standaard koptekst (wordt weergegeven wanneer er geen data zijn geselecteerd)';
    $lang['nl_NL']['Calendar']['NUMBERFUTUREDATES'] =
       'Hoeveel dagen moeten er weergegeven worden voor het aantal toekomstige events?';
    $lang['nl_NL']['Calendar']['UPCOMINGEVENTSFOR'] =
       'Komende activiteiten voor %s';
    $lang['nl_NL']['Calendar']['FILTER'] =
       'Filter';

    // Output for class or file: CalendarDateTime
    $lang['nl_NL']['CalendarDateTime']['INVALIDFORMAT'] =
       'Ongeldige datum structuur. Moet zijn "dmy" of "mdy"';

    // Output for class or file: CalendarEvent
    $lang['nl_NL']['CalendarEvent']['REPEATEVENT'] =
       'Herhaal deze activiteit';
    $lang['nl_NL']['CalendarEvent']['DESCRIBEINTERVAL'] =
       'Omschrijf het interval van de activiteit herhaling.';
    $lang['nl_NL']['CalendarEvent']['EVERY'] =
       'Iedere ';
    $lang['nl_NL']['CalendarEvent']['DAYS'] =
       ' dag(en)';
    $lang['nl_NL']['CalendarEvent']['WEEKS'] =
       ' weken';
    $lang['nl_NL']['CalendarEvent']['ONFOLLOWINGDAYS'] =
       'Op de volgende dag(en)...';
    $lang['nl_NL']['CalendarEvent']['MONTHS'] =
       ' maand(en)';
    $lang['nl_NL']['CalendarEvent']['ONTHESEDATES'] =
       'Op deze dag(en)...';
    $lang['nl_NL']['CalendarEvent']['ONTHE'] =
       'Op de ...';
    $lang['nl_NL']['CalendarEvent']['OFTHEMONTH'] =
       ' van de maand.';
    $lang['nl_NL']['CalendarEvent']['ANYEXCEPTIONS'] =
       'Uitzonderingen op dit patroon? Voer hieronder de data in.';
    $lang['nl_NL']['CalendarEvent']['DATE'] =
       'Datum';
    $lang['nl_NL']['CalendarEvent']['RSSFEED'] =
       'RSS Feed van deze kalender';

    // Output for class or file: Calendar.ss
    $lang['nl_NL']['Calendar.ss']['BROWSECALENDAR'] =
       'Verken de kalender';
    $lang['nl_NL']['Calendar.ss']['USECALENDAR'] =
       'Gebruik de onderstaande kalender om data te navigeren';
    $lang['nl_NL']['Calendar.ss']['SUBSCRIBE'] =
       'Abonneer op de kalender';
    $lang['nl_NL']['Calendar.ss']['ALLDAY'] =
       'Gehele dag';
    $lang['nl_NL']['Calendar.ss']['TIME'] =
       'Tijd';
    $lang['nl_NL']['Calendar.ss']['MORE'] =
       'meer...';
    $lang['nl_NL']['Calendar.ss']['SEEALSO'] =
       'Bekijk ook';
    $lang['nl_NL']['Calendar.ss']['ADD'] =
       'Toevoegen aan de kalender';
    $lang['nl_NL']['Calendar.ss']['NOEVENTS'] =
       'Er zijn geen even activiteiten';

    // Output for class or file: CalendarEvent.ss
    $lang['nl_NL']['CalendarEvent.ss']['BROWSECALENDAR'] =
       'Verken de kalender';
    $lang['nl_NL']['CalendarEvent.ss']['USECALENDAR'] =
       'Gebruik de onderstaande kalender om data te navigeren';
    $lang['nl_NL']['CalendarEvent.ss']['FILTERCALENDAR'] =
       'Filter kalender';
    $lang['nl_NL']['CalendarEvent.ss']['BACKTO'] =
       'Terug naar';
    $lang['nl_NL']['CalendarEvent.ss']['SUBSCRIBE'] =
       'Abonneer op de kalender';
    $lang['nl_NL']['CalendarEvent.ss']['ADDITIONALDATES'] =
       'Extra data';

    $lang['nl_NL']['CalendarWidget']['LOCALEFILE'] = 'date_en.js';

    But i want the months to be in English aswell. Where can I do this?

  • borriej
    Avatar
    Community Member
    267 Posts

    Re: [Solved] Event calendar - ignoring i18n::set_locale('nl_NL'); Link to this post

    Also set the local like this:

    // Set the site locale
    i18n::set_locale('nl_NL');
    /* Set locale to Dutch */
    setlocale(LC_ALL, 'nl_NL');

    that solves it!

    1132 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.