Home » Topic » Foldmag » Portuguese » Translation » You are reading »

Foldmag: tiny change to make for translators

Home Forums Theme Support Foldmag: tiny change to make for translators

foldmag wp theme thumbnail

This topic contains 1 reply, has 2 voices, and was last updated by  Ronald 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11347

    Hi there,

    I was happily translating Foldmag to Portuguese when I found a tiny glitch: 'Read More', which appears at the end of every excerpt, was sadly not included as a translatable word.

    To fix this, go to line 34 (on version 1.0) of content.php where it says:

    echo frkw_get_custom_the_excerpt(30,'Read More');

    and replace it with

    echo frkw_get_custom_the_excerpt(30, __('Read More','foldmag'));

    Then, of course, the foldmag.po must have the following extra lines in it:

    #: content.php:34
    msgid "Read More"
    msgstr "<your translation here>"
    

    Add that to the end, open the file with your favourite PO editor, and then you can fix your own translation to work with Foldmag as well!

    Here goes an example of a full translation for Portuguese (European): https://gist.github.com/GwynethLlewelyn/8b123056b38bb7183ce259664d6d6fed (you're free to use it on your own websites, just keep the credit line on that file 🙂 )

    Cheers.

    #11348

    Ronald
    Admin
    Support only available for members
    please login to view this support answer.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.