Jump to content

translate custom fields with Joomla override Language features (2.5,3.0)


Fiorino De Santo

Recommended Posts

Implement this features is easy, just change a few things to the file /components/com_jreviews/JReviews/views/helpers/custom_fields.php

 

at line 345 (Group Field Title - Listing View)

replace

$group['Group']['title']

with

jText::_($group['Group']['title'])

 

at line 353 (Field Title - Listing View)

replace

$field['title']

with

jText::_($field['title'])

 

at line 356 (Field Values - Listing View)

add

foreach($values as &$val){$val=jText::_($val);}

 

at line 898 (Group Field Title - Listing Edit)

replace

'legend'=>$group

with

'legend'=>jText::_($group)

 

before line 674 (Field Title,Description,Values - Listing Edit) Problem: not work on select and multiselect field values in edit listing form

add

$value['title']=jText::_($value['title']);
$value['description']=jText::_($value['description']);
foreach($value['optionList'] as &$val){$val=jText::_($val);}

 

With tabs edit template replace in create_form_tabbed.thtml at line 154

replace

<?php echo $title;?>

with

<?php echo jText::_($title);?>

 

P.S.

find attached an update for the Italian language, there were errors in the previous

default2.po.zip

Link to comment
×
×
  • Create New...