Jump to content

Recommended Posts

Posted

Hi guys, i just created EVA VA which is located in Taiwan. Due to the perception problem, I wanna edit the name: Taiwan, Province of China into Taiwan.

I tried to find out the solution but i didnt get any idea. Could anyone tell me how to do it? Thanks a lot.

cheers!

Posted

So I took a look for you, and found that its located in /core/common/Countries.class.php on line 72.

So you have two options as I see it;

1. Edit the class file (that may get overwritten when you update) by changing

'TW' => 'Taiwan, Province Of China','TJ' => 'Tajikistan','TZ' => 'Tanzania, United Republic Of',

To:

'TW' => 'Taiwan','TJ' => 'Tajikistan','TZ' => 'Tanzania, United Republic Of',

2. Copy /core/templates/registration_mainform.tpl to /lib/skins/<SKIN_YOU_ARE_USING/registration_mainform.tpl and then edit it and change as follows (will NOT get overwritten with updates)

Change line 63 from:

echo '<option value="'.$countryCode.'" '.$sel.'>'.$countryName.'</option>';

To:

echo '<option value="'.$countryCode.'" '.$sel.'>'.str_replace("Taiwan, Province of China","Taiwan",$countryName).'</option>';

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...