From fd6f1fdf614b6da3f3ed8b4f16ba7ee1252daee6 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Wed, 23 Feb 2011 17:44:40 +0000 Subject: improved i18n --- h-source/Application/Models/WikiModel.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'h-source/Application/Models/WikiModel.php') diff --git a/h-source/Application/Models/WikiModel.php b/h-source/Application/Models/WikiModel.php index 4021181..4c5e0d3 100644 --- a/h-source/Application/Models/WikiModel.php +++ b/h-source/Application/Models/WikiModel.php @@ -52,15 +52,17 @@ class WikiModel extends Model_Map { $this->fieldsWithBreaks = array(gtext('wiki page')); $this->strongConditions['insert'] = array( - "checkLength|99" => 'title|'.gtext('title is too length'), + "checkNotEmpty" => 'title', + "checkLength|99" => 'title|'.gtext('title is too long'), "+checkNotEmpty" => 'page', - "+checkLength|9000" => 'page|'.gtext('the page text is too length'), + "+checkLength|9000" => 'page|'.gtext('the page text is too long'), ); $this->strongConditions['update'] = array( - "checkLength|99" => 'title|'.gtext('title is too length'), + "checkNotEmpty" => 'title', + "checkLength|99" => 'title|'.gtext('title is too long'), "+checkNotEmpty" => 'page', - "+checkLength|9000" => 'page|'.gtext('the page text is too length'), + "+checkLength|9000" => 'page|'.gtext('the page text is too long'), ); $this->databaseConditions['insert'] = array( -- cgit v1.2.3