• Resolved AnneTanne

    (@annetanne)


    Because I want the front-end of my site completely in Dutch, I have created a nl_NL.po and nl_NL.mo file with the front-end strings translated. (I prefer the back-end in English, because a translation there often results in no-so-easy to understand instructions)
    Of course I also use a localized version of WordPress.

    One set of strings belongs to the search-box, and I have translated ‘Enter searchwords’ and ‘Search for’ (among others).
    But when I look at my site, the ‘searchwords-box’ shows indeed ‘voer zoektermen in’, but on the submit-button I still see ‘Search’. I have scrutinized the po-file over and over again, but I only find ‘Search for:’, and not ‘Search’.

    Could it be that this string is missing in the pot-file?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Shaped Pixels

    (@shaped-pixels)

    Sounds like I missed something, and sure enough I did. I will get you to edit one file.

    Open the searchform.php file and look for this line:

    <input class="button-search" type="submit" value="<?php echo esc_attr( 'Search', 'senses-lite' ); ?>">

    Make it this:

    <input class="button-search" type="submit" value="<?php echo esc_html_e( 'Search', 'senses-lite' ); ?>">

    Now that just leaves updating the .pot language file…are you using PoEdit? If you are able to open the senses-lite.pot file and click on Update, that should do it.

    Thread Starter AnneTanne

    (@annetanne)

    Thank you very much!
    Indeed, I use PoEdit!

    Thread Starter AnneTanne

    (@annetanne)

    Just another post to mark this topic as resolved…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Missing string in pot-file?’ is closed to new replies.