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

  1. Octopixell
    Posted 3 years 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.


  2. Octopixell
    Posted 3 years ago #

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

  3. Chad Butler
    Plugin Author

    Posted 3 years 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
    Posted 3 years 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

  • WP-Members: Membership Framework
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic