Closed
Bug 1009520
Opened 11 years ago
Closed 11 years ago
Incorrect quote usage in global/header.html.tmpl
Categories
(Bugzilla :: Bugzilla-General, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 5.0
People
(Reporter: christophe.jaillet, Assigned: mail)
Details
Attachments
(1 file)
1.41 KB,
patch
|
gerv
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:29.0) Gecko/20100101 Firefox/29.0 (Beta/Release)
Build ID: 20140421221237
Steps to reproduce:
Have a muti-lang installation.
Update template/<LANG>/default/global/variables.non.tmpl to use strings with a single quote (') in *bugs* variables
Go on any page
Actual results:
The link to change the language does not appear (at least on FF 29 and IE 8 )
Expected results:
The link should have been displayed.
This is due to the usage of ' instead of " in template/<LANG>/default/global/header.html.tmpl
attach_desc_required:
'You must enter a Description for this attachment.',
component_required:
'You must select a Component for this [% terms.bug %].',
description_required:
'You must enter a Description for this [% terms.bug %].',
short_desc_required:
'You must enter a Summary for this [% terms.bug %].',
version_required:
'You must select a Version for this [% terms.bug %].'
This should be updated to use " or escape terms.bug in order to avoid the problem.
Seen on 4.2.9 but I've checked that the code is still the same on trunk.
![]() |
||
Comment 1•11 years ago
|
||
It's not an incorrect quote usage. Bugzilla doesn't expect someone would use single quotes to replace the word "bug".
Severity: normal → minor
Reporter | ||
Comment 2•11 years ago
|
||
Well, in my particular case, I would like to do so.
I'm planning to use bugzilla for something a little different than bug, that is to say "Demande d'évolution", in French. Could be translated to something like "User's request".
Just using "Demande" (i.e. request) could be enough, so my request is a very low priority.
Moreover, I have a French translation installed and I've modified the quotes there.
I agree that "incorrect" is a bit strong, as it is perfectly valid syntax.
But, I thought it could be useful for some-else, was easy to fix and would have no side-effect.
That's why I reported it.
Feel free to close if you don't share my point of view.
![]() |
Assignee | |
Updated•11 years ago
|
Assignee: general → bugzilla
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
![]() |
Assignee | |
Comment 3•11 years ago
|
||
All other occurrences of
grep -rsi "'.*terms.bug.*'"
are okay.
Attachment #8472121 -
Flags: review?(gerv)
Updated•11 years ago
|
Attachment #8472121 -
Flags: review?(gerv) → review+
![]() |
Assignee | |
Updated•11 years ago
|
Flags: approval?
![]() |
Assignee | |
Comment 4•11 years ago
|
||
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git
526b329..6dbcec0 master -> master
Flags: approval? → approval+
Target Milestone: --- → Bugzilla 5.0
![]() |
Assignee | |
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•