Commit 1afc3fbf authored by Jonathan Schafer's avatar Jonathan Schafer

Update locale file and line number handling

parent b48d374b
...@@ -26,12 +26,16 @@ ...@@ -26,12 +26,16 @@
%li= _("Namespace: %{namespace}") % { namespace: location['operating_system'] } %li= _("Namespace: %{namespace}") % { namespace: location['operating_system'] }
- if location['file'] - if location['file']
%h3= _('File Location') %h3= _('Location')
%ul %ul
%li %li
- link_text = _("%{file}:%{line}") % { file: location['file'], line: location['start_line'] } - link_text = _("%{file}") % { file: location['file'] }
- offset = _('')
- if location['start_line']
- link_text = _("%{link_text}:%{line}") % { link_text: link_text, line: location['start_line'] }
- offset = _("#L%{start_line}") % { start_line: location['start_line'] }
File: File:
%a{ href: fast_project_blob_path(@project, tree_join(@vulnerability.project.default_branch, location['file'])), %a{ href: project_blob_path(@project, tree_join(@vulnerability.project.default_branch, location['file'])) + offset,
target: '_blank', rel: 'noopener noreferrer' }= link_text target: '_blank', rel: 'noopener noreferrer' }= link_text
- if location['class'] - if location['class']
%li= _("Class: %{className}") % { className: location['class'] } %li= _("Class: %{className}") % { className: location['class'] }
......
...@@ -305,6 +305,9 @@ msgstr "" ...@@ -305,6 +305,9 @@ msgstr ""
msgid "%{filePath} deleted" msgid "%{filePath} deleted"
msgstr "" msgstr ""
msgid "%{file}:%{line}"
msgstr ""
msgid "%{firstLabel} +%{labelCount} more" msgid "%{firstLabel} +%{labelCount} more"
msgstr "" msgstr ""
...@@ -365,6 +368,9 @@ msgstr "" ...@@ -365,6 +368,9 @@ msgstr ""
msgid "%{mergeLength}/%{usersLength} can merge" msgid "%{mergeLength}/%{usersLength} can merge"
msgstr "" msgstr ""
msgid "%{method}"
msgstr ""
msgid "%{mrText}, this issue will be closed automatically." msgid "%{mrText}, this issue will be closed automatically."
msgstr "" msgstr ""
...@@ -3953,7 +3959,7 @@ msgstr "" ...@@ -3953,7 +3959,7 @@ msgstr ""
msgid "Class" msgid "Class"
msgstr "" msgstr ""
msgid "Class: %{className}::%{method}" msgid "Class: %{className}"
msgstr "" msgstr ""
msgid "Classification Label (optional)" msgid "Classification Label (optional)"
...@@ -8924,9 +8930,6 @@ msgstr "" ...@@ -8924,9 +8930,6 @@ msgstr ""
msgid "File upload error." msgid "File upload error."
msgstr "" msgstr ""
msgid "File: %{file}:%{line}"
msgstr ""
msgid "Files" msgid "Files"
msgstr "" msgstr ""
......
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