Commit 45593d1a authored by Paul Slaughter's avatar Paul Slaughter

Improve text messages in IDE commit actions

parent 8c8aaefc
<script> <script>
import _ from 'underscore'; import _ from 'underscore';
import { mapState, mapGetters, createNamespacedHelpers } from 'vuex'; import { mapState, mapGetters, createNamespacedHelpers } from 'vuex';
import { sprintf, __ } from '~/locale'; import { sprintf, s__ } from '~/locale';
import consts from '../../stores/modules/commit/constants'; import consts from '../../stores/modules/commit/constants';
import RadioGroup from './radio_group.vue'; import RadioGroup from './radio_group.vue';
import NewMergeRequestOption from './new_merge_request_option.vue'; import NewMergeRequestOption from './new_merge_request_option.vue';
...@@ -21,7 +21,7 @@ export default { ...@@ -21,7 +21,7 @@ export default {
...mapGetters(['currentBranch']), ...mapGetters(['currentBranch']),
commitToCurrentBranchText() { commitToCurrentBranchText() {
return sprintf( return sprintf(
__('Commit to %{branchName} branch'), s__('IDE|Commit to %{branchName} branch'),
{ branchName: `<strong class="monospace">${_.escape(this.currentBranchId)}</strong>` }, { branchName: `<strong class="monospace">${_.escape(this.currentBranchId)}</strong>` },
false, false,
); );
...@@ -56,8 +56,8 @@ export default { ...@@ -56,8 +56,8 @@ export default {
}, },
commitToCurrentBranch: consts.COMMIT_TO_CURRENT_BRANCH, commitToCurrentBranch: consts.COMMIT_TO_CURRENT_BRANCH,
commitToNewBranch: consts.COMMIT_TO_NEW_BRANCH, commitToNewBranch: consts.COMMIT_TO_NEW_BRANCH,
currentBranchPermissionsTooltip: __( currentBranchPermissionsTooltip: s__(
"This option is disabled as you don't have write permissions for the current branch", "IDE|This option is disabled because you don't have write permissions for the current branch.",
), ),
}; };
</script> </script>
......
---
title: Minor text update to IDE commit to branch disabled tooltip
merge_request: 24521
author:
type: other
...@@ -10040,6 +10040,9 @@ msgstr "" ...@@ -10040,6 +10040,9 @@ msgstr ""
msgid "IDE|Commit" msgid "IDE|Commit"
msgstr "" msgstr ""
msgid "IDE|Commit to %{branchName} branch"
msgstr ""
msgid "IDE|Edit" msgid "IDE|Edit"
msgstr "" msgstr ""
...@@ -10067,6 +10070,9 @@ msgstr "" ...@@ -10067,6 +10070,9 @@ msgstr ""
msgid "IDE|Successful commit" msgid "IDE|Successful commit"
msgstr "" msgstr ""
msgid "IDE|This option is disabled because you don't have write permissions for the current branch."
msgstr ""
msgid "IP Address" msgid "IP Address"
msgstr "" msgstr ""
...@@ -19464,9 +19470,6 @@ msgstr "" ...@@ -19464,9 +19470,6 @@ msgstr ""
msgid "This namespace has already been taken! Please choose another one." msgid "This namespace has already been taken! Please choose another one."
msgstr "" msgstr ""
msgid "This option is disabled as you don't have write permissions for the current branch"
msgstr ""
msgid "This option is only available on GitLab.com" msgid "This option is only available on GitLab.com"
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