How to edit the countries' name

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!

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',
  1. 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>';

Thank you SO MUCH!!!

Thanks Lorenzo!