Support » Plugin: Waiting: One-click countdowns » 3d cubical on free version ?

  • Resolved Phil

    (@magicfilou)


    Hi!

    I don’t see where I can activate the 3d cubical in free version O_o :-/

    BTW, you really needs to consider idea of adding WPML compatibility or at least give the option to translate Hours, minutes …. etc …
    My website has 3 langs, I wish to show the SAME countdown in all languages.

    TIA
    Regards
    Phil

    • This topic was modified 1 year, 8 months ago by  Phil.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author plugin.builders

    (@pluginbuilders)

    Hi, go to Style > Edit. Then click on Change, it’ll scroll you to demos of 3D and other styles, click on the 3D demo.

    Do you know PHP? You can edit waiting.php file of the plugin. Look for the translateTerms() function, all the words are in one array, you can create new array for each language and show them conditionally. We’ll provide easier options to do translation in the next version.

    Phil

    (@magicfilou)

    Hi, go to Style > Edit. Then click on Change, it’ll scroll you to demos of 3D and other styles, click on the 3D demo.

    Here screenshot of the free version admin … I don’t see 3D options …
    http://www.pisqueya.com/temp/waiting.png

    Description of free plugin HERE talk about 3d (not 3d DEMO) … it’s just a demo or a free feature ?

    Do you know PHP? You can edit waiting.php file of the plugin. Look for the translateTerms() function, all the words are in one array, you can create new array for each language and show them conditionally. We’ll provide easier options to do translation in the next version.

    ok .. better to wait the newer version … or search another plugin πŸ˜‰

    Tks

    Plugin Author plugin.builders

    (@pluginbuilders)

    Did you click on that Change button before Toggle?

    Phil

    (@magicfilou)

    Oooohhhh . noo ^_^

    It’s not an “obvious” way to show this option but now, OK !!! Thanks

    Well πŸ™‚ . … I can try to edit waiting.php to add languages … if severals at the same time can be added. My project still in progress … hope your next WPML compatibility update will come soon πŸ˜‰

    Thanks for your support I really appreciate it!
    I’ll recommend you!

    Phil

    (@magicfilou)

    Hi!

    It’s weird because your plugin seems to be WPML compatible, check my screenshot, all strings are there but translation doesn’t take effect :-/

    http://www.pisqueya.com/temp/countdown.png

    in waiting.php :

    /*// Write German term for each unit below.

    $german = array(
    ‘years’ => ‘german for years’,
    ‘months’ => ”,
    ‘weeks’ => ”,
    ‘days’ => ”,
    ‘hours’ => ”,
    ‘minutes’ => ”,
    ‘seconds’ => ”
    );

    // Write French term for each unit below.

    $french = array(
    ‘years’ => ‘french for years’,
    ‘months’ => ”,
    ‘weeks’ => ”,
    ‘days’ => ”,
    ‘hours’ => ‘aa’,
    ‘minutes’ => ”,
    ‘seconds’ => ”
    );

    self::$terms[‘units’] = ( get_locale() === ‘de_DE’ ? $german : $french );
    */

    If I want to add spanish and french the good last line should be :

    self::$terms[‘units’] = ( get_locale() === ‘es_ES’ ‘fr_FR’ ? $spanish : $french );

    ???

    Tks
    Phil

    Plugin Author plugin.builders

    (@pluginbuilders)

    Hi, replace the inside of translateTerms function with following:

    
        				
    		//Write Spanish term for each unit below.
    		
    		$spanish = array(
    			'years' => 'spanish for years',
    			'months' => '',
    			'weeks' => '',
    			'days' => '',
    			'hours' => '',
    			'minutes' => '',
    			'seconds' => ''
    		);
    		
    		// Write French term for each unit below.
    		
    		$french = array(
    			'years' => 'french for years',
    			'months' => '',
    			'weeks' => '',
    			'days' => '',
    			'hours' => '',
    			'minutes' => '',
    			'seconds' => ''
    		);
    		
    		if( get_locale() === 'es_ES' ) self::$terms['units'] = $spanish;
    		else if( get_locale() === 'fr_FR' ) self::$terms['units'] = $french;		
    		else {			
    			$units = get_option('pbc_unit_terms');
    			self::$terms['units'] = $units ? $units : array(
    				'years' => __('Years', 'waiting'),
    				'months' => __('Months', 'waiting'),
    				'weeks' => __('Weeks', 'waiting'),
    				'days' => __('Days', 'waiting'),
    				'hours' => __('Hours', 'waiting'),
    				'minutes' => __('Minutes', 'waiting'),
    				'seconds' => __('Seconds', 'waiting')
    			);
    		}
    		
    		self::$terms['fui'] = array();
    
    
    Phil

    (@magicfilou)

    PERFECT !
    Thank you very much works like a charm πŸ™‚

    ++
    Regards
    Phil

    What if i only wanted to add the french translation, is the following code right? Coz i tried it and it doesn’t work. Please help! Anything else i need to be updating?

    public function translateTerms(){

    // Write French term for each unit below.

    $french = array(
    ‘years’ => ‘Ans’,
    ‘months’ => ‘Mois’,
    ‘weeks’ => ‘Semaines’,
    ‘days’ => ‘Jours’,
    ‘hours’ => ‘Heures’,
    ‘minutes’ => ‘Minutes’,
    ‘seconds’ => ‘Secondes’
    );

    if( get_locale() === ‘fr_FR’ ) self::$terms[‘units’] = $french;
    else {
    $units = get_option(‘pbc_unit_terms’);
    self::$terms[‘units’] = $units ? $units : array(
    ‘years’ => __(‘Years’, ‘waiting’),
    ‘months’ => __(‘Months’, ‘waiting’),
    ‘weeks’ => __(‘Weeks’, ‘waiting’),
    ‘days’ => __(‘Days’, ‘waiting’),
    ‘hours’ => __(‘Hours’, ‘waiting’),
    ‘minutes’ => __(‘Minutes’, ‘waiting’),
    ‘seconds’ => __(‘Seconds’, ‘waiting’)
    );
    }

    self::$terms[‘fui’] = array();

    • This reply was modified 1 year, 7 months ago by  akay86.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘3d cubical on free version ?’ is closed to new replies.