• Resolved alainmelsens

    (@alainmelsens)


    Hi,
    As you asked me before, you closed an other support ticket on your other plugin “Smart Grid-Layout Design for Contact Form 7” because the bug seems to be located in this plugin here.
    I think you are on the way to resolve it, I hope….?

    I write here the latest action that I have taken to see what was wrong:

    I have also found where that this default little form is been builded. The file “cf7-default-form.php” in the folder “\wp-content\plugins\cf7-grid-layout\admin\partials” is doing the job. In the follow code I see were that the problems occur:

    $template = sprintf( $template,
      __( 'Your Name', 'contact-form-7' ),
      __( 'Enter your full name', 'cf7-grid-layout' ),
      __( 'Your Email', 'contact-form-7' ),
      __( 'Enter a valid email', 'cf7-grid-layout' ),
      __( 'Send', 'contact-form-7' ),
      __( 'Subject', 'contact-form-7' ),
      __( 'the topic of your message', 'cf7-grid-layout' ),
      __( 'Your Message', 'contact-form-7' ),
      __( 'Enter a brief message', 'cf7-grid-layout' ));
    

    I see that there are translations that are taken from the “contact-form-7” translation files and also from “cf7-grid-layout” translation files.

    As answer you wrote that there were problems with the translations from this plugin “Contact Form 7 Polylang Module”, so I hope now you can continue here to give me hopefully a good solution…
    Thanks in advance.

    • This topic was modified 5 years, 3 months ago by alainmelsens.
Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter alainmelsens

    (@alainmelsens)

    Hi,
    To inform you…
    I have retried over again. I have taken a previous snapshot or backup of my local test website and I have really followed all instructions to install all plugins in the good order. I have installed Polylang, CF7 Smart Grid-layout and Contact Form 7 plugins and activated before I installed and activated this Contact Form 7 Polylang Module or plugin.
    I also checked all Contact form Custom post types and Taxonomies in the Polylang Languages Settings. See screen capture here.
    I have also copied all .mo and .po files for 3 languuages (English, Dutch and French) in the folder as espected, see screen capture here.
    Then, when I try to make a new Contact form in another language, then there is only 1 item that is translated in the grid layout. All the other items are still in English. See also screen capture here.
    Also the error messages are not translated, see screen capture here.
    And last but not least, when I send a contact form, I see on the screen a confirmation that the form was sended but I don’t receive an email with with the content of the contact form either. But that can be an other problem. I will see this later.
    I hope first that other issues with the translations can be solved, I hope…
    Thank in advance.

    • This reply was modified 5 years, 3 months ago by alainmelsens.
    • This reply was modified 5 years, 3 months ago by alainmelsens.
    Plugin Author Aurovrata Venet

    (@aurovrata)

    so I found the issue and will be releasing an update over the we or possibly next Monday, it all depends on other chores on my todo list 🙂

    Plugin Author Aurovrata Venet

    (@aurovrata)

    If you are in a hurry to test the fix, you can upgrade from the GitHub repo, you will also need the latest Smart Grid code from this repo.

    download a copy of each and manually upgrade your server

    Thread Starter alainmelsens

    (@alainmelsens)

    Hi,
    Thanks. I will try it this weekend already with the upgrades from GitHub.
    Again, thank you very much. I will keep you informed…

    Thread Starter alainmelsens

    (@alainmelsens)

    Hi,
    I have retried again and now with the update versions, and really… no, it doesn’t seems to work for me. 🙁
    Again, most of all fieldnames and descriptions are missing when I make a new contact form in an other language such as French. And when I look into the .mo files, the translation are right in the file. So, I guess that the translation files (.po & .mo) must be placed elsewhere. Now they stay in the languages folder of the plugin.
    And another questions is:
    The translation files now are named as en_GB.mo, en_GB.po, es_ES.mo, es_ES.po, fr_FR.mo and fr_FR.po. The translation template is cf7-polylang.pot.
    So, I guess that the translation files need also the prefix of cf7-polylang, so, is it not a better idea to rename the other translation files also as: cf7-polylang-en_GB.mo, cf7-polylang-en_GB.po, cf7-polylang-es_ES.mo, cf7-polylang-es_ES.po, cf7-polylang-fr_FR.mo and cf7-polylang-fr_FR.po?
    But the good news is that the error messages and/or succesfully send message is well translated.
    So, we are almost in the right direction, but not complety. Anyway, I didn’t find it yet how to get it in the right way. 🙁
    I have also seen that the special folder wp-content\languages\plugins\contact-form-7 will not be created any longer. Before, it was the case. So…? Is this needed any more or just well? That’s not clear for me either…
    Maybe you wanted to explain more after you has putted your new updates online?
    Ok, I can and will wait for more info from you.
    Thanks in advance.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I have updated both the Smart grid plugin and the polylang extensions… you will need to update both and try again.

    Please remove any cf7-grid-layout_fr_FR.mo files from your wp-content/languages/ folder, the plugin shold then manage this for you and get load the right translation files.

    Thread Starter alainmelsens

    (@alainmelsens)

    Hi,
    I have first delete the old Smart Grid plugin and Polylang extension. Then I have reinstalled and activated these 2 plugins. And there is really nothing that has changed on my case.
    Yes, I have delete all caches on server en browser.
    But is it normal that there are now no cf7-grid-layout_fr_FR.mo or any such files on the website? I really don’t understand it anymore.
    Do you….? 🙁
    Thanks for any help…

    Plugin Author Aurovrata Venet

    (@aurovrata)

    But is it normal that there are now no cf7-grid-layout_fr_FR.mo or any such files on the website? I really don’t understand it anymore.

    make sure you are creating a new form! Existing forms will be not translated.

    Once a form has been translated (at creation time) then it is stored with those strings and subsequent edition of the form do not have any translation happening.

    Thread Starter alainmelsens

    (@alainmelsens)

    Hi,
    Yes, I build new contact forms, via the button NEW and I choose a language, such as French. The fieldnames and descritions or labels are in English except the object and the send button are in French. Just like many times I tested it. With the updates are even before. No changes are made. 🙁

    Plugin Author Aurovrata Venet

    (@aurovrata)

    ok, so I assume that you must have your WordPress setup in French and it is not loading any translation mo files for the Smart Grid plugin.

    Can you please copy this file,

    wp-content/plugins/cf7-grid-layout/languages/cf7-grid-layout-fr_FR.mo

    to this folder,

    wp-content/languages/plugins

    and see you are able to craete NEW forms that are now translated?

    Thread Starter alainmelsens

    (@alainmelsens)

    Hi,
    In fact, there are changes, but not all is solved yet.
    No, I install always WordPress in the original US English language. And then I use Polylang to make the website multilangual. I have now added the languages French, UK English and Dutch.
    So, I have followed your instructions and you can see the results on this screen capture.
    Some translations in French are good, and other not yet such as “Your Name”, “Your Email” and “your Message”. I know, I can translate all manually but why shoud I use than plugins as yours..?
    Why is this so difficult…? Strange, no…?

    Plugin Author Aurovrata Venet

    (@aurovrata)

    So, I have followed your instructions and you can see the results on this screen capture.
    Some translations in French are good, and other not yet such as “Your Name”, “Your Email” and “your Message”.

    so all the non-translated items are coming from CF7…. so the Smart grid translations are working.

    Check you wp-content/languages/plugins folder to make sure CF7 Polylang extension has downloaded the mo files for cf7.

    Else read FAQ #1 to retrieve the translation file manually.

    If you set the following debug settings in your wp-config.php file,

    
    define('WP_DEBUG', true);
     define('WP_GURUS_DEBUG', true);
     if ( WP_DEBUG ) {
         define( 'WP_DEBUG_LOG', true );
         define( 'WP_DEBUG_DISPLAY', false );
         @ini_set( 'display_errors', 0 );
         define('AUTOSAVE_INTERVAL', 600 );  //seconds
     }

    CF7 Polylang will print debug lines to your wp-cotent/debug.log file telling you why it is not able to retrive the translation files.

    Thread Starter alainmelsens

    (@alainmelsens)

    Hi,
    Thanks to help me but… 🙁
    I have followed all instructions and nothing is changed.
    Even the debug.log file was not created. I have deleted all caches. Nothing is working.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I have followed all instructions and nothing is changed.
    Even the debug.log file was not created.

    by default wp-config.php has a line

    define('WP_DEBUG', false);

    so if you simply paste the above lines below that,

    define('WP_DEBUG', false);

    define('WP_DEBUG', true);
     define('WP_GURUS_DEBUG', true);
     if ( WP_DEBUG ) {
         define( 'WP_DEBUG_LOG', true );
         define( 'WP_DEBUG_DISPLAY', false );
         @ini_set( 'display_errors', 0 );
         define('AUTOSAVE_INTERVAL', 600 );  //seconds
     }

    then WP_DEBUG is defined as false and the log file is not created.

    So ensure you have defined WP_DEBUG twice in your file

    Thread Starter alainmelsens

    (@alainmelsens)

    I’m sorry, but I have checked everything and I don’t see any raison why it is not working.
    That has been enough for me. I am running out of patience. 🙁
    Maybe there are still things I do wrong…?
    I am looking for an other alternative.
    Thanks for all your help. I wish you all the good luck and success.
    Even it’s not solved for me, I close this ticket because… I get enough of it.
    Regards.

    • This reply was modified 5 years, 3 months ago by alainmelsens.
Viewing 15 replies - 1 through 15 (of 16 total)

The topic ‘Translation not working…’ is closed to new replies.