From 4e3e474c2a7d006abb44460c7479f993df6598b7 Mon Sep 17 00:00:00 2001 From: Thomas Marstrander <marstranderthomas@gmail.com> Date: Fri, 16 Aug 2019 11:41:03 +0200 Subject: [PATCH] Add untranslated error messages from core --- classes/framework.php | 5 +++++ lang/ca/hvp.php | 9 ++++++++- lang/de/hvp.php | 9 ++++++++- lang/en/hvp.php | 7 +++++++ lang/es/hvp.php | 9 ++++++++- lang/fi/hvp.php | 7 +++++++ lang/fr/hvp.php | 9 ++++++++- lang/he/hvp.php | 9 ++++++++- lang/no/hvp.php | 9 ++++++++- lang/pt/hvp.php | 9 ++++++++- lang/pt_br/hvp.php | 9 ++++++++- lang/tr/hvp.php | 9 ++++++++- 12 files changed, 91 insertions(+), 9 deletions(-) diff --git a/classes/framework.php b/classes/framework.php index 140fbe1..7945e1d 100644 --- a/classes/framework.php +++ b/classes/framework.php @@ -474,6 +474,11 @@ class framework implements \H5PFrameworkInterface { 'Retrying in :num....' => 'offlineDialogRetryMessage', 'Retry now' => 'offlineDialogRetryButtonLabel', 'Successfully submitted results.' => 'offlineSuccessfulSubmit', + 'One of the files inside the package exceeds the maximum file size allowed. (%file %used > %max)' => 'fileExceedsMaxSize', + 'The total size of the unpacked files exceeds the maximum size allowed. (%used > %max)' => 'unpackedFilesExceedsMaxSize', + 'Unable to read file from the package: %fileName' => 'couldNotReadFileFromZip', + 'Unable to parse JSON from the package: %fileName' => 'couldNotParseJSONFromZip', + 'Could not parse post data.' => 'couldNotParsePostData' ]; // @codingStandardsIgnoreEnd } diff --git a/lang/ca/hvp.php b/lang/ca/hvp.php index 9bbd60c..d6dba9d 100644 --- a/lang/ca/hvp.php +++ b/lang/ca/hvp.php @@ -363,4 +363,11 @@ $string['offlineDialogHeader'] = 'Your connection to the server was lost'; $string['offlineDialogBody'] = 'We were unable to send information about your completion of this task. Please check your internet connection.'; $string['offlineDialogRetryMessage'] = 'Retrying in :num....'; $string['offlineDialogRetryButtonLabel'] = 'Retry now'; -$string['offlineSuccessfulSubmit'] = 'Successfully submitted results.'; \ No newline at end of file +$string['offlineSuccessfulSubmit'] = 'Successfully submitted results.'; + +// Error messages. +$string['fileExceedsMaxSize'] = 'One of the files inside the package exceeds the maximum file size allowed. (%file %used > %max)'; +$string['unpackedFilesExceedsMaxSize'] = 'The total size of the unpacked files exceeds the maximum size allowed. (%used > %max)'; +$string['couldNotReadFileFromZip'] = 'Unable to read file from the package: %fileName'; +$string['couldNotParseJSONFromZip'] = 'Unable to parse JSON from the package: %fileName'; +$string['couldNotParsePostData'] = 'Could not parse post data.'; \ No newline at end of file diff --git a/lang/de/hvp.php b/lang/de/hvp.php index e3943ba..4d79a1f 100644 --- a/lang/de/hvp.php +++ b/lang/de/hvp.php @@ -320,4 +320,11 @@ $string['offlineDialogHeader'] = 'Your connection to the server was lost'; $string['offlineDialogBody'] = 'We were unable to send information about your completion of this task. Please check your internet connection.'; $string['offlineDialogRetryMessage'] = 'Retrying in :num....'; $string['offlineDialogRetryButtonLabel'] = 'Retry now'; -$string['offlineSuccessfulSubmit'] = 'Successfully submitted results.'; \ No newline at end of file +$string['offlineSuccessfulSubmit'] = 'Successfully submitted results.'; + +// Error messages. +$string['fileExceedsMaxSize'] = 'One of the files inside the package exceeds the maximum file size allowed. (%file %used > %max)'; +$string['unpackedFilesExceedsMaxSize'] = 'The total size of the unpacked files exceeds the maximum size allowed. (%used > %max)'; +$string['couldNotReadFileFromZip'] = 'Unable to read file from the package: %fileName'; +$string['couldNotParseJSONFromZip'] = 'Unable to parse JSON from the package: %fileName'; +$string['couldNotParsePostData'] = 'Could not parse post data.'; \ No newline at end of file diff --git a/lang/en/hvp.php b/lang/en/hvp.php index f783d66..7de4a94 100644 --- a/lang/en/hvp.php +++ b/lang/en/hvp.php @@ -441,3 +441,10 @@ $string['offlineDialogBody'] = 'We were unable to send information about your co $string['offlineDialogRetryMessage'] = 'Retrying in :num....'; $string['offlineDialogRetryButtonLabel'] = 'Retry now'; $string['offlineSuccessfulSubmit'] = 'Successfully submitted results.'; + +// Error messages. +$string['fileExceedsMaxSize'] = 'One of the files inside the package exceeds the maximum file size allowed. (%file %used > %max)'; +$string['unpackedFilesExceedsMaxSize'] = 'The total size of the unpacked files exceeds the maximum size allowed. (%used > %max)'; +$string['couldNotReadFileFromZip'] = 'Unable to read file from the package: %fileName'; +$string['couldNotParseJSONFromZip'] = 'Unable to parse JSON from the package: %fileName'; +$string['couldNotParsePostData'] = 'Could not parse post data.'; diff --git a/lang/es/hvp.php b/lang/es/hvp.php index 1052b75..e0d6482 100644 --- a/lang/es/hvp.php +++ b/lang/es/hvp.php @@ -345,4 +345,11 @@ $string['offlineDialogHeader'] = 'Your connection to the server was lost'; $string['offlineDialogBody'] = 'We were unable to send information about your completion of this task. Please check your internet connection.'; $string['offlineDialogRetryMessage'] = 'Retrying in :num....'; $string['offlineDialogRetryButtonLabel'] = 'Retry now'; -$string['offlineSuccessfulSubmit'] = 'Successfully submitted results.'; \ No newline at end of file +$string['offlineSuccessfulSubmit'] = 'Successfully submitted results.'; + +// Error messages. +$string['fileExceedsMaxSize'] = 'One of the files inside the package exceeds the maximum file size allowed. (%file %used > %max)'; +$string['unpackedFilesExceedsMaxSize'] = 'The total size of the unpacked files exceeds the maximum size allowed. (%used > %max)'; +$string['couldNotReadFileFromZip'] = 'Unable to read file from the package: %fileName'; +$string['couldNotParseJSONFromZip'] = 'Unable to parse JSON from the package: %fileName'; +$string['couldNotParsePostData'] = 'Could not parse post data.'; \ No newline at end of file diff --git a/lang/fi/hvp.php b/lang/fi/hvp.php index 1d08adf..fdc39d2 100644 --- a/lang/fi/hvp.php +++ b/lang/fi/hvp.php @@ -431,3 +431,10 @@ $string['reuse'] = 'Käytä uudelleen'; $string['reuseContent'] = 'Käytä sisältö uudelleen'; $string['reuseDescription'] = 'Uudelleenkäytä tätä sisältöä'; $string['contentCopied'] = 'Sisältö kopioitiin leikepöydälle'; + +// Error messages. +$string['fileExceedsMaxSize'] = 'One of the files inside the package exceeds the maximum file size allowed. (%file %used > %max)'; +$string['unpackedFilesExceedsMaxSize'] = 'The total size of the unpacked files exceeds the maximum size allowed. (%used > %max)'; +$string['couldNotReadFileFromZip'] = 'Unable to read file from the package: %fileName'; +$string['couldNotParseJSONFromZip'] = 'Unable to parse JSON from the package: %fileName'; +$string['couldNotParsePostData'] = 'Could not parse post data.'; diff --git a/lang/fr/hvp.php b/lang/fr/hvp.php index 4747d32..f246737 100644 --- a/lang/fr/hvp.php +++ b/lang/fr/hvp.php @@ -325,4 +325,11 @@ $string['offlineDialogHeader'] = 'Your connection to the server was lost'; $string['offlineDialogBody'] = 'We were unable to send information about your completion of this task. Please check your internet connection.'; $string['offlineDialogRetryMessage'] = 'Retrying in :num....'; $string['offlineDialogRetryButtonLabel'] = 'Retry now'; -$string['offlineSuccessfulSubmit'] = 'Successfully submitted results.'; \ No newline at end of file +$string['offlineSuccessfulSubmit'] = 'Successfully submitted results.'; + +// Error messages. +$string['fileExceedsMaxSize'] = 'One of the files inside the package exceeds the maximum file size allowed. (%file %used > %max)'; +$string['unpackedFilesExceedsMaxSize'] = 'The total size of the unpacked files exceeds the maximum size allowed. (%used > %max)'; +$string['couldNotReadFileFromZip'] = 'Unable to read file from the package: %fileName'; +$string['couldNotParseJSONFromZip'] = 'Unable to parse JSON from the package: %fileName'; +$string['couldNotParsePostData'] = 'Could not parse post data.'; \ No newline at end of file diff --git a/lang/he/hvp.php b/lang/he/hvp.php index 06f131f..9ddfda8 100644 --- a/lang/he/hvp.php +++ b/lang/he/hvp.php @@ -322,4 +322,11 @@ $string['offlineDialogHeader'] = 'Your connection to the server was lost'; $string['offlineDialogBody'] = 'We were unable to send information about your completion of this task. Please check your internet connection.'; $string['offlineDialogRetryMessage'] = 'Retrying in :num....'; $string['offlineDialogRetryButtonLabel'] = 'Retry now'; -$string['offlineSuccessfulSubmit'] = 'Successfully submitted results.'; \ No newline at end of file +$string['offlineSuccessfulSubmit'] = 'Successfully submitted results.'; + +// Error messages. +$string['fileExceedsMaxSize'] = 'One of the files inside the package exceeds the maximum file size allowed. (%file %used > %max)'; +$string['unpackedFilesExceedsMaxSize'] = 'The total size of the unpacked files exceeds the maximum size allowed. (%used > %max)'; +$string['couldNotReadFileFromZip'] = 'Unable to read file from the package: %fileName'; +$string['couldNotParseJSONFromZip'] = 'Unable to parse JSON from the package: %fileName'; +$string['couldNotParsePostData'] = 'Could not parse post data.'; \ No newline at end of file diff --git a/lang/no/hvp.php b/lang/no/hvp.php index 2acaa18..9cb1824 100644 --- a/lang/no/hvp.php +++ b/lang/no/hvp.php @@ -335,4 +335,11 @@ $string['offlineDialogHeader'] = 'Your connection to the server was lost'; $string['offlineDialogBody'] = 'We were unable to send information about your completion of this task. Please check your internet connection.'; $string['offlineDialogRetryMessage'] = 'Retrying in :num....'; $string['offlineDialogRetryButtonLabel'] = 'Retry now'; -$string['offlineSuccessfulSubmit'] = 'Successfully submitted results.'; \ No newline at end of file +$string['offlineSuccessfulSubmit'] = 'Successfully submitted results.'; + +// Error messages. +$string['fileExceedsMaxSize'] = 'One of the files inside the package exceeds the maximum file size allowed. (%file %used > %max)'; +$string['unpackedFilesExceedsMaxSize'] = 'The total size of the unpacked files exceeds the maximum size allowed. (%used > %max)'; +$string['couldNotReadFileFromZip'] = 'Unable to read file from the package: %fileName'; +$string['couldNotParseJSONFromZip'] = 'Unable to parse JSON from the package: %fileName'; +$string['couldNotParsePostData'] = 'Could not parse post data.'; \ No newline at end of file diff --git a/lang/pt/hvp.php b/lang/pt/hvp.php index 7f6c159..a6c5c78 100644 --- a/lang/pt/hvp.php +++ b/lang/pt/hvp.php @@ -436,4 +436,11 @@ $string['offlineDialogHeader'] = 'Your connection to the server was lost'; $string['offlineDialogBody'] = 'We were unable to send information about your completion of this task. Please check your internet connection.'; $string['offlineDialogRetryMessage'] = 'Retrying in :num....'; $string['offlineDialogRetryButtonLabel'] = 'Retry now'; -$string['offlineSuccessfulSubmit'] = 'Successfully submitted results.'; \ No newline at end of file +$string['offlineSuccessfulSubmit'] = 'Successfully submitted results.'; + +// Error messages. +$string['fileExceedsMaxSize'] = 'One of the files inside the package exceeds the maximum file size allowed. (%file %used > %max)'; +$string['unpackedFilesExceedsMaxSize'] = 'The total size of the unpacked files exceeds the maximum size allowed. (%used > %max)'; +$string['couldNotReadFileFromZip'] = 'Unable to read file from the package: %fileName'; +$string['couldNotParseJSONFromZip'] = 'Unable to parse JSON from the package: %fileName'; +$string['couldNotParsePostData'] = 'Could not parse post data.'; \ No newline at end of file diff --git a/lang/pt_br/hvp.php b/lang/pt_br/hvp.php index 65f3d4f..3ef87b4 100644 --- a/lang/pt_br/hvp.php +++ b/lang/pt_br/hvp.php @@ -437,4 +437,11 @@ $string['offlineDialogHeader'] = 'Your connection to the server was lost'; $string['offlineDialogBody'] = 'We were unable to send information about your completion of this task. Please check your internet connection.'; $string['offlineDialogRetryMessage'] = 'Retrying in :num....'; $string['offlineDialogRetryButtonLabel'] = 'Retry now'; -$string['offlineSuccessfulSubmit'] = 'Successfully submitted results.'; \ No newline at end of file +$string['offlineSuccessfulSubmit'] = 'Successfully submitted results.'; + +// Error messages. +$string['fileExceedsMaxSize'] = 'One of the files inside the package exceeds the maximum file size allowed. (%file %used > %max)'; +$string['unpackedFilesExceedsMaxSize'] = 'The total size of the unpacked files exceeds the maximum size allowed. (%used > %max)'; +$string['couldNotReadFileFromZip'] = 'Unable to read file from the package: %fileName'; +$string['couldNotParseJSONFromZip'] = 'Unable to parse JSON from the package: %fileName'; +$string['couldNotParsePostData'] = 'Could not parse post data.'; \ No newline at end of file diff --git a/lang/tr/hvp.php b/lang/tr/hvp.php index 1f34508..00d7e44 100644 --- a/lang/tr/hvp.php +++ b/lang/tr/hvp.php @@ -324,4 +324,11 @@ $string['offlineDialogHeader'] = 'Your connection to the server was lost'; $string['offlineDialogBody'] = 'We were unable to send information about your completion of this task. Please check your internet connection.'; $string['offlineDialogRetryMessage'] = 'Retrying in :num....'; $string['offlineDialogRetryButtonLabel'] = 'Retry now'; -$string['offlineSuccessfulSubmit'] = 'Successfully submitted results.'; \ No newline at end of file +$string['offlineSuccessfulSubmit'] = 'Successfully submitted results.'; + +// Error messages. +$string['fileExceedsMaxSize'] = 'One of the files inside the package exceeds the maximum file size allowed. (%file %used > %max)'; +$string['unpackedFilesExceedsMaxSize'] = 'The total size of the unpacked files exceeds the maximum size allowed. (%used > %max)'; +$string['couldNotReadFileFromZip'] = 'Unable to read file from the package: %fileName'; +$string['couldNotParseJSONFromZip'] = 'Unable to parse JSON from the package: %fileName'; +$string['couldNotParsePostData'] = 'Could not parse post data.'; \ No newline at end of file -- GitLab