Foreign Languages, PHP, & Custom HTML Block

I have added a few langauge files and they work well.  All of the languages referenced in the files shows up as it should.

 

The problem I'm having is the text displayed in the Custom HTML Block on my homepage (Admin Menu --> Basic Settings).  Since the text does not reference anything in the language files, it doesn't change when the language changes. 

 

Can someone provide me with a line of PHP code for inserting language file references (lang-en.php) into the Custom HTML Block?

 

Thanks,

Chris

Quote · 27 Oct 2009

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

and this line:

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

chang it to:

if( getParam( 'enable_flash_promo' ) != 'on' )
//$sCode = '<div class="promo_code_wrapper">' . getParam( 'custom_promo_code' ) . '</div>';
$sCode = '<div class="promo_code_wrapper">'._t( '_my_promo_code').'</div>';

Add a new language streng with name: _my_promo_code

(On Category I used Promotional texts)

Quote · 28 Oct 2009

THANKS!!!!

 

That worked great.

 

I have one follow up question which you might know the answer to.  When I compile the language files, they all are changed into English. Is there a way to prevent this?

 

Thanks,

Chris

Quote · 28 Oct 2009

Where did you obtain your language files from?  They actually shouldn't be doing that if they were done properly.

Quote · 28 Oct 2009
 
 
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.