Cust text updates

From TNG_Wiki
Jump to navigation Jump to search

A file called cust_text.php should exist in every language folder on the TNG system and because it contains user modifications it is never changed by updates to the system. These two utilities use the Mod Manager to make updates to these files.

1. The example given for a modification to the text array is out of date as it does not have quote marks around the index. i.e.

//$text[messagename] = "This is the message";
should be replaced by
//$text['messagename'] = "This is the message";

2. In several language files, the instructions for placing this message have been translated into the language concerned. This causes a problem for mods which want to place their additions before this line so that they do not override a setting previously made by the individual.

This provides 2 "once-off" mods that can be used to update these files. After use they should be deleted from the mods folder (using FTP).

Installation

Unzip the file and copy the two files: cust_text_anchor.cfg and cust_text_update.cfg to your mods folder. As long as you get the white ok to install them, click on the install option.

After installation, the two cfg files may be deleted from the mods folder. The delete option will not be available within the mod manager, so you will need to use FTP to delete them on a website.

The first update references 33 language files and it shouldn't matter if you don't have these files loaded as it will say "will ignore". The second references 7 language files: French, Czech, Czech-UTF8, Polish, Polish-UTF8, Spanish and Spanish-UTF8.

If either of these lead to a "cannot install" message in the Mod Manager, here are some guidelines as to what to do. Look at the list of files in the mod manager and which languages are affected. Since these files are under user control, they may have been changed in unpredicatble ways. If these are languages you don't currently use, then one possibility is simply to delete those section from the .cfg file. A more general method is to inspect the relevant cust_text.php files to see why they don't conform to the general pattern. You can adjust these or delete the change section.