How can i change the language on the countdown?
(Upcoming - days - hours - minutes - seconds)
How can i change the language on the countdown?
(Upcoming - days - hours - minutes - seconds)
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
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....
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-content\plugins\the-events-calendar\lang\tribe-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-content\plugins\the-events-calendar\lang\ folder
To translate the theme:
1) Make a copy of wp-content\themes\incarnation\lang\default.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-content\themes\incarnation\lang\ folder.
You must log in to post.