Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Labuschagne <blabuschagne@gitlab.com>2019-05-15 16:47:28 +0300
committerBrandon Labuschagne <blabuschagne@gitlab.com>2019-05-15 18:57:25 +0300
commit965100a31065d8a9f097e568674f7e22f680e6ff (patch)
treeaa6459a89d2d71f3a80a90b4a939a3378bd5a1c3 /app/assets/javascripts/notes.js
parent2d612aaa43636f8b623695967d8be7a085b03e90 (diff)
Add missing sprintf and remove bad i18n
An instance of i18n which required sprintf was not handled correctly and has been fixed in this commit. Further to this, i18n was applied to app/assets/javascripts/new_branch_form.js but needed to be removed as the i18n was too vague. A note has been made to follow up on this file.
Diffstat (limited to 'app/assets/javascripts/notes.js')
-rw-r--r--app/assets/javascripts/notes.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js
index d21982721ed..d03f4508fb8 100644
--- a/app/assets/javascripts/notes.js
+++ b/app/assets/javascripts/notes.js
@@ -1504,7 +1504,9 @@ export default class Notes {
tempFormContent = __('Applying multiple commands');
} else {
const commandDescription = executedCommands[0].description.toLowerCase();
- tempFormContent = __(`Applying command to ${commandDescription}`);
+ tempFormContent = sprintf(__('Applying command to %{commandDescription}'), {
+ commandDescription,
+ });
}
} else {
tempFormContent = __('Applying command');