Commit b94a7151b4dc9892aa163f07ceab61097d3bc9c1

Authored by Conrad Vermeulen
1 parent 79cc8e87

KTS-673

"The search algorithm needs some work"
Updated. Internationalisation

Committed By: Conrad Vermeulen
Reviewed By: Kevin Fourie

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7284 c91229c3-7414-0410-bfa2-8a42b809f60b
search2/search/fields/AnyMetadataField.inc.php
... ... @@ -4,7 +4,7 @@ class AnyMetadataField extends DBFieldExpr
4 4 {
5 5 public function __construct()
6 6 {
7   - parent::__construct('id', 'document_fields_link', 'Any Metadata');
  7 + parent::__construct('id', 'document_fields_link', _kt('Any Metadata'));
8 8 $this->setAlias('Metadata');
9 9 }
10 10  
... ...
search2/search/fields/CheckedOutByField.inc.php
... ... @@ -4,7 +4,7 @@ class CheckedOutByField extends DBFieldExpr
4 4 {
5 5 public function __construct()
6 6 {
7   - parent::__construct('checked_out_user_id', 'documents', 'Checked Out By');
  7 + parent::__construct('checked_out_user_id', 'documents', _kt('Checked Out By'));
8 8 $this->setAlias('CheckedOutBy');
9 9 $this->joinTo('users', 'id');
10 10 $this->matchField('name');
... ...
search2/search/fields/CheckedOutDeltaField.inc.php
... ... @@ -6,7 +6,7 @@ class CheckedOutDeltaField extends DBFieldExpr
6 6  
7 7 public function __construct()
8 8 {
9   - parent::__construct('checkedout', 'documents', 'Checked Out Delta');
  9 + parent::__construct('checkedout', 'documents', _kt('Checked Out Delta'));
10 10 $this->setAlias('CheckedoutDelta');
11 11 $this->isValueQuoted(false);
12 12 }
... ...
search2/search/fields/CheckedOutField.inc.php
... ... @@ -4,7 +4,7 @@ class CheckedOutField extends DBFieldExpr
4 4 {
5 5 public function __construct()
6 6 {
7   - parent::__construct('checkedout', 'documents', 'Checked Out');
  7 + parent::__construct('checkedout', 'documents', _kt('Checked Out'));
8 8 $this->setAlias('CheckedOut');
9 9 }
10 10  
... ...
search2/search/fields/CreatedByField.inc.php
... ... @@ -4,7 +4,7 @@ class CreatedByField extends DBFieldExpr
4 4 {
5 5 public function __construct()
6 6 {
7   - parent::__construct('creator_id', 'documents','Created By');
  7 + parent::__construct('creator_id', 'documents',_kt('Created By'));
8 8 $this->setAlias('CreatedBy');
9 9 $this->joinTo('users', 'id');
10 10 $this->matchField('name');
... ...
search2/search/fields/CreatedDeltaField.inc.php
... ... @@ -6,7 +6,7 @@ class CreatedDeltaField extends DBFieldExpr
6 6  
7 7 public function __construct()
8 8 {
9   - parent::__construct('created', 'documents', 'Created Delta');
  9 + parent::__construct('created', 'documents', _kt('Created Delta'));
10 10 $this->setAlias('CreatedDelta');
11 11 $this->isValueQuoted(false);
12 12 }
... ...
search2/search/fields/CreatedField.inc.php
... ... @@ -4,7 +4,7 @@ class CreatedField extends DBFieldExpr
4 4 {
5 5 public function __construct()
6 6 {
7   - parent::__construct('created', 'documents', 'Created');
  7 + parent::__construct('created', 'documents', _kt('Created'));
8 8 $this->setAlias('Created');
9 9 }
10 10  
... ...
search2/search/fields/DiscussionTextField.inc.php
... ... @@ -5,7 +5,7 @@ class DiscussionTextField extends SearchableText
5 5 {
6 6 public function __construct()
7 7 {
8   - parent::__construct('Discussion', 'Discussion Text');
  8 + parent::__construct('Discussion', _kt('Discussion Text'));
9 9 $this->setAlias('DiscussionText');
10 10 }
11 11  
... ...
search2/search/fields/DocumentIdField.inc.php
... ... @@ -4,7 +4,7 @@ class DocumentIdField extends DBFieldExpr
4 4 {
5 5 public function __construct()
6 6 {
7   - parent::__construct('id', 'documents', 'Document ID');
  7 + parent::__construct('id', 'documents', _kt('Document ID'));
8 8 $this->setAlias('DocumentId');
9 9 }
10 10  
... ...
search2/search/fields/DocumentTextField.inc.php
... ... @@ -5,7 +5,7 @@ class DocumentTextField extends SearchableText
5 5 {
6 6 public function __construct()
7 7 {
8   - parent::__construct('Content', 'Document Text');
  8 + parent::__construct('Content', _kt('Document Text'));
9 9 $this->setAlias('DocumentText');
10 10 }
11 11  
... ...
search2/search/fields/DocumentTypeField.inc.php
... ... @@ -4,7 +4,7 @@ class DocumentTypeField extends DBFieldExpr
4 4 {
5 5 public function __construct()
6 6 {
7   - parent::__construct('document_type_id', 'document_metadata_version', 'Document Type');
  7 + parent::__construct('document_type_id', 'document_metadata_version', _kt('Document Type'));
8 8 $this->setAlias('DocumentType');
9 9 $this->joinTo('document_types_lookup', 'id');
10 10 $this->matchField('name');
... ...
search2/search/fields/FilenameField.inc.php
... ... @@ -4,7 +4,7 @@ class FilenameField extends DBFieldExpr
4 4 {
5 5 public function __construct()
6 6 {
7   - parent::__construct('filename', 'document_content_version', 'Filename');
  7 + parent::__construct('filename', 'document_content_version', _kt('Filename'));
8 8 $this->setAlias('Filename');
9 9 }
10 10  
... ...
search2/search/fields/FilesizeField.inc.php
... ... @@ -4,7 +4,7 @@ class FilesizeField extends DBFieldExpr
4 4 {
5 5 public function __construct()
6 6 {
7   - parent::__construct('size', 'document_content_version', 'Filesize');
  7 + parent::__construct('size', 'document_content_version', _kt('Filesize'));
8 8 $this->setAlias('Filesize');
9 9 }
10 10  
... ...
search2/search/fields/FolderField.inc.php
... ... @@ -4,7 +4,7 @@ class FolderField extends DBFieldExpr
4 4 {
5 5 public function __construct()
6 6 {
7   - parent::__construct('folder_id', 'documents', 'Folder');
  7 + parent::__construct('folder_id', 'documents', _kt('Folder'));
8 8 $this->setAlias('Folder');
9 9 $this->joinTo('folders', 'id');
10 10 $this->matchField('full_path');
... ...
search2/search/fields/FolderFieldID.inc.php
... ... @@ -4,7 +4,7 @@ class FolderIDField extends DBFieldExpr
4 4 {
5 5 public function __construct()
6 6 {
7   - parent::__construct('folder_id', 'documents', 'Folder ID');
  7 + parent::__construct('folder_id', 'documents', _kt('Folder ID'));
8 8 $this->setAlias('FolderID');
9 9 }
10 10  
... ...
search2/search/fields/GeneralTextField.inc.php
... ... @@ -4,7 +4,7 @@ class GeneralTextField extends SearchableText
4 4 {
5 5 public function __construct()
6 6 {
7   - parent::__construct('General', 'General Text');
  7 + parent::__construct('General', _kt('General Text'));
8 8 $this->setAlias('GeneralText');
9 9 }
10 10  
... ...
search2/search/fields/IsCheckedOutField.inc.php
... ... @@ -4,7 +4,7 @@ class IsCheckedOutField extends DBFieldExpr
4 4 {
5 5 public function __construct()
6 6 {
7   - parent::__construct('is_checked_out', 'documents','Is Checked Out');
  7 + parent::__construct('is_checked_out', 'documents', _kt('Is Checked Out'));
8 8 $this->setAlias('IsCheckedOut');
9 9 $this->isValueQuoted(false);
10 10 }
... ...
search2/search/fields/IsImmutableField.inc.php
... ... @@ -4,7 +4,7 @@ class IsImmutableField extends DBFieldExpr
4 4 {
5 5 public function __construct()
6 6 {
7   - parent::__construct('immutable', 'documents', 'Is Immutable');
  7 + parent::__construct('immutable', 'documents', _kt('Is Immutable'));
8 8 $this->setAlias('IsImmutable');
9 9 $this->isValueQuoted(false);
10 10 }
... ...
search2/search/fields/MimeTypeField.inc.php
... ... @@ -4,7 +4,7 @@ class MimeTypeField extends DBFieldExpr
4 4 {
5 5 public function __construct()
6 6 {
7   - parent::__construct('mime_id', 'document_content_version', 'Mime Type');
  7 + parent::__construct('mime_id', 'document_content_version', _kt('Mime Type'));
8 8 $this->setAlias('MimeType');
9 9 $this->joinTo('mime_types', 'id');
10 10 $this->matchField('mimetypes');
... ...
search2/search/fields/ModifiedByField.inc.php
... ... @@ -4,7 +4,7 @@ class ModifiedByField extends DBFieldExpr
4 4 {
5 5 public function __construct()
6 6 {
7   - parent::__construct('modified_user_id', 'documents', 'Modified By');
  7 + parent::__construct('modified_user_id', 'documents', _kt('Modified By'));
8 8 $this->setAlias('ModifiedBy');
9 9 $this->joinTo('users', 'id');
10 10 $this->matchField('name');
... ...
search2/search/fields/ModifiedDeltaField.inc.php
... ... @@ -6,7 +6,7 @@ class ModifiedDeltaField extends DBFieldExpr
6 6  
7 7 public function __construct()
8 8 {
9   - parent::__construct('modified', 'documents', 'Modified Delta');
  9 + parent::__construct('modified', 'documents', _kt('Modified Delta'));
10 10 $this->setAlias('ModifiedDelta');
11 11 $this->isValueQuoted(false);
12 12 }
... ...
search2/search/fields/ModifiedField.inc.php
... ... @@ -4,7 +4,7 @@ class ModifiedField extends DBFieldExpr
4 4 {
5 5 public function __construct()
6 6 {
7   - parent::__construct('modified', 'documents', 'Modified');
  7 + parent::__construct('modified', 'documents', _kt('Modified'));
8 8 $this->setAlias('Modified');
9 9 }
10 10  
... ...
search2/search/fields/TagField.inc.php
... ... @@ -4,7 +4,7 @@ class TagField extends DBFieldExpr
4 4 {
5 5 public function __construct()
6 6 {
7   - parent::__construct('tag', 'tag_words', 'Tag');
  7 + parent::__construct('tag', 'tag_words', _kt('Tag'));
8 8 $this->setAlias('Tag');
9 9 }
10 10  
... ...
search2/search/fields/TitleField.inc.php
... ... @@ -4,7 +4,7 @@ class TitleField extends DBFieldExpr
4 4 {
5 5 public function __construct()
6 6 {
7   - parent::__construct('name', 'document_metadata_version', 'Title');
  7 + parent::__construct('name', 'document_metadata_version', _kt('Title'));
8 8 $this->setAlias('Title');
9 9 }
10 10  
... ...
search2/search/fields/WorkflowField.inc.php
... ... @@ -4,7 +4,7 @@ class WorkflowField extends DBFieldExpr
4 4 {
5 5 public function __construct()
6 6 {
7   - parent::__construct('workflow_id', 'document_metadata_version', 'Workflow');
  7 + parent::__construct('workflow_id', 'document_metadata_version', _kt('Workflow'));
8 8 $this->setAlias('Workflow');
9 9 $this->joinTo('workflows', 'id');
10 10 $this->matchField('name');
... ...
search2/search/fields/WorkflowIDField.inc.php
... ... @@ -4,7 +4,7 @@ class WorkflowIDField extends DBFieldExpr
4 4 {
5 5 public function __construct()
6 6 {
7   - parent::__construct('workflow_id', 'document_metadata_version', 'Workflow ID');
  7 + parent::__construct('workflow_id', 'document_metadata_version', _kt('Workflow ID'));
8 8 $this->setAlias('WorkflowID');
9 9 }
10 10  
... ...
search2/search/fields/WorkflowStateField.inc.php
... ... @@ -4,7 +4,7 @@ class WorkflowStateField extends DBFieldExpr
4 4 {
5 5 public function __construct()
6 6 {
7   - parent::__construct('workflow_state_id', 'document_metadata_version', 'Workflow State');
  7 + parent::__construct('workflow_state_id', 'document_metadata_version', _kt('Workflow State'));
8 8 $this->setAlias('WorkflowState');
9 9 $this->joinTo('workflow_states', 'id');
10 10 $this->matchField('name');
... ...
search2/search/fields/WorkflowStateIDField.inc.php
... ... @@ -4,7 +4,7 @@ class WorkflowStateIDField extends DBFieldExpr
4 4 {
5 5 public function __construct()
6 6 {
7   - parent::__construct('workflow_state_id', 'document_metadata_version', 'Workflow State ID');
  7 + parent::__construct('workflow_state_id', 'document_metadata_version', _kt('Workflow State ID'));
8 8 $this->setAlias('WorkflowStateID');
9 9 }
10 10  
... ...