Commit 74812039052f90436827b198b7967d0f3087e4ed

Authored by michael
1 parent 181764e2

Type: i18n Implementation.

Description:		Localised images.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2853 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/subscriptions/Subscription.inc
@@ -179,13 +179,12 @@ class Subscription { @@ -179,13 +179,12 @@ class Subscription {
179 function getAlertLink() { 179 function getAlertLink() {
180 global $default; 180 global $default;
181 // TODO: add alerted icon 181 // TODO: add alerted icon
182 - $sViewAlertUrl = "/control.presentation/lookAndFeel/knowledgeTree/subscriptions/viewAlertBL.php";  
183 $sViewAlertParams = "fSubscriptionID=" . $this->iID . "&fSubscriptionType=" . $this->iSubscriptionType; 182 $sViewAlertParams = "fSubscriptionID=" . $this->iID . "&fSubscriptionType=" . $this->iSubscriptionType;
184 183
185 if ($this->iSubscriptionType == SubscriptionConstants::subscriptionType("DocumentSubscription")) { 184 if ($this->iSubscriptionType == SubscriptionConstants::subscriptionType("DocumentSubscription")) {
186 - return generateControllerLink("viewAlert", $sViewAlertParams, "<img src=\"$default->graphicsUrl/widgets/subsc.gif\" border=\"0\"/>&nbsp;" . Document::getDocumentDisplayPath($this->iExternalID)); 185 + return generateControllerLink("viewAlert", $sViewAlertParams, "<img src=\"" . imgSrc("widgets/subsc.gif") . "\" border=\"0\"/>&nbsp;" . Document::getDocumentDisplayPath($this->iExternalID));
187 } else if ($this->iSubscriptionType == SubscriptionConstants::subscriptionType("FolderSubscription")) { 186 } else if ($this->iSubscriptionType == SubscriptionConstants::subscriptionType("FolderSubscription")) {
188 - return generateControllerLink("viewAlert", $sViewAlertParams, "<img src=\"$default->graphicsUrl/widgets/subsc.gif\" border=\"0\"/>&nbsp;" . Folder::getFolderDisplayPath($this->iExternalID)); 187 + return generateControllerLink("viewAlert", $sViewAlertParams, "<img src=\"" . imgSrc("widgets/subsc.gif") . "\" border=\"0\"/>&nbsp;" . Folder::getFolderDisplayPath($this->iExternalID));
189 } 188 }
190 } 189 }
191 190
presentation/lookAndFeel/knowledgeTree/dashboardUI.inc
@@ -38,12 +38,12 @@ function renderPendingWebDocuments($aPendingDocumentList) { @@ -38,12 +38,12 @@ function renderPendingWebDocuments($aPendingDocumentList) {
38 $sBgColor = "#9D9D7F"; 38 $sBgColor = "#9D9D7F";
39 $sToRender = "\t\t\t<tr align=\"left\" bgcolor=\"$sBgColor\">\n"; 39 $sToRender = "\t\t\t<tr align=\"left\" bgcolor=\"$sBgColor\">\n";
40 40
41 - $sToRender .= "\t\t\t\t<th class=\"sectionHeading\" colspan=\"2\"><font color=\"ffffff\">Pending Web Documents</font></th>\n"; 41 + $sToRender .= "\t\t\t\t<th class=\"sectionHeading\" colspan=\"2\"><font color=\"ffffff\">" . _("Pending Web Documents") . "</font></th>\n";
42 $sToRender .= "\t\t\t</tr>\n"; 42 $sToRender .= "\t\t\t</tr>\n";
43 for ($i = 0; $i < count($aPendingDocumentList); $i++) { 43 for ($i = 0; $i < count($aPendingDocumentList); $i++) {
44 $oWebDocument = $aPendingDocumentList[$i]; 44 $oWebDocument = $aPendingDocumentList[$i];
45 $sToRender .= "\t\t\t<tr>\n"; 45 $sToRender .= "\t\t\t<tr>\n";
46 - $sToRender .= "\t\t\t\t<td colspan=\"2\">" . generateControllerLink("webDocument", "fWebDocumentID=" . $oWebDocument->getID(), "<img src=\"$default->graphicsUrl/widgets/dstatus.gif\" border=\"0\"/>&nbsp;" . $oWebDocument->getDisplayPath()) . "</td>\n"; 46 + $sToRender .= "\t\t\t\t<td colspan=\"2\">" . generateControllerLink("webDocument", "fWebDocumentID=" . $oWebDocument->getID(), "<img src=\"" . imgSrc("widgets/dstatus.gif") . "\" border=\"0\"/>&nbsp;" . $oWebDocument->getDisplayPath()) . "</td>\n";
47 $sToRender .= "\t\t\t</tr>\n"; 47 $sToRender .= "\t\t\t</tr>\n";
48 } 48 }
49 return $sToRender; 49 return $sToRender;
@@ -68,7 +68,7 @@ function renderRestorationRequests($aRestorationRequests) { @@ -68,7 +68,7 @@ function renderRestorationRequests($aRestorationRequests) {
68 $oDocument = Document::get($aRestorationRequests[$i]->getDocumentID()); 68 $oDocument = Document::get($aRestorationRequests[$i]->getDocumentID());
69 if ($oDocument) { 69 if ($oDocument) {
70 $sToRender .= "\t\t\t<tr>\n"; 70 $sToRender .= "\t\t\t<tr>\n";
71 - $sToRender .= "\t\t\t\t<td colspan=\"2\">" . generateControllerLink("viewDocument", "fDocumentID=" . $oDocument->getID(), "<img src=\"$default->graphicsUrl/widgets/dstatus.gif\" border=\"0\"/>&nbsp;" . $oDocument->getDisplayPath()) . "</td>\n"; 71 + $sToRender .= "\t\t\t\t<td colspan=\"2\">" . generateControllerLink("viewDocument", "fDocumentID=" . $oDocument->getID(), "<img src=\"" . imgSrc("widgets/dstatus.gif") . "\" border=\"0\"/>&nbsp;" . $oDocument->getDisplayPath()) . "</td>\n";
72 $sToRender .= "\t\t\t</tr>\n"; 72 $sToRender .= "\t\t\t</tr>\n";
73 } 73 }
74 } 74 }
@@ -96,7 +96,7 @@ function renderPendingCollaborationDocuments($aPendingDocumentList) { @@ -96,7 +96,7 @@ function renderPendingCollaborationDocuments($aPendingDocumentList) {
96 $oDocument = $aPendingDocumentList[$i]; 96 $oDocument = $aPendingDocumentList[$i];
97 if ($oDocument) { 97 if ($oDocument) {
98 $sToRender .= "\t\t\t<tr>\n"; 98 $sToRender .= "\t\t\t<tr>\n";
99 - $sToRender .= "\t\t\t\t<td colspan=\"2\">" . generateControllerLink("viewDocument", "fDocumentID=" . $oDocument->getID() . "&fShowSection=documentRouting", "<img src=\"$default->graphicsUrl/widgets/dstatus.gif\" border=\"0\"/>&nbsp;" . $oDocument->getDisplayPath()) . "</td>\n"; 99 + $sToRender .= "\t\t\t\t<td colspan=\"2\">" . generateControllerLink("viewDocument", "fDocumentID=" . $oDocument->getID() . "&fShowSection=documentRouting", "<img src=\"" . imgSrc("widgets/dstatus.gif") . "\" border=\"0\"/>&nbsp;" . $oDocument->getDisplayPath()) . "</td>\n";
100 $sToRender .= "\t\t\t</tr>\n"; 100 $sToRender .= "\t\t\t</tr>\n";
101 } 101 }
102 } 102 }
@@ -133,7 +133,7 @@ function renderCheckedOutDocuments($aCheckedOutDocumentList) { @@ -133,7 +133,7 @@ function renderCheckedOutDocuments($aCheckedOutDocumentList) {
133 for ($i = 0; $i < count($aCheckedOutDocumentList); $i++) { 133 for ($i = 0; $i < count($aCheckedOutDocumentList); $i++) {
134 $oDocument = $aCheckedOutDocumentList[$i]; 134 $oDocument = $aCheckedOutDocumentList[$i];
135 $sToRender .= "\t\t\t<tr>\n"; 135 $sToRender .= "\t\t\t<tr>\n";
136 - $sToRender .= "\t\t\t\t<td>" . generateControllerLink("viewDocument", "fDocumentID=" . $oDocument->getID(), "<img src=\"$default->graphicsUrl/widgets/dstatus.gif\" border=\"0\"/>&nbsp;" . $oDocument->getDisplayPath()) . "</td>\n"; 136 + $sToRender .= "\t\t\t\t<td>" . generateControllerLink("viewDocument", "fDocumentID=" . $oDocument->getID(), "<img src=\"" . imgSrc("widgets/dstatus.gif") . "\" border=\"0\"/>&nbsp;" . $oDocument->getDisplayPath()) . "</td>\n";
137 $sToRender .= "\t\t\t\t<td align=right>" . $oDocument->getDaysSinceLastModified() . "</td>\n"; 137 $sToRender .= "\t\t\t\t<td align=right>" . $oDocument->getDaysSinceLastModified() . "</td>\n";
138 $sToRender .= "\t\t\t</tr>\n"; 138 $sToRender .= "\t\t\t</tr>\n";
139 } 139 }
@@ -192,7 +192,7 @@ function renderDependantDocuments($aDependantDocumentList) { @@ -192,7 +192,7 @@ function renderDependantDocuments($aDependantDocumentList) {
192 $sToRender .= "\t\t\t<tr>\n"; 192 $sToRender .= "\t\t\t<tr>\n";
193 $sToRender .= "\t\t\t\t<td>" . generateControllerLink("addDocument", "fFolderID=" . User::getUserRootFolderID() . "&fDependantDocumentID=" . $oDependantDocument->getID(), $oDependantDocument->getDocumentTitle()) . "</td>"; 193 $sToRender .= "\t\t\t\t<td>" . generateControllerLink("addDocument", "fFolderID=" . User::getUserRootFolderID() . "&fDependantDocumentID=" . $oDependantDocument->getID(), $oDependantDocument->getDocumentTitle()) . "</td>";
194 if (!($oTemplateDocument === false)) { 194 if (!($oTemplateDocument === false)) {
195 - $sToRender .= "<td>" . generateControllerLink("viewDocument", "fDocumentID=" . $oTemplateDocument->getID(), "<img src=\"$default->graphicsUrl/widgets/dstatus.gif\" border=\"0\"/>&nbsp;" . $oTemplateDocument->getName()) . "</td>\n"; 195 + $sToRender .= "<td>" . generateControllerLink("viewDocument", "fDocumentID=" . $oTemplateDocument->getID(), "<img src=\"" . imgSrc("widgets/dstatus.gif") . "\" border=\"0\"/>&nbsp;" . $oTemplateDocument->getName()) . "</td>\n";
196 } else { 196 } else {
197 $sToRender .= "<td>No template specified</td>\n"; 197 $sToRender .= "<td>No template specified</td>\n";
198 } 198 }
@@ -212,7 +212,7 @@ function renderQuickLinks($aQuickLinks) { @@ -212,7 +212,7 @@ function renderQuickLinks($aQuickLinks) {
212 $sToRender .= "\t\t\t</tr>\n"; 212 $sToRender .= "\t\t\t</tr>\n";
213 for ($i = 0; $i < count($aQuickLinks); $i++) { 213 for ($i = 0; $i < count($aQuickLinks); $i++) {
214 $sToRender .= "\t\t\t<tr>\n"; 214 $sToRender .= "\t\t\t<tr>\n";
215 - $sToRender .= "\t\t\t\t<td colspan=\"2\"><a href=\"" . $aQuickLinks[$i]->getUrl() . "\" target=\"_new\"><img src=\"$default->graphicsUrl/widgets/qlink.gif\" border=\"0\"/>" . $aQuickLinks[$i]->getName() . "</a></td>\n"; 215 + $sToRender .= "\t\t\t\t<td colspan=\"2\"><a href=\"" . $aQuickLinks[$i]->getUrl() . "\" target=\"_new\"><img src=\"" . imgSrc("widgets/qlink.gif") . "\" border=\"0\"/>" . $aQuickLinks[$i]->getName() . "</a></td>\n";
216 $sToRender .= "\t\t\t</tr>\n"; 216 $sToRender .= "\t\t\t</tr>\n";
217 } 217 }
218 return $sToRender; 218 return $sToRender;
presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc
@@ -251,7 +251,7 @@ function renderSortHeadings($sSortBy, $sSortDirection) { @@ -251,7 +251,7 @@ function renderSortHeadings($sSortBy, $sSortDirection) {
251 // if the current heading is being sorted then flip the sort direction 251 // if the current heading is being sorted then flip the sort direction
252 if ($sSortBy == $key) { 252 if ($sSortBy == $key) {
253 $sCurrentSortDirection = ($sSortDirection == "asc" ? "desc" : "asc"); 253 $sCurrentSortDirection = ($sSortDirection == "asc" ? "desc" : "asc");
254 - $displayText = "<img border=\"0\" src=\"$default->graphicsUrl/" . $sCurrentSortDirection . ".gif\">" . $displayText; 254 + $displayText = "<img border=\"0\" src=\"" . imgSrc($sCurrentSortDirection . ".gif") . "\">" . $displayText;
255 } 255 }
256 switch ($fBrowseType) { 256 switch ($fBrowseType) {
257 case "folder" : 257 case "folder" :