Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TC.K

    (@wp_dummy)

    Anyway, in a nut shell, you will have to create search form for each of your language.
    Let say your site have 3 languages (France, German and English), and English is the default/base language.
    So you created search form for 3 languages, where you can translate the labels and meta value (because custom meta values are not translated automatically like taxonomy) for each language.

    Now you want to displayed the search form in each language, you can just do it with the new parameters “lang” in the base language shortcode.
    So continue with example above you have following search form langauge and id:

    Form Language | Language Code | Form Id
    English | en | 123
    France | fr | 246
    German | de | 789

    To put in your shortcode
    [ULWPQSF id=123 lang="fr=246 de=789"]

    Note that id=123 is the base langauge, and the langauge code is the language code from wpml. You can find it in WPML->Theme and plugins localization page Language locale settings section. You will need to give ONE SPACE between each pair of language-code=form-id.

    Thread Starter Budolfsen

    (@budolfsen)

    Thanks you so much – it works like a charm…..

    Thread Starter Budolfsen

    (@budolfsen)

    I have now managed to translate everything and it works very fine – but

    I have made 3 searchform to Danish, Swedish and Norweigian language and it translate everything well using WPML.

    But the problem is when I do a search from the different forms it doesn’t give any result other than in the danish version.

    It has been setup using AJAX – and when I use ordinary searchform it works ok.

    You can see it in action here https://www.mayflower.dk

    Plugin Author TC.K

    (@wp_dummy)

    Okay…i will look into this.

    Plugin Author TC.K

    (@wp_dummy)

    I unable to find the issue. Maybe it is because of your form setting?
    You can test the search form separably to see if it is working (using conventional shortcode to insert the form)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WPML translation’ is closed to new replies.