• I modified the fr_FR.po and fr_FR.mo files to customize the labels older posts and newer posts. But these files are in wp-content/languages and regularly overwritten by WordPress updates. I can’t seem to turn off these updates. Can I do otherwise? How? I already have a child theme. Theme Dyad.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • I can’t seem to turn off these updates.

    Why? What action have you taken that didn’t work?

    You should be able to turn of automatic updates of translattion files via a filter, as documented here.

    Thread Starter cgibourg

    (@cgibourg)

    I did it (add_filter…) but it doesn’t work. Files always updated automatiquely!

    Thread Starter cgibourg

    (@cgibourg)

    exactly : add_filter( ‘auto_update_translation’, ‘__return_false’ );
    and I have tried plugins that claim to also handle updates (I didn’t write down the names) but I’m here today because I still don’t have a working solution.

    Thread Starter cgibourg

    (@cgibourg)

    add_filter is the last line of wp-config.php. Is it a problem?

    I’m not a developer, but the documentation I linked to above clearly states (emphasis mine):

    Configuration via Filters

    Using filters allows for fine-tuned control of automatic updates.

    The best place to put these filters is in a must-use plugin.

    Do not add add_filter() calls directly in wp-config.php. WordPress isn’t fully loaded and can cause conflicts with other applications such as WP-CLI.

    That said, I don’t know if adding the filter in wp-config.php is the problem here, but putting the code at the very end is certainly wrong: all additions to wp-config.php should go ABOVE the line that says:

    /* That's all, stop editing! Happy blogging. */

    • This reply was modified 3 years, 6 months ago by George Appiah.
    Thread Starter cgibourg

    (@cgibourg)

    No line “stop editing!” in french’s wp-config but I have a fatal error if I move my line in the middle of the file. So I going to try to insert it in a plugin config…

    Thread Starter cgibourg

    (@cgibourg)

    I find it strange that Worpress is telling me that I have translations to update. Looks like my fr_FR files are not considered translations because they have been automatically updated.

    Thread Starter cgibourg

    (@cgibourg)

    I created a new WordPress instance with an old version -1.5.7.1-, I created a php file in mu-plugins with auto_update to FALSE, copied my fr_FR files, I restored my database and … my fr_FR files have been updated automatically!
    I found the line / * That’s all, stop editing! Happy blogging. * / in wp-config.php, so I added before “define (‘automatic_updater_disabled’, true);” ; then I updated my fr_FR files, I restored my database and so far no automatic update has been detected. Also, I added?> At the end of config.php because it was missing. Now I’m waiting to see …
    Thank you very much for your advice.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Customize “older posts” message’ is closed to new replies.