From 74812039052f90436827b198b7967d0f3087e4ed Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 11 May 2004 12:15:36 +0000 Subject: [PATCH] Type: i18n Implementation. Description: Localised images. --- lib/subscriptions/Subscription.inc | 5 ++--- presentation/lookAndFeel/knowledgeTree/dashboardUI.inc | 14 +++++++------- presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc | 2 +- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/lib/subscriptions/Subscription.inc b/lib/subscriptions/Subscription.inc index 331aee4..f1f69df 100644 --- a/lib/subscriptions/Subscription.inc +++ b/lib/subscriptions/Subscription.inc @@ -179,13 +179,12 @@ class Subscription { function getAlertLink() { global $default; // TODO: add alerted icon - $sViewAlertUrl = "/control.presentation/lookAndFeel/knowledgeTree/subscriptions/viewAlertBL.php"; $sViewAlertParams = "fSubscriptionID=" . $this->iID . "&fSubscriptionType=" . $this->iSubscriptionType; if ($this->iSubscriptionType == SubscriptionConstants::subscriptionType("DocumentSubscription")) { - return generateControllerLink("viewAlert", $sViewAlertParams, "graphicsUrl/widgets/subsc.gif\" border=\"0\"/> " . Document::getDocumentDisplayPath($this->iExternalID)); + return generateControllerLink("viewAlert", $sViewAlertParams, " " . Document::getDocumentDisplayPath($this->iExternalID)); } else if ($this->iSubscriptionType == SubscriptionConstants::subscriptionType("FolderSubscription")) { - return generateControllerLink("viewAlert", $sViewAlertParams, "graphicsUrl/widgets/subsc.gif\" border=\"0\"/> " . Folder::getFolderDisplayPath($this->iExternalID)); + return generateControllerLink("viewAlert", $sViewAlertParams, " " . Folder::getFolderDisplayPath($this->iExternalID)); } } diff --git a/presentation/lookAndFeel/knowledgeTree/dashboardUI.inc b/presentation/lookAndFeel/knowledgeTree/dashboardUI.inc index d8a75f7..f330e58 100644 --- a/presentation/lookAndFeel/knowledgeTree/dashboardUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/dashboardUI.inc @@ -38,12 +38,12 @@ function renderPendingWebDocuments($aPendingDocumentList) { $sBgColor = "#9D9D7F"; $sToRender = "\t\t\t\n"; - $sToRender .= "\t\t\t\tPending Web Documents\n"; + $sToRender .= "\t\t\t\t" . _("Pending Web Documents") . "\n"; $sToRender .= "\t\t\t\n"; for ($i = 0; $i < count($aPendingDocumentList); $i++) { $oWebDocument = $aPendingDocumentList[$i]; $sToRender .= "\t\t\t\n"; - $sToRender .= "\t\t\t\t" . generateControllerLink("webDocument", "fWebDocumentID=" . $oWebDocument->getID(), "graphicsUrl/widgets/dstatus.gif\" border=\"0\"/> " . $oWebDocument->getDisplayPath()) . "\n"; + $sToRender .= "\t\t\t\t" . generateControllerLink("webDocument", "fWebDocumentID=" . $oWebDocument->getID(), " " . $oWebDocument->getDisplayPath()) . "\n"; $sToRender .= "\t\t\t\n"; } return $sToRender; @@ -68,7 +68,7 @@ function renderRestorationRequests($aRestorationRequests) { $oDocument = Document::get($aRestorationRequests[$i]->getDocumentID()); if ($oDocument) { $sToRender .= "\t\t\t\n"; - $sToRender .= "\t\t\t\t" . generateControllerLink("viewDocument", "fDocumentID=" . $oDocument->getID(), "graphicsUrl/widgets/dstatus.gif\" border=\"0\"/> " . $oDocument->getDisplayPath()) . "\n"; + $sToRender .= "\t\t\t\t" . generateControllerLink("viewDocument", "fDocumentID=" . $oDocument->getID(), " " . $oDocument->getDisplayPath()) . "\n"; $sToRender .= "\t\t\t\n"; } } @@ -96,7 +96,7 @@ function renderPendingCollaborationDocuments($aPendingDocumentList) { $oDocument = $aPendingDocumentList[$i]; if ($oDocument) { $sToRender .= "\t\t\t\n"; - $sToRender .= "\t\t\t\t" . generateControllerLink("viewDocument", "fDocumentID=" . $oDocument->getID() . "&fShowSection=documentRouting", "graphicsUrl/widgets/dstatus.gif\" border=\"0\"/> " . $oDocument->getDisplayPath()) . "\n"; + $sToRender .= "\t\t\t\t" . generateControllerLink("viewDocument", "fDocumentID=" . $oDocument->getID() . "&fShowSection=documentRouting", " " . $oDocument->getDisplayPath()) . "\n"; $sToRender .= "\t\t\t\n"; } } @@ -133,7 +133,7 @@ function renderCheckedOutDocuments($aCheckedOutDocumentList) { for ($i = 0; $i < count($aCheckedOutDocumentList); $i++) { $oDocument = $aCheckedOutDocumentList[$i]; $sToRender .= "\t\t\t\n"; - $sToRender .= "\t\t\t\t" . generateControllerLink("viewDocument", "fDocumentID=" . $oDocument->getID(), "graphicsUrl/widgets/dstatus.gif\" border=\"0\"/> " . $oDocument->getDisplayPath()) . "\n"; + $sToRender .= "\t\t\t\t" . generateControllerLink("viewDocument", "fDocumentID=" . $oDocument->getID(), " " . $oDocument->getDisplayPath()) . "\n"; $sToRender .= "\t\t\t\t" . $oDocument->getDaysSinceLastModified() . "\n"; $sToRender .= "\t\t\t\n"; } @@ -192,7 +192,7 @@ function renderDependantDocuments($aDependantDocumentList) { $sToRender .= "\t\t\t\n"; $sToRender .= "\t\t\t\t" . generateControllerLink("addDocument", "fFolderID=" . User::getUserRootFolderID() . "&fDependantDocumentID=" . $oDependantDocument->getID(), $oDependantDocument->getDocumentTitle()) . ""; if (!($oTemplateDocument === false)) { - $sToRender .= "" . generateControllerLink("viewDocument", "fDocumentID=" . $oTemplateDocument->getID(), "graphicsUrl/widgets/dstatus.gif\" border=\"0\"/> " . $oTemplateDocument->getName()) . "\n"; + $sToRender .= "" . generateControllerLink("viewDocument", "fDocumentID=" . $oTemplateDocument->getID(), " " . $oTemplateDocument->getName()) . "\n"; } else { $sToRender .= "No template specified\n"; } @@ -212,7 +212,7 @@ function renderQuickLinks($aQuickLinks) { $sToRender .= "\t\t\t\n"; for ($i = 0; $i < count($aQuickLinks); $i++) { $sToRender .= "\t\t\t\n"; - $sToRender .= "\t\t\t\tgetUrl() . "\" target=\"_new\">graphicsUrl/widgets/qlink.gif\" border=\"0\"/>" . $aQuickLinks[$i]->getName() . "\n"; + $sToRender .= "\t\t\t\tgetUrl() . "\" target=\"_new\">" . $aQuickLinks[$i]->getName() . "\n"; $sToRender .= "\t\t\t\n"; } return $sToRender; diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc index ba6f36f..02c26d2 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc @@ -251,7 +251,7 @@ function renderSortHeadings($sSortBy, $sSortDirection) { // if the current heading is being sorted then flip the sort direction if ($sSortBy == $key) { $sCurrentSortDirection = ($sSortDirection == "asc" ? "desc" : "asc"); - $displayText = "graphicsUrl/" . $sCurrentSortDirection . ".gif\">" . $displayText; + $displayText = "" . $displayText; } switch ($fBrowseType) { case "folder" : -- libgit2 0.21.4