WordPress.org

Ready to get started?Download WordPress

Forums

eShop
[resolved] Translation in option sets (5 posts)

  1. braikar
    Member
    Posted 1 year ago #

    Hi,

    I am making my website multilingual and the standard way of adding languages doesn't work for option sets.

    For example if I make an option set, colour, with choices red, green, blue
    I'd like to set it up in many languages, e.g.

    [:de]Farbe[:en]Colour[:fr]Couleur[:it]Colore

    [:de]Rot[:en]Red[:fr]Rouge[:it]Rosso
    [:de]GrĂ¼n[:en]Green[:fr]Vert[:it]Verde
    [:de]Blau[:en]Blue[:fr]Bleu[:it]Blu

    But that doesn't do anything... Is it implemented in a way that I'm not aware of, or can you add the functionality, I guess it's just a small matter of adding some more filters.

    http://wordpress.org/extend/plugins/eshop/

  2. elfin
    Moderator
    Plugin Author

    Posted 1 year ago #

    At this time it's unlikely to be added into the plugin - so all i can suggest at the moment is having a separate product page for each language.

  3. esmi
    Forum Moderator
    Posted 1 year ago #

    As there has not been an update to this topic for a while, I can only assume that the issue has now been resolved and I am now marking it as such. If this is incorrect, please feel free to change the topic's status and/or post a followup.

  4. braikar
    Member
    Posted 1 year ago #

    Well I had other things to do, I got back to it and fixed the problem, to make it compatible with qtranslate.

    I had to update all $optsets['name'] and $opsets['label'] to __($optsets['name']) and __($opsets['label']), I actually added the wrapper around all $op(t)sets['...'] in functions to display the settings on the user side, so that now these can be translated either using a po/mo file or qtranslate language tags.
    I don't know if there's any risk in changing the whole plugin like that, but that does the trick for me. (apart that obviously with new updates I'll have to reedit these..)

  5. esmi
    Forum Moderator
    Posted 1 year ago #

    When you update the plugin, all of your changes will be lost. Plus we can;t really support a hacked plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic