WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How would you translate this? (2 posts)

  1. WebTechGlobal
    Member
    Posted 8 months ago #

    I know I could use sprintf to replace the URL in the body of text below but I want to be sure it is the only way and that I do need to use it for future reference.

    How would you translate this block of text with links?

    SupportAll users (free and premium) are welcome to use the WebTechGlobal <a href="http://forum.webtechglobal.co.uk/viewforum.php?f=8" title="CSV 2 POST Forum">Forum</a>. Simply <a href="http://www.webtechglobal.co.uk/wp-login.php?action=register" title="Forum">register</a> on our
                    WordPress blog, <a href="http://www.webtechglobal.co.uk/wp-login.php" title="WebTechGlobal Log-In">log into</a> your WTG WP account, active your account by answering the anti-spam question
                    and then your phpBB forum account will be automatically created. You can read more <a href="http://forum.webtechglobal.co.uk/viewtopic.php?f=18&t=8" title="How To Register">detailed instructions</a> here
                    with details about our WP to phpBB bridge.
  2. WebTechGlobal
    Member
    Posted 8 months ago #

    Alright maybe it was a silly question. It is a simple thing but I've not spent many hours translation or preparing various strings for translation.

    Anyway here is what I've done and I see no issues with it other than the link title translation.

    <?php
                    $link_a = '<a class="button" href="http://forum.webtechglobal.co.uk/viewforum.php?f=8" title="CSV 2 POST Forum" target="_blank">Forum</a>';
                    $link_b = '<a class="button" href="http://www.webtechglobal.co.uk/wp-login.php?action=register" title="Forum" target="_blank">register</a>';
                    $link_c = '<a class="button" href="http://www.webtechglobal.co.uk/wp-login.php" title="WebTechGlobal Log-In" target="_blank">log into</a>';
                    $link_d = '<a class="button" href="http://forum.webtechglobal.co.uk/viewtopic.php?f=18&t=8" title="How To Register" target="_blank">detailed instructions</a>';
                    ?>
    
                    <p><?php echo sprintf(__('All users (free and premium) are welcome to use the WebTechGlobal %1$s. Simply %2$s on our
                    WordPress blog, %3$s your WTG WP account, active your account by answering the anti-spam question
                    and then your phpBB forum account will be automatically created. You can read more %4$s here
                    with details about our WP to phpBB bridge.'), $link_a, $link_b, $link_c, $link_d);?></p>

Reply

You must log in to post.

About this Topic

Tags

No tags yet.