Editing Phrases/Text Messages
From AMember Pro Manual
aMember Pro is a multi-language program. For easy translation, all phrases/messages for customer side of aMember are contained within language files inside amember/language/ folder. If you would like to change text that is displayed, do the following:
- Create a -custom file for your language in amember/language/ folder, for example for English language it will be file named amember/language/en-custom.php with the following content:
<?php // customized phrases from en.php defined( 'INCLUDED_AMEMBER_CONFIG' ) or die( 'Direct access is not allowed' );
- Now open file amember/language/en.php and using text search find a phrase you would like to replace. For example, you want to replace text "Membership Type" on signup page to "Subscription Type". Line in en.php will be
define ('_TPL_SIGNUP_MEMB_TYPE', 'Membership Type');
just copy entire line to the buffer of your text editor (do not change file en.php itself!);
- Then paste the line to end of the en-custom.php and edit it as you wish
define ('_TPL_SIGNUP_MEMB_TYPE', 'Subscription Type');
- Your en-custom.php will look like
<?php // customized phrases from en.php defined( 'INCLUDED_AMEMBER_CONFIG' ) or die( 'Direct access is not allowed' ); define ('_TPL_SIGNUP_MEMB_TYPE', 'Subscription Type');
- You can add any number of lines to the end of en-custom.php file.
Now visit your http://www.yoursite.com/amember/signup.php page and you should see changed text. If not, make sure you have uploaded file amember/language/en-custom.php
