• Resolved pkurzydlo

    (@pkurzydlo)


    Hi,

    I’am using polish version of WordPress 3.8.1. After installing ridizain theme, some system messages, like: “Leave a comment” or “next/previous post” and others, are in english. Is it possible to easly translate ridizain theme messages to polish? I’ve tried POEdit to translate ridizain.pot file: it generated 2 files: ridizain.po and ridizain.mo – I uploaded them to wp-content/themes/ridizain/languages folder – it didn’t work and messages i mentioned above are still in english. Thank You in advance for help with translating a theme.

    Best regards,

    Peter

Viewing 8 replies - 1 through 8 (of 8 total)
  • Theme Author Brian Harris

    (@zgani)

    Hello Peter,

    The language file(s) need to be named correctly(i.e. pl_PL.po for Polish) and the language defined in wp-config.php for it to work – here’s a good article that explain the process in detail: https://www.appthemes.com/blog/how-to-translate-a-wordpress-theme/.

    You could also try this plugin and see how it goes:
    https://www.ads-software.com/plugins/loco-translate/ – again you have to do the translation yourself and save the file with a language naming convention.

    Regards,
    Zulf

    Hi Zulfikar,

    I am trying to translate your theme into German with the Loco plugin you recommended. Well, I didn’t get it to show me any results yet but that’s a different matter. I wonder why I do not find lots of translations such as the text on the readmore button or the post navigation (previous / next post). Are those hidden somewhere else or should they be in the language file as well? Sorry if this is a stupid question, it’s the first time I care about translations at all.

    Thanks a lot
    Sandra

    Theme Author Brian Harris

    (@zgani)

    Hello Sandra,

    No that’s not a stupid question at all – if you hadn’t raised it I wouldn’t have known of the issue(s) (if any) ??

    As for the strings, those are correctly marked as translatable in their respective files (i.e content-home.php, content.php and template-tags.php) so not sure why they are not being picked up.

    I’ll have a look in to and see if I can spot what’s going on and come back to you.

    Regards,
    Zulf

    Thread Starter pkurzydlo

    (@pkurzydlo)

    Hello Zulfikar,

    Thank you for your help. The article you mentioned https://www.appthemes.com/blog/how-to-translate-a-wordpress-theme let me easly translate almost every theme messages. The only message I am not able to translate is “Read More”. I think it’s the same issue that Sandra described above. “Read more” is not included in .po/.mo language file. It must be somwhere else. I’ll be grateful for any tips on this matter.

    Best regards,

    Peter

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    It happens in three different locations from what I can tell.

    The files are:
    content-home.php:41
    content.php:47
    /inc/widgets.php:325

    Those are the things I noticed.

    What those lines should read is:

    // Make sure to make a child theme just in case. :)
    <p class="read-more button"><a href="<?php esc_url( get_permalink() ); ?>"><?php _e( 'Read More &raquo;', 'ridizain' ); ?></a></p>
    Theme Author Brian Harris

    (@zgani)

    Updated version with the fix uploaded.

    Thanks Jose ??

    Thread Starter pkurzydlo

    (@pkurzydlo)

    I join thanks to Jose ??

    Your advice has allowed me to successfully complete the process of translating a theme.

    Best regards,

    Peter

    Theme Author Brian Harris

    (@zgani)

    Marking thread as resolved but if you run in to further issues please feel free to raise a new thread and I’ll do my best to assist.

    Thanks,
    Zulf

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Translating ridizain’ is closed to new replies.