vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   [vB3] prevent removal of custom phrases, when uploading a language pack (https://vborg.vbsupport.ru/showthread.php?t=63077)

Stadler 03-27-2004 10:00 PM

[vB3] prevent removal of custom phrases, when uploading a language pack
 
If you're uploading a custom language pack (usually a translation) all custom phrases (usually from hacks you've installed) will be removed by default.

To prevent this, you have to edit your language.xml-file applying the follwing changes:

First look for a line similar to
HTML Code:

<language name="English" vbversion="3.0.0" type="custom">
on the very top of the file and replace type="custom" with type="phrases".

After that find everything from <settings> to </settings> and remove it.

Save the file and now you should be able to upload the language to your Admin-CP without overwriting your custom phrases.


Notes:
For hackers: The create such a language first you have to enable debug-mode, which is recommended for hackers anyway ;). Then go to your Admin-CP -> Languages & Phrases -> Download / Upload Languages. There you choose the language to be downloaded and the filename for it and set Just fetch phrases (or however it is called in your translation) to Yes (Very important). If nothing went wrong you should have a language-pack, that won't remove any other phrases. (If you check the file it should look, as if you've applyed the changes stated above. :)

Important Note: Never (and I mean never ;)) touch the so called 'MASTER LANGUAGE' (The language-file in your install-folder) and never try to upload a master-language that has not been designed for your vBulletin-Version. And don't add any custom-phrases to it (The same goes for the other master-files) or you'll regret it sooner or later.


All times are GMT. The time now is 06:30 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01043 seconds
  • Memory Usage 1,707KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete