• Resolved mrank


    This is a great plugin.

    But I need to change the strings in the plugin like “Crop”, “Reset crop”.

    Normally I use Loco Translate Plugin for such issues. But there are no strings listed.

    Is there a way to change the strings in the plugin but keep the plugin updatable?
    Maybe there is a hook or something…?

    Thank you very much for this useful plugin!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author joppuyo



    This plugin is translated in the same way as all other plugins.

    I did a quick Google search and you could try using the gettext hook to change the translations


    Something like this

        function ($translated, $original, $domain) {
            if ($translated === "Crop" && $domain === 'acf-image-aspect-ratio-crop') {
                $translated = "Do it";
            if ($translated === "Cancel" && $domain === 'acf-image-aspect-ratio-crop') {
                $translated = "Abort";
            if ($translated === "Reset crop" && $domain === 'acf-image-aspect-ratio-crop') {
                $translated = "Move to original position";
            return $translated;
    Thread Starter mrank


    Thank you, solved!

    Your code works perfectly. Thank you very much for the fast support!

    Maybe this is something to add to the documentation, as a lot of users will have other languages than english.

    It is possible in wordpress to only give the user access to their own uploads. So you can use the media library in frontend, without the user having access to all your files (your faq could mention this).

    This makes the plugin work great in frontend, too, which will make it even more useful. I think you can improve your docs to show the real “power” of this great plugin.

    Thread Starter mrank


    Sorry, I forgot to mark this as solved.

    Plugin Author joppuyo



    Glad you got it to work. If you want to translate the plugin into a foreign language, the translation is handled through wordpress.org glotpress. We currently have translations to Finnish, Danish, French, Spanish and Venezuelan Spanish. If you want to contribute a translation I can create a request to add you as a project translator of a language of your choosing.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Edit strings in plugin?’ is closed to new replies.