News:

Support the VirtueMart project and become a member

Main Menu

[FIXED in rev 1286]Language text missing in registration form

Started by mauri, March 02, 2008, 17:40:45 PM

Previous topic - Next topic

mauri

VM 1.1.0 rev. 1284
In file ps_userfield.php . Lines 301-308.

// Title handling.
$key = $field->title;
if( substr( $field->title, 0, 1) == '_') {
$key = substr($key, 1, strlen($key)-1);
if( $VM_LANG->exists($key) ) {
$field->title = $VM_LANG->_($key);
}
}

The VM_lang handling function should be out from that '_' checking function
Like this:
// Title handling.
$key = $field->title;
if( substr( $field->title, 0, 1) == '_') {
$key = substr($key, 1, strlen($key)-1);
}
if( $VM_LANG->exists($key) ) {
$field->title = $VM_LANG->_($key);
}
VirtueMart,(Joomla-phpShop, mambo-phpShop) since 2004-03-11