Change Membership Type in signup page

Discussion in 'Templates customization' started by 0wazza0, Aug 12, 2009.

  1. 0wazza0

    0wazza0 Member

    Joined:
    May 31, 2009
    Messages:
    31
    How/where do I change the text in the top left field "Membership Type*" at the signup page to "Product" for example?
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Specific to the language you have enabled. For English, you can modify this at:

    amember/languages

    From the readme:

    So for your example, create a file amember/language/en-custom.php that contains:

    Code:
    <?php
    defined( 'INCLUDED_AMEMBER_CONFIG' ) or die( 'Direct access is not allowed' );
    define('_TPL_SIGNUP_MEMB_TYPE', 'Owazza0's Member Types');
    ?>
    You can get a full list of the available strings at amember/language/en.php
  3. 0wazza0

    0wazza0 Member

    Joined:
    May 31, 2009
    Messages:
    31
    Thanks skippybosco. That worked great for en-custom.php but it does not work for ja-custom.php (I have both Japanese and English signup pages.)
    With the enclosed file. I get gibberish at the Membership Type* field even though the ja-custom.php files says Course (in Japanese katakana). I guess it is an encoding problems but I have tried UTF-8 and JIS and neither work.

    Code:

    <?php
    /**
    * sample-custom.php
    * Lanuage Customization file
    * rename to en-custom.php and add lines as shown below
    */

    defined( 'INCLUDED_AMEMBER_CONFIG' ) or die( 'Direct access is not allowed' );
    define('_TPL_SIGNUP_MEMB_TYPE', 'コース');
    ?>
  4. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    On my chinese sites I save it out as UTF-8.

    What are you using to edit the file? I suggest something like Notepad Plus.

    I assume you have a ja.php file? What is it's encoding? As a test, if you make the change in that file does it work? If you "Save As" that file to your custom file and remove the unnecessary lines does that work?
  5. 0wazza0

    0wazza0 Member

    Joined:
    May 31, 2009
    Messages:
    31
  6. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    @Owazza0: where did the japanese language file you have originate? Can you send me a copy {my username here @ hotmail.com} and I'll take a look at see if I can figure out the encoding for you.

    Are you able to open up the cn.php file (also asian language and utf-8 encoded)
  7. 0wazza0

    0wazza0 Member

    Joined:
    May 31, 2009
    Messages:
    31
    Thanks skippybosco,
    The ja.php file came from a link provided by CGI.
    I will hotmail it to you.
    Not looked at cn.php yet.
  8. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    In case anyone else runs into this issue in the future, the file was encoded using SJIS (Shift JIS).
  9. dezco

    dezco New Member

    Joined:
    Apr 5, 2007
    Messages:
    11
    Japanese Language.

    Were you guys able to figure out how to get this to work? I have an install that I'd like to add the Japanese language. Any help would definitely be appreciated.
  10. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Please contact us in helpdesk and request files for Japanese language.
  11. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    @dezco: encode using SJIS (Shift JIS).

Share This Page