News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Localization system message

Started by RuBAN, March 22, 2012, 18:18:37 PM

Previous topic - Next topic

RuBAN

Hello! Tell me, where I can move / change the message: Info: User data stored, etc.

lysov

To change: edit the value of COM_VIRTUEMART_USER_DATA_STORED in ./language/en-GB/en-GB.com_virtuemart.ini (or in your lang)

RuBAN

I asked the question wrong, where is this design? (In my localization is still written "info:" (not in my language))

lysov

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