Hi Everyone!
Can soem tell me how I can make a Multi Language Block For Dolphin 7.0.2
I have one but for the old version but is not working on Dolphin 7.0.2
can you please help
Thank's
This my old code from >> dolphinbugfixing
_________________________________________________________________________
EXPERTX 2010 -- dolphinbugfixing.com@gmail.com
========================================================================
MULTINGUAL HTML BLOCK
1) Edit inc\classes\BxDolPageView.php
Look for this line :
function getBlockCode_Echo( $iBlockID, $sContent ) {
After the above line insert this lines :
$sC alt= "XXX ".$sContent;
$res = db_res("select `ID`,`Key` from sys_localization_keys"); // FOR 7.0.0 only
$res = db_res("select `ID`,`Key` from LocalizationKeys"); // FOR 6.1.6 only
while ( $arr = mysql_fetch_array($res) )
{
if ( strpos($sContent,$arr[Key]) > 0 )
$sC alt= str_replace($arr[Key],_t($arr[Key]),$sContent);
}
$sC alt= str_replace("XXX","",$sContent);
2) In the Admin Panel >> Builders >> PageBuilders
HTML block editing, add underscoce infront of the string you wish to make it multilingual.
Example : _multilanguageHTMLblock
3) In the Admin Panel >> Manage Languages -- http://<yoursite>/admin/lang_file.php << 6.1.6
In the Admin Panel >> Manage Languages -- http://<yoursite>/administration/lang_file.php << 7.0.0
click the link "Add a new language key" window will popup, fill up the fields
New language key name: _multilanguageHTMLblock
Category: Misc
String texts for available languages: testing me viewing a multilanguage HTML block