From 232aa1924c8c0f10d87b210b46c9f061af5c844c Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sun, 17 Oct 2010 13:29:57 +0000 Subject: added files --- h-source/Library/Lang/Eng/DbCondStrings.php | 17 +++++++ h-source/Library/Lang/Eng/ModelStrings.php | 19 +++++++ h-source/Library/Lang/Eng/UploadStrings.php | 27 ++++++++++ h-source/Library/Lang/Eng/ValCondStrings.php | 76 ++++++++++++++++++++++++++++ h-source/Library/Lang/Eng/index.html | 1 + h-source/Library/Lang/ResultStrings.php | 25 +++++++++ h-source/Library/Lang/index.html | 1 + 7 files changed, 166 insertions(+) create mode 100644 h-source/Library/Lang/Eng/DbCondStrings.php create mode 100644 h-source/Library/Lang/Eng/ModelStrings.php create mode 100644 h-source/Library/Lang/Eng/UploadStrings.php create mode 100644 h-source/Library/Lang/Eng/ValCondStrings.php create mode 100644 h-source/Library/Lang/Eng/index.html create mode 100644 h-source/Library/Lang/ResultStrings.php create mode 100644 h-source/Library/Lang/index.html (limited to 'h-source/Library/Lang') diff --git a/h-source/Library/Lang/Eng/DbCondStrings.php b/h-source/Library/Lang/Eng/DbCondStrings.php new file mode 100644 index 0000000..1edae98 --- /dev/null +++ b/h-source/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/h-source/Library/Lang/Eng/ModelStrings.php b/h-source/Library/Lang/Eng/ModelStrings.php new file mode 100644 index 0000000..411d196 --- /dev/null +++ b/h-source/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/h-source/Library/Lang/Eng/UploadStrings.php b/h-source/Library/Lang/Eng/UploadStrings.php new file mode 100644 index 0000000..195fd5f --- /dev/null +++ b/h-source/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/h-source/Library/Lang/Eng/ValCondStrings.php b/h-source/Library/Lang/Eng/ValCondStrings.php new file mode 100644 index 0000000..b9d132e --- /dev/null +++ b/h-source/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/h-source/Library/Lang/Eng/index.html b/h-source/Library/Lang/Eng/index.html new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/h-source/Library/Lang/Eng/index.html @@ -0,0 +1 @@ + diff --git a/h-source/Library/Lang/ResultStrings.php b/h-source/Library/Lang/ResultStrings.php new file mode 100644 index 0000000..db1095c --- /dev/null +++ b/h-source/Library/Lang/ResultStrings.php @@ -0,0 +1,25 @@ +string[$stringName])) + { + return $this->string[$stringName]; + } + else + { + return 'result string not defined!'; + } + } + +} diff --git a/h-source/Library/Lang/index.html b/h-source/Library/Lang/index.html new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/h-source/Library/Lang/index.html @@ -0,0 +1 @@ + -- cgit v1.2.3