Skip to content

Commit

Permalink
More missing dialog strings. (#2979)
Browse files Browse the repository at this point in the history
  • Loading branch information
RustyPotato authored Feb 1, 2025
1 parent 43f36d1 commit 2834e86
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion resources/js/components/forms/album/AlbumProperties.vue
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ function saveAlbum() {
photo_timeline: photoTimeline.value?.value ?? null,
};
AlbumService.updateAlbum(data).then(() => {
toast.add({ severity: "success", summary: trans("toast.success"), life: 3000 });
toast.add({ severity: "success", summary: trans("toasts.success"), life: 3000 });
AlbumService.clearCache(albumId.value);
});
}
Expand Down
12 changes: 6 additions & 6 deletions resources/js/components/forms/gallery-dialogs/MoveDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ const headIds = computed(() => {
const question = computed(() => {
if (props.photoIds && props.photoIds?.length > 1) {
return sprintf(trans("dialog.move_photo.move_multiple"), props.photoIds?.length);
return sprintf(trans("dialogs.move_photo.move_multiple"), props.photoIds?.length);
}
if (props.albumIds && props.albumIds?.length > 1) {
return sprintf(trans("dialog.move_album.move_to_multiple"), props.albumIds?.length);
return sprintf(trans("dialogs.move_album.move_to_multiple"), props.albumIds?.length);
}
if (props.photo) {
return sprintf(trans("dialog.move_photo.move_single"), props.photo.title);
return sprintf(trans("dialogs.move_photo.move_single"), props.photo.title);
}
return sprintf(trans("dialog.move_album.move_to_single"), props.album?.title);
return sprintf(trans("dialogs.move_album.move_to_single"), props.album?.title);
});
const confirmation = computed(() => {
Expand All @@ -100,9 +100,9 @@ const confirmation = computed(() => {
function moveConfirmationPhoto() {
if (props.photo) {
return sprintf(trans("dialog.move_photo.confirm"), props.photo.title, titleMovedTo.value);
return sprintf(trans("dialogs.move_photo.confirm"), props.photo.title, titleMovedTo.value);
}
return sprintf(trans("dialog.move_photo.confirm_multiple"), props.photoIds?.length, titleMovedTo.value);
return sprintf(trans("dialogs.move_photo.confirm_multiple"), props.photoIds?.length, titleMovedTo.value);
}
function moveConfirmationAlbum() {
Expand Down

0 comments on commit 2834e86

Please sign in to comment.