VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Quality & Testing VirtueMart 1.1.x => Virtuemart 1.1 Development (Archiv) => Q&T Resolved => Topic started by: mauri on March 02, 2008, 17:40:45 PM

Title: [FIXED in rev 1286]Language text missing in registration form
Post by: mauri on March 02, 2008, 17:40:45 PM
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);
}