Support » Plugin: Woocommerce Gift Wrapper » Translate Gift Wrap Details

  • Resolved jerbnl

    (@jerbnl)


    Hi Support,

    We are really struggling with translating the string of Gift Wrap Details…
    https://snag.gy/jcqYdA.jpg

    How could we translate it? We cant find it in WPML String Translation.
    Looking forward to your reply!

    With best regards,

    Jerry

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Little Package

    (@littlepackage)

    Since that text is held in the wp_options table, you will need to add a key entry to your config file (more on that here in case you want to research: https://wpml.org/documentation/support/language-configuration-files/#admin-texts)

    To keep it simple, add following code in WPML > Settings > Custom XML Configuration section:

    <wpml-config>
      <admin-texts>
        <key name="giftwrap_details"/>
      </admin-texts>
    </wpml-config>

    ( If you already have opening and closing <wpml-config> tags, then just add in the <admin-texts></admin-texts> code in between them. )

    And then you should be able string translate the option. Please let me know how this works.

    Hi Support,

    This works! Thank you for the amazing support.

    Plugin Author Little Package

    (@littlepackage)

    @jerbnl I’m very happy that helped you. Thank you for letting me know.

    Plugin Author Little Package

    (@littlepackage)

    There is a general problem translating the “Giftwrap Details” string, which is stored in the wp_options table, where it’s trickier for translation plugins to access.

    WPML can translate it, but from what I can tell other translation services probably cannot. I’ve released version 3.0.3 of the Giftwrapper plugin, which address the “Giftwrap Details” string by adding a translatable fallback string in case the “Giftwrap Details” option is left BLANK/EMPTY in the Giftwrapper settings.

    So, with WPML, you can carry on and use the instructions above, or you can leave the setting blank and translate the fallback/default string (now: “We offer the following gift wrap options:” in English) more easily.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Translate Gift Wrap Details’ is closed to new replies.