We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17883
    • 1,039 Posts
    Added german version (extract in core/components/translit)
      • 28215
      • 4,149 Posts
      Can you post this in a bug report so it doesn’t get lost? http://bugs.modx.com/
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 17883
        • 1,039 Posts
          • 22303 MODX Staff
          • 10,725 Posts
          FYI, I have created a GitHub project and released a 1.0.0-beta of a core extension called translit. I have incorporated the custom tables and work in this thread to date. Feel free to fork and contribute custom tables or suggestions for improvment or bug fixes to the effort.
            • 7674
            • 4 Posts
            dmitriy-karpov Reply #25, 16 years ago
            Tell, please. How can I use it from my snippet?
              • 22303 MODX Staff
              • 10,725 Posts
              Quote from: dmitriy-karpov at Nov 05, 2010, 11:53 AM

              Tell, please. How can I use it from my snippet?
              You mean just the translit service?
              <?php
              $translit = 'noaccents'
              $translitClassPath = $modx->getOption('friendly_alias_translit_class_path', null, $modx->getOption('core_path', null, MODX_CORE_PATH) . 'components/');
              if ($modx->getService('translit', $translitClass, $translitClassPath, $options)) {
                  $transliteratedString = $modx->translit->translate($originalString, $translit);
              }
              ?>

              See code in modResource::cleanAlias() for the entire process of sanitization that is run on Resource aliases.
                • 7674
                • 4 Posts
                dmitriy-karpov Reply #27, 16 years ago
                OpenGeek, thanks for your reply. It works.
                  • 10378
                  • 375 Posts
                  Quote from: alex_dutch at Sep 23, 2010, 08:06 AM
                  Fixed russian transliterate (russian friendly url alias).

                  Instruction:

                  Extract zip in attachment to root of your modx site and set these system options:
                  friendly_alias_translit = [noaccents | russian]
                  friendly_alias_translit_class = translit.modTransliterate


                  The friendly_alias_translit setting only works when entering only noaccents or german or russion - not both values.

                  Or am I misunderstanding something here?
                    Freelancer @bitego http://www.bitego.com
                    ---
                    GoodNews - one of the most advanced and integrated Group Mailer premium add-ons for MODX Revolution!
                    More infos here: http://www.bitego.com/extras/goodnews/
                    • 42562
                    • 1,145 Posts
                    Just in case anybody has been banging his or her head and is still looking to remove commas in the URL that the Article Etra allows.
                    As somewhat mentioned above:

                    System Settings (search filter for friendly)
                    before: friendly_alias_restrict_chars_pattern............. /[\0\x0B\t\n\r\f\a&=+%#<>"~:`@\?\[\]\{\}\|\^'\\]/
                    after: friendly_alias_restrict_chars_pattern.................. /[\0\x0B\t\n\r\f\a&=+%#<>"~:`','@\?\[\]\{\}\|\^'\\]/

                    Just before the @ sign, I place a coma with single quotes around the comma.
                    Hope this helps someone in battle.
                      TinymceWrapper: Complete back/frontend content solution.
                      Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
                      5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.