• I’m trying to change a WordPress core language translation.

    Therefore I opened the German language file wp-content/languages/de_DE.po and replaced the following code:

    #: wp-includes/script-loader.php:393
    msgctxt "password strength"
    msgid "Very weak"
    msgstr "Sehr schwach"

    The website still uses the old label “Ganz schwach”, I searched in the whole project, that string doesn’t exist anywhere else. Is there some kind of translation cache?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,
    You forgot one basic steps of translation. Edited only PO file and missed to generate the MO file. Use PO editor https://poedit.net/ to make the translation. This editor will generate the MO file for this PO file. You have to upload both MO and PO files to server to take effect the translation.
    Thanks
    Mohammad

    Moderator bcworkz

    (@bcworkz)

    Mohammad is correct, the MO file is what is used to determine the actual translations. Be advised though, that the WP language files are part of the core file set and are subject to replacement during updates, at which point your alterations will be lost.

    A better solution IMO would be to use the “gettext” filter to replace “Ganz schwach” with your preferred translation.

    If you have suggestions for superior translations, please consider contributing to the official translation through the Translation Platform.

    Thread Starter RolandSchuetz

    (@rolandschuetz)

    Thanks a lot! Works like a charm now.

    Hi,
    Glad 🙂 to help you. Do you need any other help?
    Thanks
    Mohammad

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Changing translation labels doesn’T work’ is closed to new replies.