• Resolved aapenis

    (@aapenis)


    I am getting an error warning on my translated website.

    Warning
    : sprintf(): Too few arguments in
    /home/u899733783/domains/austrismusic.com/public_html/wp-content/plugins/elementor-pro/modules/nav-menu/widgets/nav-menu.php
    on line
    89

    It only appears in the Dutch version. The primary language is English. Content is also not loading properly in the Dutch version. Can anyone help me?

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Cristian Draghia

    (@cristiandraghia)

    Hello there,

    The sprintf() function is used inside WordPress to replace gettext strings like “Hello %s” with “Hello John”. Basically replacing %s with a dynamic strings that should not be translatable. Like a name or number.

    This error means there is a gettext string that was not translated correctly and doesn’t contain a %s for example. So instead of translating “Ola %s” it was translated to just “Ola”, thus throwing the error.

    To fix this you need to find the exact string that’s being translated and exclude it from gettext translation inside TranslatePress -> Settings -> Advanced -> Exclude Gettext Strings.

    In this case you need to go to that file and number and see what gettext string is being translated there and exclude it. If that doesn’t work, you’ll probably need to exclude it from the .po files that automatically come with WordPress (it’s possible the translation is wrong) and you can do that by using a plugin like LocoTranslate.

    Best regards,
    Cristian

    Thread Starter aapenis

    (@aapenis)

    This is what line 89 sais:

    ‘description’ => sprintf( __( ‘Go to the Menus screen to manage your menus.’, ‘elementor-pro’ ), admin_url( ‘nav-menus.php’ ) ),

    Can you tell me exactly what to do with locotranslate? I don’t have any coding knowledge.

    I tried to exclude the string with no success. I used %s %menus %menu

    Cristian Draghia

    (@cristiandraghia)

    Hello,

    Using Loco Translate, you will have to access the .po file for that plugin (the Dutch .po file in your case) and you need to delete the translation for that string (or change it to be the same as the original).

    Here is a screenshot of the text that you need to either delete or save it the same way as the original one:
    https://drive.google.com/file/d/1P7vJynsMge0PFZnS1Yf4ti9VAjjZCYDA/view?usp=sharing

    Best regards,
    Cristian

    Thread Starter aapenis

    (@aapenis)

    Deleted the translated string. Still no change. Should I delete the whole translation file for premiere pro?

    Cristian Draghia

    (@cristiandraghia)

    Hello,

    Yes, you can try to delete the entire .mo/.po file using Loco Translate.

    Best regards,
    Cristian

    Thread Starter aapenis

    (@aapenis)

    I deleted the elementor pro .po file. No change

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Incompatibility with Elementor Pro’ is closed to new replies.