From 14691cd854be3e9ee272c9619a6368c83d72267b Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sat, 18 Feb 2012 00:07:50 +0000 Subject: upload new EasyGiant library and added added a new filter for the model name (part 2) --- h-source/Library/Lang/Eng/Generic.php | 48 +++++++++++++++++++++++++++++ h-source/Library/Lang/Eng/UploadStrings.php | 1 + 2 files changed, 49 insertions(+) create mode 100644 h-source/Library/Lang/Eng/Generic.php (limited to 'h-source/Library/Lang/Eng') diff --git a/h-source/Library/Lang/Eng/Generic.php b/h-source/Library/Lang/Eng/Generic.php new file mode 100644 index 0000000..bb0ab99 --- /dev/null +++ b/h-source/Library/Lang/Eng/Generic.php @@ -0,0 +1,48 @@ +. + +if (!defined('EG')) die('Direct access not allowed!'); + +//generic strings +class Lang_Eng_Generic +{ + + //English to English + public $translations = array( + 'edit' => 'edit', + 'delete' => 'delete', + 'move up' => 'move up', + 'move down' => 'move down', + 'associate' => 'associate', + ); + + public function gtext($string) + { + if (array_key_exists($string,$this->translations)) + { + return $this->translations[$string]; + } + + return $string; + } + +} diff --git a/h-source/Library/Lang/Eng/UploadStrings.php b/h-source/Library/Lang/Eng/UploadStrings.php index 00809f6..2ae4c9b 100644 --- a/h-source/Library/Lang/Eng/UploadStrings.php +++ b/h-source/Library/Lang/Eng/UploadStrings.php @@ -38,6 +38,7 @@ class Lang_Eng_UploadStrings extends Lang_ResultStrings { "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", + "not-allowed-mime-type" => "
The MIME type of the file you want to upload is not allowed
\n", "file-exists" => "
The file is already present in the current folder
\n" ); -- cgit v1.2.3