Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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.

    #602936

    Shall I send you my translated po and mo files for Enfold 3.5.1 and you may put it into core for future releases?

    #603868

    Hey!

    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 code

    
    7 => 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!
    Vinay

    #615756

    Hi 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?

    #617229

    Hi!

    Yes, please give us the language files and we will send it to Kriesi. Sorry for the inconvenience.

    Regards,
    Ismael

    #617233
    #618097

    Hey!

    Thank you. We forwarded the files to Kriesi.

    Best regards,
    Ismael

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.