• Resolved Rob de Cleen

    (@rdc2701)


    Hi,

    In the Enfold theme, there are several hardcoded text strings, for example:
    – “You are here” (breadcrumbs)
    – “sort by” (WooCommerce)
    – “Leave a Reply” (Comments)
    – “Want to join the discussion?” (Comments)
    – “View all results” (Search)
    – “Sorry, no posts matched your criteria. Please try another search term” (Search)

    I now use Loco Translate to replace those strings using the Enfold po/mo files. That works, but the po/mo road can also be a performance hit and seems like overkill for only a few strings. Would it be possible to make these translatable through Falang?

    Thanks in advance for looking into this.

    Still very happy with the Falang translation plugin, it works very intuitively and has very little performance impact. Thanks for all the work!

    Rob

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Rob de Cleen

    (@rdc2701)

    Hi Stéphane,

    After thinking about it some more, I think my request for translating the Enfold hardcoded text with Falang was not well thought through… There are too many fields needed standard inside the shop and the theme, so the po/mo needs to be used anyway. It is just not practical or even advisable to repeat all those single text string translations in Falang. It is much better to do the few replacements I want in the po/mo with Loco Translate or to find a way to do it through the child theme functions.php for those few very specific replacements.

    So I hereby retire this request. Sorry for taking up your time with this. ??

    Rob

    Plugin Author sbouey

    (@sbouey)

    Hi Rob,

    i will close the thread in this case but perhaps it’s a good idee to have in falang a way to override some static content on a specific context

    ‘popularity’ => __( ‘Sort by popularity’, ‘woocommerce’ ),

    if you just want to change the text “Sort by poplarity” for woocommerce.

    I have put this in my todolist

    Stéphane

    Thread Starter Rob de Cleen

    (@rdc2701)

    Hi Stéphane,

    Thanks for the time spent and for thinking about these issues. For my case now I will stick with the Enfold solution of replacing the adapted mo/po files inside a /lang folder in the child theme through functions.php, that works well for now.

    If we encounter any special cases down the line: glad to hear you are preparing for it.

    Thanks for all the work and support!

    Rob

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Translate hardcoded text Enfold theme with Falang’ is closed to new replies.