| 104 | } |
| 105 | |
| 106 | std::string GetUnitsString(Duration::Units unit) |
| 107 | { |
| 108 | switch (unit) |
| 109 | { |
| 110 | case Duration::Units::Minutes: return localisation::TranslatedInterfaceText("minute"); |
| 111 | case Duration::Units::Hours: return localisation::TranslatedInterfaceText("hour"); |
| 112 | case Duration::Units::Days: return localisation::TranslatedInterfaceText("day"); |
| 113 | default: UNREACHABLE(); |
| 114 | } |
| 115 | } |
| 116 | } // namespace platform |
no test coverage detected