Language string in the promo

Hi Guys.

I would like to use a language string in the promo so i could use my languages and of course to put the promo html in the different language

How do i do that.. i mean the html syntex?

 

Tnx

/Yaya

Quote · 15 Sep 2011

Use custom HTML block with language string

Open file inc/design.inc.php and find -> function getPromoCode()

and this line:

if( getParam( 'enable_flash_promo' ) != 'on' )

$sCode = '' . getParam( 'custom_promo_code' ) . '';

 

chang it to:

if( getParam( 'enable_flash_promo' ) != 'on' )

//$sCode = '' . getParam( 'custom_promo_code' ) . '';

$sCode = ''._t( '_my_promo_code').'';

Add a new language streng with name: _my_promo_code

(On Category I used System)

Quote · 15 Sep 2011

Tnx for your reply.

i did that.. not working .. it is showing the string.

Just to make sure i will tell you what i did:

  1. Changes to the design.inc
  2. Basic settings - use custom html block
  3. Added the string: _my_promo_code
  4. adding the string to the language settings as system with its value
  5. Complie

 

Not working.

Now what?

Tnx for your help

Quote · 23 Sep 2011

I think there is a error in the code provided for inc/design.inc.php. Maybe depends on dolphin version.

Re-Edit.

This is the origional line that i have.

$sCode = '<div class="promo_code_wrapper">' . getParam( 'custom_promo_code' ) . '</div>';


Change to this.

$sCode = '<div class="promo_code_wrapper">' . _t( '_my_promo_code') . '</div>';


If the origional line i posted above is not what you had, then post your origional line here along with your exact version of dolphin.


 

https://www.deanbassett.com
Quote · 23 Sep 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.