Directions In Architectural Redesign

Gervase Markham gerv at mozilla.org
Fri Jan 23 13:17:11 UTC 2004


Tobias Burnus wrote:

> What I would like to see is the reduction of hardwired strings which are
> inserted as comment like 'This bug has been marked as duplicate of ...'
> etc. I would prefer to have those in a different form in the database
> than as comment. This allows for (a) localization of the output string
> and (b) such texts could be put into e.g. in a box and thus made be more
> visible.

Indeed. All such text should be in templates. The actual example you 
give should probably go away, in favour of displaying the dupe number 
next to the resolution.

>>Less hardcoding - customised statuses/resolutions, easier to add
>>customised fields.
> 
> The problem with those strings is how this can be localized best.

We probably want to be using numbers internally for each status and 
resolution, and translating them to strings at display time:

[% status_descs.$status %]

Gerv




More information about the developers mailing list