Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1446236 - Allow customizing link to bug writing guidelines #56

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function validateAndSubmit() {
<input type="hidden" name="token" value="[% token FILTER html %]">

<div class="head_desc">
<a href="https://developer.mozilla.org/docs/Mozilla/QA/Bug_writing_guidelines">
<a href="[% terms.BugWritingGuidelinesURL %]">
[% terms.Bug %] writing guidelines</a>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
[% END +%]
[% UNLESS no_bug_guidelines %]
Before reporting a [% terms.bug %], make sure you've read our
<a href="https://developer.mozilla.org/docs/Mozilla/QA/Bug_writing_guidelines">
<a href="[% terms.BugWritingGuidelinesURL %]">
[% terms.bug %] writing guidelines</a> and double checked that your [% terms.bug %] hasn't already
been reported. Consult our list of <a href="https://bugzilla.mozilla.org/duplicates.cgi">
most frequently reported [% terms.bugs %]</a> and <a href="https://bugzilla.mozilla.org/query.cgi">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
#%]

[% PROCESS global/redirect.html.tmpl
url = "https://developer.mozilla.org/docs/Mozilla/QA/Bug_writing_guidelines"
url = terms.BugWritingGuidelinesURL
%]
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
<h2>See Also</h2>

<p>
<a href="https://developer.mozilla.org/docs/Mozilla/QA/Bug_writing_guidelines">The [% terms.Bug %] Writing Guidelines</a>.
<a href="[% terms.BugWritingGuidelinesURL %]">The [% terms.Bug %] Writing Guidelines</a>.
</p>

[% INCLUDE global/footer.html.tmpl %]
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ Product: <b><span id="dupes_product_name">?</span></b>:
<ul>
<li>Please fill out this form clearly, precisely and in as much detail as you can manage.</li>
<li>Please report only a single problem at a time.</li>
<li><a href="https://developer.mozilla.org/docs/Mozilla/QA/Bug_writing_guidelines" target="_blank" rel="noopener noreferrer">These guidelines</a>
<li><a href="[% terms.BugWritingGuidelinesURL %]" target="_blank" rel="noopener noreferrer">These guidelines</a>
explain how to write effective [% terms.bug %] reports.</li>
</ul>

Expand Down
2 changes: 1 addition & 1 deletion template/en/default/bug/create/user-message.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
[% PROCESS global/variables.none.tmpl %]

Before reporting [% terms.abug %], please read the
<a href="https://developer.mozilla.org/docs/Mozilla/QA/Bug_writing_guidelines">
<a href="[% terms.BugWritingGuidelinesURL %]">
[% terms.bug %] writing guidelines</a>, please look at the list of
<a href="[% basepath FILTER none %]duplicates.cgi">most frequently reported [% terms.bugs %]</a>, and please
<a href="[% basepath FILTER none %]query.cgi">search</a> for the [% terms.bug %].
4 changes: 3 additions & 1 deletion template/en/default/global/variables.none.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
"bugs" => "bugs",
"Bugs" => "Bugs",
"zeroSearchResults" => "Zarro Boogs found",
"Bugzilla" => "Bugzilla"
"Bugzilla" => "Bugzilla",

"BugWritingGuidelinesURL" => "https://developer.mozilla.org/docs/Mozilla/QA/Bug_writing_guidelines",
}
%]

Expand Down
2 changes: 1 addition & 1 deletion template/en/default/index.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
<a href="[% basepath FILTER none %]page.cgi?id=etiquette.html">[%- terms.Bugzilla %] Etiquette</a>
</li>
<li>
| <a href="https://developer.mozilla.org/docs/Mozilla/QA/Bug_writing_guidelines">[%- terms.Bug %] Writing Guidelines</a>
| <a href="[% terms.BugWritingGuidelinesURL %]">[%- terms.Bug %] Writing Guidelines</a>
</li>
[% Hook.process('additional_links') %]
</ul>
Expand Down