Page 1 of 1

Bug in com_weblinks

Posted: Fri Feb 15, 2008 4:42 am
by RadoX
When posting a weblink I get e-mail as an admin, looks like this....
Hall├│ Administrator,
Notandi sendi Weblink:
[ Test44 URL link http://test.is ]
hefur veri├░ sent inn af notandanum:
[ Loony ]
fyrir http://localhost/Joomla/.
The "Weblink" is not translated!
I found a way to translate it for me in ./components/com_weblinks/controllers/weblink.php
// send email notification to admins
foreach ($adminRows as $adminRow) {
JUtility::sendAdminMail($adminRow->name, $adminRow->email, '', 'Vefhlekk', $post['title']." URL link ".$post[url], $user->get('username'), JURI::base());
}
But I think it would be better if you would do a translation string.

Re: Bug in com_weblinks

Posted: Wed Feb 20, 2008 6:31 am
by infograf768
Change line 106
from
JUtility::sendAdminMail($adminRow->name, $adminRow->email, '', 'Weblink', $post['title']." URL link ".$post[url], $user->get('username'), JURI::base());
to
JUtility::sendAdminMail($adminRow->name, $adminRow->email, '', JText::_( 'Web Link' ), $post['title']." URL link ".$post[url], $user->get('username'), JURI::base());


Moving to Q&T and tracking issue