Closed Bug 392186 Opened 17 years ago Closed 17 years ago

Remove version headers from all templates

Categories

(Bugzilla :: Bugzilla-General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.2

People

(Reporter: LpSolit, Assigned: bugzilla)

References

Details

Attachments

(1 file, 2 obsolete files)

Bug 98658 introduced version headers in all templates, i.e. the infamous [%# 1.0@bugzilla.org %] on the very first line of templates, which was supposed to let admins know when templates were modified in an "incompatible way". This idea has obviously never been followed by those suggesting it, i.e. the Bugzilla team which was present 5 years ago, despite it was marked as a P1/blocker for 2.16. Instead of keeping them unnecessarily, we should rather remove them. Sort of "back out bug 98658", including the check from t/004template.t which will save some time on slow tinderboxen.
I was just thinking this the other day. I agree - it was a nice idea, but in practice we just don't do it.

Gerv
From IRC:

<myk> LpSolit: we've never used them?
<LpSolit> myk: no. All templates still have 1.0@bugzilla.org, 5 years after its implementation
<myk> LpSolit: that's awesome; i'm glad we have so studiously maintained compatibility
<myk> LpSolit: i'm fine with backing that out
And so am I. :-) (Fine with it, that is.) In fact, I thought I'd already done this. :-) I guess I didn't!
Happy to see these gone.
If we manage to have the interface definition in each template parseable, we could do some automated external versioning (some bot looking at lxr).
find . -name "*.tmpl" -exec perl -ni -e 'print unless /^\[\%# \d+\.\d+\@bugzilla.org \%\]$/' {} \;

... is a not too elegant way of doing this.

I always liked the theory behind versioning - would it not help localisers if it were implemented - or do localisers use cvs for seeing what has changed?
Gavin, feel free to attach a patch. ;)
It seems what I said in comment 4 is a bit confusing.
As a localizer, I like the idea behind versioning as well. Currently, I use CVS. Because I want to merge *all* changes in (think forgotten filters), I think CVS will for the foreseeable future stay the tool of choice.
But the hint that template versioning can give would be useful anyway. The manual versioning turned out not to be feasible, so what my proposal of comment 4 meant is this: what about if the interface section in a template (the place where we describe the parameters the template accepts) was machine readable? We could then have a bot look at these interface definitions in lxr, and bump the template's version (outside of CVS).
(In reply to comment #7)
> 4 meant is this: what about if the interface section in a template (the place
> where we describe the parameters the template accepts) was machine readable?

Not updating the INTERFACE doesn't mean the template is still compatible with older ones. Think e.g. replacing a 'product' name by an object, so that you have to replace [% product FILTER html %] by [% product.name FILTER html %] everywhere. And moreover, the INTERFACE is often incomplete and not up-to-date, so I wouldn't rely on it.
Precisely. That's another example of why maintainers of alternative template sets want to pick up *all* changes, and will therefore keep using CVS as a primary tool.
I'm surprised that justdave's idea in bug 98658 comment 2 has not been tested. If [%# $Id$ %] works, we could set it as the first line of each template. I see that docs/xml/installation.xml already uses $Id$ at line 2.
While using $Id$ is nice (and I would appreciate the version headers being replaced by something using it), interface versioning is different because it doesn't change with every check-in.

We're expecting a move from CVS to Mercurial. Does Mercurial have something similar?
(In reply to comment #11)
> replaced by something using it), interface versioning is different because it
> doesn't change with every check-in.

But I cannot imagine a localizer looking at the interface only to decide if he has to change something or not. There are obvious examples where an up-to-date interface being unchanged between 2 checkins would result in an error:

Common:

[%# INTERFACE
  # product: an product object
  # %]

Old template:

  <input type="hidden" name="name" value="[% product.name FILTER html %]">

New template:

  <input type="hidden" name="id" value="[% product.id FILTER none %]">

So, IMO, *all* checkins must increase this ID number.
As I already said twice (comment 7 and comment 9), I agree that most of the times, you want to pick up *all* changes. And as I said in comment 11, I'd like to see the Id information. (Localizers who use CVS for version control won't be able to compare revision numbers, though.)
I don't want to see the old template versions which tell us changes in the interface replaced immediately. I'm saying that 1) it is a useful additional information, 2) maintaining it manually seems not to work, and 3) maybe we can introduce an automated way at some time.
The ID information from $Id$ seems useless to me. If you want to see if a file has changed, use diff. $Id$ doesn't tell you anything more than diff does, and it makes merging more complicated (because the $Id$ strings always cause a conflict). Version control systems have moved away from in-file metadata for good reason.

No-one denies that this template versioning scheme was a good idea in principle, and that (when used correctly) the information might be useful. But the point is that _no-one_ has ever done it. So the argument "we should keep it because it's useful" doesn't work, unless we are about to experience a revolution in diligence among Bugzilla developers. If not, it's misleading and should be removed.

There's no easy automated way to maintain this information, because it's rather hard to analyse and capture the state of the interface between a template and the engine to a sufficient degree of fidelity.

Gerv
As requested :)

I'm still not 100% persuaded on the removal, but here it is if people want to. As I said before, I like the idea of helping localisers, but I'm not sure how best to do that using the version numbers.
Assignee: general → bugzilla
Status: NEW → ASSIGNED
Attachment #277134 - Flags: review?(LpSolit)
Comment on attachment 277134 [details] [diff] [review]
Remove version from template files v1

You still have to remove the check from t/004template.t, see https://bugzilla.mozilla.org/attachment.cgi?id=77337&action=diff#mozilla/webtools/bugzilla/t/004template.t_sec1
Attachment #277134 - Flags: review?(LpSolit) → review-
Oops - sorry. You can tell I've been out of the game for a while!

This one does not remove the test for versions, but reverses it to check that a version does not exist. (I'll remove it if you want...)
Attachment #277134 - Attachment is obsolete: true
Attachment #277167 - Flags: review?(LpSolit)
(In reply to comment #17)
> This one does not remove the test for versions, but reverses it to check that a
> version does not exist. (I'll remove it if you want...)

Yes, please, remove the check entirely. We don't care if a template still has it, and this way runtests.pl won't complain about custom templates which use it.
Comment on attachment 277167 [details] [diff] [review]
Remove version from template files v2

As said in my previous comment, remove the check entirely.
Attachment #277167 - Flags: review?(LpSolit) → review-
Now with no check for template version strings
Attachment #277167 - Attachment is obsolete: true
Attachment #277219 - Flags: review?(LpSolit)
Comment on attachment 277219 [details] [diff] [review]
Remove version from template files v3

Thanks! r=LpSolit
Attachment #277219 - Flags: review?(LpSolit) → review+
Gavin, you have CVS checkin privs, right?
Flags: approval+
The last item of http://www.bugzilla.org/docs/developer.html#templates will also need to be removed. I can do it.
(In reply to comment #23)
> The last item of http://www.bugzilla.org/docs/developer.html#templates will
> also need to be removed. I can do it.
 
r=vladd for the website changes consisting in removing the item specified in the comment above.
(In reply to comment #24)
> r=vladd for the website changes consisting in removing the item specified in
> the comment above.

OK, done.

Checking in bugzilla-org/src/docs/developer.html;
/www/bugzilla-org/src/docs/developer.html,v  <--  developer.html
new revision: 1.13; previous revision: 1.12
done
(In reply to comment #22)
> Gavin, you have CVS checkin privs, right?

No, so if someone else could check-in, that would be great, thanks.
mozilla/webtools/bugzilla/template/en/default/bug/create/comment-guided.txt.tmpl        1.6
mozilla/webtools/bugzilla/template/en/default/bug/create/comment.txt.tmpl       1.5
mozilla/webtools/bugzilla/template/en/default/bug/create/confirm-create-dupe.html.tmpl  1.4
mozilla/webtools/bugzilla/template/en/default/bug/create/create-guided.html.tmpl        1.39
mozilla/webtools/bugzilla/template/en/default/bug/create/create.html.tmpl       1.78
mozilla/webtools/bugzilla/template/en/default/bug/create/created.html.tmpl      1.11
mozilla/webtools/bugzilla/template/en/default/bug/create/make-template.html.tmpl        1.10
mozilla/webtools/bugzilla/template/en/default/bug/create/user-message.html.tmpl         1.5
mozilla/webtools/bugzilla/template/en/default/bug/process/bugmail.html.tmpl     1.8
mozilla/webtools/bugzilla/template/en/default/bug/process/confirm-duplicate.html.tmpl   1.12
mozilla/webtools/bugzilla/template/en/default/bug/process/header.html.tmpl      1.7
mozilla/webtools/bugzilla/template/en/default/bug/process/midair.html.tmpl      1.20
mozilla/webtools/bugzilla/template/en/default/bug/process/results.html.tmpl     1.12
mozilla/webtools/bugzilla/template/en/default/bug/process/verify-new-product.html.tmpl  1.23
mozilla/webtools/bugzilla/template/en/default/bug/votes/delete-all.html.tmpl    1.8
mozilla/webtools/bugzilla/template/en/default/bug/votes/list-for-bug.html.tmpl  1.12
mozilla/webtools/bugzilla/template/en/default/bug/votes/list-for-user.html.tmpl         1.26
mozilla/webtools/bugzilla/template/en/default/email/newchangedmail.txt.tmpl     1.9
mozilla/webtools/bugzilla/template/en/default/email/sanitycheck.txt.tmpl        1.3
mozilla/webtools/bugzilla/template/en/default/email/sudo.txt.tmpl       1.5
mozilla/webtools/bugzilla/template/en/default/email/votes-removed.txt.tmpl      1.4
mozilla/webtools/bugzilla/template/en/default/email/whine.txt.tmpl      1.6
mozilla/webtools/bugzilla/template/en/default/flag/list.html.tmpl       1.30
mozilla/webtools/bugzilla/template/en/default/global/banner.html.tmpl   1.11
mozilla/webtools/bugzilla/template/en/default/global/choose-classification.html.tmpl    1.10
mozilla/webtools/bugzilla/template/en/default/global/choose-product.html.tmpl   1.18
mozilla/webtools/bugzilla/template/en/default/global/code-error.html.tmpl       1.102
mozilla/webtools/bugzilla/template/en/default/global/common-links.html.tmpl     1.10
mozilla/webtools/bugzilla/template/en/default/global/confirm-user-match.html.tmpl       1.19
mozilla/webtools/bugzilla/template/en/default/global/docslinks.html.tmpl        1.2
mozilla/webtools/bugzilla/template/en/default/global/field-descs.none.tmpl      1.22
mozilla/webtools/bugzilla/template/en/default/global/footer.html.tmpl   1.14
mozilla/webtools/bugzilla/template/en/default/global/header.html.tmpl   1.54
mozilla/webtools/bugzilla/template/en/default/global/help.html.tmpl     1.6
mozilla/webtools/bugzilla/template/en/default/global/hidden-fields.html.tmpl    1.11
mozilla/webtools/bugzilla/template/en/default/global/initialize.none.tmpl       1.2
mozilla/webtools/bugzilla/template/en/default/global/js-products.html.tmpl      1.3
mozilla/webtools/bugzilla/template/en/default/global/message.html.tmpl  1.8
mozilla/webtools/bugzilla/template/en/default/global/message.txt.tmpl   1.4
mozilla/webtools/bugzilla/template/en/default/global/messages.html.tmpl         1.64
mozilla/webtools/bugzilla/template/en/default/global/per-bug-queries.html.tmpl  1.12
mozilla/webtools/bugzilla/template/en/default/global/select-menu.html.tmpl      1.6
mozilla/webtools/bugzilla/template/en/default/global/setting-descs.none.tmpl    1.14
mozilla/webtools/bugzilla/template/en/default/global/site-navigation.html.tmpl  1.24
mozilla/webtools/bugzilla/template/en/default/global/tabs.html.tmpl     1.4
mozilla/webtools/bugzilla/template/en/default/global/textarea.html.tmpl         1.3
mozilla/webtools/bugzilla/template/en/default/global/useful-links.html.tmpl     1.59
mozilla/webtools/bugzilla/template/en/default/global/user-error.html.tmpl       1.225
mozilla/webtools/bugzilla/template/en/default/global/userselect.html.tmpl       1.8
mozilla/webtools/bugzilla/template/en/default/global/variables.none.tmpl        1.6
mozilla/webtools/bugzilla/template/en/default/list/change-columns.html.tmpl     1.15
mozilla/webtools/bugzilla/template/en/default/list/edit-multiple.html.tmpl      1.45
mozilla/webtools/bugzilla/template/en/default/list/list-simple.html.tmpl        1.12
mozilla/webtools/bugzilla/template/en/default/list/list.atom.tmpl       1.5
mozilla/webtools/bugzilla/template/en/default/list/list.csv.tmpl        1.7
mozilla/webtools/bugzilla/template/en/default/list/list.html.tmpl       1.55
mozilla/webtools/bugzilla/template/en/default/list/list.ics.tmpl        1.8
mozilla/webtools/bugzilla/template/en/default/list/list.js.tmpl         1.3
mozilla/webtools/bugzilla/template/en/default/list/list.rdf.tmpl        1.7
mozilla/webtools/bugzilla/template/en/default/list/quips.html.tmpl      1.21
mozilla/webtools/bugzilla/template/en/default/list/server-push.html.tmpl        1.7
mozilla/webtools/bugzilla/template/en/default/list/table.html.tmpl      1.34
mozilla/webtools/bugzilla/template/en/default/pages/bug-writing.html.tmpl       1.9
mozilla/webtools/bugzilla/template/en/default/pages/fields.html.tmpl    1.11
mozilla/webtools/bugzilla/template/en/default/pages/linked.html.tmpl    1.9
mozilla/webtools/bugzilla/template/en/default/pages/linkify.html.tmpl   1.9
mozilla/webtools/bugzilla/template/en/default/pages/quicksearch.html.tmpl       1.3
mozilla/webtools/bugzilla/template/en/default/pages/quicksearchhack.html.tmpl   1.6
mozilla/webtools/bugzilla/template/en/default/pages/release-notes.html.tmpl     1.9
mozilla/webtools/bugzilla/template/en/default/pages/sudo.html.tmpl      1.2
mozilla/webtools/bugzilla/template/en/default/pages/voting.html.tmpl    1.4
mozilla/webtools/bugzilla/template/en/default/reports/chart.csv.tmpl    1.3
mozilla/webtools/bugzilla/template/en/default/reports/chart.html.tmpl   1.4
mozilla/webtools/bugzilla/template/en/default/reports/chart.png.tmpl    1.6
mozilla/webtools/bugzilla/template/en/default/reports/components.html.tmpl      1.13
mozilla/webtools/bugzilla/template/en/default/reports/create-chart.html.tmpl    1.16
mozilla/webtools/bugzilla/template/en/default/reports/duplicates-simple.html.tmpl       1.5
mozilla/webtools/bugzilla/template/en/default/reports/duplicates-table.html.tmpl        1.14
mozilla/webtools/bugzilla/template/en/default/reports/duplicates.html.tmpl      1.18
mozilla/webtools/bugzilla/template/en/default/reports/duplicates.rdf.tmpl       1.4
mozilla/webtools/bugzilla/template/en/default/reports/edit-series.html.tmpl     1.7
mozilla/webtools/bugzilla/template/en/default/reports/keywords.html.tmpl        1.10
mozilla/webtools/bugzilla/template/en/default/reports/menu.html.tmpl    1.8
mozilla/webtools/bugzilla/template/en/default/reports/old-charts.html.tmpl      1.2
mozilla/webtools/bugzilla/template/en/default/reports/report-bar.png.tmpl       1.8
mozilla/webtools/bugzilla/template/en/default/reports/report-line.png.tmpl      1.9
mozilla/webtools/bugzilla/template/en/default/reports/report-pie.png.tmpl       1.7
mozilla/webtools/bugzilla/template/en/default/reports/report-simple.html.tmpl   1.3
mozilla/webtools/bugzilla/template/en/default/reports/report-table.csv.tmpl     1.11
mozilla/webtools/bugzilla/template/en/default/reports/report-table.html.tmpl    1.16
mozilla/webtools/bugzilla/template/en/default/reports/report.csv.tmpl   1.3
mozilla/webtools/bugzilla/template/en/default/reports/report.html.tmpl  1.14
mozilla/webtools/bugzilla/template/en/default/reports/series-common.html.tmpl   1.5
mozilla/webtools/bugzilla/template/en/default/reports/series.html.tmpl  1.9
mozilla/webtools/bugzilla/template/en/default/request/email.txt.tmpl    1.19
mozilla/webtools/bugzilla/template/en/default/request/queue.html.tmpl   1.19
mozilla/webtools/bugzilla/template/en/default/search/boolean-charts.html.tmpl   1.16
mozilla/webtools/bugzilla/template/en/default/search/form.html.tmpl     1.50
mozilla/webtools/bugzilla/template/en/default/search/knob.html.tmpl     1.21
mozilla/webtools/bugzilla/template/en/default/search/search-advanced.html.tmpl  1.31
mozilla/webtools/bugzilla/template/en/default/search/search-create-series.html.tmpl     1.13
mozilla/webtools/bugzilla/template/en/default/search/search-help.html.tmpl      1.10
mozilla/webtools/bugzilla/template/en/default/search/search-plugin.xml.tmpl     1.4
mozilla/webtools/bugzilla/template/en/default/search/search-report-graph.html.tmpl      1.11
mozilla/webtools/bugzilla/template/en/default/search/search-report-select.html.tmpl     1.7
mozilla/webtools/bugzilla/template/en/default/search/search-report-table.html.tmpl      1.12
mozilla/webtools/bugzilla/template/en/default/search/search-specific.html.tmpl  1.24
mozilla/webtools/bugzilla/template/en/default/search/tabs.html.tmpl     1.7
mozilla/webtools/bugzilla/template/en/default/whine/mail.html.tmpl      1.7
mozilla/webtools/bugzilla/template/en/default/whine/mail.txt.tmpl       1.7
mozilla/webtools/bugzilla/template/en/default/whine/multipart-mime.txt.tmpl     1.6
mozilla/webtools/bugzilla/template/en/default/whine/schedule.html.tmpl  1.10
mozilla/webtools/bugzilla/t/004template.t       1.39
mozilla/webtools/bugzilla/template/en/default/config.js.tmpl    1.9
mozilla/webtools/bugzilla/template/en/default/config.rdf.tmpl   1.9
mozilla/webtools/bugzilla/template/en/default/index.html.tmpl   1.39
mozilla/webtools/bugzilla/template/en/default/sidebar.xul.tmpl  1.25
mozilla/webtools/bugzilla/template/en/default/welcome-admin.html.tmpl   1.3
mozilla/webtools/bugzilla/template/en/default/account/cancel-token.txt.tmpl     1.14
mozilla/webtools/bugzilla/template/en/default/account/create.html.tmpl  1.12
mozilla/webtools/bugzilla/template/en/default/account/created.html.tmpl         1.9
mozilla/webtools/bugzilla/template/en/default/account/profile-activity.html.tmpl        1.4
mozilla/webtools/bugzilla/template/en/default/account/auth/login-small.html.tmpl        1.10
mozilla/webtools/bugzilla/template/en/default/account/auth/login.html.tmpl      1.20
mozilla/webtools/bugzilla/template/en/default/account/email/change-new.txt.tmpl         1.12
mozilla/webtools/bugzilla/template/en/default/account/email/change-old.txt.tmpl         1.13
mozilla/webtools/bugzilla/template/en/default/account/email/confirm-new.html.tmpl       1.5
mozilla/webtools/bugzilla/template/en/default/account/email/confirm.html.tmpl   1.11
mozilla/webtools/bugzilla/template/en/default/account/email/request-new.txt.tmpl        1.6
mozilla/webtools/bugzilla/template/en/default/account/password/forgotten-password.txt.tmpl      1.10
mozilla/webtools/bugzilla/template/en/default/account/password/set-forgotten-password.html.tmpl         1.8
mozilla/webtools/bugzilla/template/en/default/account/prefs/account.html.tmpl   1.9
mozilla/webtools/bugzilla/template/en/default/account/prefs/email.html.tmpl     1.30
mozilla/webtools/bugzilla/template/en/default/account/prefs/permissions.html.tmpl       1.13
mozilla/webtools/bugzilla/template/en/default/account/prefs/prefs.html.tmpl     1.29
mozilla/webtools/bugzilla/template/en/default/account/prefs/saved-searches.html.tmpl    1.17
mozilla/webtools/bugzilla/template/en/default/account/prefs/settings.html.tmpl  1.6
mozilla/webtools/bugzilla/template/en/default/admin/admin.html.tmpl     1.4
mozilla/webtools/bugzilla/template/en/default/admin/confirm-action.html.tmpl    1.2
mozilla/webtools/bugzilla/template/en/default/admin/sudo.html.tmpl      1.6
mozilla/webtools/bugzilla/template/en/default/admin/table.html.tmpl     1.9
mozilla/webtools/bugzilla/template/en/default/admin/classifications/add.html.tmpl       1.5
mozilla/webtools/bugzilla/template/en/default/admin/classifications/del.html.tmpl       1.8
mozilla/webtools/bugzilla/template/en/default/admin/classifications/delete.html.tmpl    1.3
mozilla/webtools/bugzilla/template/en/default/admin/classifications/edit.html.tmpl      1.11
mozilla/webtools/bugzilla/template/en/default/admin/classifications/new.html.tmpl       1.3
mozilla/webtools/bugzilla/template/en/default/admin/classifications/reclassify.html.tmpl        1.8
mozilla/webtools/bugzilla/template/en/default/admin/classifications/select.html.tmpl    1.8
mozilla/webtools/bugzilla/template/en/default/admin/classifications/update.html.tmpl    1.3
mozilla/webtools/bugzilla/template/en/default/admin/components/confirm-delete.html.tmpl         1.11
mozilla/webtools/bugzilla/template/en/default/admin/components/create.html.tmpl         1.13
mozilla/webtools/bugzilla/template/en/default/admin/components/created.html.tmpl        1.3
mozilla/webtools/bugzilla/template/en/default/admin/components/deleted.html.tmpl        1.5
mozilla/webtools/bugzilla/template/en/default/admin/components/edit.html.tmpl   1.15
mozilla/webtools/bugzilla/template/en/default/admin/components/footer.html.tmpl         1.4
mozilla/webtools/bugzilla/template/en/default/admin/components/list.html.tmpl   1.6
mozilla/webtools/bugzilla/template/en/default/admin/components/select-product.html.tmpl         1.4
mozilla/webtools/bugzilla/template/en/default/admin/components/updated.html.tmpl        1.8
mozilla/webtools/bugzilla/template/en/default/admin/custom_fields/create.html.tmpl      1.8
mozilla/webtools/bugzilla/template/en/default/admin/custom_fields/edit.html.tmpl        1.6
mozilla/webtools/bugzilla/template/en/default/admin/custom_fields/list.html.tmpl        1.5
mozilla/webtools/bugzilla/template/en/default/admin/fieldvalues/confirm-delete.html.tmpl        1.9
mozilla/webtools/bugzilla/template/en/default/admin/fieldvalues/create.html.tmpl        1.9
mozilla/webtools/bugzilla/template/en/default/admin/fieldvalues/created.html.tmpl       1.7
mozilla/webtools/bugzilla/template/en/default/admin/fieldvalues/deleted.html.tmpl       1.5
mozilla/webtools/bugzilla/template/en/default/admin/fieldvalues/edit.html.tmpl  1.11
mozilla/webtools/bugzilla/template/en/default/admin/fieldvalues/footer.html.tmpl        1.6
mozilla/webtools/bugzilla/template/en/default/admin/fieldvalues/list.html.tmpl  1.8
mozilla/webtools/bugzilla/template/en/default/admin/fieldvalues/select-field.html.tmpl  1.4
mozilla/webtools/bugzilla/template/en/default/admin/fieldvalues/updated.html.tmpl       1.6
mozilla/webtools/bugzilla/template/en/default/admin/flag-type/confirm-delete.html.tmpl  1.8
mozilla/webtools/bugzilla/template/en/default/admin/flag-type/edit.html.tmpl    1.25
mozilla/webtools/bugzilla/template/en/default/admin/flag-type/list.html.tmpl    1.18
mozilla/webtools/bugzilla/template/en/default/admin/groups/confirm-remove.html.tmpl     1.2
mozilla/webtools/bugzilla/template/en/default/admin/groups/create.html.tmpl     1.10
mozilla/webtools/bugzilla/template/en/default/admin/groups/created.html.tmpl    1.2
mozilla/webtools/bugzilla/template/en/default/admin/groups/delete.html.tmpl     1.11
mozilla/webtools/bugzilla/template/en/default/admin/groups/deleted.html.tmpl    1.4
mozilla/webtools/bugzilla/template/en/default/admin/groups/edit.html.tmpl       1.16
mozilla/webtools/bugzilla/template/en/default/admin/groups/list.html.tmpl       1.12
mozilla/webtools/bugzilla/template/en/default/admin/groups/remove.html.tmpl     1.4
mozilla/webtools/bugzilla/template/en/default/admin/keywords/confirm-delete.html.tmpl   1.7
mozilla/webtools/bugzilla/template/en/default/admin/keywords/create.html.tmpl   1.9
mozilla/webtools/bugzilla/template/en/default/admin/keywords/created.html.tmpl  1.3
mozilla/webtools/bugzilla/template/en/default/admin/keywords/edit.html.tmpl     1.10
mozilla/webtools/bugzilla/template/en/default/admin/keywords/list.html.tmpl     1.11
mozilla/webtools/bugzilla/template/en/default/admin/keywords/rebuild-cache.html.tmpl    1.5
mozilla/webtools/bugzilla/template/en/default/admin/milestones/confirm-delete.html.tmpl         1.9
mozilla/webtools/bugzilla/template/en/default/admin/milestones/create.html.tmpl         1.8
mozilla/webtools/bugzilla/template/en/default/admin/milestones/created.html.tmpl        1.4
mozilla/webtools/bugzilla/template/en/default/admin/milestones/deleted.html.tmpl        1.6
mozilla/webtools/bugzilla/template/en/default/admin/milestones/edit.html.tmpl   1.9
mozilla/webtools/bugzilla/template/en/default/admin/milestones/footer.html.tmpl         1.4
mozilla/webtools/bugzilla/template/en/default/admin/milestones/list.html.tmpl   1.6
mozilla/webtools/bugzilla/template/en/default/admin/milestones/select-product.html.tmpl         1.5
mozilla/webtools/bugzilla/template/en/default/admin/milestones/updated.html.tmpl        1.4
mozilla/webtools/bugzilla/template/en/default/admin/params/admin.html.tmpl      1.4
mozilla/webtools/bugzilla/template/en/default/admin/params/attachment.html.tmpl         1.4
mozilla/webtools/bugzilla/template/en/default/admin/params/auth.html.tmpl       1.3
mozilla/webtools/bugzilla/template/en/default/admin/params/bugchange.html.tmpl  1.6
mozilla/webtools/bugzilla/template/en/default/admin/params/bugfields.html.tmpl  1.4
mozilla/webtools/bugzilla/template/en/default/admin/params/bugmove.html.tmpl    1.3
mozilla/webtools/bugzilla/template/en/default/admin/params/common.html.tmpl     1.5
mozilla/webtools/bugzilla/template/en/default/admin/params/core.html.tmpl       1.8
mozilla/webtools/bugzilla/template/en/default/admin/params/dependencygraph.html.tmpl    1.2
mozilla/webtools/bugzilla/template/en/default/admin/params/editparams.html.tmpl         1.7
mozilla/webtools/bugzilla/template/en/default/admin/params/groupsecurity.html.tmpl      1.5
mozilla/webtools/bugzilla/template/en/default/admin/params/index.html.tmpl      1.2
mozilla/webtools/bugzilla/template/en/default/admin/params/l10n.html.tmpl       1.3
mozilla/webtools/bugzilla/template/en/default/admin/params/ldap.html.tmpl       1.7
mozilla/webtools/bugzilla/template/en/default/admin/params/mta.html.tmpl        1.11
mozilla/webtools/bugzilla/template/en/default/admin/params/patchviewer.html.tmpl        1.3
mozilla/webtools/bugzilla/template/en/default/admin/params/query.html.tmpl      1.4
mozilla/webtools/bugzilla/template/en/default/admin/params/radius.html.tmpl     1.2
mozilla/webtools/bugzilla/template/en/default/admin/params/shadowdb.html.tmpl   1.2
mozilla/webtools/bugzilla/template/en/default/admin/params/usermatch.html.tmpl  1.3
mozilla/webtools/bugzilla/template/en/default/admin/products/confirm-delete.html.tmpl   1.8
mozilla/webtools/bugzilla/template/en/default/admin/products/create.html.tmpl   1.5
mozilla/webtools/bugzilla/template/en/default/admin/products/created.html.tmpl  1.4
mozilla/webtools/bugzilla/template/en/default/admin/products/deleted.html.tmpl  1.5
mozilla/webtools/bugzilla/template/en/default/admin/products/edit-common.html.tmpl      1.9
mozilla/webtools/bugzilla/template/en/default/admin/products/edit.html.tmpl     1.11
mozilla/webtools/bugzilla/template/en/default/admin/products/footer.html.tmpl   1.11
mozilla/webtools/bugzilla/template/en/default/admin/products/list-classifications.html.tmpl     1.3
mozilla/webtools/bugzilla/template/en/default/admin/products/list.html.tmpl     1.5
mozilla/webtools/bugzilla/template/en/default/admin/products/updated.html.tmpl  1.7
mozilla/webtools/bugzilla/template/en/default/admin/products/groupcontrol/confirm-edit.html.tmpl        1.9
mozilla/webtools/bugzilla/template/en/default/admin/products/groupcontrol/edit.html.tmpl        1.10
mozilla/webtools/bugzilla/template/en/default/admin/products/groupcontrol/updated.html.tmpl     1.3
mozilla/webtools/bugzilla/template/en/default/admin/sanitycheck/list.html.tmpl  1.2
mozilla/webtools/bugzilla/template/en/default/admin/sanitycheck/messages.html.tmpl      1.2
mozilla/webtools/bugzilla/template/en/default/admin/settings/edit.html.tmpl     1.8
mozilla/webtools/bugzilla/template/en/default/admin/settings/updated.html.tmpl  1.4
mozilla/webtools/bugzilla/template/en/default/admin/users/confirm-delete.html.tmpl      1.18
mozilla/webtools/bugzilla/template/en/default/admin/users/create.html.tmpl      1.4
mozilla/webtools/bugzilla/template/en/default/admin/users/edit.html.tmpl        1.14
mozilla/webtools/bugzilla/template/en/default/admin/users/list.html.tmpl        1.5
mozilla/webtools/bugzilla/template/en/default/admin/users/listselectvars.html.tmpl      1.2
mozilla/webtools/bugzilla/template/en/default/admin/users/responsibilities.html.tmpl    1.2
mozilla/webtools/bugzilla/template/en/default/admin/users/search.html.tmpl      1.5
mozilla/webtools/bugzilla/template/en/default/admin/users/userdata.html.tmpl    1.11
mozilla/webtools/bugzilla/template/en/default/admin/versions/confirm-delete.html.tmpl   1.8
mozilla/webtools/bugzilla/template/en/default/admin/versions/create.html.tmpl   1.7
mozilla/webtools/bugzilla/template/en/default/admin/versions/created.html.tmpl  1.4
mozilla/webtools/bugzilla/template/en/default/admin/versions/deleted.html.tmpl  1.5
mozilla/webtools/bugzilla/template/en/default/admin/versions/edit.html.tmpl     1.7
mozilla/webtools/bugzilla/template/en/default/admin/versions/footer.html.tmpl   1.4
mozilla/webtools/bugzilla/template/en/default/admin/versions/list.html.tmpl     1.5
mozilla/webtools/bugzilla/template/en/default/admin/versions/select-product.html.tmpl   1.4
mozilla/webtools/bugzilla/template/en/default/admin/versions/updated.html.tmpl  1.5
mozilla/webtools/bugzilla/template/en/default/admin/workflow/comment.html.tmpl  1.3
mozilla/webtools/bugzilla/template/en/default/admin/workflow/edit.html.tmpl     1.4
mozilla/webtools/bugzilla/template/en/default/attachment/choose.html.tmpl       1.6
mozilla/webtools/bugzilla/template/en/default/attachment/confirm-delete.html.tmpl       1.5
mozilla/webtools/bugzilla/template/en/default/attachment/content-types.html.tmpl        1.6
mozilla/webtools/bugzilla/template/en/default/attachment/create.html.tmpl       1.32
mozilla/webtools/bugzilla/template/en/default/attachment/created.html.tmpl      1.15
mozilla/webtools/bugzilla/template/en/default/attachment/createformcontents.html.tmpl   1.2
mozilla/webtools/bugzilla/template/en/default/attachment/delete_reason.txt.tmpl         1.3
mozilla/webtools/bugzilla/template/en/default/attachment/diff-file.html.tmpl    1.7
mozilla/webtools/bugzilla/template/en/default/attachment/diff-footer.html.tmpl  1.3
mozilla/webtools/bugzilla/template/en/default/attachment/diff-header.html.tmpl  1.17
mozilla/webtools/bugzilla/template/en/default/attachment/edit.html.tmpl         1.45
mozilla/webtools/bugzilla/template/en/default/attachment/list.html.tmpl         1.38
mozilla/webtools/bugzilla/template/en/default/attachment/show-multiple.html.tmpl        1.24
mozilla/webtools/bugzilla/template/en/default/attachment/updated.html.tmpl      1.14
mozilla/webtools/bugzilla/template/en/default/bug/choose.html.tmpl      1.8
mozilla/webtools/bugzilla/template/en/default/bug/comments.html.tmpl    1.33
mozilla/webtools/bugzilla/template/en/default/bug/dependency-graph.html.tmpl    1.14
mozilla/webtools/bugzilla/template/en/default/bug/dependency-tree.html.tmpl     1.26
mozilla/webtools/bugzilla/template/en/default/bug/edit.html.tmpl        1.106
mozilla/webtools/bugzilla/template/en/default/bug/field.html.tmpl       1.9
mozilla/webtools/bugzilla/template/en/default/bug/keyword-chooser.html.tmpl     1.2
mozilla/webtools/bugzilla/template/en/default/bug/knob.html.tmpl        1.35
mozilla/webtools/bugzilla/template/en/default/bug/navigate.html.tmpl    1.10
mozilla/webtools/bugzilla/template/en/default/bug/show-multiple.html.tmpl       1.37
mozilla/webtools/bugzilla/template/en/default/bug/show.html.tmpl        1.19
mozilla/webtools/bugzilla/template/en/default/bug/show.xml.tmpl         1.22
mozilla/webtools/bugzilla/template/en/default/bug/summarize-time.html.tmpl      1.9
mozilla/webtools/bugzilla/template/en/default/bug/time.html.tmpl        1.3
mozilla/webtools/bugzilla/template/en/default/bug/activity/show.html.tmpl       1.9
mozilla/webtools/bugzilla/template/en/default/bug/activity/table.html.tmpl      1.15
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: relnote
Resolution: --- → FIXED
I'm currently localizing Bugzilla 3.1.x from bz 3.0.x fr . Did you use a script to modify all the templates at once? If so, it would be very useful for all localizers to put it in a comment here.
Thanks
Cédric, for the German translation, I simply applied this bug's patch to the localized templates.
(In reply to comment #28)
> I'm currently localizing Bugzilla 3.1.x from bz 3.0.x fr . Did you use a script
> to modify all the templates at once? If so, it would be very useful for all
> localizers to put it in a comment here.
> Thanks
> 

The command in comment#5 worked for 95% of the changes, and then there were a few to fix manually, as they were in slightly different formats.

Or, as Marc says, the patch could probably be used as-is from the top of the translated templates dir

(Sorry for making it awkward for localizers)
May be, it is possible to use gettext style of localization ?

I mean, mark in templates all translatable phrases using special markup,
use xgettext or custom-made script to produce .po database files, translate them and compose templates back under different locale?

gettext license doesn't matter, because we don't link with gettext library, just use some tools (msgmerge).

In this case, it will be much easier to reuse translations from previous versions of bugzilla localization templates.

I have successfully use this method for my projects and it seems to work very well.
(In reply to comment #31)
> May be, it is possible to use gettext style of localization ?

Unrelated to this bug. Have a look at bug 407752 instead.
Added to the release notes for Bugzilla 3.2 in a patch on bug 432331.
Keywords: relnote
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: