Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #932265

    Hello, I’m trying to translate a string I added to ‘includes/loop-index.php’.

    I’ve added another data-entry called ‘Article Source’ using ACF. I’m using this code to display it:

    					_e( 'Article Source: ', 'avia_framework' );
    					echo '<a href="';
    					the_field('article_source');
    					echo '">';
    					the_field('article_source');
    					echo '</a> '; 

    I want ‘Article Source’ to be translatable.

    How do I add the string to the po file that avia_framework is using? Or do I have it all wrong?

    Thank you.

    #932806

    Hey FlatText,

    Thank you for using Enfold.

    The code looks correct. Please try to add the translations of the string with this plugin.

    // https://wordpress.org/plugins/loco-translate/

    Don’t forget to sync the language files.

    Best regards,
    Ismael

    #932897

    Thank you Ismael. I wanted to avoid using a plugin, but it worked even after I disabled Loco Translate. Thank you very much.

    #933077

    Hi,

    Great, glad you got it working and thanks for the feedback. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #933437

    Thanks Rikard. The issue is resolved, please close it.

    #933457

    Hi,

    Glad to hear that :) I’ll close this then, thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Translate string (w/ WPML plugin)’ is closed to new replies.