How i can detect new users browser language?
I using FoF Discussion Language.

this extension can't detect browser language unfortunately, discussion language specify the language a discussion is written in & sort by language.

    HasanMerkit what do you mean for change, if you write an extension that detect language you don't need language selector anymore (i think), so you can disable that into admin dashboard

      9 days later

      Justoverclock i solved this problem my self with PHP codes.
      So, how i can convert my codes to an extension? πŸ™‚

      Code location: index.php ( "BEFORE FLARUM!" )
      Code do:

      • > Check "locale" cookie. If not set, continue. If set, ignore my code.
      • > Check user is "search engine bot"? If true, ignore my code.
      • > Get user browser language code. (English: "en", Turkish: "tr")
      • > Set "locale" cookie to detected browser language code.
      • > Refresh page for changes to take effect. ( exit; )
        a year later

        HasanMerkit Hi, emm, I really need the language auto-detect function, but didn't find any extension that can solve it, would you mind sharing some ideas, like how you achieved this with your code? (like would you mind sharing the code with meπŸ˜…). I really appreciate that.

          2 years later

          Xavier I know I'm late getting back to you. I apologize. I'll share it later.