Project

General

Profile

please Help me to change "Estimated time" value to Integer

Added by yngsul No about 8 years ago

hello.
I alredy posted it to help forum but I think this one more propriate for my question.
so i repost it.

I try to change the estimated time value to integer.
I mean I want to delete ".00" from the estimated time value.
I want to use it because I changed the word "estimated time" to "quentity" by changing "apps\redmine\htdocs\config\locales\en.yml" file.

It would be really greateful if you let me know which value I have to change in which folder & file.
I'm working on Window 8.

If you have another way to solve this, please recommend me.
Thanks


Replies (1)

RE: please Help me to change "Estimated time" value to Integer - Added by Olivier Houdas about 8 years ago

Hi,
This sounds difficult:
1. In the DB, the value is stored as float
2. For display, it is formatted in various places.

Regarding display, many occurrences use the i18n (standard function in the /lib folder of Redmine) l_hours_short(), and you can't safely modify this, so you would have to modify calls in helpers, etc.
Some occurrences also actually force the formatting to to_f.round(2), such as in total_for_estimated_hours(scope) in models/issue_query.rb

You can search for estimated_hours in the code if you want to see where those values are used.

Cheers

    (1-1/1)