24 Hour Activity Stats

little bug in code!? And Change "minutes ago" - 24 Hour Activity Stats

little bug in code!? And Change "minutes ago"

by PT-NGS- » Sun Nov 04, 2018 7:27 am

Hello.

I try 24 Hour Activity Stats and i see it:
Untitled-1.jpg

Code: Select all

<span title="<span title=" sun="" nov="" 04,="" 2018="" 6:40="" am"="">28 minutes ago</span>
what file I can change it?

Maybe because have 2 times?

Code: Select all

<span title="<span title="
And please tell me where I can translate the:
"minutes ago"

I use a Portuguese lang and se_square_left style

Thank you.

Portuguese translation

Code: Select all

<?php

/**
*
*
* @package - Activity 24 hours
* @copyright (c) 2015 RMcGirr83
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @portugues tradução Activity 24 hours 1.0.9 - por PT-NGS-
*
*/

if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
// Some characters you may want to copy&paste:
// ’ » “ ” …

$lang = array_merge($lang, array(
	'BOTS_24HOUR_TOTAL'	=> array(
		1 => '%d bot',
		2 => '%d bots',
	),
	'USERS_24HOUR_TOTAL'	=>  '%d registrado(s),',
	'HIDDEN_24HOUR_TOTAL'	=> ' %d escondido(s), ',
	'GUEST_ONLINE_24'		=> array(
		1 => ' e %d visitante',
		2 => ' e %d visitantes',
	),
	'LAST_24_HOURS'	=> ' activo nas últimas 24 horas',
	'24HOUR_TOPICS'			=> 'Novos tópicos %d',
	'24HOUR_POSTS'			=> 'Novas mensagens %d',
	'24HOUR_USERS'			=> 'Novos utilizadores %d',
	'NO_ONLINE_BOTS'		=> 'Nenhum bot ativo',

	'TWENTYFOURHOUR_STATS'	=> 'Actividade nas últimas 24 horas',
	'TOTAL_24HOUR_USERS'	=> array(
		1 => 'No total houve %d utilizadore :: ',
		2 => 'No total houve %d utilizadores :: ',
	),
));
PT-NGS-
Registered User
Posts: 24
Joined: Sun Jun 12, 2005 1:12 pm

Re: little bug in code!? And Change "minutes ago"

by RMcGirr83 » Sun Nov 04, 2018 11:35 am

That's a conflict with another extension
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: little bug in code!? And Change "minutes ago"

by PT-NGS- » Sun Nov 04, 2018 12:12 pm

Yes! I finish now to search..
Is a conflict with "Relative dates" !

Thanks!
PT-NGS-
Registered User
Posts: 24
Joined: Sun Jun 12, 2005 1:12 pm