• Resolved jasonsweb

    (@jasonsweb)


    Hi,

    Is it possible to add a translation/text domain to a shortcode?
    In my theme I use the standard code to translate a line, like:
    <?php _e('Hello, this is text', 'domain'); ?>

    But how can I implement this into my shortcode with a domain?
    Like:

    $shortcode .= '<span>Hello, this text should be translated.</span>';
    return $shortcode;

    Thanks in advance.

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