#1 2013-05-28 21:45:13

adaliszk
Ionize Friend
From: Germany
Registered: 2010-09-20
Posts: 397
Website

accented letters replace function

Dear Ionize team!

I have a problem that some accented letters incorrect characters replacing the urlkódba (specifically replacing anything) to ionize when I write an article or a page name. Where can I change this replacer to fall for these characters?

á > a ; ő > o ; ű > u

I'm sorry for English mistakes, I'm a beginner in this language.


Webdeveloper, Programmer, Application developer, Ionize friend
@adaliszk

Offline

#2 2013-05-29 09:49:14

ukyo
Community Manager
From: Marmaris - Turkey
Registered: 2010-05-19
Posts: 734
Website

Re: accented letters replace function

You can add your special chars : application/config/foreign_chars.php


<ion:ukyo from="Turkey" />
Ionize CMS Türkçe Dil Çeviri Dosyaları | My Github Repositories
Please send your first message to a forum section, not forum users or administration.

Offline

#3 2013-05-29 10:17:16

adaliszk
Ionize Friend
From: Germany
Registered: 2010-09-20
Posts: 397
Website

Re: accented letters replace function

I added, but the JS wich fill the URL field still is not going to working.


Webdeveloper, Programmer, Application developer, Ionize friend
@adaliszk

Offline

#4 2013-07-14 14:14:43

adaliszk
Ionize Friend
From: Germany
Registered: 2010-09-20
Posts: 397
Website

Re: accented letters replace function

The topic died? Or maybe someone knows where is the javascript which interactively replace the characters?

Last edited by adaliszk (2013-07-14 14:15:03)


Webdeveloper, Programmer, Application developer, Ionize friend
@adaliszk

Offline

#5 2013-07-15 09:43:59

ukyo
Community Manager
From: Marmaris - Turkey
Registered: 2010-05-19
Posts: 734
Website

Re: accented letters replace function

themes/admin/javascript/ionize/ionize_content.js check correctUrl function


<ion:ukyo from="Turkey" />
Ionize CMS Türkçe Dil Çeviri Dosyaları | My Github Repositories
Please send your first message to a forum section, not forum users or administration.

Offline

#6 2013-07-15 10:14:34

adaliszk
Ionize Friend
From: Germany
Registered: 2010-09-20
Posts: 397
Website

Re: accented letters replace function

ah thanks, thats what im looking for. I'm extend the replace array:

                text = text.replace(/ /g, '-');
        text = text.replace(/&/g, '-');
        text = text.replace(/:/g, '-');
        text = text.replace(/à/g, 'a');
        text = text.replace(/ä/g, 'a');
        text = text.replace(/â/g, 'a');
        text = text.replace(/é/g, 'e');
        text = text.replace(/è/g, 'e');
        text = text.replace(/ë/g, 'e');
        text = text.replace(/ê/g, 'e');
        text = text.replace(/ï/g, 'i');
        text = text.replace(/î/g, 'i');
        text = text.replace(/ì/g, 'i');
        text = text.replace(/ô/g, 'o');
        text = text.replace(/ö/g, 'o');
        text = text.replace(/ò/g, 'o');
        text = text.replace(/ü/g, 'u');
        text = text.replace(/û/g, 'u');
        text = text.replace(/ù/g, 'u');
        text = text.replace(/µ/g, 'u');
        text = text.replace(/ç/g, 'c');
        text = text.replace(/ş/g, 's');
        text = text.replace(/ı/g, 'i');
        text = text.replace(/ğ/g, 'g');

        /* Latvian */
        text = text.replace(/ā/g, 'a');
        text = text.replace(/č/g, 'c');
        text = text.replace(/ē/g, 'e');
        text = text.replace(/ģ/g, 'g');
        text = text.replace(/ī/g, 'i');
        text = text.replace(/ķ/g, 'k');
        text = text.replace(/ļ/g, 'l');
        text = text.replace(/ņ/g, 'n');
        text = text.replace(/š/g, 's');
        text = text.replace(/ū/g, 'u');
        text = text.replace(/ž/g, 'z');

        /* Russian */
        text = text.replace(/б/g, 'b');
        text = text.replace(/в/g, 'v');
        text = text.replace(/г/g, 'g');
        text = text.replace(/д/g, 'd');
        text = text.replace(/ё/g, 'jo');
        text = text.replace(/ж/g, 'zh');
        text = text.replace(/з/g, 'z');
        text = text.replace(/и/g, 'i');
        text = text.replace(/й/g, 'j');
        text = text.replace(/л/g, 'l');
        text = text.replace(/н/g, 'n');
        text = text.replace(/п/g, 'p');
        text = text.replace(/у/g, 'u');
        text = text.replace(/ф/g, 'f');
        text = text.replace(/ц/g, 'c');
        text = text.replace(/ч/g, 'ch');
        text = text.replace(/ш/g, 'sh');
        text = text.replace(/щ/g, 'w');
        text = text.replace(/ы/g, 'y');
        text = text.replace(/э/g, 'je');
        text = text.replace(/ю/g, 'ju');
        text = text.replace(/я/g, 'ja');
        text = text.replace(/х/g, 'x');
        text = text.replace(/а/g, 'a');
        text = text.replace(/е/g, 'e');
        text = text.replace(/к/g, 'k');
        text = text.replace(/м/g, 'm');
        text = text.replace(/м/g, 'm');
        text = text.replace(/у/g, 'y');
        text = text.replace(/т/g, 't');
        text = text.replace(/с/g, 's');
        text = text.replace(/о/g, 'o');

        /* Hungarian */
        text = text.replace(/á/g, 'a');
        text = text.replace(/é/g, 'e');
        text = text.replace(/í/g, 'i');
        text = text.replace(/ó/g, 'o');
        text = text.replace(/ö/g, 'o');
        text = text.replace(/ő/g, 'o');
        text = text.replace(/ú/g, 'u');
        text = text.replace(/ü/g, 'u');
        text = text.replace(/ű/g, 'u');


Webdeveloper, Programmer, Application developer, Ionize friend
@adaliszk

Offline

#7 2013-08-31 13:10:16

Michel-Ange
Ionize Core Team
From: Paris, France
Registered: 2010-03-22
Posts: 927
Website

Re: accented letters replace function

Hungarian added for next release !
Thanks Adamos.


Inspiration & Innovation : Websites by Partikule, Agence Web Paris

Offline

#8 2013-08-31 20:22:55

adaliszk
Ionize Friend
From: Germany
Registered: 2010-09-20
Posts: 397
Website

Re: accented letters replace function

Thanks! smile


Webdeveloper, Programmer, Application developer, Ionize friend
@adaliszk

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel, Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Ionize Translations