Loading...
Changes Saved.
Error Occurred!

KnowledgeBase

Creating a new translation/language in SupportTrio

There are two main language files in SupportTrio.  The public (located at /tt/lang) and the admin (located at /tt/admin/lang).  You can translate, one or both.

 

For starters let's translate the public section.  Go to the tt/lang directory.  In here you will see a �custom.php�  Let's rename that to �german.php�  Next, open �german.php� in your favorite text editor.   You will see something similar to:

 

// Charset for language  (Default = utf-8)

$lang_char = "utf-8";

 

// Public language file

 

$lang_pub_1 = "Invalid Login Information";

$lang_pub_2 = "Error.  Could not find registration request.  Ensure you copied the entire url into your browser and try again.";

$lang_pub_3 = "Error.  This account has already been activated.";

 

In every language file in SupportTrio you are able to set the character set for the language (default is utf-8) and then you have a number of lines to translate.  You translate the text inside of the quotes.  Example:

 

$lang_pub_1 = "Invalid Login Information";

 

In the above you would translate the red text.  If you use a quote ( � ) in your translated text you must put a before the quote.  Example:

 

$lang_pub_1 = "Invalid �Login� Information";

 

Once you are done translating, save the file and let's move on to the admin language file.  You can find the admin language folder at /tt/admin/lang.  Let's do the same as before and rename custom.php to �german.php� and open that file in your favorite text editor.  Translating is the same in this file.

 

Once done, save the file.  If you are working on these files on your local computer and not on the server where SupportTrio is installed be sure to upload the files to the proper directories (/tt/lang and /tt/admin/lang) and then login to SupportTrio.

 

Click on �Settings > General Settings�

 

The default language is selected roughly midway down the screen.  There is a �modify settings� link by the default language selection.  Click on �modify settings.�  Here you are able to add your newly created language file.  Simply type in �german� for the language file, ensure �active� is set to yes and click �add language file.�

 

Your language file is now added.  If you wish to change this to your default language file, visit the settings page and change the selected language in the drop down to the language of your choice.



Related Articles