Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #20271

    How can i change the language on the countdown?

    (Upcoming – days – hours – minutes – seconds)

    #106982

    Hi,

    Open config-events-calendar folder then edit config.php, find this code, search for a line like this (‘days’,'avia_framework’).

    if($show_weeks)
    {
    echo '

    <div class="dash weeks_dash">
    <span class="dash_title">'.__('weeks','avia_framework').'</span>
    <div class="digit">0</div>
    <div class="digit">0</div>
    </div>';
    }

    echo '
    <div class="dash days_dash">
    <span class="dash_title">'.__('days','avia_framework').'</span>
    <div class="digit">0</div>
    <div class="digit">0</div>
    </div>

    <div class="dash hours_dash">
    <span class="dash_title">'.__('hours','avia_framework').'</span>
    <div class="digit">0</div>
    <div class="digit">0</div>
    </div>

    <div class="dash minutes_dash">
    <span class="dash_title">'.__('minutes','avia_framework').'</span>
    <div class="digit">0</div>
    <div class="digit">0</div>
    </div>

    <div class="dash seconds_dash">
    <span class="dash_title">'.__('seconds','avia_framework').'</span>
    <div class="digit">0</div>
    <div class="digit">0</div>
    </div>

    </a>';
    echo "</div>";

    Regards,

    Ismael

    #106983

    And how can I set what languge I want on the rest? Its in enlish, but I see there is a Norwegian translation file for the calendar…

    I have also translated some in the default.po lang file, but dos’nt show….

    #106984

    To translate the event plugin:

    1) Install Events Calendar Plugin. You can download it here: http://wordpress.org/extend/plugins/the-events-calendar/

    2) If the text is still not translated open up wp-contentpluginsthe-events-calendarlangtribe-events-calendar-nb_NO.po with a tool like Poedit and translate it. Then save the result and place the po AND mo fie into the wp-contentpluginsthe-events-calendarlang folder

    To translate the theme:

    1) Make a copy of wp-contentthemesincarnationlangdefault.po and rename it to nb_NO.po (or nn_NO.po – I’m not sure – compare: http://codex.wordpress.org/WordPress_in_Your_Language#Norwegian_.28norsk.29 )

    2) Then translate the file with Poedit, save the result as nb_NO.po and nb_NO.mo or nn_NO.po an nn_NO.mo

    3) Upload both files into the wp-contentthemesincarnationlang folder.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Change language on countdown’ is closed to new replies.