WordPress.org

Ready to get started?Download WordPress

Forums

Polylang
Using 4 english locations/'languages'? (4 posts)

  1. searchen
    Member
    Posted 2 years ago #

    Is it possible to configure Polylang to use 4 English variations (and associated flags)?

    I need:
    UK
    USA
    South Africa
    New Zealand.

    We want to show regional differences on between zones.

    Hoping someone can guide me!

    Thanks,
    Peter

    http://wordpress.org/extend/plugins/polylang/

  2. Chouby
    Member
    Plugin Author

    Posted 2 years ago #

    Of course it is !

    Currently, you can use whatever you want to replace the ISO 639-1 2 characters language code (you are however limited to 2 or 3 characters). I don't know if there are specific ISO 3 characters code to differentiate these languages.

    Then you have to create translations of WordPress and your theme for all languages (of course en_US is the native language of WordPress). I know en_CA is already existing for WordPress (and maybe some themes).

  3. searchen
    Member
    Posted 2 years ago #

    Thanks for the reply!

    I have set up 4 "new" locales, which are not WordPress specific locales:

    en_UK
    en_US
    en_NZ
    en_ZA

    which was the only way for Polylang to accept the menu settings.

    I have created a "polylang" folder in wp-content, and renamed the 4 flags as:
    en_UK.png
    en_US.png
    en_NZ.png
    en_ZA.png

    But the flags are not recognized in the Menu section.

    What am I missing?
    Thanks, Peter

  4. Chouby
    Member
    Plugin Author

    Posted 2 years ago #

    You did things right. I expect flags do appear on frontend side (you will need to create some post or page in each language to check taht) and not on admin side. I intentionnaly use only the flags provided by the plugin (in fact stored in polylang/include/flags) on admin side. This is to prevent mess in ui for users who choose flags with a different size.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic