Contents

Update Service

Save yourself time by using our professional update service. Your update will be completed in-house by our team who will ensure everything goes smoothly with no loss of customizations.

In this tutorial you will learn how to update your Galaxy WHMCS Template to add RTL language support for languages such as Arabic. Once enabled languages that use RTL will automatically align the template from right to left when selected.

Is This Update Required?

This update is only required if you want to add RTL support to the Galaxy template. If you purchased your template after 22nd February 2019 you do not need to follow this update as RTL support will already be implemented to the latest version of Galaxy.

How To Update

You will need to follow every step below to add RTL support to Galaxy.

1. Upload The Files

Want to save time? You can hire us to update your template.

The next step is to upload the files from the update ZIP we have carefully prepared.

Steps To Upload

1. Make a full backup of your WHMCS files & database for safety

2. Download the update files >> Download Galaxy RTL Update (.zip)

3. Extract the ZIP file to your desktop

4. Rename the /upload/templates/your_active_template/ to the name of your active Zomex template you'd updating (e.g stellar, universe, eco-net etc)

5. Upload the contents of the upload directory using an FTP client to:

/whmcs_path/

Ensure that your FTP client does not replace directories and instead adds/overrides the new files within the existing directory. We recommend FileZilla which is free and will work correctly out of the box.

If you have made customisations to any files contained in the ZIP we recommend comparing your version and the updated version so you can re-apply your customisations manually.

2. Apply Manual File Edits

The final step is to make the following updates to the files.

Setting a language as RTL

The RTL alignment is enabled via the languages files by changing one line. For example to enable RTL alignment when Arabic is selected open:

/modules/addons/zomex_template_manager/lang/arabic.php

and change:

$_LANG['textdirection'] = "ltr"; # Use rtl for right to left languages and ltr for left to right languages (if your template supports RTL languages)

to:

$_LANG['textdirection'] = "rtl"; # Use rtl for right to left languages and ltr for left to right languages (if your template supports RTL languages)

3. Update Completed

You have now finished updating your template to add RTL support. If you see any miss alignment when viewing your website you may need to clear your browser cache to force the updated files to be rendered. If you run into any issues, submit a ticket and we will be happy to assist you.

Comments

If you have any questions please leave a comment below or contact our support.