• Resolved earnbetnick

    (@earnbetnick)


    Hi,

    Thanks for this Plugin, it’s really good. I just wonder how I can change the default text:

    Expand All
    Collapse All

    Since I have the website in different languages.

    Many thanks,

    Nick

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter earnbetnick

    (@earnbetnick)

    In case it helps, I use the Polylang plugin to make my site multilingual.

    Plugin Support jaysupport

    (@jaysupport)

    Hi earn,

    There are few different ways you could accomplish this:

    1) Since the strings/labels are all localized in the code, you can use a plugin like Loco Translate

    2) Change them directly in the plugin code. They are all found in the DisplayFAQs.php file in the Shortcodes folder. You can search for “Collapse All” and “Expand All” to find them.

    3) You can create your own translation of the plugin, using a program like Poedit, that has all the wordings you want.

    Thread Starter earnbetnick

    (@earnbetnick)

    Does option 2 work to only change the language or also to add different languages depending on what country people selected?

    Plugin Support jaysupport

    (@jaysupport)

    Option 2 is hard coding the change, so it will not be conditional. For that, you’d want to look more at something like option 1 or 3.

    Thread Starter earnbetnick

    (@earnbetnick)

    Thanks, I got it

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