Slim Stat Analytics
[resolved] Language codes not recognized? (3 posts)

  1. carbeck
    Posted 3 years ago #

    And another minor thing: WP Slimstats doesn't seem to correctly recognize some language codes – in my case, these are: pl-pl, pt-pt, vi-vn, th-th. These are just listed with an "l-" in front of them in the language-related info boxes instead of having their proper names: Polish (Poland), Portuguese (Portugal), Vietnamese (Vietnam), Thai (Thailand), respectively.


  2. carbeck
    Posted 3 years ago #

    Looking at the .po file for English, only those languages with significant variants in multiple nations (e.g. de-de, de-at, de-ch) seem to be registered with two-part language codes. You might want to have a mechanism that matches the nearest alternative, e.g. "pt" for Portuguese generally, even if the user's browser specifies "pt-pt", in case "pt-pt" can't be found in the .po file. Or maybe something like this exists already, but it's buggy?

  3. Jason Crouse
    Plugin Author

    Posted 3 years ago #

    Good point, I will look into that. In the meanwhile, I added the ones you found to the .po file.


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic