[2.0.7RC2] update/creation message and localisation
A for , submitted by Nils on 13 February 2010
Announcement
Symphony's issue tracker has been moved to Github.
Issues are displayed here for reference only and cannot be created or edited.
Browse
Closed#230: [2.0.7RC2] update/creation message and localisation
Okay, there are two bugs. One is Symphony related, the other is a result of the Date and Time extension when used with German language settings.
Bug 1: Symphony
Line 64 of admin.js
else { return Symphony.Language.TIME_HOURS.replace('{$hours}', time); }
should be
else { return Symphony.Language.TIME_HOURS.replace('{$hours}', Math.floor(time / 60)); }
Bug 2: Date and Time
It seems like the German version of the dateJS library (which extends the native Date.parse
function) is not able to process line 51 of admin.js
:
var time = Date.parse($('abbr.timeago').attr('title'));
It returns null
, if Date and Time is installed and the system language is set to German. It’s working just fine using English as system language.
This has been applied and will appear in the 2.0.8 release.
This issue is closed.
There is a strange issue in Symphony 2.0.7RC2 concerning relative times in update and creation messages. When I update a page with English language settings I get this message:
When I switch to German the same page will return this:
which translates to
I didn’t even know Symphony existed in 398 – BC!
My guess is that something is mixed up with timezones so that the time given by the server is in the future from a JavaScript point of view. Not sure if that makes sense or why this occurs when switching languages (which shouldn’t change anything but the language).