Support Online: Mon - Fri / 08:00am - 05:00pm (GMT +7)
Your Time: Our Time:

file Multilanguage problem

More
3 years 11 months ago #38978 by HaiND
Replied by HaiND on topic Multilanguage problem
Hi again
with problem translate on mobile
You try edit code as bellow:
in file: \components\com_jux_timetable\libraries\jux_class.php from line 45 to line 54 and replace by code:


$lang = JFactory::getLanguage();
$lang_code = $lang->getTag();
$locales = array( $lang_code,);
foreach( $locales as $locale )
{
$localizedWeekdays = array();

for( $i = 0; $i < 7; $i++ )
{
setlocale( LC_TIME, $locale );
$localizedWeekdays[] = strftime( '%A', strtotime( 'next Sunday +' . $i . ' days' ) );
}
}
return $localizedWeekdays[$day];

Hope it will help you
Thanks

Best Regards
--HaiND--

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago - 3 years 11 months ago #38986 by Alexey Dyakov
Replied by Alexey Dyakov on topic Multilanguage problem
Hi
Unfortunately, I did not understand where to insert this code. The place you specified from line 45 to line 54 does not fit, it is not logical, apparently we have different line numbers.
I uploaded the jux_class.php file to the collaboration platform. Please look and make changes there or write where to insert by line numbering, as displayed there.

codeshare.io/G6krrk

Best regards
Alexey
Last edit: 3 years 11 months ago by Alexey Dyakov.

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #38988 by HaiND
Replied by HaiND on topic Multilanguage problem
Hi
I try change code for you, please check again
I add code from line 91 to line 104
Thanks

Best Regards
--HaiND--

Please Log in or Create an account to join the conversation.

Moderators: Jackie
Time to create page: 0.044 seconds
Powered by Kunena Forum