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

    Hi there,

    Im trying to edit loop-search.php via the Editor option in Appearance from

    <div class=”entry entry-content-wrapper clearfix” id=’search-fail’>
    <p class=”entry-content”><?php _e(‘Nothing Found’, ‘avia_framework’); ?><br/>
    <?php _e(‘Sorry, no posts matched your criteria. Please try another search‘, ‘avia_framework’); ?>
    </p>

    to

    <div class=”entry entry-content-wrapper clearfix” id=’search-fail’>
    <p class=”entry-content”><?php _e(‘Cap resultat’, ‘avia_framework’); ?><br/>
    <?php _e(‘Ho sentim, no s’ha trobat cap publicació. Intenti-ho amb una altra cerca‘, ‘avia_framework’); ?>
    </p>

    The main goal is to translate some elements of the page to my language, catalan (when the function “nothing is found” is activated obviously). What is driving me nuts is that the title (Nothing is found to Cap resultat) changes but when I try to change the sentence below the whole message disappears., the whole message below search results. I think it’s a matter of the number of characters, but it doesn’t make much sense so, I’m begging for your help on this subject since I’ll have to change a lot of .php to translate everything that I can.

    Thank you and sorry for the extension of the post!

    Nora

    • This topic was modified 11 years, 3 months ago by norasp.
    #163346

    Hola norasp!

    I just mimicked what you want to do on my local installation and got no issues so far, here’s what i did:

    <div class="entry entry-content-wrapper clearfix" id='search-fail'>
    		<p class="entry-content"><strong><?php _e('Cap resultat', 'avia_framework'); ?></strong><br/>
    		   <?php _e('Ho sentim, no s’ha trobat cap publicació. Intenti-ho amb una altra cerca', 'avia_framework'); ?>
    	    </p>

    The problem you may have is regarding using quotes, i know Catalan uses a lot of this, i’d recommend using an specialized plugin for doing translation duties, please check this topic.

    Cheers!
    Josue

    #170070

    Thanks a lot!!

    Solved a few so far, now I have to find the breadcrumb, search answer on the menu and the small information below the posts (date, author,etc.)

    Hopefully with some patience and time I will achieve the complete transformation!

    Thanks again!

    #170148

    Glad we could help. hope you get it working :)

    Regards,
    Josue

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Problems editing loop-search.php’ is closed to new replies.