• Resolved kartikparmar

    (@kartikparmar)


    Hi Guys,

    Is there a way to translate the dynamic strings using this plugin?

    We have our own plugin and we are storing some strings into the options table. Those strings can be changed by the customer based on their requirements and appear on the front end of the website.

    Currently, those stings are not appearing in the Source text so unable to translate it into the required language. Please let me know if there is any way to translate such strings as we have clients who are using this plugin to translate the strings on their website. Any help would be appreciated.

    Thanks in advance. ??

    Regards,
    Kartik Parmar.

Viewing 1 replies (of 1 total)
  • Plugin Author Tim W

    (@timwhitlock)

    The short answer is Loco Translate can’t help you do this. It’s a PO based editor.

    For what it’s worth, here are my thoughts on your problem:

    If you’re looking up translations based on a source string that your user can change, then I think this is a bad approach. If you want your users to be able to override strings, then override the translation text, not the source text.

    I suggest you only look up translations from fixed set of source strings. Place them in a source file so they can be extracted into a POT file. Then use WordPress filters to override the strings at runtime.

    I’m marking this as resolved, because your question is really a development problem, not a plugin support question.

Viewing 1 replies (of 1 total)
  • The topic ‘Translate Dynamic Strings’ is closed to new replies.