Skip to content
JoomlaProdigy Forum
Welcome, Guest
Please Login or Register.
Lost Password?
Re:Greek language title not showing (1 viewing)
_GEN_GOTOBOTTOM Post Reply

TOPIC: Re:Greek language title not showing

#1394
sitronella (User)
Junior Boarder
Posts: 7
graphgraph
Click here to see the profile of this user
Greek language title not showing 2007/04/26 04:28 Karma: 0  
Hello,
I am using the module in a greek site. Althought it works very well, when I enter the title of each photo (the vertical one), I get ????? instead of greek letters.
The text inside the photo works fine.
I use utf-8 encoding.
  The administrator has disabled public write access.
#1396
admin (Admin)
Admin
Posts: 840
graph
Click here to see the profile of this user
Re:Greek language title not showing 2007/04/26 09:57 Karma: 19  
can you please try this
Find this line (around line number 132)in php file of the module

$newtext = wordwrap($titlea[$i], 1, "<br/>", 1);

and add this line just after the above line

$newtext = utf8_encode($newtext);

Please post back if it works for you.
  The administrator has disabled public write access.
#1398
sitronella (User)
Junior Boarder
Posts: 7
graphgraph
Click here to see the profile of this user
Re:Greek language title not showing 2007/04/26 10:25 Karma: 0  
I tried that, but now I get symbols instead of questionmarks (like i,1/2, + etc.)
  The administrator has disabled public write access.
#1399
admin (Admin)
Admin
Posts: 840
graph
Click here to see the profile of this user
Re:Greek language title not showing 2007/04/26 11:19 Karma: 19  
ok try this. to avoid confusion of line numbers just replac the entire foreach loop with this code

Code:

 foreach ($imagea as $image){     if ($image ==NULL){break;} $tobreak utf8_encode($title[$i]); $newtext wordwrap($tobreak1"<br/>"1); $newtext ='<div id="vtext_in">'.$newtext.'</div>'$textto ' <div id="bg">     <div id="vtext">'.$newtext.'</div>     <div id="transbox">     <div>'.$texta[$i].'</div>   </div> </div>'; echo "<a href=\"$linka[$i]\"><li class=\"pbjp img$i\">$textto</li></a>"; $i=$i+1; }



Post edited by: admin, at: 2007/04/26 11:20
  The administrator has disabled public write access.
#1402
sitronella (User)
Junior Boarder
Posts: 7
graphgraph
Click here to see the profile of this user
Re:Greek language title not showing 2007/04/27 08:44 Karma: 0  
I did that and now the title is not showing at all.
Would a link to the test page be of help?
  The administrator has disabled public write access.
#1403
admin (Admin)
Admin
Posts: 840
graph
Click here to see the profile of this user
Re:Greek language title not showing 2007/04/28 02:07 Karma: 19  
This really make me wonder. Well the link won't help because it is a matter of character encoding. May be you can try to hard code the php file. the array
$titlea = $title1,.....

cab be given values explicitly like this
$title1 = "my first title";
$title2 = "my second title";

write this with your titles above the lines like this
$titlea = $title1,....

and see if it helps.
  The administrator has disabled public write access.
#1845
pavel@dc_samantha.cz (User)
Fresh Boarder
Posts: 1
graphgraph
Click here to see the profile of this user
Re:Greek language title not showing 2007/06/19 12:16 Karma: 0  
I had the same problem with Czech language, but I solved it by using utf8_wordwrap funcion by Milian Wolf instead of standard PHP wordwrap function..and it works well

Code:

  /** * wordwrap for utf8 encoded strings * * @param string $str * @param integer $len * @param string $what * @return string * @author Milian Wolff <mail@milianw.de> */ function utf8_wordwrap($str$width$break,$cut false){     if(!$cut){         $regexp '#^(?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){'.$width.',}\b#U';     } else {         $regexp '#^(?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){'.$width.'}#';     }     if(function_exists('mb_strlen')){         $str_len mb_strlen($str,'UTF-8');     } else {         $str_len preg_match_all('/[\x00-\x7F\xC0-\xFD]/'$str$var_empty);     }          $while_what ceil($str_len $width);     $i 1;     $return '';     while ($i $while_what){         preg_match($regexp$str,$matches);         $string $matches[0];         $return .= $string $break;         $str substr($str,strlen($string));         $i++;     } return $return.$str; }



Post edited by: pavel@dc_samantha.cz, at: 2007/06/19 12:17

Post edited by: pavel@dc_samantha.cz, at: 2007/06/19 12:18

Post edited by: pavel@dc_samantha.cz, at: 2007/06/19 12:19

Post edited by: pavel@dc_samantha.cz, at: 2007/06/19 12:21
  The administrator has disabled public write access.
_GEN_GOTOTOP Post Reply
© Copyright 2007 Best of Joomla, Powered by FireBoardget the latest posts directly to your desktop

Buy Now

Recommended

Search

Recommended

Joomla Templates

Member Login

Refreshing page..Please wait!
                       Lost Password?    Can't Login?