Tagged: translation
-
AuthorPosts
-
March 24, 2016 at 11:19 am #602932
Hi guys, as much as I like Enfold, as much do I hate that some parts of it like Animated Countdown is still not translated. I am a bit frustrated as after each upgrade I do have to translate the strings of years, months, weeks, days, hours and seconds to german language.
I can’t remember how often I did this translation in the past. Shouldn’t it be possible for you to get translated strings into core? Please.
March 24, 2016 at 11:28 am #602936Shall I send you my translated po and mo files for Enfold 3.5.1 and you may put it into core for future releases?
March 27, 2016 at 9:36 am #603868Hey!
Some theme files will get overwritten when you update the theme to avoid this please create a child theme
and copy the countdown.php file in
enfold\config-templatebuilder\avia-shortcodes\countdown.php to child theme
and replace this code
$this->full_time_array = array( 1 => array("interval" => 1000 , 'class'=>'seconds', 'label' => __('Second', 'avia_framework' ), 'label_multi' => __('Seconds', 'avia_framework')), 2 => array("interval" => 60000 , 'class'=>'minutes', 'label' => __('Minute', 'avia_framework' ), 'label_multi' => __('Minutes', 'avia_framework')), 3 => array("interval" => 3600000 , 'class'=>'hours', 'label' => __('Hour', 'avia_framework'), 'label_multi' => __('Hours', 'avia_framework')), 4 => array("interval" => 86400000 , 'class'=>'days', 'label' => __('Day', 'avia_framework' ), 'label_multi' => __('Days', 'avia_framework')), 5 => array("interval" => 604800000 , 'class'=>'weeks', 'label' => __('Week', 'avia_framework' ), 'label_multi' => __('Weeks', 'avia_framework')), 6 => array("interval" => 2678400000 , 'class'=>'months', 'label' => __('Month', 'avia_framework' ), 'label_multi' => __('Months', 'avia_framework')), 7 => array("interval" => 31536000000, 'class'=>'years', 'label' => __('Year', 'avia_framework' ), 'label_multi' => __('Years', 'avia_framework'))
And edit the label “Month, Week, Days, Hours, Minutes, Seconds” after the “‘label_multi’ =>
Example
the below code7 => array("interval" => 31536000000, 'class'=>'years', 'label' => __('Year', 'avia_framework' ), 'label_multi' => __('Years', 'avia_framework'))
Becomes
7 => array("interval" => 31536000000, 'class'=>'years', 'label' => __('Year', 'avia_framework' ), 'label_multi' => __('Years in German', 'avia_framework'))
Cheers!
VinayApril 17, 2016 at 9:40 am #615756Hi Vinay, the text strings are still in language files but not translated. So anyone who uses countdown has to translate this to own language. It will be the best way to use language files with translated strings as of creating a copy of countdown.php with your modifications wouldn’t it?
April 19, 2016 at 9:09 am #617229Hi!
Yes, please give us the language files and we will send it to Kriesi. Sorry for the inconvenience.
Regards,
IsmaelApril 19, 2016 at 9:18 am #617233April 20, 2016 at 9:24 am #618097 -
AuthorPosts
- You must be logged in to reply to this topic.