• I changed the translation of my theme’s po file. Then I generated the mo file with Poedit. I replaced the old mo and po files with the new ones.

    A expected to see my new translations, but WordPress did not read the now mo file and gives the old translations.
    I restarted the server to clear cache of gettext. But this did not help.

    What shall I do to see my new translation in my webpage?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    I restarted the server to clear cache of gettext. But this did not help.

    Also, try flushing any caching plugins you might be running, as well as server and/or browser caches. Not just your browser, but any op cache or content network cache as well such as Cloudflare.

    Thread Starter Zsolt Edelényi

    (@batyuvitez)

    Thanks. I could find out what happened: each mo files of the theme was copied to wp-content/languages/themes folders.
    I did not copied. WordPress copied. When and why? Does anybody knows the answer?
    I deleted the mo and po files from wp-content/languages/themes and the new translatsions were displayed.

    When these files moved to the languages folder from the theme’s folder?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot refresh textdomain (po)’ is closed to new replies.