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 179 function getAlertLink() {
180 180 global $default;
181 181 // TODO: add alerted icon
182   - $sViewAlertUrl = "/control.presentation/lookAndFeel/knowledgeTree/subscriptions/viewAlertBL.php";
183 182 $sViewAlertParams = "fSubscriptionID=" . $this->iID . "&fSubscriptionType=" . $this->iSubscriptionType;
184 183  
185 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 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 38 $sBgColor = "#9D9D7F";
39 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 42 $sToRender .= "\t\t\t</tr>\n";
43 43 for ($i = 0; $i < count($aPendingDocumentList); $i++) {
44 44 $oWebDocument = $aPendingDocumentList[$i];
45 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 47 $sToRender .= "\t\t\t</tr>\n";
48 48 }
49 49 return $sToRender;
... ... @@ -68,7 +68,7 @@ function renderRestorationRequests($aRestorationRequests) {
68 68 $oDocument = Document::get($aRestorationRequests[$i]->getDocumentID());
69 69 if ($oDocument) {
70 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 72 $sToRender .= "\t\t\t</tr>\n";
73 73 }
74 74 }
... ... @@ -96,7 +96,7 @@ function renderPendingCollaborationDocuments($aPendingDocumentList) {
96 96 $oDocument = $aPendingDocumentList[$i];
97 97 if ($oDocument) {
98 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 100 $sToRender .= "\t\t\t</tr>\n";
101 101 }
102 102 }
... ... @@ -133,7 +133,7 @@ function renderCheckedOutDocuments($aCheckedOutDocumentList) {
133 133 for ($i = 0; $i < count($aCheckedOutDocumentList); $i++) {
134 134 $oDocument = $aCheckedOutDocumentList[$i];
135 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 137 $sToRender .= "\t\t\t\t<td align=right>" . $oDocument->getDaysSinceLastModified() . "</td>\n";
138 138 $sToRender .= "\t\t\t</tr>\n";
139 139 }
... ... @@ -192,7 +192,7 @@ function renderDependantDocuments($aDependantDocumentList) {
192 192 $sToRender .= "\t\t\t<tr>\n";
193 193 $sToRender .= "\t\t\t\t<td>" . generateControllerLink("addDocument", "fFolderID=" . User::getUserRootFolderID() . "&fDependantDocumentID=" . $oDependantDocument->getID(), $oDependantDocument->getDocumentTitle()) . "</td>";
194 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 196 } else {
197 197 $sToRender .= "<td>No template specified</td>\n";
198 198 }
... ... @@ -212,7 +212,7 @@ function renderQuickLinks($aQuickLinks) {
212 212 $sToRender .= "\t\t\t</tr>\n";
213 213 for ($i = 0; $i < count($aQuickLinks); $i++) {
214 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 216 $sToRender .= "\t\t\t</tr>\n";
217 217 }
218 218 return $sToRender;
... ...
presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc
... ... @@ -251,7 +251,7 @@ function renderSortHeadings($sSortBy, $sSortDirection) {
251 251 // if the current heading is being sorted then flip the sort direction
252 252 if ($sSortBy == $key) {
253 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 256 switch ($fBrowseType) {
257 257 case "folder" :
... ...