If you choose to use "yesterday" and "today" as time format and click on the latest actions in a user profile, you can see, that for actions made yesterday and today only the time is shown, not the day. Shouldn't this be for example "yesterday at 9:05 am"?
Hello!
I don't know, if this could be a bug, but I want to tell you:
If you are using "Today and Yesterday" this is displayed in Infocenter, but not in the profiles. If I look at "Recent Activity" the complete dates of older posts are shown, but if there are posts from today and yesterday, is just the time displayed.
Upps...sorry Jorin. You were much faster then me. :-[
Doppelpost...so ein Mist...wie peinlich (wie sagt man sowas auf Englisch?)
LOL
Better 2 than none! ;D
I'll merge the topics. ;)
hmm... it looks like this section uses the strings from Who.<language>.php
Found the issue: determineActions loads the Who language, that in the new form overrides $txt['today'] and $txt['yesterday'].
For the moment, the safest way to deal with it I think it's to re-load index just after determineActions in ProfileInfo.controller.php like this:
$action = determineActions($user_profile[$memID]['url']);
loadLanguage('index');
@Spuds any other idea?
Not really ... I have not looked at the text, I assume there is a good reason for the same txt string with different values. IMO nothing should overwrite index txt to begin with but instead add their own if what index defines is not right for the application. But for now doing what you suggest is the best way at this time.
Yes, there is a kind of "good" reason: once upon a time (i.e. about two weeks ago), the today string was:
$txt['today'] = 'Today ';
and it was concatenated in standardTime with the date:
$txt['today'] . $time;
Then in who, the "today" text was removed with a trick like this:
$time = strtr(standardTime($time), $txt['today'], '');
the same for yesterday.
About a couple of weeks ago I stumbled upon that code, and thought that this was a bit hackish and that the today was not really good for localization, so I changed $txt['today'] to:
$txt['today'] = 'Today $1%s';
but then, the strtr was now impossible, so I thought overwrite the index was the only way to obtain the expected result without adding another string to strtr it out from the today in who that was a bit "odd"...
Hope the description makes sense. lol
So no chance to fix this?
I wrote the fix in the reply #6... why do you read it is not going to be fixed? ???
Oops, I lost track. :-[ So it will be changed as described in #6. Good!
https://github.com/emanuele45/Dialogo/commit/e2caaf25eac0cd3b5de0da43312875dfcb67078c