Skip to content

Commit 11bc5d2

Browse files
[stable30] fix: adjust translation placeholders to fix translation squashing issue
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
1 parent 2de973e commit 11bc5d2

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

apps/files/js/filelist.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2939,18 +2939,16 @@
29392939
// TODO: 409 means current folder does not exist, redirect ?
29402940
if (status === 404) {
29412941
// source not found, so remove it from the list
2942-
OC.Notification.show(t('files', 'Could not rename "{fileName}", it does not exist any more',
2943-
{fileName: oldName}), {timeout: 7, type: 'error'}
2944-
);
2942+
OC.Notification.show(t('files', 'Could not rename "{oldName}", it does not exist any more', { oldName }), {timeout: 7, type: 'error'});
29452943

29462944
self.remove(newName, {updateSummary: true});
29472945
return;
29482946
} else if (status === 412) {
29492947
// target exists
29502948
OC.Notification.show(
2951-
t('files', 'The name "{targetName}" is already used in the folder "{dir}". Please choose a different name.',
2949+
t('files', 'The name "{newName}" is already used in the folder "{dir}". Please choose a different name.',
29522950
{
2953-
targetName: newName,
2951+
newName,
29542952
dir: self.getCurrentDirectory(),
29552953
}),
29562954
{
@@ -2959,9 +2957,7 @@
29592957
);
29602958
} else {
29612959
// restore the item to its previous state
2962-
OC.Notification.show(t('files', 'Could not rename "{fileName}"',
2963-
{fileName: oldName}), {type: 'error'}
2964-
);
2960+
OC.Notification.show(t('files', 'Could not rename "{oldName}"', { oldName }), { type: 'error' });
29652961
}
29662962
updateInList(oldFileInfo);
29672963
});

0 commit comments

Comments
 (0)