From 07f5140771388c9e0c8a99b0dd2e5d950bdb173b Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Thu, 14 Oct 2021 15:16:42 +1100 Subject: moving h-source subdir out. --- admin/Library/Lang/Eng/DbCondStrings.php | 17 +++++++ admin/Library/Lang/Eng/ModelStrings.php | 19 ++++++++ admin/Library/Lang/Eng/UploadStrings.php | 27 +++++++++++ admin/Library/Lang/Eng/ValCondStrings.php | 76 +++++++++++++++++++++++++++++++ admin/Library/Lang/Eng/index.html | 1 + admin/Library/Lang/ResultStrings.php | 25 ++++++++++ admin/Library/Lang/index.html | 1 + 7 files changed, 166 insertions(+) create mode 100644 admin/Library/Lang/Eng/DbCondStrings.php create mode 100644 admin/Library/Lang/Eng/ModelStrings.php create mode 100644 admin/Library/Lang/Eng/UploadStrings.php create mode 100644 admin/Library/Lang/Eng/ValCondStrings.php create mode 100644 admin/Library/Lang/Eng/index.html create mode 100644 admin/Library/Lang/ResultStrings.php create mode 100644 admin/Library/Lang/index.html (limited to 'admin/Library/Lang') diff --git a/admin/Library/Lang/Eng/DbCondStrings.php b/admin/Library/Lang/Eng/DbCondStrings.php new file mode 100644 index 0000000..1edae98 --- /dev/null +++ b/admin/Library/Lang/Eng/DbCondStrings.php @@ -0,0 +1,17 @@ +The value of ". $field ." is already present. Please choose a different value.\n"; + } + +} diff --git a/admin/Library/Lang/Eng/ModelStrings.php b/admin/Library/Lang/Eng/ModelStrings.php new file mode 100644 index 0000000..411d196 --- /dev/null +++ b/admin/Library/Lang/Eng/ModelStrings.php @@ -0,0 +1,19 @@ + "
Query error: Contact the administrator!
\n", + "executed" => "
Operation executed!
\n", + "associate" => "
Referential integrity problem: record associated to some other record in a child table. Break the association before.
\n", + "no-id" => "
Alert: record identifier not defined!
\n", + "not-linked" => "
The Item is not associated : you can't dissociate it
", + "linked" => "
The Item is already associated: you can't associate it another time
" + ); + +} diff --git a/admin/Library/Lang/Eng/UploadStrings.php b/admin/Library/Lang/Eng/UploadStrings.php new file mode 100644 index 0000000..195fd5f --- /dev/null +++ b/admin/Library/Lang/Eng/UploadStrings.php @@ -0,0 +1,27 @@ + "
Error: verify the permissions of the file/directory
\n", + "executed" => "
Operation executed!
\n", + "not-child" => "
The selected directory is not a child of the base directory
\n", + "not-dir" => "
The selected directory is not a directory
\n", + "not-empty" => "
The selected directory is not empty
\n", + "no-folder-specified" => "
No folder has been specified
\n", + "no-file-specified" => "
No file has been specified
\n", + "not-writable" => "
The folder is not writable
\n", + "not-writable-file" => "
The file is not writable
\n", + "dir-exists" => "
The directory is already present in the current folder
\n", + "no-upload-file" => "
There is no file to upload
\n", + "size-over" => "
The size of the file is too big
\n", + "not-allowed-ext" => "
The extension of the file you want to upload is not allowed
\n", + "file-exists" => "
The file is already present in the current folder
\n" + ); + +} diff --git a/admin/Library/Lang/Eng/ValCondStrings.php b/admin/Library/Lang/Eng/ValCondStrings.php new file mode 100644 index 0000000..b9d132e --- /dev/null +++ b/admin/Library/Lang/Eng/ValCondStrings.php @@ -0,0 +1,76 @@ +". $element ." not defined!\n"; + } + + //if the elements are not equal + public function getNotEqualResultString($element) + { + return "
Different values: $element
\n"; + } + + //if the element is not alphabetic + public function getNotAlphabeticResultString($element) + { + return "
".$element." has to be alphabetic
\n"; + } + + //if the element is not alphanumeric + public function getNotAlphanumericResultString($element) + { + return "
".$element." has to be alphanumeric
\n"; + } + + //if the element is not a decimal digit + public function getNotDecimalDigitResultString($element) + { + return "
".$element." has to be a decimal digit
\n"; + } + + //if the element has the mail format + public function getNotMailFormatResultString($element) + { + return "
".$element." doesn't seem an e-mail address
\n"; + } + + //if the element is numeric + public function getNotNumericResultString($element) + { + return "
".$element." has to be a numeric
\n"; + } + + //if the element (string) length exceeds the value of characters (defined by $maxLength) + public function getLengthExceedsResultString($element,$maxLength) + { + return "
".$element." exceeds the value of $maxLength characters
\n"; + } + + //if the element is one of the strings indicated by $stringList (a comma-separated list of strings) + public function getIsForbiddenStringResultString($element,$stringList) + { + return "
".$element." can't be one of the following strings: $stringList
\n"; + } + + //if the element is not one of the strings indicated by $stringList (a comma-separated list of strings) + public function getIsNotStringResultString($element,$stringList) + { + return "
".$element." has to be one of the following strings: $stringList
\n"; + } + + //if the element is not one of the strings indicated by $stringList (a comma-separated list of strings) + public function getDoesntMatchResultString($element,$regExp) + { + return "
".$element." has to match the following regular expression: $regExp
\n"; + } + +} diff --git a/admin/Library/Lang/Eng/index.html b/admin/Library/Lang/Eng/index.html new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/admin/Library/Lang/Eng/index.html @@ -0,0 +1 @@ + diff --git a/admin/Library/Lang/ResultStrings.php b/admin/Library/Lang/ResultStrings.php new file mode 100644 index 0000000..db1095c --- /dev/null +++ b/admin/Library/Lang/ResultStrings.php @@ -0,0 +1,25 @@ +string[$stringName])) + { + return $this->string[$stringName]; + } + else + { + return 'result string not defined!'; + } + } + +} diff --git a/admin/Library/Lang/index.html b/admin/Library/Lang/index.html new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/admin/Library/Lang/index.html @@ -0,0 +1 @@ + -- cgit v1.2.3