Jump to content


Welcome to DevFuse Forums


Sign In  Log in with Facebook

Create Account
Welcome to DevFuse Forums, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of DevFuse Forums by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.
 
Guest Message by DevFuse

Tutorial info Visit support topic

  • Added on: Oct 08 2010 04:59 AM
  • Views: 2826
 


Restoring the default language

If you have overwritten the default English language pack, follow these steps to restore it.

Posted by AndyF on Oct 08 2010 04:59 AM
If you do not feel comfortable doing this, simply submit a ticket in the Client Centre over at IPS for assistance. I'm providing the basic steps here to assist anyone who wishes to attempt it themselves. :)

Depending on how a language pack author chooses to export a language pack, it can overwrite the default English (US) pack. This usually happens if you are provided with separate .xmls (such as members_language_pack.xml.gz) instead of a complete language.xml.gz file. It is preferable to use the latter 'complete' package where possible to avoid this.

If your default English (US) has been overwritten and you wish to restore it:

Taking a database backup is recommended before starting.

Visit the SQL Toolbox:

ACP > 'Support' tab > SQL Management > SQL Toolbox

Run the following query:

UPDATE core_sys_lang_words SET word_custom = '' WHERE lang_id = '1';



This assumes that the default language pack is still ID1, and has not been deleted. You may need to adjust the query slightly, adding your prefix if your board started on the 1.x or 2.x series.

Assuming all went well, visit the Language Manager and choose to rebuild from xml. ACP > 'Look / Feel' tab > Manage Languages > and click the grey button on the right on the English (US) pack and choose 'Rebuild From XML'

Wait for this to finish. It may take a minute or two.

After this has completed, click the grey button again and choose 'Recache All...'

View your board again. The default should of been restored. If it has not, you may wish to check the default xml's have not been replaced (although this is unlikely) , the locations are as follows:

\admin\applications\core\xml\admin_core_language_pack.xml
\admin\applications\core\xml\public_core_language_pack.xml
\admin\applications\forums\xml\admin_forums_language_pack.xml
\admin\applications\forums\xml\public_forums_language_pack.xml
\admin\applications\members\xml\admin_members_language_pack.xml
\admin\applications\members\xml\public_members_language_pack.xml

The official applications are stored in the same fashion, but are located in: \admin\applications_addon\ips\ (application name) \xml\

Once these have been replaced with defaults from the .zip's as appropriate, follow the restoration steps again.

If this fails, you will need to contact IPS for assistance with the restoration, although in the large majority of cases, this does work.

Powered by Tutorials 1.5.1 © 2016, by Michael McCune