Translating Strings From Views

Support MB Views Translating Strings From Views

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #43229
    PiotrPiotr
    Participant

    Hello,

    I am trying to use something like this in a view:
    {{ mb.esc_html__( 'Text to be translated', 'my-domain' ) }},
    which shows on a page where the view is included, but doesn't show up in WPML String Translation.

    Am I using this function correctly so?

    #43242
    PeterPeter
    Moderator

    Hello,

    The view content is saved to the database as a post so I'm not sure if WPML String Translation can scan the post to find the string. You should use the PHP code to let that plugin scan the code to translate the string.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.