diff --git a/messages/en.json b/messages/en.json index de1c67d..92c73e9 100644 --- a/messages/en.json +++ b/messages/en.json @@ -44,7 +44,7 @@ "partial_support": "This format can only be converted as {direction}.", "direction_input": "input (from)", "direction_output": "output (to)", - "video_server_processing": "Video uploads to a server for processing by default, learn how to set it up locally here." + "video_server_processing": "When possible, VERT converts videos locally in your browser. Some conversions may require server-side processing, learn how to set it up locally here." } }, "convert": { @@ -62,9 +62,10 @@ "large_file_warning": "Due to browser / device limitations, video to audio conversion is disabled for this file as it is larger than {limit}GB. We recommend using Firefox or Safari for files of this size since they have less limitations.", "external_warning": { "title": "External server warning", - "text": "If you choose to convert into a video format, those files will be uploaded to an external server to be converted. Do you want to continue?", - "yes": "Yes", - "no": "No" + "text": "Converting {filename} with its current settings is not supported locally and requires server-side processing. Do you want to continue?", + "yes": "Convert on server", + "no": "Cancel conversion", + "dont_show_again": "Don't show again" }, "panel": { "convert_all": "Convert all", @@ -149,6 +150,7 @@ "errors": { "cant_convert": "We can't convert this file.", "converter_fallback": { + "title": "Change converter?", "body": "Conversion failed for {filename}. Would you like to try the next compatible converter {converter}?", "yes": "Next converter", "no": "Cancel conversion", diff --git a/src/lib/components/functional/popups/FallbackToast.svelte b/src/lib/components/functional/popups/FallbackToast.svelte index 3f27151..a96afcc 100644 --- a/src/lib/components/functional/popups/FallbackToast.svelte +++ b/src/lib/components/functional/popups/FallbackToast.svelte @@ -2,7 +2,7 @@ import { m } from "$lib/paraglide/messages"; type Additional = { - fileName: string; + filename: string; nextConverter: string; onNext: () => void | Promise; onCancel: () => void; @@ -10,13 +10,13 @@ let { additional }: { additional: Additional } = $props(); - export const title = "An error occurred"; + export const title = m["convert.errors.converter_fallback.title"]();

{m["convert.errors.converter_fallback.body"]({ - filename: additional.fileName, + filename: additional.filename, converter: additional.nextConverter, })}

diff --git a/src/lib/components/functional/popups/ServerUploadWarning.svelte b/src/lib/components/functional/popups/ServerUploadWarning.svelte new file mode 100644 index 0000000..86957a4 --- /dev/null +++ b/src/lib/components/functional/popups/ServerUploadWarning.svelte @@ -0,0 +1,47 @@ + + + + +
+

+ {m["convert.external_warning.text"]({ + filename: toast.additional.filename, + })} +

+
+ +
+ + +
+
+
diff --git a/src/lib/components/functional/popups/VertdError.svelte b/src/lib/components/functional/popups/VertdError.svelte index 43733fe..f1e4003 100644 --- a/src/lib/components/functional/popups/VertdError.svelte +++ b/src/lib/components/functional/popups/VertdError.svelte @@ -5,7 +5,7 @@ from?: string; to?: string; errorMessage?: string; - fileName?: string; + filename?: string; } @@ -21,7 +21,7 @@ let submitting = $state(false); - export const title = "An error occurred"; + export const title = m["convert.errors.vertd_generic_title"](); const remove = () => { ToastManager.remove(toast.id); diff --git a/src/lib/components/visual/Tooltip.svelte b/src/lib/components/visual/Tooltip.svelte index 3ca218f..493569a 100644 --- a/src/lib/components/visual/Tooltip.svelte +++ b/src/lib/components/visual/Tooltip.svelte @@ -112,8 +112,8 @@