Home › Forums › Legacy Support › Support queries › Other issues › How to add switch language button on Single Page ?
- This topic has 60 replies, 4 voices, and was last updated 3 years ago by Anshuman Sahu.
-
AuthorPosts
-
June 14, 2021 at 8:03 am #361325hothaibinhParticipantSorry I watched the video, I did all the steps, what is missing on my site ? How to do this 'reload_nav=1' ?June 14, 2021 at 8:44 am #361329AdaParticipantThis reply has been marked as private.June 14, 2021 at 6:11 pm #361412hothaibinhParticipantHi, do you mean I have to edit the link ? My user will not know how to do that, how can make it automatically happens when clicking language switcher ?June 15, 2021 at 8:18 am #361475AdaParticipantHI, No you do not need to do this for each user. You needed to do it just once. Now you can check from different user accounts for the translations in both language.June 19, 2021 at 11:18 am #362039hothaibinhParticipantSorry I still don't understand. You want me to manually change the link to this in the address bar ? https://elearning.survivalskills.vn/en/quan-tri/?reload_nav=1 How to make the language switch button redirect my student to that address ?June 22, 2021 at 10:46 am #362328AdaParticipantHi, When-ever you do any changes to the vibebp section then you need to refresh the navigation button so that changes reflect inside PWA. Like when you translated the vibebp in vietnamise language then you refreshed the buddypress navigation button once so that the submenu translation start reflecting. In same way when translation in english is done then you need to refresh navigation button for english language as well. for that we nead to add the relod_nav=1 in this https://elearning.survivalskills.vn/en/panel just one time and then translation start appearing in english language as well. see-> https://drive.google.com/file/d/1bXm15Ny4aj8yany7whPFHGoFb4dY615K/view https://drive.google.com/file/d/1bXm15Ny4aj8yany7whPFHGoFb4dY615K/viewJune 23, 2021 at 5:54 pm #362567hothaibinhParticipantHi, I followed your instructions. Yes, if I copy quan-tri/?reload_nav=1#component=dashboard to https://elearning.survivalskills.vn/en/, the link https://elearning.survivalskills.vn/en/quan-tri/?reload_nav=1#component=dashboard displays exactly what it means to. However, what does it mean for learners ? When learners visit the page for English 1. Click the language switcher to English 2. Click the profile to see dash board https://vimeo.com/566692591/72da333812 If they do that, the dashboard is still Vietnamese, it redirects to https://elearning.survivalskills.vn/quan-tri/ which is totally Vietnamese. The learners will never know that they have to copy quan-tri/?reload_nav=1#component=dashboard to add to the link. Is there a more feasible way for learners to use ? Do I have to manually copy hyperlinks to the buttons ?June 24, 2021 at 1:02 pm #362679AdaParticipanti checked your site and it seems that the cached values of the logged in values are being picked up by the service worker which stores the menu in 1 particular language. In short, if you clear browser cache and check it should work correctly. Or simply open in another browser. Same thing goes for the profile menu, it is very likely it shows up wrong as it is currently cached in the browser and the service worker will show it. I will further investigate this and see if same is happening in my sites.June 26, 2021 at 1:00 pm #362948hothaibinhParticipantI use a different browser, same thing happen https://vimeo.com/567837452/56c957b190July 1, 2021 at 2:37 am #363470hothaibinhParticipanthello ?July 1, 2021 at 1:25 pm #363552Anshuman SahuKeymasterThe issue is that you are logged in wordpress wp-admin and checking the site front as well. Now when switch langauage in backend it does followed on the front end as well in different tab and front end page does not follows its current languages .I would recommend you to test it with student only in front end they wont see such issueJuly 9, 2021 at 9:15 am #364549hothaibinhParticipantPlease check this video https://photos.app.goo.gl/Dn716pVgwTJBixJ48 The language in homepage is switched to English already, but when I click in the single page, the menu is still Vietnamese. The account is student only without any other roleJuly 12, 2021 at 2:06 pm #364816Anshuman SahuKeymasterYes with the logged in menu items we are having some issue . Please provide some time to check this .Ping back for reminder .July 15, 2021 at 10:47 am #365208hothaibinhParticipantHi, have you found the solution ?July 16, 2021 at 2:07 pm #365402Anshuman SahuKeymasterYes this was found to be an issue in vibebp code actually , we have fixed this .to fix this please share your ftp creds in private reply
-
AuthorPosts
- The topic ‘How to add switch language button on Single Page ?’ is closed to new replies.