Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #201098

    Hello, I am having an issue with translation of “next post and previous post” strings in my blog. Other translations work just fine, but this one will stay the same.

    Are there any solutions for this? What can I do wrong?

    #201116

    Hi PPjev!

    Edit single.php, find this code:

    <div class='post_nav'>
    						<div class='previous_post_link_align'>
    							<?php previous_post_link('<span class="previous_post_link">&larr; %link </span><span class="post_link_text">'.__('(previous entry)')."</span>"); ?>
    						</div>
    						<div class='next_post_link_align'>
    							<?php next_post_link('<span class="next_post_link"><span class="post_link_text">'.__('(next entry)').'</span> %link &rarr;</span>'); ?>
    						</div>
    					</div> <!-- end navigation -->

    Replace it with:

    <div class='post_nav'>
    						<div class='previous_post_link_align'>
    							<?php previous_post_link('<span class="previous_post_link">&larr; %link </span><span class="post_link_text">'.__('(previous entry)','avia_framework')."</span>"); ?>
    						</div>
    						<div class='next_post_link_align'>
    							<?php next_post_link('<span class="next_post_link"><span class="post_link_text">'.__('(next entry)','avia_framework').'</span> %link &rarr;</span>'); ?>
    						</div>
    					</div> <!-- end navigation -->

    Best regards,
    Ismael

    #201120

    Thanks for such a quick reply. I guess this should help. Did not check this php file somehow :)

    Also I have exactly the same issues with Archive for tags, and archive for categories… and so on… Which files I have to change?

    #201124

    Solved: function-set-avia-frontend.php > spaces are missing in default expressions! One should add missing space:
    $output = __('Archive for category:','avia_framework')." ".single_cat_title('',false);
    with
    $output = __('Archive for category: ','avia_framework')." ".single_cat_title('',false);

    P.S. theme version is 2.1

    • This reply was modified 7 months, 1 week ago by  PPjev.
Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Localization of "previous post" "next post"’ is closed to new replies.