Skip to main content
UNA Community Management System UNA Community Management System UNA Community Management System UNA Community Management System
  • Platform
  • Resources
  • Community
  • Pricing
Comment 'I'm thinking about r...' to 'Is my transliteration of the URL from Cyrillic to Latin correct?'
Comment to Is my transliteration of the URL from Cyrillic to Latin correct?
    •  ·  Ivan Mishchenko
    •  ·  2026-04-14T12:31:55+0000

    I'm thinking about replacing the current URL transliteration function with this one. Does anyone know if it'll work fine?

    if (function_exists('transliterator_transliterate')) {
            $s = transliterator_transliterate('Any-Latin; Latin-ASCII; Lower()', $s);
        }
    
      •  ·  LeonidS
      •  ·  In reply to
        Ivan Mishchenko
      •  ·  2026-04-15T06:14:48+0000

      Hello @Ivan Mishchenko !

      Yes, you set the almost ideal syntax. It's only left to add the space processing, smth like:

      $s = "Кириллическое предложение!"; 
      $s = transliterator_transliterate("Any-Latin; Latin-ASCII; Lower()", $s); 
      $s = preg_replace('/[^a-z0-9\s-]/', '', $s);
      $s = preg_replace('/[\s-]+/', '-', trim($s));
      
        •  ·  Ivan Mishchenko
        •  ·  In reply to
          LeonidS
        •  ·  2026-04-15T09:02:58+0000

        Thanks! It works great.

      See more...
      • Features
      • Pricing
      • Forum
      • Blog
      • Market
      • About
      • Copyright
      • Contact
      • Terms
      • Privacy
      • 𝕏
      Search
      UNA Community Management System UNA Community Management System UNA Community Management System UNA Community Management System
    • Platform
      • Features
      • Core CMS
    • Resources
      • Documentation
      • Marketplace
      • Discussions
      • Support Groups
      • API Reference
      • UNA CMS on GitHub
      • Webinars
      • Blog
    • Community
      • Discussions
      • Groups
      • Webinars
    • Pricing
    • Are you sure?
      Please, enter a value here