It will be nice to add unit of time from configuration.Patch added.Please Check.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | timeconfig-3123397-13537045.patch | 4.7 KB | sumit-k |
| #6 | timeunit-3123397.patch | 3.84 KB | sumit-k |
| time-unit-config.patch | 3.29 KB | sumit-k |
It will be nice to add unit of time from configuration.Patch added.Please Check.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | timeconfig-3123397-13537045.patch | 4.7 KB | sumit-k |
| #6 | timeunit-3123397.patch | 3.84 KB | sumit-k |
| time-unit-config.patch | 3.29 KB | sumit-k |
Comments
Comment #2
yivanov commentedHi @bsumit5577 and thanks for your contribution !
For some reason I cannot apply the patch, could you check and reroll it?
It would be really nice addition to the module !
Comment #3
yivanov commentedComment #4
yivanov commentedOne more thing - the unit should be predefined variable like seconds, minutes, hours - the reason for this is that the unit should also determine the calculation of the reading time.
For example :
If a node reading time is 60 minutes and the unit is Hours - it should be calculated like this - 1 hour
Comment #5
sumit-k commentedHi yivanov,
Thanks for reply.For now following patch is only using minute unit by default.
For example -
If a node reading time is 60 minutes - it would be like this - 60 minutes
As your suggestion i will work on other units.
Comment #6
sumit-k commentedAttaching patch for time units, minute and seconds. It is configurable , user can choose which time unit they want to display. Please review.
As my opinion hour is not preferable for reading node time.
Comment #7
sumit-k commentedComment #8
yivanov commentedHi and thanks for the update, it looks promising!
Could I ask you for two things:
1. Update the config/install and config/schema to reflect the new config field.
2. Add the labels of the new radios to be with $this->t() function in order to be available for User Interface Translation.
Comment #9
sumit-k commentedSure and Thanks for review. Updated patch is attached, Please review again.
Comment #10
neslee canil pinto#9 worked fine. Moving to RTBC.
Comment #12
yivanov commentedThank you for your contribution !
Comment #13
yivanov commented