XiUS Docs > Tips and Tricks > How to translate language of labels

How to translate language of labels

In the case of multi-language support site, you need to change the language of your labels. It can be implemented by doing some changes in 3 files.

i) Go to the file: root/components/com_xius/templates/XIUS_TEAMPLATE/default_profile.php
find the code (near line 95)

<div class="xiusMplabel"><?php echo $up['label'][$i]; ?></div>[/code]

change this to

<div class="xiusMpValue"><?php echo XiusText::_($up['label'][$i]);?></div>

ii) Go to the file: root/components/com_xius/templates/XIUS_TEAMPLATE/default_filters.php
find the code (near line 27)

if(!empty($xiustooltip)) :
echo '<span title="'.$xiustooltip.'">'.$data['label'].'</span>';
else :
echo $data['label'];

and change this to

if(!empty($xiustooltip)) :
echo '<span title="'.$xiustooltip.'">'.XiusText::_($data['label']).'</span>';
else :
echo XiusText::_($data['label']);

iii) Go to the file: root/components/com_xius/templates/XIUS_TEAMPLATE/users/default_panel.php
find the same code as in the above case(ii) (near line 39) and do the same changes.

Here, XIUS_TEAMPLATE can be default, nextgen or linkedln which you have set for xius display.

After that,define each label name in language file: root/language/en-GB/en-GB.com_xius.ini.
For example: if you have a label name "username" then add code in language file as

COM_XIUS_USERNAME="Here goes the label name which you want to display"

  • Wednesday, 17 August 2011

Comments (0)

Leave a comment

You are commenting as guest.