CircleFlip Theme Translation

  • CircleFlip Theme Translation
    Viewing 11 posts - 1 through 11 (of 11 total)

  • Cedric
    Participant
    #4323

    Hi Omar,

    I am struggling to get some labels translated into French.

    Related Posts
    Continue Reading
    Read More

    I can’t find a way to get it translated into French.

    Can you please advise ?

    Many thanks,

    Cédric


    Omar
    Keymaster
    #4324

    Hey Cedric,

    I apologize for the untimely response.
    Yes I believe you’re using .mo files to translate
    Edit the french file with po-edit or a similar program.

    The Read More… which is the text you added in the theme options.
    Should be found under the text-domain ‘circleflip’ for the word ‘Read more…’
    If you can’t find this one, please search for ‘More’ instead and let me know how it goes

    About the continue reading
    I don’t think that’s part of the theme, are you using any plugin? or perhaps added a read more tag to the post?

    About Related Posts
    Should be found under exactly the same one
    here’s the code calling it
    <?php esc_html_e( ‘Related Posts’, ‘circleflip’ ); ?>

    So please let me know, maybe you could send me the .mo file?

    Regards


    Cedric
    Participant
    #4325
    This reply has been marked as private.

    Omar
    Keymaster
    #4331

    Hello Cedric,

    Sorry I lost you on that last one 😀

    I see you’ve set all correctly, so please I’ll need to edit a few bits of code, please allow me temp FTP access and I’ll gladly do it.

    Regards


    Cedric
    Participant
    #4332
    This reply has been marked as private.

    Omar
    Keymaster
    #4337

    Hello Cedric,

    Sorry for the ignorance on my part.
    But I don’t know how to edit files using this FTP 😀

    Can you please guide me on how to change files?

    If you would like, I can guide you with which files to change.

    Regards


    Cedric
    Participant
    #4341
    This reply has been marked as private.

    Omar
    Keymaster
    #4359

    Hello Cedric,

    Yeah thanks for the tip on the server name to use 🙂

    I tried to make it work with updates, but had to go with a bit of custom code only for you.
    It’s simple, so don’t worry
    at the file circleflip/partials/blog-layout-one.php
    line 95 is
    <?php $read_more_alt_text = cr_get_option( "blog_read_more" ); ?>
    added code after the line
    <?php if ( ( defined( "ICL_LANGUAGE_CODE" ) && "fr" === ICL_LANGUAGE_CODE ) )
    $read_more_alt_text = "Lire l'article"; ?>

    and in file partials/content-singlestyle1.php
    line 263 was
    <?php _e( 'Related Posts', 'circleflip' ); ?>
    and now after edit is
    <?php if ( ( defined( "ICL_LANGUAGE_CODE" ) && "fr" === ICL_LANGUAGE_CODE ) )
    _e( 'Article Connexe', 'circleflip' );
    else
    _e( 'Related Posts', 'circleflip' ); ?>

    Cheers


    Cedric
    Participant
    #4362
    This reply has been marked as private.

    Cedric
    Participant
    #4631

    Hi Omar,

    Did manage to find a solution to handle both French and English labels ?

    Many thanks

    Cédric


    Omar
    Keymaster
    #4636

    Hello Cedric,

    I apologize for missing your reply before!

    I look at every part and I think I got them all, please check

    what do you mean by ‘I can’t display any posts since the theme update’

    files changed:
    1- functions.php
    2- partials/blog-layout-one.php
    3- partials/content-singlestyle1.php
    4- widgets/recent_post_widget.php

    Regards

Viewing 11 posts - 1 through 11 (of 11 total)

The topic ‘CircleFlip Theme Translation’ is closed to new replies.