- This topic has 4 replies, 3 voices, and was last updated 7 years, 1 month ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › eMember – How to translate and add new language file to list on setting page
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?
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.
Great answer – thank you. I will let you know when the file is complete for future version of your very nice plugin
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
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.