• Resolved maksanse

    (@maksanse)


    Hello and thank you for this plugin.
    My website langage is set to french, but the board page is displayed both languages : https://cln.sh/Kb601ljX

    I checked the translation file with LocoTranslate and here is what I see when syncing french translation : https://cln.sh/v2P6ZY2d

    What can I do ?
    Thank you for your help ??

    PHP Version:?7.4.33
    WordPress Version:?6.1.1
    Plugin Version:?8.38
    Is Pro User:?NO

    • This topic was modified 1 year, 7 months ago by maksanse.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi @maksanse,

    On your screenshot it says 24 heures ago. That one is not in English and I believe is French. That is being done by WordPress.

    But yes on the other ones which are on the form itself, these can be translated via the plugin settings. In the plugin settings, if you go to the “Idea Form” tab and then click the edit icon next to “Default” you should see you can customise all the messaging in French however you would like ??

    Thanks,

    Thread Starter maksanse

    (@maksanse)

    Thank you for this answer and great for the form ??

    For the other texts “heures” is french, but “ago” is english.
    Did you see the issue shown in my 2nd screenshot ? It seems that the translation cannot work here (and that is why “ago” is displayed)

    Best regards

    Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi @maksanse,

    I am not super familiar with LocoTranslate. But what is stopping you translating %s ago to %s il y a (or whatever it should be in French) as shown in the screenshot?

    I could split apart the string and this might help so that ago can be translated separately if you think that would help?

    Thanks,

    Thread Starter maksanse

    (@maksanse)

    Hello @northernbeacheswebsites,

    Actually what is blocking me is the warning errors you can see in the screenshot (french translation is not usable because of those file configuration in the plugin I guess).
    ==> To replicate on a test website, switch the website langage to french, and see if the translation fr langage is used (should not work).

    Best regards

    Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi @maksanse,

    What you can try is updating to the latest version of the plugin (which is important) and then try putting in the following code in your themes functions.php file:

    add_filter( 'gettext', 'change_text_idea_push_ago', 20, 3 );
    
    function change_text_idea_push_ago( $translated_text, $text, $domain ) {
    
    if ( is_singular() ) {
    
    switch ( $translated_text ) {
    
    case 'ago' :
    
    $translated_text = __( 'ago in French', 'ideapush' );
    
    break;
    
    }
    
    }
    
    return $translated_text;
    
    }

    Does that work? Thanks,

    Thread Starter maksanse

    (@maksanse)

    Thank you @northernbeacheswebsites for this detailed answer.
    I was using the last version of the plugin… but I assume by reading you that I must have a strange config.

    I will find another solution.
    Thanks anyway for your help and time.

    Best regards

    Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi @maksanse,

    You said “I was using the last version of the plugin”, but what version are you using? Because I released an update after my last message specifically designed to help resolve this issue for you. It’s important you are on version 8.44 of the plugin and then try the code I mentioned, and it should work. If you are not on 8.44, this is why it wouldn’t work because the version I released is specifically designed to help you.

    Thanks,

    Thread Starter maksanse

    (@maksanse)

    Hello @northernbeacheswebsites,

    Sorry for the misunderstanding. I tried your update and the translation is now using french files ?? Thank you for that.

    As I said above, I will have to use another solution for my needs, but if you are interested to have better translation for french people in your plugin, I share you that :

    5 minutes ago” is translated into “il y a 5 minutes” in french.
    ? Do be able to do that, a time parameter would be great in translation, eg : “%s ago” instead of “ago” ??

    That said, thank you again for your responsivness and work ??
    Best regards

    Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Ok thank you for your feedback, I appreciate it ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Translation not working ?’ is closed to new replies.