https://bugzilla.wikimedia.org/show_bug.cgi?id=65794

            Bug ID: 65794
           Summary: Document/differentiate between use cases of
                    formatTimePeriod() and formatDuration()
           Product: MediaWiki
           Version: 1.24-git
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Internationalization
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected]
            Blocks: 1
       Web browser: ---
   Mobile Platform: ---

Here we have two methods of Language (formatTimePeriod() and formatDuration())
whose names mean pretty much the same thing. When to choose one over the other
should be documented.

From what I can tell, the former supports abbreviating units and two specific
strategies to avoid showing unnecessary units, yet the latter allows
fine-grained control over which units to use (though does not allow
abbreviation). However, it's unclear whether there are contexts in which one
would be appropriate yet the other would not.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to