 |
 |
 |
 |
 |
| Author |
Message |
nikolaaaa
Joined: 26 Jan 2006 Posts: 24
|
|
User Friendly Urls and serbian chars |
|
A heve problem with User Friendly Urls and serbian chars:
č ć ? đ ?
Where is function for translating urls ??
Is it "totranslit" ?
I want to add:
 |  |
$find = array(
'đ',
'?',
'ć',
'č',
'?'
);
$repl = array(
'dj',
'z',
'c',
'c',
's'
);
$url = preg_replace ($find, $repl, $url); |
|
|
| Wed Feb 01, 2006 2:18 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
Yes, it's inc/lang/en/totranslit.php.
But the English one is empty because there are no letters to translate.
So copy the one from inc/lang/ru/ and make your changes to it. 
|
|
| Wed Feb 01, 2006 3:29 pm |
|
 |
nikolaaaa
Joined: 26 Jan 2006 Posts: 24
|
|
|
|
I added
'đ' => 'd',
'?' => 'z',
'č' => 'c',
'ć' => 'c',
'?' => 's'
in $map array in function totranslit and now if i have some of this chars in url i get numbers in url.
Expl:
Title is: ?đ?ćč
and it makes url: s-273-z-263-269.html
So it's problem only with đ, č and ć.
Do you have some idea where is mistake?
|
|
| Wed Feb 01, 2006 3:41 pm |
|
 |
nikolaaaa
Joined: 26 Jan 2006 Posts: 24
|
|
|
|
it's my mistake
|
|
| Wed Feb 01, 2006 5:50 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
 |
 |
 |
|