• Resolved erniecom

    (@erniecom)


    My technical language is English. The owner prefers another default language for his site. Is there a way ( with or without this plug-in) to have debug messages (on screen or in debug.log) appear always in my preferred language?

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

    (@qriouslad)

    @erniecom maybe you need to set the site language to the preferred language first? I’ve never had the need to do something like that, so, don’t really know. Seems like it would depend on whether PHP itself is multilingual with their error messages.

    Thread Starter erniecom

    (@erniecom)

    If you refer to the site language as per WordPress then that in my case is not allowed. The site owner requires the default to be Spanish.

    I am not sure if the debug messages come straight from PHP. Some do and are in English. Others are written in the default language of the site. The idea I am after here is that these messages will in English too. One of the obvious reasons is that I would like to search for them in one language.

    Plugin Author Bowo

    (@qriouslad)

    @erniecom error messages most probably come straight out of PHP, most of the time, unless plugins/themes has their own error handling methods which outputs error messages that are internationalized and have been translated / have translations included in the plugins/themes.

    https://www.google.com/search?q=wordpress+debug+log+multilingual yields nothing of interest and https://www.php.net/manual/en/function.error-reporting.php makes no mention of language selection, so, I assume error messages are only available in English.

    However, do let me know if you find that it’s not the case and there is a way to access non-English version of error messages in PHP and/or WordPress. I’d be interested to know as well.

    Thread Starter erniecom

    (@erniecom)

    I hoped I could do without actually posting the debug.log so finally here it is:

    [18-Jul-2023 12:18:26 UTC] PHP Notice: La función is_embed ha sido llamada de forma incorrecta. Las etiquetas de las consultas condicionales no funcionan antes de ejecutar la consulta. Haciéndolo antes, siempre devuelven falso. Por favor, ve depuración en WordPress para más información. (Este mensaje fue a?adido en la versión 3.1.0). in /var/www/whoever/htdocs/whoever.com/wp-includes/functions.php on line 5865
    [18-Jul-2023 12:18:26 UTC] PHP Notice: La función is_search ha sido llamada de forma incorrecta. Las etiquetas de las consultas condicionales no funcionan antes de ejecutar la consulta. Haciéndolo antes, siempre devuelven falso. Por favor, ve depuración en WordPress para más información. (Este mensaje fue a?adido en la versión 3.1.0). in /var/www/whoever/htdocs/whoever.com/wp-includes/functions.php on line 5865
    [18-Jul-2023 12:18:58 UTC] PHP Warning: mysqli_real_connect(): (HY000/1130): Host '127.0.0.1' is not allowed to connect to this MariaDB server in /var/www/whoever/htdocs/whoever.com/wp-includes/class-wpdb.php on line 2019

    As you can see the first two are from somewhere in WordPress while the latter is pure PHP. Since the default language is Spanish, one would need to guess what the original English was to form a correct search string in the preferred language.

    May be this is not within the scope of the plugin but I just wanted to explore where to best put this request correctly.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Language of the debug messages’ is closed to new replies.