No this is not the problem. This error occurs from scratch. I delete and the reinstalled th quickstart package and from joomla admin->components-> realestate manager-> lang manages i just browsed through english const variable and the problem occured again!
PAY ME SOME ATTENTION CAREFULLY.
1.i tranlated English.php to Greek.php and i copied to /components/com_realestatemanager/lang. My Greek.php has of course this line
Code: |
$LangLocal = array('lang_code'=>'gr-GR', 'title'=>'Greek');
|
. All lines are correct
2.In Joomla REM lang manager i selected greek language
3.My defaul joomla lang is Greek. I have already installed the language pack for joomla
4.In rem_const_languages i can see about 900 lines English const variable and 720 greek variables. They grrek translations are ALREADY IN the table
Why the hell it doesn't change in the frontend. Tell me. Ihave done EVERYTHING ACCORDING to your instructions
Ihave joomla 3, free november templade, quiqkstart package.
If you don't have a solution, i may have one.
In the file administratorcomponentscom_realestatemanagerrealestatemanager.php , i believe this section of the code has a lot of errors. It may not read teh variables $result.
Code: |
if (count($langs) > count($fileMas)) {
$results = array_diff($langs, $fileMas);
foreach($results as $result) {
$database->setQuery("SELECT lang_code FROM #__rem_languages WHERE title = '$result'");
$lang_code = $database->loadResult();
$langfile = "<?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );";
$langfile .= "nn/**n*n* @package RealestateManagern* @copyright 2012 Andrey Kvasnevskiy-OrdaSoft(akbet@mail.ru); Rob de Cleen(rob@decleen.com);n* Homepage: http://www.ordasoft.comn* @version: 3.0 Pron*n* */nn";
$langfile .= "$LangLocal = array('lang_code'=>'$lang_code', 'title'=>'$result');nn";
$langfile .= "$constLang = array();nn";
$query = "SELECT c.const, cl.value_const ";
$query .= "FROM #__rem_const_languages as cl ";
$query .= "LEFT JOIN #__rem_languages AS l ON cl.fk_languagesid=l.id ";
$query .= "LEFT JOIN #__rem_const AS c ON cl.fk_constid=c.id ";
$query .= "WHERE l.title = '$result'";
$database->setQuery($query);
$constlanguages = $database->loadObjectList();
foreach($constlanguages as $constlanguage) {
$langfile .= "$constLang[] = array('const'=>'".$constlanguage->const."', 'value_const'=>".$database->Quote($constlanguage->value_const) . ");n";
}
// Write out new initialization file
$fd = fopen($mosConfig_absolute_path."/components/com_realestatemanager/lang/$result.php", "w") or die("Cannot create configuration file.");
fwrite($fd, $langfile);
fclose($fd);
}
}
|
Check it. And others variables may have errors two. They are not visible. Are you sure this is correct
Code: |
$database->setQuery("SELECT lang_code FROM #__rem_languages WHERE title = '$result'")
|
or this
Code: |
$database->setQuery("SELECT lang_code FROM #__rem_languages WHERE title = '$result'") $database->setQuery("SELECT lang_code FROM #__rem_languages WHERE title = '".$result."'");
|
Sorry this is getting me go crazy. It doesnt' work whatever i do. if can't find a solution, do you hav a copy with two languages installed and send it to me?
Please check the code for errors or tell what else may be wrong.
Thank you