This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Translate "Search form" and other frontend text strings

  • Creator
    Topic
  • #23810
    mdelmas
    Participant

    Hello Jason,

    Maybe it’s a silly question, but is it possible to translate “Search the site…” or the bubble “Search” on Denali theme ?

    In fact I need to translate many sentences in “locals.php” but my website not working when I upload the file after translate it… Sorry I’m not php master ahah. And I found nothing on the backoffice to translate it.

    How can I do to translate “Search the site…” in first ?

    Thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #23814
    Jason Bobich
    Keymaster

    Hello,

    If you were going to do this through code customization from your child theme, you’d utilize the filter “themeblvd_frontend_locals” from your child theme’s functions.php. That filter is applied to the array of text strings you see in locals.php, which should account for just about all frontend text strings the theme outputs.

    Here’s more info on this:

    http://dev.themeblvd.com/tutorial/frontend-text-strings/

    You can also use this plugin instead of doing any code customization:

    https://wordpress.org/plugins/theme-blvd-string-swap/

    #23875
    mdelmas
    Participant

    Top ! Your plugin is perfect ! Thank you 🙂

    #24113
    egceramica
    Member

    Hello. Can i change the Language via archives .mo and .po?

    #24114
    Jason Bobich
    Keymaster

    Sure, why not? That would just be standard WordPress localization. You’d upload your new, translated files to the “lang” directory of the theme. But if you’re just wanting to translate some text strings on the frontend you might want to check out our string swap plugin as mentioned previously.

    #24115
    egceramica
    Member

    Yes. Thanks. I can do it with the plugin. But with the archives .mo and.po it is not work
    Thanks

    #24116
    Jason Bobich
    Keymaster

    The theme is localization ready and WordPress localization will work if done properly. Maybe this will be helpful: http://support.themeblvd.com/forums/topic/language-files/#post-23356

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.