• Resolved mikejpr

    (@mikejpr)


    Apparently there is a general problem with the translations displayed in the plugin. I have just noticed that the translations are only appearing correctly in 2-3 places. In all other cases, only the English version is displayed, although the translation is already available. It would be great if it could be fixed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Tsvetan Mitev

    (@tsvetanm)

    Hello @mikejpr,

    All sections of the plugin have been translated into the supported languages. If the menus are not displaying the correct translations, it’s likely that the translation files for Security Optimizer are missing from the wp-content/languages/plugins directory.

    I recommend deleting any leftover files related to Security Optimizer in the wp-content/languages/plugins directory. Look for files beginning with “sg-security-” followed by the language locale code. After clearing the files, change the language settings to English and then revert back to your preferred language in the WordPress admin area (WP-admin -> Settings -> General -> Site Language), and trigger the WordPress wp_version_check cron event to regenerate the required translation files. You can do this using a plugin or wp-cli.

    If the translations continue to be absent from any section of the plugin, I recommend checking whether your website’s cron job is working correctly and verifying that the plugin has adequate permissions to write to the wp-content/languages/plugins. If you are a SiteGround customer, I suggest reaching out to our support team through the provided channels for further assistance.

    Best Regards,

    Tsvetan Mitev

    Thread Starter mikejpr

    (@mikejpr)

    Thank you @tsvetanmfor your explanations.

    I have removed all languages again and reloaded. I could indeed see an improvement, but a few places remain untranslated, such as the left menu navigation (except for Dashboard, the translations are missing for the others). Also the two tiles for Site Securitys and Login Security on the dashboard are not translated.

    Since I translated a completely new language, I also noticed two other things. Firstly, the two tiles mentioned above are now only displayed translated in the new language using the .po/.mo files. Secondly, all other places seem to be translated via the JSON file. It took me some effort to convert it, but then it worked. As I said, the above remarks should be transmitted to the developers to make improvements.

    Thread Starter mikejpr

    (@mikejpr)

    PS: Also in Activity Log the word “Human”/”Bot” and “Registered” don’t show the translation.

    Plugin Support Delyan Delov

    (@delyandelov)

    Hi @mikejpr,

    indeed after the language change some parts of the plugin do not get translated successfully. However, this is fixed once the aforementioned cron event is run – wp_version_check. You can easily force its execution via WP-CLI using the following command:

    wp cron event run wp_version_check

    Here is the result after the cron even completed:

    https://tinyurl.com/yu7vc3hd

    Still, you are correct about the not-translated phrases under the Activity Log section as well as in the plugin menu. I have already reported them to our developers and this will be fixed in the next releases of the plugin. Thank you for reporting your findings!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Existing Translation are not showed’ is closed to new replies.