URL: <http://gna.org/bugs/?16847>
Summary: Clean up list-generating pattern in help Project: Freeciv Submitted by: jtn Submitted on: Sunday 10/10/10 at 20:01 Category: docs Severity: 2 - Minor Priority: 5 - Normal Status: Ready For Test Assigned to: jtn Originator Email: Open/Closed: Open Release: Discussion Lock: Any Operating System: None Planned Release: _______________________________________________________ Details: There's a recurring pattern in the help of generating lists of one, two, or more elements separated by "or" or "and". Some of them are a bit grody. While working on patch #2049 I've incidentally harmonised some of them a bit, removing some arbitrary limits in the process. (There's definitely scope for factoring this out further; we could have a couple of functions that take a strvec and format it into "and" and "or" separated lists respectively; this could remove a chunk of code from these and other places, such as helptext_government() and techs_with_flag_string(), and centralise the handling of i18n issues. But that's more than I have time for right now.) _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?16847> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev