PDA

View Full Version : Translate moth



gabdziol
18-09-2016, 11:28 PM
Hi,
how can I translate name of the moths for other Language (Polish)?
I add photo.
http://www.multihosting.com/support/forum/attachment.php?attachmentid=10&stc=1

3hills
22-09-2016, 11:40 AM
Hello,

You need to make changes in 2 files.


1) public_html/components/com_multileague/views/matches/tmpl/default.php


in line 20 add:

$lang = JFactory::getLanguage();

in line 98 replace with the following between the <td></td>

<?php
if($lang->getName()=="Polish (PL)"){
setlocale(LC_ALL,'pl_PL.UTF-8');
}
echo strftime("%d-%b %H:%M",strtotime($match['match_start_time']));
?>


2) public_html/components/com_multileague/views/matchresults/tmpl/default.php


in line 20 add:

$lang = JFactory::getLanguage();

in line 118 replace with the following between the <td></td>

<?php
if($lang->getName()=="Polish (PL)"){
setlocale(LC_ALL,'pl_PL.UTF-8');
}
echo strftime("%d-%b %H:%M",strtotime($match['match_start_time']));
?>

gabdziol
22-09-2016, 12:37 PM
Everything ok,but I use free version.

3hills
23-09-2016, 10:33 AM
Hello,

I have edited my previous answer. Please follow the new process I described.

ilejesthe
05-10-2016, 04:48 PM
Can you speak Polish cockchafer - "chrabÄ…szcz" ;)