Localize the Joomla! Simplicity template Imprimer Envoyer
Écrit par Yuri   
Samedi, 13 Septembre 2008 10:31

JoomlaShack provides some very interesting templates for Joomla!, and among them the Simplicity template. This template is purchased in English, and you have to translate it by yourself to localize it in the language of your choice.

How to translate it ?

Please note that the following explanations are valid for the version 2.1 of the Simplicity template.

The translation is limited to very few items: the text displayed when the mouse hoover on the 5 top right corner buttons allowing to increase the size of the font, decrease it, switch to the fixed-width version or to the fluid-width version.

 

To translate these texts, edit (... after a backup) the index.php located in the root of the Simplicity template folder. This folder is normally named [...]js_simplicity

Locate and translate the text highlighted below, save your update... it's done.

[...]
Increase size" onclick="changeFontSize(1);return false;">
larger

Decrease size" onclick="changeFontSize(-1);return false;">
smaller

Revert styles to default" onclick="revertStyles(); return false;">
reset



Switch to fixed-width version" onclick="switchFixed();return false;">   
fixed-width

Switch to fluid-width version" onclick="switchFluid();return false;" >
fluid-width



Switch to fixed-width version" onclick="switchFluid();return false;">   
fixed-width

Switch to fluid-width version" onclick="switchFixed();return false;" >
fluid-width



Switch to fixed-width version" onclick="switchFluid();return false;">   
fixed-width

Switch to fluid-width version" onclick="switchFixed();return false;" >
fluid-width
[...]

You can leave the alternative text of the pics in english or translate them also.
Example:/reset.png" alt="reset"

Thanks to the JoomlaShack support to having pinpointed the file to edit !

Version 3.0 of the template

Sadly, this version does not contains any more the "fluid" option. If you want to keep it, you have to edit the 1024.CSS file like this (replace the 976px by 99%):

#wrapper,#wrap-a {

    width: 99%;
    margin-right: auto;
    margin-left: auto;
}

Warning: if you change the template, you will not be supported any more by JoomlaShack !

The localization of the version 3.0 is similar to the translation for the version 2.X, exepted that there are less items to translate (as there is no more fluid option, or as you will replace the 1024 option by the fluid hack).

Mise à jour le Mardi, 23 Décembre 2008 22:30