We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24935
    • 160 Posts
    I am almost done making the TransAlias plugin more flexible. When would I need to finish for it to be considered for inclusion in 1.0?
      • 18893
      • 45 Posts
      Hi. Can I download your plugin?
        • 24935
        • 160 Posts
        This is not quite perfect...but pretty good.

        Instructions:
        1) Unzip the attached file in the plugins directory, letting it overwrite the old transalias code.

        2) Find the TransAlias plugin and replace the description with:
        <strong>1.01</strong> - Transliterate document alias

        3) Replace the plugin code with the contents of plugin_code.txt

        4) Replace the plugin configuration with the contents of plugin_config.txt

        Please post any feedback here.

        I have not yet updated the common or russian transliteration tables (they have some duplicate entries). I also want to make a few improvements to the code, but it works for most purposed as it is.
          • 24935
          • 160 Posts
          For for five people who downloaded this today, please download it again. I accidentally included the wrong transalias.class.php in the first zip file. Sorry for the inconvenience.
            • 18206
            • 59 Posts
            Is the transliteration file updated in this version? I found that the one in Evo 1.0 was full of duplicates and errorenous mappings (like ’Ä’=>’e’ for one)
              • 24935
              • 160 Posts
              no, I haven’t updated the common (default) transliteration file yet.
                • 18206
                • 59 Posts
                I did some work.. it should be cleaner and more correct now.

                return array (
                '&'=>'and','%'=>'','\''=>'',
                'À'=>'A','Á'=>'A','Â'=>'A','Ã'=>'A','Ä'=>'A','Å'=>'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',
                'Ť'=>'T','Ţ'=>'T','Ŧ'=>'T','Ț'=>'T',
                'Ù'=>'U','Ú'=>'U','Û'=>'U','Ü'=>'U','Ū'=>'U','Ů'=>'U','Ű'=>'U','Ŭ'=>'U','Ũ'=>'U','Ų'=>'U',
                'Ŵ'=>'W',
                'Ŷ'=>'Y','Ÿ'=>'Y',
                'Ź'=>'Z','Ż'=>'Z',
                'à'=>'a','á'=>'a','â'=>'a','ã'=>'a','ä'=>'a','å'=>'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',
                'ß'=>'s','ſ'=>'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'
                );
                  • 8643
                  • 271 Posts
                  Thanks rfoster!
                  Utf8 transliteration works, but I can’t configure the tv override.
                  Please post some instruction how to set up tv override.

                  UPD:"Override TV name" must be tv id.
                    • 32396
                    • 56 Posts
                    Wild Striker Reply #9, 17 years ago
                    Hello,
                    Can U add the function like in WordPress Plugin SEO Slugs (http://wordpress.org/extend/plugins/seo-slugs/)
                    - cut slugs (for russian language)
                    - cut url to 5-6 Words.

                    The problem is when PAGETITEL is too long the url is very very long.

                    E.g.
                    /ocheni-dlinnii-url-v-plugine-i-eto-ocheni-ploho-......html

                    Cut to 5 words and slugs.

                    /ocheni-dlinnii-url-plugine-eto.html
                      Using: MODx Evo 1.0.6 / Revo 2.2.5
                      • 24935
                      • 160 Posts
                      It is possible to do this. I recommend that you look at the code for the TransAlias plugin, and modify it for your needs.