International zone > فارسی - Persian

how to have فارسی instead of persian in "select language"

<< < (2/3) > >>

apkoutsou:
That is strange...  :-\ The link is not affected by the above changes...
Could you please give me the url of your site? I'll check it it tonight, and I'd prefer to see the live site.

Kamran:
the live website address is: http://www.payab-zamzam.com/PZnewSite

thanks,

apkoutsou:
Kamran, which version of Elxis have you installed on your site?

Kamran:
It is 2009.3_aphrodite_rev2684

Kamran:
Hi apkoutsou,

I moved forward a little bit by adding

$link = $this->sefReplacer($langx);

to lines 223 and 232. Now, select language is working but what I don't like about it is that whenever I click the active language the page refreshes whereas it should not have any reaction, I guess.
The actual code is:

if ($langx == 'persian') {
   $persianlang = 'فارسی';
   $link = $this->sefReplacer($langx);
            echo '<a href="'.$link.'" title="'.$persianlang.'">';
   if (($this->lng_style == 0) && file_exists($mainframe->getCfg('absolute_path').'/language/'.$langx.'/'.$langx.'.gif')) {
      echo '<img src="'.$mainframe->getCfg('ssl_live_site').'/language/'.$langx.'/'.$langx.'.gif" border="0" alt="'.$persianlang.'" style="vertical-align:middle" />';
   } else {
                        echo ($lang == $langx) ? '<strong>'.$persianlang.'</strong>' : $persianlang;
   }
   echo '</a> '._LEND;
} else {
   $link = $this->sefReplacer($langx);
            echo '<a href="'.$link.'" title="'.$langx.'">';
   if (($this->lng_style == 0) && file_exists($mainframe->getCfg('absolute_path').'/language/'.$langx.'/'.$langx.'.gif')) {
      echo '<img src="'.$mainframe->getCfg('ssl_live_site').'/language/'.$langx.'/'.$langx.'.gif" border="0" alt="'.$langx.'" style="vertical-align:middle" />';
   } else {
                       echo ($lang == $langx) ? '<strong>'.$langx.'</strong>' : $langx;
   }
            echo '</a> '._LEND;
}

I appreciate your letting me the solution for the problem.

Thanks,
kamran

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version