?
avatar beni71
beni71
25 May 2016

Steps to reproduce the issue

  1. Under System > Global configuration set "debug language" = yes.
  2. Set "debug system" = yes.
  3. Save & close
  4. Under Extensions > plugins open the "system debug" plugin and set "Log Deprecated API" = yes.
  5. Save and scroll down and expand "Untranslated Strings".

Expected result

On the bottom of the page there should be a debug section "untranslated strings" and in this section there should be only the item "None".

Actual result

The debug section "untranslated strings" is showing:
S_MESSAGES_LOGGED="messages logged**"

System information (as much as possible)

Source code from stage cloned. Currently, this 3.6.0-alpha2-dev.
PHP 7.0.6

Additional comments

The problem lies in the nested language string call in JROOT\plugins\system\debug\debug.php

In line 1785, there is something like:
... JText::sprintf(JText::_('PLG_DEBUG_LOGS_LOGGED'), $logEntriesTotal) ...

This is wrong. It must be either:
... JText::sprintf('PLG_DEBUG_LOGS_LOGGED', $logEntriesTotal) ...

or:
... sprintf(JText::_('PLG_DEBUG_LOGS_LOGGED'), $logEntriesTotal) ...

I don't know which solution is the recommended.

avatar beni71 beni71 - open - 25 May 2016
avatar infograf768
infograf768 - comment - 26 May 2016

I confirm. It should be:

JText::sprintf('PLG_DEBUG_LOGS_LOGGED', $logEntriesTotal)

Will make patch


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10626.

avatar infograf768 infograf768 - change - 26 May 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-05-26 06:35:29
Closed_By infograf768
avatar joomla-cms-bot joomla-cms-bot - close - 26 May 2016
avatar joomla-cms-bot joomla-cms-bot - close - 26 May 2016
avatar infograf768
infograf768 - comment - 26 May 2016

Closed as we have a patch to test #10627

Thanks!


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10626.

avatar infograf768
infograf768 - comment - 26 May 2016

Add a Comment

Login with GitHub to post a comment