Translation of navigation buttons and such stuff

miloscupavi

New Member
Somethig similar was on this topic
http://fabrikar.com/index.php?option=com_smf&Itemid=9&topic=147.0

but there is no such text to replace as it was suggested (at least not in that file).
I`ve been trying to solve this for 5-6 days and nothing.

Does anybody have ANY solution for this?

My closest result was to add this code in fabrik_functions.php:
Code:
if($mosConfig_lang = "english") {
  $start = "<< Start";
}
if($mosConfig_lang = "serbian_lat") {
  $start = "<< Pocetna";
}


And then I changed line 63
Code:
$html .= "\n<a href=\"#beg\" class=\"pagenav\" title=\"first page\" onclick=\"javascript:fabrikNav(0);return false;\">&lt;&lt;&nbsp;Start</a>";

with
Code:
$html .= "\n<a href=\"#beg\" class=\"pagenav\" title=\"first page\" onclick=\"javascript:fabrikNav(0);return false;\">$start</a>";
and line 66
Code:
$html .= "\n<span class=\"pagenav\">&lt;&lt;&nbsp;Start</span>";

with
Code:
$html .= "\n<span class=\"pagenav\">$start</span>";

AND NOTHING.


As you can see, my programming skills are as bad as my english :(

I tried to insert
Code:
echo $mosConfing_lang;
in this file, and it's showing current language in frontend.

Also if I delete those "if statements", and just asign
Code:
$start = "<<Start";
it shows "<<Start" in front end, and if I change it to
Code:
 $start = "<< Pocetna";
it shows "<<Pocetna" in front end.

So my idea works but only in parts, when i put it together there is no result.

So once again, does anybody have any idea about this, or another solution.
Thanks!!!
 
sorry for the very very late reply, but just to let you know that in the SVN (so for general release for 1.0.5) these bits of text should now translate as per the selected language

Cheers
Rob
 
Back
Top