We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42640
    • 7 Posts
    Hey Fellas,

    I turned on friendly urls and everything works good. But some copy/paste links not looking well. and not clickable..


    URL Adress bar: eğitimler/yazılım-süreç-eğitimleri/agile-ile-proje-yönetimi-eğitimi.html

    Copied link: e%C4%9Fitimler/yaz%C4%B1l%C4%B1m-s%C3%BCre%C3%A7-e%C4%9Fitimleri/agile-ile-proje-y%C3%B6netimi-e%C4%9Fitimi.html


    I want to replace every Turkish letter. Is this possible ?

    This question has been answered by Jako. See the first response.

    • discuss.answer
      • 13428 ☆ A M B ☆
      • 1,031 Posts
      You could use the translit package and set noaccents or iconv as transliteration table.
        • 42640
        • 7 Posts
        Thanks !


        i changed some letter.here is my settings.

        friendly_alias_translit turkish

        friendly_alias_translit_class modx.translit.modTransliterate

        friendly_alias_translit_class_path {core_path}components/translit/model/


        turkish.php
        <?php
        /**
         * Common transliteration table german
         */
        return array (
        '&'=>'-und-','%'=>'','\''=>'',
        'À'=>'A','Á'=>'A','Â'=>'A','Ã'=>'A','Ä'=>'Ae','Å'=>'A','Æ'=>'E','Ā'=>'A','Ą'=>'A','Ă'=>'A',
        'Ç'=>'C','Ć'=>'C','Č'=>'C','Ĉ'=>'C','Ċ'=>'C',
        'Ď'=>'D','Đ'=>'D',
        'È'=>'E','É'=>'E','Ê'=>'E','Ë'=>'E','Ē'=>'E','Ę'=>'E','Ě'=>'E','Ĕ'=>'E','Ė'=>'E',
        'Ĝ'=>'G','Ğ'=>'G','Ġ'=>'G','Ģ'=>'G',
        'Ĥ'=>'H','Ħ'=>'H',
        'Ì'=>'I','Í'=>'I','Î'=>'I','Ï'=>'I','Ī'=>'I','Ĩ'=>'I','Ĭ'=>'I','Į'=>'I','İ'=>'I',
        'IJ'=>'J','Ĵ'=>'J',
        'Ķ'=>'K',
        'Ľ'=>'L','Ĺ'=>'L','Ļ'=>'L','Ŀ'=>'L',
        'Ñ'=>'N','Ń'=>'N','Ň'=>'N','Ņ'=>'N','Ŋ'=>'N',
        'Ò'=>'O','Ó'=>'O','Ô'=>'O','Õ'=>'O','Ö'=>'o','Ø'=>'O','Ō'=>'O','Ő'=>'O','Ŏ'=>'O',
        'Œ'=>'E',
        'Ŕ'=>'R','Ř'=>'R','Ŗ'=>'R',
        'Ś'=>'S','Ş'=>'S','ş'=>'s','Ŝ'=>'S','Ș'=>'S',
        'Ť'=>'T','Ţ'=>'T','Ŧ'=>'T','Ț'=>'T',
        'Ù'=>'U','Ú'=>'U','Û'=>'U','Ü'=>'U','Ū'=>'U','Ů'=>'U','Ű'=>'U','Ŭ'=>'U','Ũ'=>'U','Ų'=>'U',
        'Ŵ'=>'W',
        'Ŷ'=>'Y','Ÿ'=>'Y',
        'Ź'=>'Z','Ż'=>'Z',
        'à'=>'a','á'=>'a','â'=>'a','ã'=>'a','ä'=>'ae','å'=>'a','æ'=>'e','ā'=>'a','ą'=>'a','ă'=>'a',
        'ç'=>'c','ć'=>'c','č'=>'c','ĉ'=>'c','ċ'=>'c',
        'ď'=>'d','đ'=>'d',
        'è'=>'e','é'=>'e','ê'=>'e','ë'=>'e','ē'=>'e','ę'=>'e','ě'=>'e','ĕ'=>'e','ė'=>'e',
        'ƒ'=>'f',
        'ĝ'=>'g','ğ'=>'g','ġ'=>'g','ģ'=>'g',
        'ĥ'=>'h','ħ'=>'h',
        'ì'=>'i','í'=>'i','î'=>'i','ï'=>'i','ī'=>'i','ĩ'=>'i','ĭ'=>'i','į'=>'i','ı'=>'i',
        'ij'=>'j','ĵ'=>'j',
        'ķ'=>'k','ĸ'=>'k',
        'ł'=>'l','ľ'=>'l','ĺ'=>'l','ļ'=>'l','ŀ'=>'l',
        'ñ'=>'n','ń'=>'n','ň'=>'n','ņ'=>'n','ʼn'=>'n','ŋ'=>'n',
        'ò'=>'o','ó'=>'o','ô'=>'o','õ'=>'o','ö'=>'o','ø'=>'o','ō'=>'o','ŏ'=>'o',
        'œ'=>'e',
        'ŕ'=>'r','ř'=>'r','ŗ'=>'r',
        'ù'=>'u','ú'=>'u','û'=>'u','ü'=>'u','ū'=>'u','ů'=>'u','ű'=>'u','ŭ'=>'u','ũ'=>'u','ų'=>'u',
        'ŵ'=>'w',
        'ÿ'=>'y','ŷ'=>'y',
        'ż'=>'z','ź'=>'z',
        'ß'=>'ss','ſ'=>'s',
        'Α'=>'A','Ά'=>'A','Β'=>'B','Γ'=>'G','Δ'=>'D','Ε'=>'E','Έ'=>'E','Ζ'=>'Z','Η'=>'I','Ή'=>'I',
        'Θ'=>'TH','Ι'=>'I','Ί'=>'I','Ϊ'=>'I','Κ'=>'K','Λ'=>'L','Μ'=>'M','Ν'=>'N','Ξ'=>'KS','Ο'=>'O',
        'Ό'=>'O','Π'=>'P','Ρ'=>'R','Σ'=>'S','Τ'=>'T','Υ'=>'Y','Ύ'=>'Y','Ϋ'=>'Y','Φ'=>'F','Χ'=>'X',
        'Ψ'=>'PS','Ω'=>'O','Ώ'=>'O','α'=>'a','ά'=>'a','β'=>'b','γ'=>'g','δ'=>'d','ε'=>'e','έ'=>'e',
        'ζ'=>'z','η'=>'i','ή'=>'i','θ'=>'th','ι'=>'i','ί'=>'i','ϊ'=>'i','ΐ'=>'i','κ'=>'k','λ'=>'l',
        'μ'=>'m','ν'=>'n','ξ'=>'ks','ο'=>'o','ό'=>'o','π'=>'p','ρ'=>'r','σ'=>'s','τ'=>'t','υ'=>'y',
        'ύ'=>'y','ϋ'=>'y','ΰ'=>'y','φ'=>'f','χ'=>'x','ψ'=>'ps','ω'=>'o','ώ'=>'o',
        
        // added by Martin Frano
        
        'š'=>'s', 'ž'=>'z', 'ý'=>'y', 'ô'=>'o', 'ť'=>'t',
        'Š'=>'S', 'Ž'=>'Z', 'Ý'=>'Y', 'Ô'=>'O'
        );
        
          • 13428 ☆ A M B ☆
          • 1,031 Posts
          You could post a PR at https://github.com/opengeek/translit with that. [ed. note: Jako last edited this post 9 years, 4 months ago.]