Overrides

The language files are provided unencoded to provide you to view the language strings that WHASOLS uses.

However we do not recommend these files to be edited directly. Instead overrides should be used.

Language file overrides permit you to customise language strings and phrases the way that is safely preserved through the upgrade process.

Using Overrides

Steps for language customisation strings via overrides are given below:

  1. Create a directory named overrides within the ~/language/ directory.
  2. Copy or create the language file you want to override. For example, to create an override for the English language you create ~/language/overrides/english.php
  3. Open the newly created file in your preferred editor.
  4. Start the file with a PHP tag indicating PHP code is to be used.
  5. Enter the variable(s) you want to override. For example, if you wanted to change “Welcome to our members area” you would locate the proper variable within ~/language/english.php and put it into the overrides english file with your preferred change:

~/language/english.php

$_LANG['headertext'] = "Welcome to our members area.";

~/language/overrides/english.php

$_LANG['headertext'] = "Welcome home!";
  1. For each variable you wish you change, repeat step #5. For example, a completed overrides file should look something like this: ~/language/overrides/english.php
<?php
$_LANG['headertext'] = "Welcome home!";
$_LANG['addtocart'] = "Add to Cart";
$_LANG['cartproductaddons'] = "Product Addons";
Save, and you are Done!