Commit 3bb39a86 authored by James Edwards-Jones's avatar James Edwards-Jones

Group SAML test button internationalization

parent f5af8281
import $ from 'jquery';
import { __ } from '~/locale';
import DirtyFormChecker from './dirty_form_checker';
export default class SamlSettingsForm {
......@@ -29,14 +30,14 @@ export default class SamlSettingsForm {
testButtonTooltip() {
if (!this.enabled) {
return 'Group SAML must be enabled to test';
return __('Group SAML must be enabled to test');
}
if (this.dirtyFormChecker.isDirty) {
return 'Save changes before testing';
return __('Save changes before testing');
}
return 'Redirect to SAML provider to test configuration';
return __('Redirect to SAML provider to test configuration');
}
updateView() {
......
- if saml_provider.persisted?
= saml_link_for_provider 'Test SAML SSO', saml_provider, redirect: request.url, html_class: 'btn qa-saml-settings-test-button'
= saml_link_for_provider _('Test SAML SSO'), saml_provider, redirect: request.url, html_class: 'btn qa-saml-settings-test-button'
......@@ -3876,6 +3876,9 @@ msgstr ""
msgid "Group Runners"
msgstr ""
msgid "Group SAML must be enabled to test"
msgstr ""
msgid "Group avatar"
msgstr ""
......@@ -6435,6 +6438,9 @@ msgstr ""
msgid "Recent searches"
msgstr ""
msgid "Redirect to SAML provider to test configuration"
msgstr ""
msgid "Reference:"
msgstr ""
......@@ -6769,6 +6775,9 @@ msgstr ""
msgid "Save changes"
msgstr ""
msgid "Save changes before testing"
msgstr ""
msgid "Save pipeline schedule"
msgstr ""
......@@ -7538,6 +7547,9 @@ msgstr ""
msgid "Terms of Service and Privacy Policy"
msgstr ""
msgid "Test SAML SSO"
msgstr ""
msgid "Test coverage parsing"
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