Last modified: 2013-12-28 13:41:47 UTC
This issue was converted from https://jira.toolserver.org/browse/REPORTS-4. Summary: when a cached query is shown, indicate the age in a better way than seconds Issue type: Improvement - An improvement or enhancement to an existing feature or task. Priority: Major Status: Resolved Assignee: River Tarnell <river.tarnell@wikimedia.de> ------------------------------------------------------------------------------- From: River Tarnell <river.tarnell@wikimedia.de> Date: Tue, 16 Sep 2008 18:49:24 ------------------------------------------------------------------------------- When a cached query is displayed in DoReport, the warning looks like 'This query was cached 23098 seconds ago'. Instead, it should be something more human-readable, like "This query was cached 2 hours, 37 minutes ago. It will be run again in 17 hours." This needs to be done in an i18nable way.
------------------------------------------------------------------------------- From: River Tarnell <river.tarnell@wikimedia.de> Date: Wed, 17 Sep 2008 18:04:36 ------------------------------------------------------------------------------- Implemented in r48. I changed I18nLoader into a mostly static class that's instantiated once, in ReportContext at startup. It loads all languages and i18n files, and provides a get_language method, which returns a new type of language class. One of these exists for each language (e.g. LanguageEnglish, LanguageGerman, etc), and provides per-language formatting functions. The new method format_duration was used to implement the duration formatting in DoReport.
This bug was imported as RESOLVED. The original assignee has therefore not been set, and the original reporters/responders have not been added as CC, to prevent bugspam. If you re-open this bug, please consider adding these people to the CC list: Original assignee: river@TCX.ORG.UK CC list: river@TCX.ORG.UK