WordPress.org

Ready to get started?Download WordPress

Forums

WP Slimstat
[resolved] Language codes not recognized? (3 posts)

  1. carbeck
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/wp-slimstat/

  2. carbeck
    Member
    Posted 1 year 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. camu
    Member
    Plugin Author

    Posted 1 year ago #

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

    Cheers,
    Camu

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic