By Christian Hostettler on Thursday, 27 June 2019
Posted in Technical Issues
Likes 0
Views 847
Votes 0
Komento allows the option "Use Lapsed Time". Where can you define the value?
Best Regards
Christian
Hi there,

We have hardcoded those lapse .../administrator/components/com_komento/includes/date/date.php. It is commonly used that way and that why it it hardcoded. If you want to change them, you can change them under toLapsed() functions and do remember to do backup for this files and replace them on your next komento update.

or you can simply update it language strings accordingly as listed below.

[gist type="xml"]
COM_KOMENTO_X_YEAR_AGO="about %1s year ago"
COM_KOMENTO_X_MONTH_AGO="about %1s month ago"
COM_KOMENTO_X_WEEK_AGO="about %1s week ago"
COM_KOMENTO_X_DAY_AGO="%1s day ago"
COM_KOMENTO_X_HOUR_AGO="%1s hour ago"
COM_KOMENTO_X_MINUTE_AGO="%1s minute ago"
COM_KOMENTO_X_SECOND_AGO="%1s second ago"
COM_KOMENTO_X_YEARS_AGO="about %1s years ago"
COM_KOMENTO_X_MONTHS_AGO="about %1s months ago"
COM_KOMENTO_X_WEEKS_AGO="about %1s weeks ago"
COM_KOMENTO_X_DAYS_AGO="about %1s days ago"
COM_KOMENTO_X_HOURS_AGO="%1s hours ago"
COM_KOMENTO_X_MINUTES_AGO="%1s minutes ago"
COM_KOMENTO_X_SECONDS_AGO="%1s seconds ago"
[/gist]

Thanks for your understanding.
·
Thursday, 27 June 2019 17:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hallo Warith

Would it be possible to extend these periods:


COM_KOMENTO_X_YEAR_AGO = "about% 2s year ago"
COM_KOMENTO_X_YEAR_AGO = "about% 3s year ago"


?

Best regards
Christian
·
Thursday, 27 June 2019 17:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Those %1s are not number of years actually. We have covered them accordingly, as if those comment are created more than 1 years, it will use "COM_KOMENTO_X_YEARS_AGO" instead of "COM_KOMENTO_X_YEAR_AGO", that is without 's' on year part.

Hope this help you understand them.
·
Thursday, 27 June 2019 17:15
·
0 Likes
·
0 Votes
·
0 Comments
·
ok, thank You
·
Thursday, 27 June 2019 20:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Thursday, 27 June 2019 22:13
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post