Custom URL Romanization

[xF 2.0-FREE] Custom URL Romanization 2.0.2

No permission to download
  • Upgrade Your Account
    Hello Guest ! Upgrade your account to download any of our premium products Here.
    How to upgrade your account to download resources Learn More.
    Guest need to read through our rules and regulations Learn More.
    Important! Read your welcome message To know how to download.
  • This material is provided by the xFhat.com site for informational purposes only. Administration is not responsible for its contents.
This add-on will romanize URL character for XF2.
  • Works everywhere (forums, threads, etc.), with minimal conflict.
For those who have similar demands regarding url romanization simply modify it to your own need by modifying the src/addons/TurkishFriendlyLink/listener.php file.

Note: Testing showed that you need to disable the "Romanize url" option in order to make use of this add-on. It would be kind of unnecessary otherwise.

1512767351507.png


As you see below, username characters is not romanization before this add-on.

1512767374077.png


1512767408630.png


After the instalation,

1512767431829.png


For those who have similar demands regarding url romanization simply modify it to your own need by modifying the src/addons/Turkish Friendly Link/listener.php file


PHP:
static $mapLower = array(
            'o' => array('ö'),
            'c' => array('ç'),
            'g' => array('ğ'),
            's' => array('ş'),
            'u' => array('ü'),
            'a' => array('â'),
            'e' => array('ê'),
            'i' => array('ı', 'î', 'é'),
        );

        static $mapUpper = array(
            'O' => array('Ö'),
            'c' => array('Ç'),
            'g' => array('Ğ'),
            's' => array('Ş'),
            'u' => array('Ü'),
            'a' => array('Â'),
            'e' => array('Ê'),
            'i' => array('I', 'Î', 'Ê'),
        );
The first arrays are for lowercase letters (mapLower ) and the second set are for uppercase letters (mapUpper )
Write the letters you want to be Romanized to the right like you see above.

Special thanks to xfrocks.
This add-on was created with reference to Vietnamese Friendly Link.
Reactions: aperrotti
Author
J0ker
Downloads
1
Views
14
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from J0ker

Share this resource

Latest updates

  1. Fixed all bugs

    Fixed all bugs.
  2. Changed Listener.php

    Listener.php file has been changed.