Jump to content

How to edit the countries' name


island_air

Recommended Posts

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>';

Link to comment
Share on other sites

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...