How to add switch language button on Single Page ?

Home Forums Legacy Support Support queries Other issues How to add switch language button on Single Page ?

Viewing 15 posts - 16 through 30 (of 61 total)
  • Author
    Posts
  • #361325
    hothaibinh
    Participant
    Sorry I watched the video, I did all the steps, what is missing on my site ? How to do this 'reload_nav=1' ?
    #361329
    Ada
    Participant
    This reply has been marked as private.
    #361412
    hothaibinh
    Participant
    Hi, 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 ?
    #361475
    Ada
    Participant
    HI, 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.
    #362039
    hothaibinh
    Participant
    Sorry 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 ?
    #362328
    Ada
    Participant
    Hi, 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/view
    #362567
    hothaibinh
    Participant
    Hi, 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 ?
    #362679
    Ada
    Participant
    i 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.
    #362948
    hothaibinh
    Participant
    I use a different browser, same thing happen https://vimeo.com/567837452/56c957b190
    #363470
    hothaibinh
    Participant
    hello ?
    #363552
    Anshuman Sahu
    Keymaster
    The 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 issue
    #364549
    hothaibinh
    Participant
    Please 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 role
    #364816
    Anshuman Sahu
    Keymaster
    Yes with the logged in menu items we are having some issue . Please provide some time to check this .Ping back for reminder .
    #365208
    hothaibinh
    Participant
    Hi, have you found the solution ?
    #365402
    Anshuman Sahu
    Keymaster
    Yes 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
Viewing 15 posts - 16 through 30 (of 61 total)
  • The topic ‘How to add switch language button on Single Page ?’ is closed to new replies.