Url Transliterator by Avatar4eg

Small extension that transliterate non ASCII characters in discussion URL. Based on Behat Transliterator.

Screenshots

Before:

Imgur

After:

Imgur

Settings:

Imgur

Goals

  • Allow non english forums have proper discussion urls (new and existing).

Installation

composer require avatar4eg/flarum-ext-transliterator

Configuration

  • To parse existing discussions: open settings modal of the extension and click on "Parse existing discussions" (takes some time).

Links

    Thank you for this! I can verify that it works with Greek
    However, the mapping is not right - how can I change that?
    I could send you the mapping if you need to change it on the extension too!

      NikolaiMorozov found it ;-)
      if you need to make the change here's the map I'll use:

      // Greek
                  'Α' => 'A', 'Β' => 'B', 'Γ' => 'G', 'Δ' => 'D', 'Ε' => 'E', 'Ζ' => 'Z', 'Η' => 'H', 'Θ' => 'TH',
                  'Ι' => 'I', 'Κ' => 'K', 'Λ' => 'L', 'Μ' => 'M', 'Ν' => 'N', 'Ξ' => 'KS', 'Ο' => 'O', 'Π' => 'P',
                  'Ρ' => 'R', 'Σ' => 'S', 'Τ' => 'T', 'Υ' => 'Y', 'Φ' => 'F', 'Χ' => 'X', 'Ψ' => 'PS', 'Ω' => 'O',
                  'Ά' => 'A', 'Έ' => 'E', 'Ί' => 'I', 'Ό' => 'O', 'Ύ' => 'Y', 'Ή' => 'H', 'Ώ' => 'O', 'Ϊ' => 'I',
                  'Ϋ' => 'Y',
                  'α' => 'a', 'β' => 'b', 'γ' => 'g', 'δ' => 'd', 'ε' => 'e', 'ζ' => 'z', 'η' => 'i', 'θ' => 'th',
                  'ι' => 'i', 'κ' => 'k', 'λ' => 'l', 'μ' => 'm', 'ν' => 'n', 'ξ' => 'ks', 'ο' => 'o', 'π' => 'p',
                  'ρ' => 'r', 'σ' => 's', 'τ' => 't', 'υ' => 'u', 'φ' => 'f', 'χ' => 'x', 'ψ' => 'ps', 'ω' => 'o',
                  'ά' => 'a', 'έ' => 'e', 'ί' => 'i', 'ό' => 'o', 'ύ' => 'y', 'ή' => 'i', 'ώ' => 'o', 'ς' => 's',
                  'ϊ' => 'i', 'ΰ' => 'y', 'ϋ' => 'y', 'ΐ' => 'i',

        Works like a charm now :-)
        Thank you for this great work!!!

        spyros

        composer update

        Thats update all composer dependences.

        Martin128
        If you provide mapping I'll add it.

        sizonov_stas
        Try disable all other extentions and check if problem still exsits.

          Also Czech language would be nice (similar to Slovak)

            4 days later

            Update to 0.2.0:
            1. intl.dll usage if possible
            2. Mapper files

            a month later

            @NikolaiMorozov thnx again!

            understood ?

            everything works when I'm create a new topic
            for previously created does not work
            ?????????????