Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
1 month ago
portaviii
New
Hi,
I need to change the text "1 month ago" to portuguese: "há 1 mês".
I've changed the hour of the post to get a 24 hour format but I get this 10:%i
How can I solve this?
Thanks.
Tagged:
0
Comments
go to your language folder (vanilla/language/yourLangFolder)
open a page you like
add this
$Definition['1 month ago'] = 'há 1 mês';
thanks for the help, but that do not work
function TimeAgo($DateTime = false) { $Ret = ''; if($DateTime) { $Difference = time() - Gdn_Format::ToTimestamp($DateTime); $Ret = Gdn_Format::Seconds($Difference); $Ret .= T(' há'); } return $Ret;
but the problem is in the function TimeAgo
Where can I change this?
%s month
%s months
about %s month%s ago
change these
10:%i is indication of using the wrong format.
you are using this
http://php.net/manual/en/function.date.php
you should be using this
http://php.net/manual/en/function.strftime.php
grep is your friend.
thanks. 1 problem solved; 1 to go
But where I change that?