VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: RuBAN on March 22, 2012, 18:18:37 PM

Title: Localization system message
Post by: RuBAN on March 22, 2012, 18:18:37 PM
Hello! Tell me, where I can move / change the message: Info: User data stored, etc.
Title: Re: Localization system message
Post by: lysov on March 22, 2012, 20:26:14 PM
To change: edit the value of COM_VIRTUEMART_USER_DATA_STORED in ./language/en-GB/en-GB.com_virtuemart.ini (or in your lang)
Title: Re: Localization system message
Post by: RuBAN on March 23, 2012, 08:07:02 AM
I asked the question wrong, where is this design? (In my localization is still written "info:" (not in my language))
Title: Re: Localization system message
Post by: lysov on March 24, 2012, 16:22:09 PM
The file administrator/components/com_virtuemart/models/user.php in the function store() you can find:

                        if ($new) {
                                $this->sendRegistrationEmail($user,$user->password_clear, $doUserActivation);
                                if ($doUserActivation ) {
                                        vmInfo('COM_VIRTUEMART_REG_COMPLETE_ACTIVATE');
                                } else {
                                        vmInfo('COM_VIRTUEMART_REG_COMPLETE');
                                }
                        } else {
                                vmInfo('COM_VIRTUEMART_USER_DATA_STORED');
                        }

The function vmInfo() uses the system function enqueueMessage('Info: '.JText::_($publicdescr),'info') to print the text in the appropriate position 'info' in the your template