• Hello,
    First of all, congratulations for the awesome development of the plugin.

    I would like to know if I can have two shorcodes with different languages.

    Regards,
    Jorge

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    There is no language parameter you can set for the shortcodes itself, but what you can do is assign the locations to different categories ( Spanish / German or so ), and then do [wpsl category=”spanish”] and [wpsl category=”german”] on both pages.

    Thread Starter Jorge Calle

    (@geost)

    Hello Tijmen,

    Thanks for your reply. Indeed, that’s a great idea. But the labels remain in the same language. The only way out I see would be to use a “Store Locator Shorcode” for one language and a “Store Map Shortcode” for the other? Given that the Store Map doesn’t show the labels. Is this accurate?

    In case that this is the only way, is there an option to show tooltips with the information of each store in the “Store Map Shortcode”?

    Regards,
    Jorge

    Plugin Author Tijmen Smit

    (@tijmensmit)

    Ah yeah, the labels won’t change.

    If you want to translate everything for different languages, then you have to use a multilingual plugin like WPML ( there are others as well ), or indeed simply use the [wpsl_map] shortcode.

    If you’re comfortable with code, then you can change the content of the info window for the [wpsl_map] shortcode with this filter. If you want to include a custom field, then you first have to use this filter to grab the correct data.

    Thread Starter Jorge Calle

    (@geost)

    Ok, thanks for the help and the links.

    Wish you a great day.

    Regards,
    Jorge

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcode Languages’ is closed to new replies.