I cannot see HTML and Tab titles in WPML string translation

Support MB Builder I cannot see HTML and Tab titles in WPML string translationResolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #43290
    MarcoMarco
    Participant

    I manually registered my custom fields with my text domain. I can view all the texts for translation except those that are in HTML or the TAB.

    Any ideas about what might be happening?

    Thank you.

    #43314
    PeterPeter
    Moderator

    Hello Marco,

    Do you register custom fields with code? If yes, you can use the gettext function __() to allow translating the text. If you use the builder, the field settings are stored in a post and it might not work with the String Translation plugin.

    #43321
    MarcoMarco
    Participant

    Hi Peter. Thank you for the answer.

    I was using the "get php" button to get the code.

    I seen that when you do that you automatically add the function__() to all labels but you don't do it for:
    - 'std'
    - group title
    - add_button
    - html

    Probablly there are more.

    Could you ad the function automatically when you generate the php?
    Can I ask it like a request?

    Thank You

    #43329
    PeterPeter
    Moderator

    Hello,

    Thanks for your feedback.

    Yes, it could be a feature request. I'm going to create a feature request and ask the development team to consider supporting localization for text generated in PHP code.

    #43336
    MarcoMarco
    Participant

    Thank you.

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