Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

eMember – How to translate and add new language file to list on setting page

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › eMember – How to translate and add new language file to list on setting page

  • This topic has 4 replies, 3 voices, and was last updated 7 years, 7 months ago by admin.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • February 5, 2018 at 11:19 am #14678
    meiershus
    Member

    Hello

    I would like my eMember site to show in danish. I have found the language files and can translate it into danish. I have named it da.php. But I can’t figure out how I can make it appear on the list of languages on the settings page. Can you please help me?

    February 5, 2018 at 1:38 pm #77231
    wzp
    Moderator

    Edit the file emember_general_settings.php and look for the SELECT / OPTION statement, about 20% down the file. You can either add your own file or “take over” an existing entry.

    However, the next time you upgrade the plugin, any changes you made to the emember_general_settings.php file will be lost and you will have to redo them. Once you are “happy” with your new translation file, please let us know and we can incorporate it into future versions of the plugin.

    February 5, 2018 at 7:21 pm #77232
    meiershus
    Member

    Great answer – thank you. I will let you know when the file is complete for future version of your very nice plugin :-)

    February 6, 2018 at 9:29 am #77233
    meiershus
    Member

    I can’t find emember_general_settings.php. However there is an emember_menu_general_settings.php.

    to this file I add

    <option <?php echo ($lang === ‘da’) ? ‘selected=”selected”‘ : ”; ?> value=”da”>Danish</option>

    Unfortunatly that breaks my site and I get the following message:

    Parse error: syntax error, unexpected ‘result_box4’ (T_STRING), expecting ‘,’ or ‘)’ in /var/www/sjaeleuniverset.dk/public_html/wp-content/plugins/wp-eMember/lang/da.php on line 118

    I do not know what that means. Can you please help me?

    I have also added a new file da.php to wp-eMember/lang

    Best wishes Ann

    February 6, 2018 at 10:30 pm #77234
    admin
    Keymaster

    Hi Ann, Please reply to the email that I sent to you and attach the translation file. I will add it to the plugin and get back to you.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ