Skip to content

Commit 12d47c8

Browse files
committed
Quote file names in text, fixes pop-os#553
1 parent 45f10be commit 12d47c8

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

i18n/en/cosmic_files.ftl

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ rename-folder = Rename folder
7070
7171
## Replace Dialog
7272
replace = Replace
73-
replace-title = {$filename} already exists in this location.
73+
replace-title = "{$filename}" already exists in this location.
7474
replace-warning = Do you want to replace it with the one you are saving? Replacing it will overwrite its content.
7575
replace-warning-operation = Do you want to replace it? Replacing it will overwrite its content.
7676
original-file = Original file
@@ -132,44 +132,44 @@ complete = Complete
132132
compressing = Compressing {$items} {$items ->
133133
[one] item
134134
*[other] items
135-
} from {$from} to {$to}
135+
} from "{$from}" to "{$to}"
136136
compressed = Compressed {$items} {$items ->
137137
[one] item
138138
*[other] items
139-
} from {$from} to {$to}
139+
} from "{$from}" to "{$to}"
140140
copy_noun = Copy
141-
creating = Creating {$name} in {$parent}
142-
created = Created {$name} in {$parent}
141+
creating = Creating "{$name}" in "{$parent}"
142+
created = Created "{$name}" in "{$parent}"
143143
copying = Copying {$items} {$items ->
144144
[one] item
145145
*[other] items
146-
} from {$from} to {$to}
146+
} from "{$from}" to "{$to}"
147147
copied = Copied {$items} {$items ->
148148
[one] item
149149
*[other] items
150-
} from {$from} to {$to}
150+
} from "{$from}" to "{$to}"
151151
emptying-trash = Emptying {trash}
152152
emptied-trash = Emptied {trash}
153153
extracting = Extracting {$items} {$items ->
154154
[one] item
155155
*[other] items
156-
} from {$from} to {$to}
156+
} from "{$from}" to "{$to}"
157157
extracted = Extracted {$items} {$items ->
158158
[one] item
159159
*[other] items
160-
} from {$from} to {$to}
160+
} from "{$from}" to "{$to}"
161161
setting-executable-and-launching = Setting "{$name}" as executable and launching
162162
set-executable-and-launched = Set "{$name}" as executable and launched
163163
moving = Moving {$items} {$items ->
164164
[one] item
165165
*[other] items
166-
} from {$from} to {$to}
166+
} from "{$from}" to "{$to}"
167167
moved = Moved {$items} {$items ->
168168
[one] item
169169
*[other] items
170-
} from {$from} to {$to}
171-
renaming = Renaming {$from} to {$to}
172-
renamed = Renamed {$from} to {$to}
170+
} from "{$from}" to "{$to}"
171+
renaming = Renaming "{$from}" to "{$to}"
172+
renamed = Renamed "{$from}" to "{$to}"
173173
restoring = Restoring {$items} {$items ->
174174
[one] item
175175
*[other] items

src/operation.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ async fn copy_or_move(
303303
}
304304
}
305305
if moving {
306+
//TODO: optimize to fs::rename when possible
306307
fs_extra::file::move_file_with_progress(
307308
from,
308309
to,

0 commit comments

Comments
 (0)