turkish characters and language file need

phpBB SEO Premod for phpBB3 support forum.
This premodded version of phpBB3 includes the three different type of URL rewriting for phpBB3 by phpBB SEO. It comes with several other Search Engine Optimization mods installed.

Moderator: Moderators

turkish characters and language file need

Postby lavinya » Wed Oct 10, 2007 3:58 pm

Hello Dcz. Thanks for Premod.
Dcz;

I'm using turkish language..

displaying urls: ACP_CAT_PHPBB_SEO how to which add language file?

and forum category url display wrong: phpBB3/feridun-duza-ac-f2.html
correct: phpBB3/feridun-duzagac-f2.html

topic url display wrong: /phpBB3/ezginin-gunlu-u-t1114.html
correct: /phpBB3/ezginin-gunlugu-t1114.html

how can make ?
İ to >i
ı to >i
ğ to > g
Ğ to > g
ü to > u
Ü to > u
ş to > s
Ş to > s
ö to > o
Ö to > o

thanks.
User avatar
lavinya
PR1
PR1
 
Posts: 167
Joined: Mon Jul 24, 2006 9:05 am
Location: Turkey

Advertisement

Postby dcz » Thu Oct 11, 2007 8:28 am

I already started to work on this :

SeO wrote:So for Turkish open phpbb_seo_class.php and find :

Code: Select all
      $this->seo_path['phpbb_script'] =  $script_path;


After add :
Code: Select all
      // --> Custom str_Replace arrays, to handle special cases properly
      $this->seo_opt['url_find'] = array( utf8_chr(286),utf8_chr(287), // g
         utf8_chr(304),utf8_chr(305), // i
         utf8_chr(350),utf8_chr(351), // s
      );
      $this->seo_opt['url_replace'] = array('g', 'g', 'i', 'i','s', 's');


Find :
Code: Select all
      $url = preg_replace('`\[.*\]`U','',$url);


After add :
Code: Select all
      $url = str_replace( $this->seo_opt['url_find'], $this->seo_opt['url_replace'], $url );


Should do it ;)


But hope_umut did only talk about these characters :
ğ must be g
ı must be i
ş must be s

Aren't ü and ö already well handled ?

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21391
Joined: Fri Apr 28, 2006 9:03 pm

Postby lavinya » Sat Oct 13, 2007 9:16 am

thanks :)
User avatar
lavinya
PR1
PR1
 
Posts: 167
Joined: Mon Jul 24, 2006 9:05 am
Location: Turkey

Re: turkish characters and language file need

Postby myoztel » Mon Dec 17, 2012 12:35 pm

Congratulations and Thanks for Seo MOD and other your's works..
Have a nice day,
There are two problems, one is not so important. But I guess the same reason.
1.
resim.jpg

after post ö ü problem...

Part of the code the problem occurred 'SEARCH_WORDS' => $search->search_query,,
I am change it, not problem 'SEARCH_WORDS' => $search->search_query = $kewwords,
Do you have a more functional solution ?

2.phpbb_seo_meta.php 'topic_sql' => true
example
topic öüşi
content öüşia
(only the selected content words)
<meta content="oeueşia,öüşi " name="keywords"> (oeueşia message content)
'topic_sql' => true Set false no problem

Do you have any idea for a solution when is set 'topic_sql' => true ?
myoztel
 
Posts: 1
Joined: Mon Dec 17, 2012 11:56 am


Return to phpBB SEO Premod

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 5 guests


 
cron