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

Update locale file and line number handling

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