• Support
  • Flarum discussion slugs in different languages తెలుగు

Hari Generating discussion slugs in different language other than English (Telugu, Hindi)

How to generate discussion slugs in native language?

By default flarum only considers English language could you extend support to other languages too?

Original

/d/30565-flarum-discussion-slugs-in-different-languages

It should be like this

/d/30565-flarum-discussion-slugs-in-different-languages-తెలుగు

Problem: if discussion has completely telugu title the slug will be empty

/d/30565/

  • Hari replied to this.
    • Best Answerset by Hari

    Hari next release

    Hari

    askvortsov This is possible with a relatively simple custom extension that just adds a slug driver that doesn't transliterate.

    I think it must be a core feature? it is very basic and WordPress does this by default 😢

    can we call it a tiny extension?

      a month later

      Hari If that is the case telugu slug generation is not working

      Slug generation is based on the community default language.

      • Hari replied to this.

        luceos if my community default language is English and if i did not install any other languages flarum won't be generating slugs for other languages?

        Or there will be any settings in the admin panel called Generate slugs based on Unicode ?

        edit: cloud you tell me how to achieve this? i am trying it on nightly

        https://nightly.flarum.site/d/41

        edit2: i have figured it out, installed langue pack Hindi

        i have found two bugs, one is if we start any discussion in a different language first post is missing.

        2nd thing is : this is not a bug but when we post something the slug should also be the same as the title text right ... why it is translating to Hindi? the slug need to be हम तेलुगु से कितना प्यार करते हैं2

        i do not think this is the right approach why do I need to install Hindi? the slug generator should be Unicode irrespective of language packs

        in WordPress case, they are not installing any language packs, though if they install by default the permalinks are default by post name we need not change the entire forum language

        example :

          Hari hould also be the same as the title text right

          If your using the default slugging system then no it should not be the same as the title text at all, it will be "sluggified" to use ASCII characters
          If your using the new UTF8 slugging added in 1.3 then the Unicode characters should remain the same regardless of language in use, but special characters will be replaced with dashes.

          • Hari replied to this.

            Hari I misspoke, the UTF8 slug driver did not get merged into 1.3 for release. So currently the only slug driver is the ASCII transliteration driver.

            • Hari replied to this.

              where can I track status of it? GitHub issue link please

              always changing URL slugs will damage SEO reputation of the website (i am preferring not to opt for Hindi or other language slugs until it gets merged into core)

              Thanks for sharing the information

              Edit: a dedicated discussion is started by +luceos on this
              https://discuss.flarum.org/d/30832-unicode-slug-handling