diff --git a/preferences.php b/preferences.php index 05b00d1..ffea8cb 100644 --- a/preferences.php +++ b/preferences.php @@ -109,7 +109,7 @@ class PreferencesDispatcher extends KTStandardDispatcher { 'fail_action' => 'setPassword', 'cancel_action' => 'main', 'label' => _kt('Change your password'), - 'submit_label' => _kt('Set pasword'), + 'submit_label' => _kt('Set password'), 'extraargs' => $this->meldPersistQuery("","", true), )); diff --git a/view.php b/view.php index 3a37664..011f27a 100755 --- a/view.php +++ b/view.php @@ -97,13 +97,13 @@ class ViewDocumentDispatcher extends KTStandardDispatcher { $document_data = array(); $document_id = KTUtil::arrayGet($_REQUEST, 'fDocumentId'); if ($document_id === null) { - $this->oPage->addError('No document was requested. Please browse for one.'); + $this->oPage->addError(sprintf(_kt("No document was requested. Please browse for one."), KTBrowseUtil::getBrowseBaseUrl())); return $this->do_error(); } // try get the document. $oDocument =& Document::get($document_id); if (PEAR::isError($oDocument)) { - $this->oPage->addError('The document you attempted to retrieve is invalid. Please browse for one.'); + $this->oPage->addError(sprintf(_kt("The document you attempted to retrieve is invalid. Please browse for one."), KTBrowseUtil::getBrowseBaseUrl())); return $this->do_error(); } $document_id = $oDocument->getId(); @@ -146,7 +146,7 @@ class ViewDocumentDispatcher extends KTStandardDispatcher { $is_valid_doctype = true; if (PEAR::isError($document_data["document_type"])) { - $this->oPage->addError('The document you requested has an invalid document type. Unfortunately, this means that we cannot effectively display it.'); + $this->oPage->addError(_kt('The document you requested has an invalid document type. Unfortunately, this means that we cannot effectively display it.')); $is_valid_doctype = false; } @@ -248,7 +248,7 @@ class ViewDocumentDispatcher extends KTStandardDispatcher { $document_data = array(); $document_id = KTUtil::arrayGet($_REQUEST, 'fDocumentId'); if ($document_id === null) { - $this->oPage->addError('No document was requested. Please browse for one.'); + $this->oPage->addError(sprintf(_kt("No document was requested. Please browse for one."), KTBrowseUtil::getBrowseBaseUrl())); return $this->do_error(); } @@ -259,7 +259,7 @@ class ViewDocumentDispatcher extends KTStandardDispatcher { // try get the document. $oDocument =& Document::get($document_id, $base_version); if (PEAR::isError($oDocument)) { - $this->oPage->addError('The base document you attempted to retrieve is invalid. Please browse for one.'); + $this->oPage->addError(sprintf(_kt("The base document you attempted to retrieve is invalid. Please browse for one."), KTBrowseUtil::getBrowseBaseUrl())); return $this->do_error(); } @@ -281,7 +281,7 @@ class ViewDocumentDispatcher extends KTStandardDispatcher { $comparison_version = KTUtil::arrayGet($_REQUEST, 'fComparisonVersion'); if ($comparison_version=== null) { - $this->oPage->addError('No comparison version was requested. Please s elect a version.'); + $this->oPage->addError(sprintf(_kt("No comparison version was requested. Please select a version."), KTUtil::addQueryStringSelf('action=history&fDocumentId=' . $document_id))); return $this->do_error(); } @@ -302,7 +302,7 @@ class ViewDocumentDispatcher extends KTStandardDispatcher { $is_valid_doctype = true; if (PEAR::isError($document_data["document_type"])) { - $this->oPage->addError('The document you requested has an invalid document type. Unfortunately, this means that we cannot effectively display it.'); + $this->oPage->addError(_kt('The document you requested has an invalid document type. Unfortunately, this means that we cannot effectively display it.')); $is_valid_doctype = false; }