From 1aa63970841fbf8e584f322304db1ffc581f38ee Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Wed, 1 Feb 2012 07:42:34 +0000 Subject: added support for Greek --- h-source/Application/Include/languages.php | 39 ++++++++++++++++++++++++++++- h-source/Application/Models/WikiModel.php | 4 +-- h-source/Public/Css/main.css | 2 +- h-source/Public/Img/Famfamfam/gr.png | Bin 0 -> 487 bytes 4 files changed, 41 insertions(+), 4 deletions(-) create mode 100755 h-source/Public/Img/Famfamfam/gr.png (limited to 'h-source') diff --git a/h-source/Application/Include/languages.php b/h-source/Application/Include/languages.php index 9e9f98a..aedbdae 100644 --- a/h-source/Application/Include/languages.php +++ b/h-source/Application/Include/languages.php @@ -22,7 +22,7 @@ if (!defined('EG')) die('Direct access not allowed!'); class Lang { - public static $allowed = array('en','es','fr','it','de'); + public static $allowed = array('en','es','fr','it','de','gr'); public static $current = 'en'; public static $complete = array( @@ -31,6 +31,7 @@ class Lang 'fr' => 'fr.png,Français', 'it' => 'it.png,Italiano', 'de' => 'de.png,Deutsch', + 'gr' => 'gr.png,Ελληνικά', ); //$pos=0: icon, $pos=1:lang name @@ -1202,6 +1203,10 @@ class Lang /*0188*/"Write here the model name obtained by the lspci or lsusb command." => "Geben Sie hier die vom Befehl „lspci“ oder „lsusb“ ermittelte Modellbezeichnung ein.", /*0189*/"This is the name of the chipset of your device." => "Dies ist der Name des Chipsatzes Ihres Gerätes.", /*0190*/"possible other names of the device" => "Andere mögliche Gerätenamen", + ), + 'gr' => array + ( + ) ); @@ -1286,6 +1291,22 @@ class Lang 'sdcardreaders' => 'sd card reader', 'modems' => 'modem', ), + 'gr' => array( + /*01*/'notebooks' => 'notebook', + /*02*/'wifi' => 'wifi card', + /*03*/'videocards' => 'video card', + /*04*/'printers' => 'printer', + /*05*/'scanners' => 'scanner', + /*06*/'threegcards' => '3G-card', + /*07*/'soundcards' => 'soundcard', + /*08*/'webcams' => 'webcam', + /*09*/'bluetooth' => 'bluetooth device', + /*10*/'acquisitioncards' => 'acquisition card', + /*11*/'fingerprintreaders' => 'fingerprint reader', + /*12*/'ethernetcards' => 'ethernet card', + /*13*/'sdcardreaders' => 'sd card reader', + /*14*/'modems' => 'modem', + ), ); public static $plural = array( @@ -1369,6 +1390,22 @@ class Lang 'sdcardreaders' => 'sd card readers', 'modems' => 'modems', ), + 'gr' => array( + /*01*/'notebooks' => 'notebooks', + /*02*/'wifi' => 'wifi cards', + /*03*/'videocards' => 'video cards', + /*04*/'printers' => 'printers', + /*05*/'scanners' => 'scanners', + /*06*/'threegcards' => '3G-cards', + /*07*/'soundcards' => 'soundcards', + /*08*/'webcams' => 'webcams', + /*09*/'bluetooth' => 'bluetooth devices', + /*10*/'acquisitioncards' => 'acquisition cards', + /*11*/'fingerprintreaders' => 'fingerprint readers', + /*12*/'ethernetcards' => 'ethernet cards', + /*13*/'sdcardreaders' => 'sd card readers', + /*14*/'modems' => 'modems', + ), ); public static function sanitize($lang = 'en') diff --git a/h-source/Application/Models/WikiModel.php b/h-source/Application/Models/WikiModel.php index 9cb4f6f..dd8d5a6 100644 --- a/h-source/Application/Models/WikiModel.php +++ b/h-source/Application/Models/WikiModel.php @@ -55,14 +55,14 @@ class WikiModel extends Model_Map { "checkNotEmpty" => 'title', "checkLength|99" => 'title|'.gtext('title is too long'), "+checkNotEmpty" => 'page', - "+checkLength|29900" => 'page|'.gtext('the page text is too long'), + "+checkLength|49900" => 'page|'.gtext('the page text is too long'), ); $this->strongConditions['update'] = array( "checkNotEmpty" => 'title', "checkLength|99" => 'title|'.gtext('title is too long'), "+checkNotEmpty" => 'page', - "+checkLength|29900" => 'page|'.gtext('the page text is too long'), + "+checkLength|49900" => 'page|'.gtext('the page text is too long'), ); $this->databaseConditions['insert'] = array( diff --git a/h-source/Public/Css/main.css b/h-source/Public/Css/main.css index 925797c..5039afd 100644 --- a/h-source/Public/Css/main.css +++ b/h-source/Public/Css/main.css @@ -1511,7 +1511,7 @@ ins .language_links_box ul li { float:left; - width:90px; + width:92px; /* background:red; */ margin-bottom:10px; /* margin-right:10px; */ diff --git a/h-source/Public/Img/Famfamfam/gr.png b/h-source/Public/Img/Famfamfam/gr.png new file mode 100755 index 0000000..8651ade Binary files /dev/null and b/h-source/Public/Img/Famfamfam/gr.png differ -- cgit v1.2.3