From bc19204d3dffa448b364bfa4b5691a24f39f6765 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Fri, 4 Dec 2009 14:28:47 +0000 Subject: Bug 452919: Allow the "created an attachment" message in comments to be localized Patch by Max Kanat-Alexander r=LpSolit, a=LpSolit --- template/en/default/global/code-error.html.tmpl | 17 +++++++++++++++++ template/en/default/global/user-error.html.tmpl | 4 +++- 2 files changed, 20 insertions(+), 1 deletion(-) (limited to 'template/en/default/global') diff --git a/template/en/default/global/code-error.html.tmpl b/template/en/default/global/code-error.html.tmpl index 09a1c4cf6..e851a00d9 100644 --- a/template/en/default/global/code-error.html.tmpl +++ b/template/en/default/global/code-error.html.tmpl @@ -120,6 +120,23 @@ without specifying a default or something for $set_nulls_to, because there are NULL values currently in it. + [% ELSIF error == "comment_extra_data_not_allowed" %] + You tried to set the extra_data field to + '[% extra_data FILTER html %]' but comments of type [% type FILTER html %] + do not accept an extra_data argument. + + [% ELSIF error == "comment_extra_data_required" %] + Comments of type [% type FILTER html %] require an extra_data + argument to be set. + + [% ELSIF error == "comment_extra_data_not_numeric" %] + You tried to set the extra_data field to + '[% extra_data FILTER html %]' but comments of type [% type FILTER html %] + require a numeric extra_data argument. + + [% ELSIF error == "comment_type_invalid" %] + '[% type FILTER html %]' is not a valid comment type. + [% ELSIF error == "db_rename_conflict" %] Name conflict: Cannot rename [% old FILTER html %] to [% new FILTER html %] because [% new FILTER html %] already exists. diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index 144e2e7ea..c3e84c0ab 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -1721,7 +1721,9 @@ [% PROCESS global/footer.html.tmpl %] [% BLOCK object_name %] - [% IF class == "Bugzilla::User" %] + [% IF class == "Bugzilla::Attachment" %] + attachment + [% ELSIF class == "Bugzilla::User" %] user [% ELSIF class == "Bugzilla::Component" %] component -- cgit v1.2.1