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
-
October 9, 2021 at 3:46 am #372386hothaibinhParticipantHi, how to do that ?October 9, 2021 at 1:50 pm #372437Anshuman SahuKeymasterThis is provided in the wpml core settings : https://prnt.sc/1vfs9hyOctober 17, 2021 at 3:25 pm #372951hothaibinhParticipantThank you I did but it only partly switch https://vimeo.com/634537516/fa6f596b5d 1. The hommepage is switched completely 2. The course intro page is partly switched, the titles which were English to start with don't switch 3. In single page, Button is switched, the menus are notOctober 18, 2021 at 2:15 pm #373010Anshuman SahuKeymasterI can still see the ?lang=vn parameter in your url not vn/panel . Please check if you applied these settings ? : https://prnt.sc/1vfs9hyOctober 20, 2021 at 11:44 pm #373219hothaibinhParticipantyes, I did, please check it just randomly shows a mix of Vietnamese and EnglishOctober 25, 2021 at 1:54 pm #373514Anshuman SahuKeymasterWell I checked it out and found that you are using rocket lazy loading of scripts and styles . Well we do not recommend lazy loading scripts since the scripts loads randomly and does not execute in sequence which is required by wplms as of now . So please disable the rocket script lazy load javscript files .However you can lazy load the css files .October 28, 2021 at 6:55 am #373712hothaibinhParticipantHi lazyload is not enabled in my wp-rocket https://vimeo.com/639843783/1096146c65 Yes in your Youtube video about optimization you did not recommend, and I didn't activate it Could you please help me fix this and see if it works ? I have followed different instructions without result. I have installed wpmls 4 for almost a year and this feature still not properly works.October 28, 2021 at 1:48 pm #373755Anshuman SahuKeymasterYEs I again checked the issue ,the issue might be appearing due to cache first strategy where menus and the even the html page gets cached and updtaed language goes undetected . To solve this we have disabled cache first strategy in service worker and enabled and also set the login menu again but this is reflecting in english . I guess you have to sync the menu in all languageOctober 28, 2021 at 1:49 pm #373756Anshuman SahuKeymasterI guess you would also need to disable the wp rocket page caching as well in order to fix the issue .October 29, 2021 at 1:57 pm #373808hothaibinhParticipantplease do that for me to see if the problem persists. I have been following your guess for so long already. Every time I tried and it didn't work, you pointed to a different direction, it just keeps going on for months already. I set up wp-admin and wpml on your youtube instructions, now it doesn't work out, if you don't know what went wrong, how can I know ?October 30, 2021 at 4:15 am #373834hothaibinhParticipantHi, I talked with Mr. Vibe. The problem is that - If I switch the language BEFORE logging in, the language will switch - If I switch the language AFTER logging in, the language will stay the same This is confusing to user if they login in first, this should be somehow fixed. However my bigger concerns now are: 1. The continue course button doesn't redirect me to the course to start learning https://vimeo.com/640395326/59443ef9a5 2. At the moment, I haven't translated the units. When I go to edit course in single page, the curriculum is empty (because the units were not translated ?). What is the best way to translate the unit ? - Should I translate by adding the units to WPML basket ? - I found the content display of front end and back end is not always the same as there are more element on front end. Will editing it in WPML via wp-admin create any error or messing up with the layout ? - Will the curriculum automatically recognize and add the units after the translation ?October 30, 2021 at 2:11 pm #373873Anshuman SahuKeymaster1 . for this course : https://elearning.survivalskills.vn/en/course/basic-first-aid/ The course has expired and its not free , there is also no pricing product set , hence the course is shown as private . Setting the course free or setting a course product will fix the issue and user will be able to renew the course . 2 . Well for each translated course you need to set the curriculum manually with translation each unit. My advice would be treating each course in each language as an individual course .The translation of a course would be a brand new course with brand new curriculum that you will set . You can translate but wplms does not generate curriculum automatically reading the units from wpml.November 1, 2021 at 8:20 am #373906hothaibinhParticipant1. I translated the course from WPML, so maybe the setting doesn't transfer to the translated course 2. If I translate each unit, there will be a new unit right ? will the layout and feature of the unit mess up ? Can I translate from WPML and add them to curriculum later ? It would be would if it can be done via WPML as I can assign to my staff do that without fearing they click something wrong with curriculumn 3. In WPLMS 3, I can add vimeo video with default subtitle with some code, in WPLMS 4, there's a menu to insert link, can I add some code in the link to force loading the subtitle ?November 3, 2021 at 12:23 pm #374063Anshuman SahuKeymaster1. & 2 . Well the translated course when translated will have the original units in it. you will need to remove it and build a totally new curriculum with it . If you add curriculum later it will work but user will see original language units in the translated one . 3 . Currently you need to use the iframe embed code from the vimeo video in order to do this .November 27, 2021 at 7:03 am #375294hothaibinhParticipantIs there any difference for users between using the button to insert link in unit editor vs using the iframe code ?
-
AuthorPosts
- The topic ‘How to add switch language button on Single Page ?’ is closed to new replies.