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

file Multilanguage problem

More
4 years 9 months ago #38008 by Alex
Replied by Alex on topic Multilanguage problem
Thank you, I solved this problem.
May be next time :)

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

More
4 years 9 months ago #38020 by HaiND
Replied by HaiND on topic Multilanguage problem
Thanks

Best Regards
--HaiND--

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

More
4 years 6 months ago #38923 by Alexey Dyakov
Replied by Alexey Dyakov on topic Multilanguage problem
Hello,
Thank you so much for creating such a necessary component.
However, it’s really strange why you didn’t think that your component should be completely multilanguage. Please, put all the words used on the front page into one language file. It’s not normal that you have to go into the code and edit something there so that the days of the week are displayed in another language.

I can not find the line locale: 'en_US' in these files:
...\components\com_jux_timetable\views\schedule\tmpl\default_schedule.php at line 243
...\modules\mod_jux_timetable_schedules\tmpl\default.php at line 256
and change

What should I do? I need the days of the week in Russian and Estonian languages!

Best regards,
Alexey

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

More
4 years 6 months ago #38930 by HaiND
Replied by HaiND on topic Multilanguage problem
Hi
If you want, I will try to change the language of the front-end timetable to match the language of the website you are displaying, for example, the website is displaying in Russian, the timetable front-end will automatically switch to. Russian
If you are interested I will try the custom for you
Thanks

Best Regards
--HaiND--

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

More
4 years 6 months ago #38939 by Alexey Dyakov
Replied by Alexey Dyakov on topic Multilanguage problem
Hi HaiND,
Of course I want you to help me do this. What is required of me? Our website uses two languages, as I wrote above, Russian and Estonian. The page with the calendar is located at irisballet.ee/group-ru/timetable-ru

Best regards
Alexey

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

More
4 years 6 months ago #38942 by HaiND
Replied by HaiND on topic Multilanguage problem
Hi
You can provide user and pass login
I will try custom transalte for you
Thanks

Best Regards
--HaiND--

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

More
4 years 6 months ago #38949 by Alexey Dyakov
Replied by Alexey Dyakov on topic Multilanguage problem
Hi
It seems to me that your proposal is not entirely reasonable. Why can't you offer a solution that will be useful to everyone and you do not need to be distracted every time by this problem?
Please change the code on your side and update the component for all users or write instructions on how to change the calendar to multilingual!

Best regards
Alexey

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

More
4 years 6 months ago #38951 by HaiND
Replied by HaiND on topic Multilanguage problem
Hi
Please go to file:
...\components\com_jux_timetable\views\schedule\tmpl\default_schedule.php at line 243
...\modules\mod_jux_timetable_schedules\tmpl\default.php at line 256

locale:'en_US',
edit:
locale:'<?php $lang = JFactory::getLanguage(); echo $lang->getTag(); ?>',

Thanks

Best Regards
--HaiND--

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

More
4 years 6 months ago #38968 by Alexey Dyakov
Replied by Alexey Dyakov on topic Multilanguage problem
Hi HaIND,
Thank you very much for the help! The solution turned out to be very simple and perfectly functioning!

The problem was that I had this 485 line (not 243), so I could not find it before. To work with the code, I use Visual Studio Code and apparently there is a different line numbering.

But I still don’t understand why you won’t change this line in yourselves and release a component update to completely close this topic in the future? After the solution is simple and correct for all users!

With best wishes,
Alexey

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

More
4 years 6 months ago #38969 by Alexey Dyakov
Replied by Alexey Dyakov on topic Multilanguage problem
Dear HaiND,
The problem of a multilingual site is solved for desktops, once again, thank you. However, there remains a problem with smartphones. The solution proposed below works if you need one language. What to do if your site two or more languages to be used ?!

If you translate on mobile, please go to file:
...\components\com_jux_timetable\libraries\jux_class.php and change from line 27 to line 39

example:
$string_day = 'tuesday';
change:
$string_day = 'вторник';

Best regards,
Alexey

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

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