aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastianKrupinski <krupinskis05@gmail.com>2025-06-20 14:03:30 -0400
committerSebastianKrupinski <krupinskis05@gmail.com>2025-06-21 09:55:47 -0400
commitd136311a750869a02ccecaf52bb424f22400929e (patch)
treefcf5f9028c8cfd8fda8f7abb122c19aa408273bb
parent2de973ec78532a479865a1cd7f158111f160c448 (diff)
downloadnextcloud-server-fix/noid-adjust-variables-for-translations.tar.gz
nextcloud-server-fix/noid-adjust-variables-for-translations.zip
fix: adjust translation placeholders to fix translation squashing issuefix/noid-adjust-variables-for-translations
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
-rw-r--r--apps/files/js/filelist.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index b708d95742d..37b94dbcedc 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -2939,18 +2939,16 @@
// TODO: 409 means current folder does not exist, redirect ?
if (status === 404) {
// source not found, so remove it from the list
- OC.Notification.show(t('files', 'Could not rename "{fileName}", it does not exist any more',
- {fileName: oldName}), {timeout: 7, type: 'error'}
- );
+ OC.Notification.show(t('files', 'Could not rename "{oldName}", it does not exist any more', { oldName }), {timeout: 7, type: 'error'});
self.remove(newName, {updateSummary: true});
return;
} else if (status === 412) {
// target exists
OC.Notification.show(
- t('files', 'The name "{targetName}" is already used in the folder "{dir}". Please choose a different name.',
+ t('files', 'The name "{newName}" is already used in the folder "{dir}". Please choose a different name.',
{
- targetName: newName,
+ newName,
dir: self.getCurrentDirectory(),
}),
{
@@ -2959,9 +2957,7 @@
);
} else {
// restore the item to its previous state
- OC.Notification.show(t('files', 'Could not rename "{fileName}"',
- {fileName: oldName}), {type: 'error'}
- );
+ OC.Notification.show(t('files', 'Could not rename "{oldName}"', { oldName }), { type: 'error' });
}
updateInList(oldFileInfo);
});