Skip to content
代码片段 群组 项目
提交 5428de99 编辑于 作者: Brandon Labuschagne's avatar Brandon Labuschagne 提交者: Phil Hughes
浏览文件

Internationalisation of raven directory

This is one of many MRs opened in order to improve the overall
internationalisation of the GitLab codebase.

i18n documentation
https://docs.gitlab.com/ee/development/i18n/externalization.html
上级 da443ff0
No related branches found
No related tags found
加载中
import Raven from 'raven-js'; import Raven from 'raven-js';
import $ from 'jquery'; import $ from 'jquery';
import { __ } from '~/locale';
const IGNORE_ERRORS = [ const IGNORE_ERRORS = [
// Random plugins/extensions // Random plugins/extensions
...@@ -9,9 +10,9 @@ const IGNORE_ERRORS = [ ...@@ -9,9 +10,9 @@ const IGNORE_ERRORS = [
'canvas.contentDocument', 'canvas.contentDocument',
'MyApp_RemoveAllHighlights', 'MyApp_RemoveAllHighlights',
'http://tt.epicplay.com', 'http://tt.epicplay.com',
"Can't find variable: ZiteReader", __("Can't find variable: ZiteReader"),
'jigsaw is not defined', __('jigsaw is not defined'),
'ComboSearch is not defined', __('ComboSearch is not defined'),
'http://loading.retry.widdit.com/', 'http://loading.retry.widdit.com/',
'atomicFindClose', 'atomicFindClose',
// Facebook borked // Facebook borked
...@@ -80,7 +81,7 @@ const RavenConfig = { ...@@ -80,7 +81,7 @@ const RavenConfig = {
handleRavenErrors(event, req, config, err) { handleRavenErrors(event, req, config, err) {
const error = err || req.statusText; const error = err || req.statusText;
const responseText = req.responseText || 'Unknown response text'; const responseText = req.responseText || __('Unknown response text');
Raven.captureMessage(error, { Raven.captureMessage(error, {
extra: { extra: {
......
...@@ -1593,6 +1593,9 @@ msgstr "" ...@@ -1593,6 +1593,9 @@ msgstr ""
msgid "Can't find HEAD commit for this branch" msgid "Can't find HEAD commit for this branch"
msgstr "" msgstr ""
msgid "Can't find variable: ZiteReader"
msgstr ""
msgid "Cancel" msgid "Cancel"
msgstr "" msgstr ""
...@@ -2409,6 +2412,9 @@ msgstr "" ...@@ -2409,6 +2412,9 @@ msgstr ""
msgid "Collapse sidebar" msgid "Collapse sidebar"
msgstr "" msgstr ""
msgid "ComboSearch is not defined"
msgstr ""
msgid "Command line instructions" msgid "Command line instructions"
msgstr "" msgstr ""
...@@ -9952,6 +9958,9 @@ msgstr "" ...@@ -9952,6 +9958,9 @@ msgstr ""
msgid "Unknown format" msgid "Unknown format"
msgstr "" msgstr ""
msgid "Unknown response text"
msgstr ""
msgid "Unlock" msgid "Unlock"
msgstr "" msgstr ""
...@@ -11080,6 +11089,9 @@ msgstr "" ...@@ -11080,6 +11089,9 @@ msgstr ""
msgid "it is too large" msgid "it is too large"
msgstr "" msgstr ""
msgid "jigsaw is not defined"
msgstr ""
msgid "latest" msgid "latest"
msgstr "" msgstr ""
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册