Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
24ad8585
Commit
24ad8585
authored
Aug 15, 2002
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 162216 - colchange.cgi, buglist.cgi and page.cgi messages should be…
Bug 162216 - colchange.cgi, buglist.cgi and page.cgi messages should be l10nable. Patch by burnus; r=gerv.
parent
24f06218
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
20 deletions
+45
-20
buglist.cgi
buglist.cgi
+9
-16
colchange.cgi
colchange.cgi
+1
-2
page.cgi
page.cgi
+1
-2
messages.html.tmpl
template/en/default/global/messages.html.tmpl
+34
-0
No files found.
buglist.cgi
View file @
24ad8585
...
...
@@ -58,12 +58,7 @@ use vars qw($db_name
@versions)
;
if
(
length
(
$::buffer
)
==
0
)
{
$vars
->
{
'title'
}
=
"Parameters Required"
;
$vars
->
{
'message'
}
=
"This script is not meant to be invoked without any
search terms."
;
$vars
->
{
'url'
}
=
"query.cgi"
;
$vars
->
{
'link'
}
=
"Please use the search form to specify some search
criteria."
;
$vars
->
{
'message'
}
=
"buglist_parameters_required"
;
print
"Refresh: 10; URL=query.cgi\n"
;
print
"Content-Type: text/html\n\n"
;
$template
->
process
(
"global/message.html.tmpl"
,
$vars
)
...
...
@@ -138,9 +133,8 @@ if ($::buffer =~ /&cmd-/) {
print
"Refresh: 0; URL=$url\n"
;
print
"Content-Type: text/html\n\n"
;
# Generate and return the UI (HTML page) from the appropriate template.
$vars
->
{
'
title'
}
=
"Adding field to query page...
"
;
$vars
->
{
'
message'
}
=
"buglist_adding_field
"
;
$vars
->
{
'url'
}
=
$url
;
$vars
->
{
'link'
}
=
"Click here if the page does not redisplay automatically."
;
$template
->
process
(
"global/message.html.tmpl"
,
$vars
)
||
ThrowTemplateError
(
$template
->
error
());
exit
;
...
...
@@ -259,9 +253,9 @@ if ($::FORM{'cmdtype'} eq "dorem") {
print
"Refresh: 0; URL=$url\n"
;
print
"Content-Type: text/html\n\n"
;
# Generate and return the UI (HTML page) from the appropriate template.
$vars
->
{
'title'
}
=
"Loading your query named $::FORM{'namedcmd'}"
;
$vars
->
{
'message'
}
=
"buglist_load_named_query"
;
$vars
->
{
'namedcmd'
}
=
$::FORM
{
'namedcmd'
};
$vars
->
{
'url'
}
=
$url
;
$vars
->
{
'link'
}
=
"Click here if the page does not redisplay automatically."
;
$template
->
process
(
"global/message.html.tmpl"
,
$vars
)
||
ThrowTemplateError
(
$template
->
error
());
exit
;
...
...
@@ -283,10 +277,9 @@ if ($::FORM{'cmdtype'} eq "dorem") {
print
"Content-Type: text/html\n\n"
;
# Generate and return the UI (HTML page) from the appropriate template.
$vars
->
{
'
title'
}
=
"Query is
gone"
;
$vars
->
{
'
message'
}
=
"OK, the <b>$::FORM{'namedcmd'}</b> query is gone."
;
$vars
->
{
'
message'
}
=
"buglist_query_
gone"
;
$vars
->
{
'
namedcmd'
}
=
$::FORM
{
'namedcmd'
}
;
$vars
->
{
'url'
}
=
"query.cgi"
;
$vars
->
{
'link'
}
=
"Go back to the query page."
;
$template
->
process
(
"global/message.html.tmpl"
,
$vars
)
||
ThrowTemplateError
(
$template
->
error
());
exit
;
...
...
@@ -301,8 +294,7 @@ elsif ($::FORM{'cmdtype'} eq "doit" && $::FORM{'remember'}) {
SendSQL
(
"REPLACE INTO namedqueries (userid, name, query)
VALUES ($userid, $qname, $qbuffer)"
);
# Generate and return the UI (HTML page) from the appropriate template.
$vars
->
{
'message'
}
=
"OK, you now have a new default query. You may
also bookmark the result of any individual query."
;
$vars
->
{
'message'
}
=
"buglist_new_default_query"
;
}
elsif
(
$::FORM
{
'remember'
}
==
1
&&
$::FORM
{
'remtype'
}
eq
"asnamed"
)
{
confirm_login
();
...
...
@@ -350,7 +342,8 @@ elsif ($::FORM{'cmdtype'} eq "doit" && $::FORM{'remember'}) {
push
(
@
{
$vars
->
{
'user'
}{
'queries'
}},
\%
query
);
}
$vars
->
{
'message'
}
=
"OK, you have a new query named <code>$name</code>."
;
$vars
->
{
'message'
}
=
"buglist_new_named_query"
;
$vars
->
{
'queryname'
}
=
$name
;
}
}
...
...
colchange.cgi
View file @
24ad8585
...
...
@@ -86,8 +86,7 @@ if (defined $::FORM{'rememberedquery'}) {
print
"Set-Cookie: SPLITHEADER=$::FORM{'splitheader'} ; path=$cookiepath ; expires=Sun, 30-Jun-2029 00:00:00 GMT\n"
;
print
"Refresh: 0; URL=buglist.cgi?$::FORM{'rememberedquery'}\n"
;
print
"Content-type: text/html\n\n"
;
$vars
->
{
'message'
}
=
"Resubmitting your query with new columns..."
;
$vars
->
{
'title'
}
=
"Change columns"
;
$vars
->
{
'message'
}
=
"change_columns"
;
$template
->
process
(
"global/message.html.tmpl"
,
$vars
)
||
ThrowTemplateError
(
$template
->
error
());
exit
;
...
...
page.cgi
View file @
24ad8585
...
...
@@ -52,8 +52,7 @@ if (defined $::FORM{'id'}) {
}
}
$vars
->
{
'title'
}
=
"Page not found"
;
$vars
->
{
'message'
}
=
"The page you requested cannot be found."
;
$vars
->
{
'message'
}
=
"page_not_found"
;
$template
->
process
(
"global/message.html.tmpl"
,
$vars
)
||
ThrowTemplateError
(
$template
->
error
());
template/en/default/global/messages.html.tmpl
View file @
24ad8585
...
...
@@ -32,6 +32,36 @@
of the message. It can contain arbitrary <b>HTML</b>, and also references
to any [% parameters %] which you may have set.
[% ELSIF message_tag == "buglist_adding_field" %]
[% title = "Adding field to query page..." %]
[% link = "Click here if the page does not redisplay automatically." %]
[% # --- %]
[% ELSIF message_tag == "buglist_load_named_query" %]
[% title = BLOCK %]Loading your query named [% namedcmd %][% END %]
[% link = "Click here if the page does not redisplay automatically." %]
[% # --- %]
[% ELSIF message_tag == "buglist_new_default_query" %]
OK, you now have a new default query. You may
also bookmark the result of any individual query.
[% ELSIF message_tag == "buglist_new_named_query" %]
OK, you have a new query named <code>[% queryname FILTER html %]</code>."
[% ELSIF message_tag == "buglist_parameters_required" %]
[% title = "Parameters Required" %]
[% url = "query.cgi" %]
[% link = "Please use the search form to specify some search criteria." %]
This script is not meant to be invoked without any search terms.
[% ELSIF message_tag == "buglist_query_gone" %]
[% title = "Query is gone" %]
[% link = "Go back to the query page." %]
OK, the <b>[% namedcmd FILTER html %]</b> query is gone.
[% ELSIF message_tag == "change_columns" %]
[% title = "Change columns" %]
Resubmitting your query with new columns...
[% ELSIF message_tag == "logged_out" %]
[% title = "Logged Out" %]
[% url = "query.cgi?GoAheadAndLogIn=1" %]
...
...
@@ -44,6 +74,10 @@
[% title = "Bugzilla Login Changed" %]
Your Bugzilla login has been changed.
[% ELSIF message_tag == "page_not_found" %]
[% title = "Page not found" %]
The page you requested cannot be found.
[% ELSIF message_tag == "password_changed" %]
[% title = "Password Changed" %]
Your password has been changed.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment