WordPress.org

Ready to get started?Download WordPress

Forums

WP-Members
[resolved] Force localization? (4 posts)

  1. Octopixell
    Member
    Posted 1 year ago #

    Hey guys,

    I'm wondering, is there a way to force a certain localization to be loaded on the front-end of the plugin?

    The problem i'm having is that the backend needs the WP Dutch localization but the front-end of the website is English. At the moment because of the Dutch back-end WP-Members is also Dutch. I want it to render English in the front-end though.

    Any way to do this?

    Thanks in advance.
    Octopixell

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

  2. Octopixell
    Member
    Posted 1 year ago #

    Bumping this topic. Anybody know how to get this done?

  3. Chad Butler
    Member
    Plugin Author

    Posted 1 year ago #

    That's going to be a functional challenge for a number of reasons.

    In order to run the plugin in a specific language, you need to be running WordPress in that same language. So, while you may be able to spoof things for the plugin using the method that I'm about to describe, there may be other issues as a result.

    The only way I could think of to do this would be to create custom localization files. So you would need to be running WordPress (an therefore the plugin) in Dutch. Then you could edit the appropriate .po in the plugin's /lang/ folder to ignore all of the strings that would be front-end translations, leaving the strings that are for the backend. Generate a new .mo file from that.

  4. Octopixell
    Member
    Posted 1 year ago #

    I see! I'll give that a try, thanks for the reply!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic