Commit 204fa576 authored by wurblzap%gmail.com's avatar wurblzap%gmail.com

Bug 341508 – GetBugLink() should be localisable.

Patch by Marc Schumann <wurblzap@gmail.com>; r=LpSolit, a=LpSolit
parent b70ab0a4
...@@ -307,14 +307,14 @@ sub get_bug_link { ...@@ -307,14 +307,14 @@ sub get_bug_link {
# if we don't change them below (which is highly likely). # if we don't change them below (which is highly likely).
my ($pre, $title, $post) = ("", "", ""); my ($pre, $title, $post) = ("", "", "");
$title = $bug_state; $title = get_text('get_status', {status => $bug_state});
if ($bug_state eq 'UNCONFIRMED') { if ($bug_state eq 'UNCONFIRMED') {
$pre = "<i>"; $pre = "<i>";
$post = "</i>"; $post = "</i>";
} }
elsif (!is_open_state($bug_state)) { elsif (!is_open_state($bug_state)) {
$pre = '<span class="bz_closed">'; $pre = '<span class="bz_closed">';
$title .= " $bug_res"; $title .= ' ' . get_text('get_resolution', {resolution => $bug_res});
$post = '</span>'; $post = '</span>';
} }
if (Bugzilla->user->can_see_bug($bug_num)) { if (Bugzilla->user->can_see_bug($bug_num)) {
......
...@@ -336,6 +336,15 @@ ...@@ -336,6 +336,15 @@
An error occured while validating flags: An error occured while validating flags:
[%+ flag_creation_error FILTER none %] [%+ flag_creation_error FILTER none %]
[% ELSIF message_tag == "get_field_desc" %]
[% field_descs.$field_name FILTER html %]
[% ELSIF message_tag == "get_resolution" %]
[% get_resolution(resolution) FILTER html %]
[% ELSIF message_tag == "get_status" %]
[% get_status(status) FILTER html %]
[% ELSIF message_tag == "group_created" %] [% ELSIF message_tag == "group_created" %]
[% title = "New Group Created" %] [% title = "New Group Created" %]
The group <em>[% group.name FILTER html %]</em> has been created. The group <em>[% group.name FILTER html %]</em> has been created.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment