Commit a00d45a92f780d093f1fa23b36af21be1da9d8a4

Authored by Neil Blakey-Milner
1 parent 050f900b

Add {i18n} blocks around translatable text.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4335 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 47 changed files with 437 additions and 375 deletions
templates/kt3/admin_items.smarty
1 <h2>{$category.title}</h2> 1 <h2>{$category.title}</h2>
2 2
3 {if ($items === null)} 3 {if ($items === null)}
4 -<p class="descriptiveText">No items in the category.</p> 4 +<p class="descriptiveText">{i18n}No items in the category.{/i18n}</p>
5 {else} 5 {else}
6 <dl class="panel_menu"> 6 <dl class="panel_menu">
7 {foreach item=aItem from=$items} 7 {foreach item=aItem from=$items}
@@ -9,4 +9,4 @@ @@ -9,4 +9,4 @@
9 <dd class="descriptiveText">{$aItem.description}</dd> 9 <dd class="descriptiveText">{$aItem.description}</dd>
10 {/foreach} 10 {/foreach}
11 </dl> 11 </dl>
12 -{/if}  
13 \ No newline at end of file 12 \ No newline at end of file
  13 +{/if}
templates/kt3/compare_document.smarty
1 -<h2>Version Comparison: {$document->getName()}</h2>  
2 -<p class="descriptiveText">showing comparison between versions <strong>{$document->getMajorVersionNumber()}.{$document->getMinorVersionNumber()}</strong>  
3 -and <strong>{$comparison_document->getMajorVersionNumber()}.{$comparison_document->getMinorVersionNumber()} ({$comparison_document->getMetadataVersion()})</strong></p> 1 +<h2>{i18n}Version Comparison{/i18n}: {$document->getName()}</h2>
  2 +{capture assign=from}
  3 +<strong>{$document->getMajorVersionNumber()}.{$document->getMinorVersionNumber()}</strong> ({$document->getMetadataVersion()})
  4 +{/capture}
  5 +{capture assign=to}
  6 +<strong>{$comparison_document->getMajorVersionNumber()}.{$comparison_document->getMinorVersionNumber()} ({$comparison_document->getMetadataVersion()})
  7 +{/capture}
  8 +<p class="descriptiveText">
  9 +{i18n arg_from=$from arg_to=$to}showing comparison between versions #from# and #to#{/i18n}</p>
4 10
5 <!-- 11 <!--
6 its possible that one of the versions isn't "real" 12 its possible that one of the versions isn't "real"
@@ -9,17 +15,19 @@ and &lt;strong&gt;{$comparison_document-&gt;getMajorVersionNumber()}.{$comparison_documen @@ -9,17 +15,19 @@ and &lt;strong&gt;{$comparison_document-&gt;getMajorVersionNumber()}.{$comparison_documen
9 --> 15 -->
10 16
11 {if ($document_data.is_manufactured)} 17 {if ($document_data.is_manufactured)}
12 -<p class="descriptiveText"><strong class="ktInlineError">Please note:</strong> the information for version  
13 -{$document->getMajorVersionNumber()}.{$document->getMinorVersionNumber()} ({$document->getMetadataVersion()})  
14 -comes from an older version of KnowledgeTree, and may be incorrect. 18 +<p class="descriptiveText"><strong class="ktInlineError">{i18n}Please
  19 +note{/i18n}:</strong> {i18n arg_version=$from}the information for version
  20 +#version# comes from an older version of KnowledgeTree, and may be
  21 +incorrect.{/i18n}
15 {/if} 22 {/if}
16 23
17 {if ($comparison_data.is_manufactured)} 24 {if ($comparison_data.is_manufactured)}
18 -<p class="descriptiveText"><strong class="ktInlineError">Please note:</strong> the information for version  
19 -{$comparison_document->getMajorVersionNumber()}.{$comparison_document->getMinorVersionNumber()} ({$comparison_document->getMetadataVersion()})  
20 -comes from an older version of KnowledgeTree, and may be incorrect. 25 +<p class="descriptiveText"><strong class="ktInlineError">{i18n}Please
  26 +note{/i18n}:</strong> {i18n arg_version=$to}the information for version
  27 +#version# comes from an older version of KnowledgeTree, and may be
  28 +incorrect.{/i18n}
21 {/if} 29 {/if}
22 30
23 {foreach item=oFieldset from=$fieldsets} 31 {foreach item=oFieldset from=$fieldsets}
24 {$oFieldset->renderComparison($document_data, $comparison_data)} 32 {$oFieldset->renderComparison($document_data, $comparison_data)}
25 -{/foreach}  
26 \ No newline at end of file 33 \ No newline at end of file
  34 +{/foreach}
templates/kt3/document_collection.smarty
@@ -35,12 +35,13 @@ @@ -35,12 +35,13 @@
35 </tr> 35 </tr>
36 {/foreach} 36 {/foreach}
37 {else} 37 {else}
38 - <tr><td colspan="{$columncount}">No documents or folders available in this location.</td></tr> 38 + <tr><td colspan="{$columncount}">{i18n}No documents or folders available in this location.{/i18n}</td></tr>
39 {/if} 39 {/if}
40 </tbody> 40 </tbody>
41 <tfoot> 41 <tfoot>
42 <tr> 42 <tr>
43 - <td colspan="{$columncount}"><span class="descriptiveText">{$context->itemCount} items, {$context->batchSize} per page</span> 43 + <td colspan="{$columncount}"><span class="descriptiveText">
  44 +{i18n arg_itemCount=$context->itemCount arg_batchSize=$context->batchSize}#itemCount# items, #batchSize# per page{/i18n}</span>
44 {if ($pagecount > 1)} 45 {if ($pagecount > 1)}
45 {if ($currentpage == 0)} 46 {if ($currentpage == 0)}
46 <span class="notactive">&laquo; prev</a> 47 <span class="notactive">&laquo; prev</a>
@@ -65,4 +66,4 @@ @@ -65,4 +66,4 @@
65 </td> 66 </td>
66 </tr> 67 </tr>
67 </tfoot> 68 </tfoot>
68 - </table>  
69 \ No newline at end of file 69 \ No newline at end of file
  70 + </table>
templates/ktcore/action/addFolder.smarty
1 -<p class="descriptiveText">Folders are one way of organising documents 1 +<p class="descriptiveText">{i18n}Folders are one way of organising documents
2 in the document management system. Folders provide meaning in the 2 in the document management system. Folders provide meaning in the
3 traditional file storage way - through a path through which one will 3 traditional file storage way - through a path through which one will
4 browse that describes the content more specifically as one enters 4 browse that describes the content more specifically as one enters
5 -folders.</p> 5 +folders.{/i18n}</p>
6 6
7 <p class="descriptiveText">FIXME</p> 7 <p class="descriptiveText">FIXME</p>
8 8
9 {assign var=iFolderId value=$context->oFolder->getId()} 9 {assign var=iFolderId value=$context->oFolder->getId()}
10 -<p class="descriptiveText">If you do not intend to add a folder, you  
11 -should <a href="{"browse"|generateControllerUrl:"fFolderId=$iFolderId"}">cancel  
12 -this action</a>.</p> 10 +{capture assign=link}
  11 +{"browse"|generateControllerUrl:"fFolderId=$iFolderId"}
  12 +{/capture}
  13 +<p class="descriptiveText">{i18n arg_link=$link}If you do not intend to
  14 +add a folder, you should <a href="#link#">cancel this
  15 +action</a>.{/i18n}</p>
13 16
14 <form method="POST" action="{$smarty.server.PHP_SELF}" enctype="multipart/form-data"> 17 <form method="POST" action="{$smarty.server.PHP_SELF}" enctype="multipart/form-data">
15 -<fieldset><legend>Add folder</legend> 18 +<fieldset><legend>{i18n}Add folder{/i18n}</legend>
16 <input type="hidden" name="action" value="addFolder" /> 19 <input type="hidden" name="action" value="addFolder" />
17 <input type="hidden" name="fFolderId" value="{$iFolderId}" /> 20 <input type="hidden" name="fFolderId" value="{$iFolderId}" />
18 {foreach from=$fields item=oWidget } 21 {foreach from=$fields item=oWidget }
@@ -20,7 +23,7 @@ this action&lt;/a&gt;.&lt;/p&gt; @@ -20,7 +23,7 @@ this action&lt;/a&gt;.&lt;/p&gt;
20 {/foreach} 23 {/foreach}
21 24
22 <div class="form_actions"> 25 <div class="form_actions">
23 -<input type="submit" name="submit" value="Add folder" /> 26 +<input type="submit" name="submit" value="{i18n}Add folder{/i18n}" />
24 </div> 27 </div>
25 </fieldset> 28 </fieldset>
26 </form> 29 </form>
templates/ktcore/action/archive.smarty
1 <p class="descriptiveText">FIXME: Descriptive text.</p> 1 <p class="descriptiveText">FIXME: Descriptive text.</p>
2 2
3 {assign var=iDocumentId value=$context->oDocument->getId()} 3 {assign var=iDocumentId value=$context->oDocument->getId()}
4 -<p class="descriptiveText">If you do not intend to archive this document, you should  
5 -<a href="{"viewDocument"|generateControllerUrl:"fDocumentId=$iDocumentId"}">cancel  
6 -the archive</a>.</p> 4 +{capture assign=link}
  5 +{"viewDocument"|generateControllerUrl:"fDocumentId=$iDocumentId"}
  6 +{/capture}
  7 +
  8 +<p class="descriptiveText">{i18n arg_link=$link}If you do not intend to
  9 +archive this document, you should <a href="#link#">cancel the
  10 +archive</a>.{/i18n}</p>
7 11
8 <form method="POST" action="{$smarty.server.PHP_SELF}"> 12 <form method="POST" action="{$smarty.server.PHP_SELF}">
9 -<fieldset><legend>Archive</legend> 13 +<fieldset><legend>{i18n}Archive{/i18n}</legend>
10 <input type="hidden" name="action" value="move" /> 14 <input type="hidden" name="action" value="move" />
11 <input type="hidden" name="fDocumentId" value="{$iDocumentId}" /> 15 <input type="hidden" name="fDocumentId" value="{$iDocumentId}" />
12 {foreach from=$fields item=oWidget } 16 {foreach from=$fields item=oWidget }
@@ -14,8 +18,8 @@ the archive&lt;/a&gt;.&lt;/p&gt; @@ -14,8 +18,8 @@ the archive&lt;/a&gt;.&lt;/p&gt;
14 {/foreach} 18 {/foreach}
15 19
16 <div class="form_actions"> 20 <div class="form_actions">
17 -<input type="submit" name="submit[move]" value="Move" />  
18 -<input type="submit" name="submit[cancel]" value="Cancel" /> 21 +<input type="submit" name="submit[move]" value="{i18n}Move{/i18n}" />
  22 +<input type="submit" name="submit[cancel]" value="{i18n}Cancel{/i18n}" />
19 </div> 23 </div>
20 </fieldset> 24 </fieldset>
21 </form> 25 </form>
templates/ktcore/action/checkin.smarty
1 -<p class="descriptiveText">Checking in a document updates the document  
2 -and allows others to check out the document.</p> 1 +<p class="descriptiveText">{i18n}Checking in a document updates the document
  2 +and allows others to check out the document.{/i18n}</p>
3 3
4 {assign var=iDocumentId value=$context->oDocument->getId()} 4 {assign var=iDocumentId value=$context->oDocument->getId()}
5 -<p class="descriptiveText">If you do not intend to edit the document, and you  
6 -do not wish to prevent others from changing the document, you should  
7 -<a href="{"viewDocument"|generateControllerUrl:"fDocumentId=$iDocumentId"}">cancel  
8 -this checkout</a>.</p> 5 +{capture assign=cancellink}
  6 +{"viewDocument"|generateControllerUrl:"fDocumentId=$iDocumentId"}
  7 +{/capture}
  8 +<p class="descriptiveText">{i18n arg_link=$cancellink}If you do not
  9 +intend to edit the document, and you do not wish to prevent others from
  10 +changing the document, you should <a href="#link#">cancel
  11 +this checkout</a>.{/i18n}</p>
9 12
10 <form method="POST" action="{$smarty.server.PHP_SELF}" enctype="multipart/form-data"> 13 <form method="POST" action="{$smarty.server.PHP_SELF}" enctype="multipart/form-data">
11 -<fieldset><legend>Checkin</legend> 14 +<fieldset><legend>{i18n}Checkin{/i18n}</legend>
12 <input type="hidden" name="action" value="checkin" /> 15 <input type="hidden" name="action" value="checkin" />
13 <input type="hidden" name="fDocumentId" value="{$iDocumentId}" /> 16 <input type="hidden" name="fDocumentId" value="{$iDocumentId}" />
14 {foreach from=$checkin_fields item=oWidget } 17 {foreach from=$checkin_fields item=oWidget }
15 {$oWidget->render()} 18 {$oWidget->render()}
16 {/foreach} 19 {/foreach}
17 <div class="form_actions"> 20 <div class="form_actions">
18 -<input type="submit" name="submit" value="Checkin" /> 21 +<input type="submit" name="submit" value="{i18n}Checkin{/i18n}" />
19 </div> 22 </div>
20 </fieldset> 23 </fieldset>
21 </form> 24 </form>
templates/ktcore/action/checkout.smarty
1 -<p class="descriptiveText">Checking out a document reserves it for your 1 +<p class="descriptiveText">{i18n}Checking out a document reserves it for your
2 exclusive use. This ensures that you can edit the document without 2 exclusive use. This ensures that you can edit the document without
3 anyone else changing the document and placing it into the document 3 anyone else changing the document and placing it into the document
4 -management system.</p> 4 +management system.{/i18n}</p>
5 5
6 {assign var=iDocumentId value=$context->oDocument->getId()} 6 {assign var=iDocumentId value=$context->oDocument->getId()}
7 -<p class="descriptiveText">If you do not intend to edit the document, and you 7 +{capture assign=link}
  8 +{"viewDocument"|generateControllerUrl:"fDocumentId=$iDocumentId"}
  9 +{/capture}
  10 +<p class="descriptiveText">{i18n arg_link=$link}If you do not intend to edit the document, and you
8 do not wish to prevent others from changing the document, you should 11 do not wish to prevent others from changing the document, you should
9 -<a href="{"viewDocument"|generateControllerUrl:"fDocumentId=$iDocumentId"}">cancel  
10 -this checkout</a>.</p> 12 +<a href="#link#">cancel this checkout</a>.{/i18n}</p>
11 13
12 <form method="POST" action="{$smarty.server.PHP_SELF}"> 14 <form method="POST" action="{$smarty.server.PHP_SELF}">
13 -<fieldset><legend>Checkout</legend> 15 +<fieldset><legend>{i18n}Checkout{/i18n}</legend>
14 <input type="hidden" name="action" value="checkout" /> 16 <input type="hidden" name="action" value="checkout" />
15 <input type="hidden" name="fDocumentId" value="{$iDocumentId}" /> 17 <input type="hidden" name="fDocumentId" value="{$iDocumentId}" />
16 {foreach from=$checkout_fields item=oWidget } 18 {foreach from=$checkout_fields item=oWidget }
17 {$oWidget->render()} 19 {$oWidget->render()}
18 {/foreach} 20 {/foreach}
19 <div class="form_actions"> 21 <div class="form_actions">
20 -<input type="submit" name="submit" value="Checkout" /> 22 +<input type="submit" name="submit" value="{i18n}Checkout{/i18n}" />
21 </div> 23 </div>
22 </fieldset> 24 </fieldset>
23 </form> 25 </form>
templates/ktcore/action/checkout_final.smarty
@@ -14,15 +14,18 @@ addLoadEvent(scheduleCheckout); @@ -14,15 +14,18 @@ addLoadEvent(scheduleCheckout);
14 {/capture} 14 {/capture}
15 {$context->oPage->requireJSStandalone($sJavascript)} 15 {$context->oPage->requireJSStandalone($sJavascript)}
16 16
17 -<p class="descriptiveText">The document you wish to check out will begin  
18 -to download soon. If it does not automatically start to download, you  
19 -can use <a  
20 -href="?action=checkout_final&fDocumentId={$context->oDocument->getId()}&reason={$reason|escape}">this link</a>  
21 -to start it yourself.</p> 17 +{capture assign=link}
  18 +?action=checkout_final&fDocumentId={$context->oDocument->getId()}&reason={$reason|escape}
  19 +{/capture}
  20 +<p class="descriptiveText">{i18n arg_link=$link}The document you wish to
  21 +check out will begin to download soon. If it does not automatically
  22 +start to download, you can use <a href="#link#">this link</a> to start
  23 +it yourself.{/i18n}</p>
22 24
  25 +{capture assign=link}
  26 +{"viewDocument"|generateControllerUrl:"fDocumentId=$iDocumentId"}
  27 +{/capture}
23 {assign var=iDocumentId value=$context->oDocument->getId()} 28 {assign var=iDocumentId value=$context->oDocument->getId()}
24 -<p class="descriptiveText">Once the document has been downloaded, you  
25 -should  
26 -<a  
27 -href="{"viewDocument"|generateControllerUrl:"fDocumentId=$iDocumentId"}">return  
28 -to the document view</a>.</p> 29 +<p class="descriptiveText">{i18n arg_link=$link}Once the document has
  30 +been downloaded, you should <a href="#link#">return to the document
  31 +view</a>.{/i18n}</p>
templates/ktcore/action/delete.smarty
1 -<p class="descriptiveText">Deleting a document marks it as no longer 1 +<p class="descriptiveText">{i18n}Deleting a document marks it as no longer
2 being displayed. The document management system does not remove the 2 being displayed. The document management system does not remove the
3 -document entirely, and it can be restored at a later stage.</p> 3 +document entirely, and it can be restored at a later stage.{/i18n}</p>
4 4
5 {assign var=iDocumentId value=$context->oDocument->getId()} 5 {assign var=iDocumentId value=$context->oDocument->getId()}
6 -<p class="descriptiveText">If you do not intend to delete this document, you should  
7 -<a href="{"viewDocument"|generateControllerUrl:"fDocumentId=$iDocumentId"}">cancel  
8 -the deletion</a>.</p> 6 +{capture assign=link}
  7 +{"viewDocument"|generateControllerUrl:"fDocumentId=$iDocumentId"}
  8 +{/capture}
  9 +<p class="descriptiveText">{i18n arg_link=$link}If you do not intend to delete this document, you should
  10 +<a href="#link#">cancel the deletion</a>.{/i18n}</p>
9 11
10 <form method="POST" action="{$smarty.server.PHP_SELF}"> 12 <form method="POST" action="{$smarty.server.PHP_SELF}">
11 -<fieldset><legend>Delete</legend> 13 +<fieldset><legend>{i18n}Delete{/i18n}</legend>
12 <input type="hidden" name="action" value="delete" /> 14 <input type="hidden" name="action" value="delete" />
13 <input type="hidden" name="fDocumentId" value="{$iDocumentId}" /> 15 <input type="hidden" name="fDocumentId" value="{$iDocumentId}" />
14 {foreach from=$delete_fields item=oWidget } 16 {foreach from=$delete_fields item=oWidget }
15 {$oWidget->render()} 17 {$oWidget->render()}
16 {/foreach} 18 {/foreach}
17 <div class="form_actions"> 19 <div class="form_actions">
18 -<input type="submit" name="submit" value="Delete" /> 20 +<input type="submit" name="submit" value="{i18n}Delete{/i18n}" />
19 </div> 21 </div>
20 </fieldset> 22 </fieldset>
21 </form> 23 </form>
templates/ktcore/action/move.smarty
1 -<p class="descriptiveText">Moving a document relocates the document  
2 -within the document repository.</p> 1 +<p class="descriptiveText">{i18n}Moving a document relocates the document
  2 +within the document repository.{/i18n}</p>
3 3
4 {assign var=iDocumentId value=$context->oDocument->getId()} 4 {assign var=iDocumentId value=$context->oDocument->getId()}
5 -<p class="descriptiveText">If you do not intend to move this document, you should  
6 -<a href="{"viewDocument"|generateControllerUrl:"fDocumentId=$iDocumentId"}">cancel  
7 -the move</a>.</p> 5 +{capture assign=link}
  6 +{"viewDocument"|generateControllerUrl:"fDocumentId=$iDocumentId"}
  7 +{/capture}
  8 +<p class="descriptiveText">{i18n arg_link=$link}If you do not intend to
  9 +move this document, you should <a href="#link#">cancel the
  10 +move</a>.{/i18n}</p>
8 11
9 <form method="POST" action="{$smarty.server.PHP_SELF}"> 12 <form method="POST" action="{$smarty.server.PHP_SELF}">
10 -<fieldset><legend>Move</legend> 13 +<fieldset><legend>{i18n}Move{/i18n}</legend>
11 <input type="hidden" name="action" value="move" /> 14 <input type="hidden" name="action" value="move" />
12 <input type="hidden" name="fDocumentId" value="{$iDocumentId}" /> 15 <input type="hidden" name="fDocumentId" value="{$iDocumentId}" />
13 {foreach from=$move_fields item=oWidget } 16 {foreach from=$move_fields item=oWidget }
@@ -15,10 +18,10 @@ the move&lt;/a&gt;.&lt;/p&gt; @@ -15,10 +18,10 @@ the move&lt;/a&gt;.&lt;/p&gt;
15 {/foreach} 18 {/foreach}
16 19
17 <div class="field "> 20 <div class="field ">
18 -<label for="fFolderId">Target folder</label>  
19 -<p class="descriptiveText">The folder given below is where the document 21 +<label for="fFolderId">{i18n}Target folder{/i18n}</label>
  22 +<p class="descriptiveText">{i18n}The folder given below is where the document
20 is going to be moved to. Use the folder collection and path below to 23 is going to be moved to. Use the folder collection and path below to
21 -browse to the folder you wish to move the documents into.</p> 24 +browse to the folder you wish to move the documents into.{/i18n}</p>
22 25
23 <input type="hidden" name="fFolderId" value="{$context->oFolder->getId()}" /> 26 <input type="hidden" name="fFolderId" value="{$context->oFolder->getId()}" />
24 {foreach from=$collection_breadcrumbs item=breadcrumb name=bc} 27 {foreach from=$collection_breadcrumbs item=breadcrumb name=bc}
@@ -31,8 +34,8 @@ browse to the folder you wish to move the documents into.&lt;/p&gt; @@ -31,8 +34,8 @@ browse to the folder you wish to move the documents into.&lt;/p&gt;
31 </div> 34 </div>
32 35
33 <div class="form_actions"> 36 <div class="form_actions">
34 -<input type="submit" name="submit[move]" value="Move" />  
35 -<input type="submit" name="submit[cancel]" value="Cancel" /> 37 +<input type="submit" name="submit[move]" value="{i18n}Move{/i18n}" />
  38 +<input type="submit" name="submit[cancel]" value="{i18n}Cancel{/i18n}" />
36 </div> 39 </div>
37 </fieldset> 40 </fieldset>
38 </form> 41 </form>
templates/ktcore/action/move_final.smarty
1 -<p class="descriptiveText">Moving a document relocates the document  
2 -within the document repository.</p> 1 +<p class="descriptiveText">{i18n}Moving a document relocates the document
  2 +within the document repository.{/i18n}</p>
3 3
4 {assign var=iDocumentId value=$context->oDocument->getId()} 4 {assign var=iDocumentId value=$context->oDocument->getId()}
5 -<p class="descriptiveText">If you do not intend to move this document, you should  
6 -<a href="{"viewDocument"|generateControllerUrl:"fDocumentId=$iDocumentId"}">cancel  
7 -the move</a>.</p> 5 +{capture assign=link}
  6 +{"viewDocument"|generateControllerUrl:"fDocumentId=$iDocumentId"}
  7 +{/capture}
  8 +<p class="descriptiveText">{i18n arg_link=$link}If you do not intend to
  9 +move this document, you should <a href="#link#">cancel the
  10 +move</a>.{/i18n}</p>
8 11
9 <form method="POST" action="{$smarty.server.PHP_SELF}"> 12 <form method="POST" action="{$smarty.server.PHP_SELF}">
10 -<fieldset><legend>Move</legend> 13 +<fieldset><legend>{i18n}Move{/i18n}</legend>
11 <input type="hidden" name="action" value="move_final" /> 14 <input type="hidden" name="action" value="move_final" />
12 <input type="hidden" name="fDocumentId" value="{$iDocumentId}" /> 15 <input type="hidden" name="fDocumentId" value="{$iDocumentId}" />
13 <input type="hidden" name="fFolderId" value="{$context->oFolder->getId()}" /> 16 <input type="hidden" name="fFolderId" value="{$context->oFolder->getId()}" />
@@ -16,8 +19,8 @@ the move&lt;/a&gt;.&lt;/p&gt; @@ -16,8 +19,8 @@ the move&lt;/a&gt;.&lt;/p&gt;
16 {/foreach} 19 {/foreach}
17 20
18 <div class="form_actions"> 21 <div class="form_actions">
19 -<input type="submit" name="submit[move]" value="Move" />  
20 -<input type="submit" name="submit[cancel]" value="Cancel" /> 22 +<input type="submit" name="submit[move]" value="{i18n}Move{/i18n}" />
  23 +<input type="submit" name="submit[cancel]" value="{i18n}Cancel{/i18n}" />
21 </div> 24 </div>
22 </fieldset> 25 </fieldset>
23 </form> 26 </form>
templates/ktcore/dashlets/admintutorial.smarty
1 <h2>KnowledgeTree administrator's Guide</h2> 1 <h2>KnowledgeTree administrator's Guide</h2>
2 -<p class="descriptiveText">If this is your first KnowledgeTree installation, 2 +<p class="descriptiveText">{i18n}If this is your first KnowledgeTree installation,
3 or if you've just upgraded from KnowledgeTree 2.x, we've put together some information 3 or if you've just upgraded from KnowledgeTree 2.x, we've put together some information
4 -which might help you get to grips with the new system.</p> 4 +which might help you get to grips with the new system.{/i18n}</p>
5 5
6 <div class="ktError"><p class="descriptiveText"><strong>FIXME</strong> This currently doesn't work.</p></div> 6 <div class="ktError"><p class="descriptiveText"><strong>FIXME</strong> This currently doesn't work.</p></div>
7 7
8 -<a href="{$rootUrl}/plugin.php/ktcore.userassistance/admin-quickguide">Read the admin introduction.</a> |  
9 -<a href="{$rootUrl}/plugin.php/ktcore.userassistance/admin-guide-whats-new-in-kt3">Find out what's different in <strong>KT 3</strong>.</a> |  
10 -<a href="#">Don't show me this again.</a> 8 +<a
  9 +href="{$rootUrl}/plugin.php/ktcore.userassistance/admin-quickguide">{i18n}Read the admin introduction.{/i18n}</a> |
  10 +<a
  11 +href="{$rootUrl}/plugin.php/ktcore.userassistance/admin-guide-whats-new-in-kt3">{i18n}Find out what's different in <strong>KT 3</strong>.{/i18n}</a> |
  12 +<a href="#">{i18n}Don't show me this again.{/i18n}</a>
templates/ktcore/dashlets/beta1info.smarty
1 -<h2>Welcome to the KnowledgeTree 3 Beta</h2>  
2 -<p class="descriptiveText">If this is your first KnowledgeTree installation, 1 +<h2>{i18n}Welcome to the KnowledgeTree 3 Beta{/i18n}</h2>
  2 +<p class="descriptiveText">{i18n}If this is your first KnowledgeTree installation,
3 or if you've just upgraded from KnowledgeTree 2.x, we've put together some information 3 or if you've just upgraded from KnowledgeTree 2.x, we've put together some information
4 -which might help you get to grips with the new system.</p> 4 +which might help you get to grips with the new system.{/i18n}</p>
5 5
6 -<a href="{$rootUrl}/plugin.php/ktcore.userassistance/kt3b1-what-is-a-beta">What's a Beta?</a> |  
7 -<a href="{$rootUrl}/plugin.php/ktcore.userassistance/kt-bug-reporting-guide">Help! Something went wrong!</a> 6 +<a
  7 +href="{$rootUrl}/plugin.php/ktcore.userassistance/kt3b1-what-is-a-beta">{i18n}What's a Beta?{/i18n}</a> |
  8 +<a
  9 +href="{$rootUrl}/plugin.php/ktcore.userassistance/kt-bug-reporting-guide">{i18n}Help! Something went wrong!{/i18n}</a>
templates/ktcore/dashlets/checkedout.smarty
1 -<h2>Your Checked-out Documents</h2>  
2 -<p class="descriptiveText">Since a document 1 +<h2>{i18n}Your Checked-out Documents{/i18n}</h2>
  2 +<p class="descriptiveText">{i18n}Since a document
3 which is checked out cannot be modified by anyone else, 3 which is checked out cannot be modified by anyone else,
4 it is important to check them back in as soon as you have made 4 it is important to check them back in as soon as you have made
5 -the apppriate changes.</p> 5 +the apppriate changes.{/i18n}</p>
6 {if (!empty($documents))} 6 {if (!empty($documents))}
7 <dl> 7 <dl>
8 {foreach item=oDocument from=$documents} 8 {foreach item=oDocument from=$documents}
9 - <dt>{$oDocument->getName()} | <a href="{$context->getDocumentLink($oDocument)}">View Document</a></dt> 9 + <dt>{$oDocument->getName()} | <a href="{$context->getDocumentLink($oDocument)}">{i18n}View Document{/i18n}</a></dt>
10 {/foreach} 10 {/foreach}
11 </ul> 11 </ul>
12 {else} 12 {else}
13 -<div class="ktInfo"><p>You have no documents which are currently checked out.</p></div>  
14 -{/if}  
15 \ No newline at end of file 13 \ No newline at end of file
  14 +<div class="ktInfo"><p>{i18n}You have no documents which are currently checked out.{/i18n}</p></div>
  15 +{/if}
templates/ktcore/dashlets/notifications.smarty
1 -<h2>Items that require your attention</h2> 1 +<h2>{i18n}Items that require your attention{/i18n}</h2>
2 {if (!empty($notifications))} 2 {if (!empty($notifications))}
3 <dl> 3 <dl>
4 {foreach item=oNotification from=$notifications} 4 {foreach item=oNotification from=$notifications}
@@ -6,5 +6,5 @@ @@ -6,5 +6,5 @@
6 {/foreach} 6 {/foreach}
7 </dl> 7 </dl>
8 {else} 8 {else}
9 -<div class="ktInfo"><p>No items require your attention.</p></div>  
10 -{/if}  
11 \ No newline at end of file 9 \ No newline at end of file
  10 +<div class="ktInfo"><p>{i18n}No items require your attention.{/i18n}</p></div>
  11 +{/if}
templates/ktcore/dashlets/usertutorial.smarty
1 -<h2>Crash Course in KnowledgeTree</h2>  
2 -<p class="descriptiveText">New to Document Management, or to  
3 -KnowledgeTree&trade; 3? We've written some quick documentation</p> 1 +<h2>{i18n}Crash Course in KnowledgeTree{/i18n}</h2>
  2 +<p class="descriptiveText">{i18n}New to Document Management, or to
  3 +KnowledgeTree&trade; 3? We've written some quick documentation{/i18n}</p>
4 4
5 <div class="ktError"><p class="descriptiveText"><strong>FIXME</strong> This currently doesn't work.</p></div> 5 <div class="ktError"><p class="descriptiveText"><strong>FIXME</strong> This currently doesn't work.</p></div>
6 6
templates/ktcore/document/add.smarty
@@ -55,10 +55,10 @@ addLoadEvent(startupMetadata); @@ -55,10 +55,10 @@ addLoadEvent(startupMetadata);
55 {/capture} 55 {/capture}
56 {$context->oPage->requireJSStandalone($sJavascript)} 56 {$context->oPage->requireJSStandalone($sJavascript)}
57 57
58 -<h2>Add a document</h2> 58 +<h2>{i18n}Add a document{/i18n}</h2>
59 59
60 <form method="POST" action="{$smarty.server.PHP_SELF}" enctype="multipart/form-data"> 60 <form method="POST" action="{$smarty.server.PHP_SELF}" enctype="multipart/form-data">
61 -<fieldset><legend>Add a document</legend> 61 +<fieldset><legend>{i18n}Add a document{/i18n}</legend>
62 <input type="hidden" name="action" value="upload"> 62 <input type="hidden" name="action" value="upload">
63 <input type="hidden" name="postReceived" value="1"> 63 <input type="hidden" name="postReceived" value="1">
64 <input type="hidden" name="fFolderId" value="{$context->oFolder->getId()}"> 64 <input type="hidden" name="fFolderId" value="{$context->oFolder->getId()}">
@@ -78,6 +78,6 @@ addLoadEvent(startupMetadata); @@ -78,6 +78,6 @@ addLoadEvent(startupMetadata);
78 </div> 78 </div>
79 79
80 <div class="form_actions"> 80 <div class="form_actions">
81 - <input type="submit" name="submit" value="Import"> 81 + <input type="submit" name="submit" value="{i18n}Add{/i18n}">
82 </div> 82 </div>
83 </form> 83 </form>
templates/ktcore/document/admin/archivedlist.smarty
1 -<h2>Archived Documents</h2> 1 +<h2>{i18n}Archived Documents{i18n}</h2>
2 2
3 -<p class="descriptiveText">In order to keep the documents which are visible useful 3 +<p class="descriptiveText">{i18n}In order to keep the documents which are visible useful
4 to end users, it is possible to <strong>archive</strong> old documents. Users who 4 to end users, it is possible to <strong>archive</strong> old documents. Users who
5 want to see these old documents need to request their restoration - these requests 5 want to see these old documents need to request their restoration - these requests
6 -will typically be done within the system, and will generate a notification to you. 6 +will typically be done within the system, and will generate a
  7 +notification to you.{/i18n}
7 </p> 8 </p>
8 9
9 <div class="ktError"><p><strong>FIXME</strong> this aspect of the UI is unuseable. 10 <div class="ktError"><p><strong>FIXME</strong> this aspect of the UI is unuseable.
@@ -21,8 +22,8 @@ with LIVE turned off.)&lt;/p&gt;&lt;/div&gt; @@ -21,8 +22,8 @@ with LIVE turned off.)&lt;/p&gt;&lt;/div&gt;
21 <thead> 22 <thead>
22 <tr> 23 <tr>
23 <th>&nbsp;</th> 24 <th>&nbsp;</th>
24 - <th>Document Name</th>  
25 - <th>Location</th> 25 + <th>{i18n}Document Name{/i18n}</th>
  26 + <th>{i18n}Location{/i18n}</th>
26 </tr> 27 </tr>
27 </thead> 28 </thead>
28 <tbody> 29 <tbody>
@@ -36,11 +37,11 @@ with LIVE turned off.)&lt;/p&gt;&lt;/div&gt; @@ -36,11 +37,11 @@ with LIVE turned off.)&lt;/p&gt;&lt;/div&gt;
36 </tbody> 37 </tbody>
37 </table> 38 </table>
38 <div class="form_actions"> 39 <div class="form_actions">
39 - <input type="submit" value="Expunge" /> 40 + <input type="submit" value="{i18n}Expunge{/i18n}" />
40 <!-- <input type="submit" value="Restore" /> --> <!-- how do we want to handle restore in this? major UI issue :( --> 41 <!-- <input type="submit" value="Restore" /> --> <!-- how do we want to handle restore in this? major UI issue :( -->
41 </div> 42 </div>
42 </form> 43 </form>
43 44
44 {else} 45 {else}
45 -<div class="ktInfo"><p>No documents are marked as archived.</p></div>  
46 -{/if}  
47 \ No newline at end of file 46 \ No newline at end of file
  47 +<div class="ktInfo"><p>{i18n}No documents are marked as archived.{/i18n}</p></div>
  48 +{/if}
templates/ktcore/document/admin/checkoutlisting.smarty
1 -<h2>Checked Out Documents</h2>  
2 -<p class="descriptiveText">If a checked-out document has been lost, or the user  
3 -who checked a document out has not checked it back in, it may be necessary  
4 -to override the "checked-out" status of a document. Use the <strong>force checkin</strong>  
5 -action in the listing below to override the checked-out status.</p> 1 +<h2>{i18n}Checked Out Documents{/i18n}</h2>
  2 +<p class="descriptiveText">{i18n}If a checked-out document has been
  3 +lost, or the user who checked a document out has not checked it back in,
  4 +it may be necessary to override the "checked-out" status of a document.
  5 +Use the <strong>force checkin</strong> action in the listing below to
  6 +override the checked-out status.{/i18n}</p>
6 <!-- FIXME set classes here for listing. --> 7 <!-- FIXME set classes here for listing. -->
7 {if (count($documents) !== 0)} 8 {if (count($documents) !== 0)}
8 <table class="listing" cellspacing="5px"> 9 <table class="listing" cellspacing="5px">
9 <thead> 10 <thead>
10 <tr> 11 <tr>
11 - <th>Document</th>  
12 - <th>Location</th> 12 + <th>{i18n}Document{/i18n}</th>
  13 + <th>{i18n}Location{/i18n}</th>
13 <th>&nbsp;</th> 14 <th>&nbsp;</th>
14 </tr> 15 </tr>
15 </thead> 16 </thead>
@@ -19,7 +20,7 @@ action in the listing below to override the checked-out status.&lt;/p&gt; @@ -19,7 +20,7 @@ action in the listing below to override the checked-out status.&lt;/p&gt;
19 <tr class="{cycle values=even,odd}"> 20 <tr class="{cycle values=even,odd}">
20 <td>{$oDocument->getName()}</td> 21 <td>{$oDocument->getName()}</td>
21 <td class="descriptiveText">{$oDocument->getDisplayPath()}</td> 22 <td class="descriptiveText">{$oDocument->getDisplayPath()}</td>
22 - <td><a href="?action=confirm&fDocumentId={$oDocument->getId()}">force checkin</a></td> 23 + <td><a href="?action=confirm&fDocumentId={$oDocument->getId()}">{i18n}force checkin{/i18n}</a></td>
23 </tr> 24 </tr>
24 {/foreach} 25 {/foreach}
25 </tbody> 26 </tbody>
@@ -27,6 +28,6 @@ action in the listing below to override the checked-out status.&lt;/p&gt; @@ -27,6 +28,6 @@ action in the listing below to override the checked-out status.&lt;/p&gt;
27 </table> 28 </table>
28 {else} 29 {else}
29 <div class="ktInfo"> 30 <div class="ktInfo">
30 - <p>No documents are currently checked out.</p> 31 + <p>{i18n}No documents are currently checked out.{/i18n}</p>
31 </div> 32 </div>
32 {/if} 33 {/if}
templates/ktcore/document/admin/dearchiveconfirmlist.smarty
1 -<h2>Confirm De-archival</h2> 1 +<h2>{i18n}Confirm De-archival{/i18n}</h2>
2 2
3 -<div class="ktInfo"><p><strong>Note</strong> please confirm that you want to restore these documents from an archived state.</p></div> 3 +<div class="ktInfo"><p><strong>{i18n}Note{/i18n}:</strong> {i18n}please
  4 +confirm that you want to restore these documents from an archived
  5 +state.{/i18n}</p></div>
4 6
5 {if (!empty($documents))} 7 {if (!empty($documents))}
6 8
@@ -11,9 +13,8 @@ @@ -11,9 +13,8 @@
11 <table class="listing"> 13 <table class="listing">
12 <thead> 14 <thead>
13 <tr> 15 <tr>
14 -  
15 - <th>Document Name</th>  
16 - <th>Location</th> 16 + <th>{i18n}Document Name{/i18n}</th>
  17 + <th>{i18n}Location{/i18n}</th>
17 </tr> 18 </tr>
18 </thead> 19 </thead>
19 <tbody> 20 <tbody>
@@ -26,10 +27,10 @@ @@ -26,10 +27,10 @@
26 </tbody> 27 </tbody>
27 </table> 28 </table>
28 <div class="form_actions"> 29 <div class="form_actions">
29 - <input type="submit" value="Confirm De-archival" /> 30 + <input type="submit" value="{i18n}Confirm De-archival{/i18n}" />
30 </div> 31 </div>
31 </form> 32 </form>
32 33
33 {else} 34 {else}
34 -<div class="ktInfo"><p>No documents were selected.</p></div>  
35 -{/if}  
36 \ No newline at end of file 35 \ No newline at end of file
  36 +<div class="ktInfo"><p>{i18n}No documents were selected.{/i18n}</p></div>
  37 +{/if}
templates/ktcore/document/admin/deletedlist.smarty
1 -<h2>Deleted Documents</h2> 1 +<h2>{i18n}Deleted Documents{/i18n}</h2>
2 2
3 -<p class="descriptiveText">Documents which are deleted by users are hidden from view, 3 +<p class="descriptiveText">{i18n}Documents which are deleted by users are hidden from view,
4 but still available for restoration. Since this consumes system resources, it 4 but still available for restoration. Since this consumes system resources, it
5 is possible to <strong>expunge</strong> these documents. Alternatively, you 5 is possible to <strong>expunge</strong> these documents. Alternatively, you
6 -can <strong>restore</strong> them as necessary.</p> 6 +can <strong>restore</strong> them as necessary.{/i18n}</p>
7 7
8 <p class="descriptiveText"><strong>FIXME</strong> its probably very useful to add 8 <p class="descriptiveText"><strong>FIXME</strong> its probably very useful to add
9 more information about the documents below - e.g. when was it deleted (last modified?)</p> 9 more information about the documents below - e.g. when was it deleted (last modified?)</p>
@@ -20,8 +20,8 @@ more information about the documents below - e.g. when was it deleted (last modi @@ -20,8 +20,8 @@ more information about the documents below - e.g. when was it deleted (last modi
20 <thead> 20 <thead>
21 <tr> 21 <tr>
22 <th>&nbsp;</th> 22 <th>&nbsp;</th>
23 - <th>Document Name</th>  
24 - <th>Location</th> 23 + <th>{i18n}Document Name{/i18n}</th>
  24 + <th>{i18n}Location{/i18n}</th>
25 </tr> 25 </tr>
26 </thead> 26 </thead>
27 <tbody> 27 <tbody>
@@ -35,11 +35,11 @@ more information about the documents below - e.g. when was it deleted (last modi @@ -35,11 +35,11 @@ more information about the documents below - e.g. when was it deleted (last modi
35 </tbody> 35 </tbody>
36 </table> 36 </table>
37 <div class="form_actions"> 37 <div class="form_actions">
38 - <input type="submit" value="Expunge" /> 38 + <input type="submit" value="{i18n}Expunge{/i18n}" />
39 <!-- <input type="submit" value="Restore" /> --> <!-- how do we want to handle restore in this? major UI issue :( --> 39 <!-- <input type="submit" value="Restore" /> --> <!-- how do we want to handle restore in this? major UI issue :( -->
40 </div> 40 </div>
41 </form> 41 </form>
42 42
43 {else} 43 {else}
44 -<div class="ktInfo"><p>No documents are marked as deleted.</p></div>  
45 -{/if}  
46 \ No newline at end of file 44 \ No newline at end of file
  45 +<div class="ktInfo"><p>{i18n}No documents are marked as deleted.{/i18n}</p></div>
  46 +{/if}
templates/ktcore/document/admin/expungeconfirmlist.smarty
1 <h2>Confirm Expunge</h2> 1 <h2>Confirm Expunge</h2>
2 2
3 -<div class="ktInfo"><p><strong>Note</strong> please confirm that you want to delete these documents.</p></div> 3 +<div class="ktInfo"><p><strong>{i18n}Note{/i18n}:</strong> {i18n}please
  4 +confirm that you want to delete these documents.{/i18n}</p></div>
4 5
5 {if (!empty($documents))} 6 {if (!empty($documents))}
6 7
@@ -12,8 +13,8 @@ @@ -12,8 +13,8 @@
12 <thead> 13 <thead>
13 <tr> 14 <tr>
14 15
15 - <th>Document Name</th>  
16 - <th>Location</th> 16 + <th>{i18n}Document Name{/i18n}</th>
  17 + <th>{i18n}Location{/i18n}</th>
17 </tr> 18 </tr>
18 </thead> 19 </thead>
19 <tbody> 20 <tbody>
@@ -26,11 +27,11 @@ @@ -26,11 +27,11 @@
26 </tbody> 27 </tbody>
27 </table> 28 </table>
28 <div class="form_actions"> 29 <div class="form_actions">
29 - <input type="submit" value="Confirm Expunge" /> 30 + <input type="submit" value="{i18n}Confirm Expunge{/i18n}" />
30 <!-- <input type="submit" value="Restore" /> --> <!-- how do we want to handle restore in this? major UI issue :( --> 31 <!-- <input type="submit" value="Restore" /> --> <!-- how do we want to handle restore in this? major UI issue :( -->
31 </div> 32 </div>
32 </form> 33 </form>
33 34
34 {else} 35 {else}
35 -<div class="ktInfo"><p>No documents were selected.</p></div>  
36 -{/if}  
37 \ No newline at end of file 36 \ No newline at end of file
  37 +<div class="ktInfo"><p>{i18n}No documents were selected.{/i18n}</p></div>
  38 +{/if}
templates/ktcore/document/admin/force_checkin_confirm.smarty
1 -<h2>Confirm Forced Check-in</h2>  
2 -<p class="descriptiveText">Please confirm that this is the document that you wish to checkin.</p> 1 +<h2>{i18n}Confirm Forced Check-in{/i18n}</h2>
  2 +<p class="descriptiveText">{i18n}Please confirm that this is the document that you wish to checkin.{/i18n}</p>
3 3
4 <div class="document_details"> 4 <div class="document_details">
5 <h3>Document Details</h3> 5 <h3>Document Details</h3>
6 <dl class="metadata"> 6 <dl class="metadata">
7 - <dt>Document Name</dt> 7 + <dt>{i18n}Document Name{/i18n}</dt>
8 <dd>{$document->getName()}</dd> 8 <dd>{$document->getName()}</dd>
9 9
10 - <dt>Location</dt> 10 + <dt>{i18n}Location{/i18n}</dt>
11 <dd>{$document->getDisplayPath()}</dd> 11 <dd>{$document->getDisplayPath()}</dd>
12 12
13 - <dt>Checked out by</dt> 13 + <dt>{i18n}Checked out by{/i18n}</dt>
14 {if ($checkout_user !== null)} 14 {if ($checkout_user !== null)}
15 <dd> 15 <dd>
16 {$checkout_user->getName()} 16 {$checkout_user->getName()}
17 </dd> 17 </dd>
18 {else} 18 {else}
19 <dd class="ktError"> 19 <dd class="ktError">
20 - The user who checked this document out is no longer valid. 20 + {i18n}The user who checked this document out is no longer valid.{/i18n}
21 </dd> 21 </dd>
22 {/if} 22 {/if}
23 </dd> 23 </dd>
@@ -28,8 +28,8 @@ @@ -28,8 +28,8 @@
28 <input type="hidden" name="action" value="checkin"> 28 <input type="hidden" name="action" value="checkin">
29 <input type="hidden" name="fDocumentId" value="{$document->getId()}"> 29 <input type="hidden" name="fDocumentId" value="{$document->getId()}">
30 <div class="form_actions"> 30 <div class="form_actions">
31 - <input type="submit" value="Force Checkin" /> 31 + <input type="submit" value="{i18n}Force Checkin{/i18n}" />
32 <!-- FIXME separate this even further. --> 32 <!-- FIXME separate this even further. -->
33 - <p><a href="?action=main">Cancel</a></p> 33 + <p><a href="?action=main">{i18n}Cancel{/i18n}</a></p>
34 </div> 34 </div>
35 -</form>  
36 \ No newline at end of file 35 \ No newline at end of file
  36 +</form>
templates/ktcore/document/admin/linktypesadmin.smarty
1 -<h2>Document Link Type Management</h2> 1 +<h2>{i18n}Document Link Type Management{/i18n}</h2>
2 2
3 <p class="descriptiveText">Within the <strong>KnowledgeTree</strong> it is possible for users 3 <p class="descriptiveText">Within the <strong>KnowledgeTree</strong> it is possible for users
4 to create links between related documents. Each of these links has a certain type. 4 to create links between related documents. Each of these links has a certain type.
@@ -8,8 +8,9 @@ to create links between related documents. Each of these links has a certain ty @@ -8,8 +8,9 @@ to create links between related documents. Each of these links has a certain ty
8 8
9 <form action="{$smarty.server.PHP_SELF}" method="POST"> 9 <form action="{$smarty.server.PHP_SELF}" method="POST">
10 <fieldset> 10 <fieldset>
11 -<legend>Add a link type</legend>  
12 -<p class="descriptiveText">Specify the details for a new link type below.</p> 11 +<legend>{i18n}Add a link type{/i18n}</legend>
  12 +<p class="descriptiveText">{i18n}Specify the details for a new link type
  13 +below.{/i18n}</p>
13 14
14 {foreach item=oWidget from=$add_form} 15 {foreach item=oWidget from=$add_form}
15 {$oWidget->render()} 16 {$oWidget->render()}
@@ -17,7 +18,7 @@ to create links between related documents. Each of these links has a certain ty @@ -17,7 +18,7 @@ to create links between related documents. Each of these links has a certain ty
17 18
18 <div class="form_actions"> 19 <div class="form_actions">
19 <input type="hidden" name="action" value="add" /> 20 <input type="hidden" name="action" value="add" />
20 - <input type="submit" value="Add Link Type" /> 21 + <input type="submit" value="{i18n}Add Link Type{/i18n}" />
21 </div> 22 </div>
22 </fieldset> 23 </fieldset>
23 </form> 24 </form>
@@ -28,8 +29,8 @@ to create links between related documents. Each of these links has a certain ty @@ -28,8 +29,8 @@ to create links between related documents. Each of these links has a certain ty
28 29
29 <form action="{$smarty.server.PHP_SELF}" method="POST"> 30 <form action="{$smarty.server.PHP_SELF}" method="POST">
30 <fieldset> 31 <fieldset>
31 -<legend>Edit a link type</legend>  
32 -<p class="descriptiveText">Specify the details for the link type below.</p> 32 +<legend>{i18n}Edit a link type{/i18n}</legend>
  33 +<p class="descriptiveText">{i18n}Specify the details for the link type below.{/i18n}</p>
33 <input type="hidden" name="fLinkTypeId" value="{$old_link->iId}" /> 34 <input type="hidden" name="fLinkTypeId" value="{$old_link->iId}" />
34 {foreach item=oWidget from=$edit_form} 35 {foreach item=oWidget from=$edit_form}
35 {$oWidget->render()} 36 {$oWidget->render()}
@@ -37,7 +38,7 @@ to create links between related documents. Each of these links has a certain ty @@ -37,7 +38,7 @@ to create links between related documents. Each of these links has a certain ty
37 38
38 <div class="form_actions"> 39 <div class="form_actions">
39 <input type="hidden" name="action" value="update" /> 40 <input type="hidden" name="action" value="update" />
40 - <input type="submit" value="Change Link Type" /> 41 + <input type="submit" value="{i18n}Change Link Type{/i18n}" />
41 </div> 42 </div>
42 </fieldset> 43 </fieldset>
43 </form> 44 </form>
@@ -48,10 +49,12 @@ to create links between related documents. Each of these links has a certain ty @@ -48,10 +49,12 @@ to create links between related documents. Each of these links has a certain ty
48 49
49 <form action="{$smarty.server.PHP_SELF}" method="POST"> 50 <form action="{$smarty.server.PHP_SELF}" method="POST">
50 <fieldset> 51 <fieldset>
51 -<legend>Manage Existing Link Types</legend>  
52 -<p class="descriptiveText">From this panel you can edit or delete existing link types.  
53 -<strong>Note:</strong> deleting a link type will delete <strong>all</strong>  
54 -links of that type within the system.</p> 52 +<legend>{i18n}Manage Existing Link Types{/i18n}</legend>
  53 +<p class="descriptiveText">{i18n}From this panel you can edit or delete
  54 +existing link types.{/i18n}</p>
  55 +
  56 +<p><strong>{i18n}Note{/i18n}:</strong> {i18n}deleting a link type will delete <strong>all</strong>
  57 +links of that type within the system.{/i18n}</p>
55 58
56 <input type="hidden" name="action" value="delete" /> 59 <input type="hidden" name="action" value="delete" />
57 60
@@ -59,9 +62,9 @@ links of that type within the system.&lt;/p&gt; @@ -59,9 +62,9 @@ links of that type within the system.&lt;/p&gt;
59 <table class="listing"> 62 <table class="listing">
60 <thead> 63 <thead>
61 <tr> 64 <tr>
62 - <th colspan="2">Name</th>  
63 - <th>Description</th>  
64 - <th>Edit</th> 65 + <th colspan="2">{i18n}Name{/i18n}</th>
  66 + <th>{i18n}Description{/i18n}</th>
  67 + <th>{i18n}Edit{/i18n}</th>
65 </tr> 68 </tr>
66 </thead> 69 </thead>
67 70
@@ -73,20 +76,20 @@ links of that type within the system.&lt;/p&gt; @@ -73,20 +76,20 @@ links of that type within the system.&lt;/p&gt;
73 </td> 76 </td>
74 <td>{$oLinkType->getName()}</td> 77 <td>{$oLinkType->getName()}</td>
75 <td class="descriptiveText">{$oLinkType->getDescription()}</td> 78 <td class="descriptiveText">{$oLinkType->getDescription()}</td>
76 - <td><a href="{$smarty.server.PHP_SELF}?action=edit&fLinkTypeId={$oLinkType->iId}">edit link type</a></td> 79 + <td><a href="{$smarty.server.PHP_SELF}?action=edit&fLinkTypeId={$oLinkType->iId}">{i18n}edit link type{/i18n}</a></td>
77 </tr> 80 </tr>
78 {/foreach} 81 {/foreach}
79 </tbody> 82 </tbody>
80 </table> 83 </table>
81 84
82 <div class="form_actions"> 85 <div class="form_actions">
83 - <input type="submit" value="Remove Link Type(s) " /> 86 + <input type="submit" value="{i18n}Remove Link Type(s){/i18n}" />
84 </div> 87 </div>
85 {else} 88 {else}
86 89
87 -<p><strong>No link administrator changeable link types available.</strong> 90 +<p><strong>{i18n}No link administrator changeable link types available.{/i18n}</strong>
88 91
89 {/if} 92 {/if}
90 93
91 </fieldset> 94 </fieldset>
92 -</form>  
93 \ No newline at end of file 95 \ No newline at end of file
  96 +</form>
templates/ktcore/document/cleanup.smarty
1 {if $aFoldersToRemove} 1 {if $aFoldersToRemove}
2 -<p>Would remove these folders (and all their contents):</p> 2 +<p>{i18n}Would remove these folders (and all their contents){/i18n}:</p>
3 <ul> 3 <ul>
4 {foreach from=$aFoldersToRemove item=sFolder} 4 {foreach from=$aFoldersToRemove item=sFolder}
5 <li>{$sFolder|escape}</li> 5 <li>{$sFolder|escape}</li>
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 {/if} 8 {/if}
9 9
10 {if $aFilesToRemove} 10 {if $aFilesToRemove}
11 -<p>Would remove these files:</p> 11 +<p>{i18n}Would remove these files{/i18n}:</p>
12 <ul> 12 <ul>
13 {foreach from=$aFilesToRemove item=sFile} 13 {foreach from=$aFilesToRemove item=sFile}
14 <li>{$sFile|escape}</li> 14 <li>{$sFile|escape}</li>
@@ -17,7 +17,7 @@ @@ -17,7 +17,7 @@
17 {/if} 17 {/if}
18 18
19 {if $aRepoFolderProblems} 19 {if $aRepoFolderProblems}
20 -<p>These folders are not on the filesystem</p> 20 +<p>{i18n}These folders are not on the filesystem{/i18n}</p>
21 <ul> 21 <ul>
22 {foreach from=$aRepoFolderProblems item=sFolder} 22 {foreach from=$aRepoFolderProblems item=sFolder}
23 <li>{$sFolder|escape}</li> 23 <li>{$sFolder|escape}</li>
@@ -26,7 +26,7 @@ @@ -26,7 +26,7 @@
26 {/if} 26 {/if}
27 27
28 {if $aRepoDocumentProblems} 28 {if $aRepoDocumentProblems}
29 -<p>These documents are not on the filesystem</p> 29 +<p>{i18n}These documents are not on the filesystem{/i18n}</p>
30 <ul> 30 <ul>
31 {foreach from=$aRepoDocumentProblems item=sDocument} 31 {foreach from=$aRepoDocumentProblems item=sDocument}
32 <li>{$sDocument|escape}</li> 32 <li>{$sDocument|escape}</li>
@@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
35 {/if} 35 {/if}
36 36
37 {if $aRepoVersionProblems} 37 {if $aRepoVersionProblems}
38 -<p>These documents have versions not on the filesystem</p> 38 +<p>{i18n}These documents have versions not on the filesystem{/i18n}</p>
39 <ul> 39 <ul>
40 {foreach from=$aRepoVersionProblems item=aSomething} 40 {foreach from=$aRepoVersionProblems item=aSomething}
41 <li>{$aSomething[0]|escape} - version {$aSomething[1]|escape}</li> 41 <li>{$aSomething[0]|escape} - version {$aSomething[1]|escape}</li>
templates/ktcore/document/document_permissions.smarty
@@ -23,15 +23,15 @@ td.false { background-color: #ffaaaa; text-align: centre } @@ -23,15 +23,15 @@ td.false { background-color: #ffaaaa; text-align: centre }
23 {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Iter.js')} 23 {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Iter.js')}
24 {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/DOM.js')} 24 {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/DOM.js')}
25 25
26 -<h2>Document permissions</h2> 26 +<h2>{i18n}Document permissions{/i18n}</h2>
27 27
28 { if $edit } 28 { if $edit }
29 <div style="text-align: right"> 29 <div style="text-align: right">
30 <span class="tablebutton activebutton"> 30 <span class="tablebutton activebutton">
31 -<a href="javascript:MochiKit.DOM.showElement('view'); MochiKit.DOM.hideElement('edit');">View</a> 31 +<a href="javascript:MochiKit.DOM.showElement('view'); MochiKit.DOM.hideElement('edit');">{i18n}View{/i18n}</a>
32 </span> 32 </span>
33 <span class="tablebutton inactivebutton"> 33 <span class="tablebutton inactivebutton">
34 -<a href="javascript:MochiKit.DOM.showElement('edit'); MochiKit.DOM.hideElement('view');">Edit</a> 34 +<a href="javascript:MochiKit.DOM.showElement('edit'); MochiKit.DOM.hideElement('view');">{i18n}Edit{/i18n}</a>
35 </span> 35 </span>
36 </div> 36 </div>
37 { /if } 37 { /if }
@@ -53,9 +53,9 @@ td.false { background-color: #ffaaaa; text-align: centre } @@ -53,9 +53,9 @@ td.false { background-color: #ffaaaa; text-align: centre }
53 { assign var=iPermID value=$oPerm->getID() } 53 { assign var=iPermID value=$oPerm->getID() }
54 { assign var=bHasPerm value=$aMapPermissionGroup[$iPermID][$iGroupID] } 54 { assign var=bHasPerm value=$aMapPermissionGroup[$iPermID][$iGroupID] }
55 { if $bHasPerm } 55 { if $bHasPerm }
56 -<td class="true">True</td> 56 +<td class="true">{i18n}True{/i18n}</td>
57 { else } 57 { else }
58 -<td class="false">False</td> 58 +<td class="false">{i18n}False{/i18n}</td>
59 { /if } 59 { /if }
60 { /foreach } 60 { /foreach }
61 </tr> 61 </tr>
@@ -67,14 +67,14 @@ td.false { background-color: #ffaaaa; text-align: centre } @@ -67,14 +67,14 @@ td.false { background-color: #ffaaaa; text-align: centre }
67 <span style="border: 1px solid #cccccc; background-color: #ffeeee; 67 <span style="border: 1px solid #cccccc; background-color: #ffeeee;
68 padding: 2px; padding-right: 1em; padding-left: 1em"> 68 padding: 2px; padding-right: 1em; padding-left: 1em">
69 { if $inherited } 69 { if $inherited }
70 -Inherited from {$inherited} 70 +{i18n}Inherited from{/i18n}: {$inherited}
71 {* [<a 71 {* [<a
72 -href="{$smarty.server.PHP_SELF}?action=copyPermissions&fDocumentID={$iDocumentID}">Copy</a>] 72 +href="{$smarty.server.PHP_SELF}?action=copyPermissions&fDocumentID={$iDocumentID}">{i18n}Copy{/i18n}</a>]
73 *} 73 *}
74 { else } 74 { else }
75 [<a 75 [<a
76 -href="{$smarty.server.PHP_SELF}?action=inheritPermissions&fDocumentID={$iDocumentID}">Use  
77 -parent's permissions</a>] 76 +href="{$smarty.server.PHP_SELF}?action=inheritPermissions&fDocumentID={$iDocumentID}">{i18n}Use
  77 +parent's permissions{/i18n}</a>]
78 { /if } 78 { /if }
79 </span> 79 </span>
80 </div> 80 </div>
@@ -114,18 +114,18 @@ value=&quot;{$iGroupID}&quot;&gt;&lt;/td&gt; @@ -114,18 +114,18 @@ value=&quot;{$iGroupID}&quot;&gt;&lt;/td&gt;
114 </tbody> 114 </tbody>
115 </table> 115 </table>
116 116
117 -<input type="submit" name="submit" value="Update"> 117 +<input type="submit" name="submit" value="{i18n}Update{/i18n}">
118 </form> 118 </form>
119 </div> 119 </div>
120 { /if } 120 { /if }
121 121
122 -<h2>User permissions</h2> 122 +<h2>{i18n}User permissions{/i18n}</h2>
123 123
124 <div> 124 <div>
125 <table class="pretty" cellspacing="0" cellpadding="0" border="0" width="100%"> 125 <table class="pretty" cellspacing="0" cellpadding="0" border="0" width="100%">
126 <thead> 126 <thead>
127 <tr> 127 <tr>
128 -<th>User</th> 128 +<th>{i18n}User{/i18n}</th>
129 { foreach item=oPerm from=$permissions } 129 { foreach item=oPerm from=$permissions }
130 <th title="{$oPerm->sName}">{$oPerm->sHumanName}</th> 130 <th title="{$oPerm->sName}">{$oPerm->sHumanName}</th>
131 { /foreach } 131 { /foreach }
@@ -139,9 +139,9 @@ value=&quot;{$iGroupID}&quot;&gt;&lt;/td&gt; @@ -139,9 +139,9 @@ value=&quot;{$iGroupID}&quot;&gt;&lt;/td&gt;
139 { assign var=iPermID value=$oPerm->getID() } 139 { assign var=iPermID value=$oPerm->getID() }
140 { assign var=bHasPerm value=$aMapPermissionUser[$iPermID][$iUserID] } 140 { assign var=bHasPerm value=$aMapPermissionUser[$iPermID][$iUserID] }
141 { if $bHasPerm } 141 { if $bHasPerm }
142 -<td class="true">True</td> 142 +<td class="true">{i18n}True{/i18n}</td>
143 { else } 143 { else }
144 -<td class="false">False</td> 144 +<td class="false">{i18n}False{/i18n}</td>
145 { /if } 145 { /if }
146 { /foreach } 146 { /foreach }
147 </tr> 147 </tr>
templates/ktcore/folder/bulkImport.smarty
@@ -45,12 +45,12 @@ addLoadEvent(startupMetadata); @@ -45,12 +45,12 @@ addLoadEvent(startupMetadata);
45 {$context->oPage->requireJSStandalone($sJavascript)} 45 {$context->oPage->requireJSStandalone($sJavascript)}
46 46
47 <form method="POST" action="{$smarty.server.PHP_SELF}" enctype="multipart/form-data"> 47 <form method="POST" action="{$smarty.server.PHP_SELF}" enctype="multipart/form-data">
48 -<fieldset><legend>Bulk import</legend>  
49 -<p class="descriptiveText">The bulk import facility allows for a number 48 +<fieldset><legend>{i18n}Bulk import{/i18n}</legend>
  49 +<p class="descriptiveText">{i18n}The bulk import facility allows for a number
50 of documents to be added to the document management system easily. 50 of documents to be added to the document management system easily.
51 Provide a path on the <strong>server</strong>, and all documents and 51 Provide a path on the <strong>server</strong>, and all documents and
52 folders within that path will be added to the document management 52 folders within that path will be added to the document management
53 -system.</p> 53 +system.{/i18n}</p>
54 54
55 <input type="hidden" name="action" value="import"> 55 <input type="hidden" name="action" value="import">
56 <input type="hidden" name="fFolderId" value="{$context->oFolder->getId()}"> 56 <input type="hidden" name="fFolderId" value="{$context->oFolder->getId()}">
@@ -70,6 +70,6 @@ system.&lt;/p&gt; @@ -70,6 +70,6 @@ system.&lt;/p&gt;
70 </div> 70 </div>
71 71
72 <div class="form_actions"> 72 <div class="form_actions">
73 - <input type="submit" name="submit" value="Import"> 73 + <input type="submit" name="submit" value="{i18n}Import{/i18n}">
74 </div> 74 </div>
75 </form> 75 </form>
templates/ktcore/folder/bulkUpload.smarty
@@ -45,12 +45,12 @@ addLoadEvent(startupMetadata); @@ -45,12 +45,12 @@ addLoadEvent(startupMetadata);
45 {$context->oPage->requireJSStandalone($sJavascript)} 45 {$context->oPage->requireJSStandalone($sJavascript)}
46 46
47 <form method="POST" action="{$smarty.server.PHP_SELF}" enctype="multipart/form-data"> 47 <form method="POST" action="{$smarty.server.PHP_SELF}" enctype="multipart/form-data">
48 -<fieldset><legend>Bulk import</legend>  
49 -<p class="descriptiveText">The bulk upload facility allows for a number 48 +<fieldset><legend>{i18n}Bulk import{/i18n}</legend>
  49 +<p class="descriptiveText">{i18n}The bulk upload facility allows for a number
50 of documents to be added to the document management system. 50 of documents to be added to the document management system.
51 Provide an archive (ZIP) file from your local computer, and all 51 Provide an archive (ZIP) file from your local computer, and all
52 documents and folders within that archive will be added to the document 52 documents and folders within that archive will be added to the document
53 -management system.</p> 53 +management system.{/i18n}</p>
54 54
55 <input type="hidden" name="action" value="upload" /> 55 <input type="hidden" name="action" value="upload" />
56 <input type="hidden" name="fFolderId" value="{$context->oFolder->getId()}" /> 56 <input type="hidden" name="fFolderId" value="{$context->oFolder->getId()}" />
@@ -70,6 +70,6 @@ management system.&lt;/p&gt; @@ -70,6 +70,6 @@ management system.&lt;/p&gt;
70 </div> 70 </div>
71 71
72 <div class="form_actions"> 72 <div class="form_actions">
73 - <input type="submit" name="submit" value="Upload" /> 73 + <input type="submit" name="submit" value="{i18n}Upload{/i18n}" />
74 </div> 74 </div>
75 </form> 75 </form>
templates/ktcore/folder/permissions.smarty
@@ -23,15 +23,17 @@ td.false { background-color: #ffaaaa; text-align: centre } @@ -23,15 +23,17 @@ td.false { background-color: #ffaaaa; text-align: centre }
23 {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Iter.js')} 23 {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Iter.js')}
24 {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/DOM.js')} 24 {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/DOM.js')}
25 25
26 -<h2>Folder permissions</h2> 26 +<h2>{i18n}Folder permissions{/i18n}</h2>
27 27
28 { if $edit } 28 { if $edit }
29 <div style="text-align: right"> 29 <div style="text-align: right">
30 <span class="tablebutton activebutton"> 30 <span class="tablebutton activebutton">
31 -<a href="javascript:MochiKit.DOM.showElement('view'); MochiKit.DOM.hideElement('edit');">View</a> 31 +<a href="javascript:MochiKit.DOM.showElement('view');
  32 +MochiKit.DOM.hideElement('edit');">{i18n}View{/i18n}</a>
32 </span> 33 </span>
33 <span class="tablebutton inactivebutton"> 34 <span class="tablebutton inactivebutton">
34 -<a href="javascript:MochiKit.DOM.showElement('edit'); MochiKit.DOM.hideElement('view');">Edit</a> 35 +<a href="javascript:MochiKit.DOM.showElement('edit');
  36 +MochiKit.DOM.hideElement('view');">{i18n}Edit{/i18n}</a>
35 </span> 37 </span>
36 </div> 38 </div>
37 { /if } 39 { /if }
@@ -67,13 +69,13 @@ td.false { background-color: #ffaaaa; text-align: centre } @@ -67,13 +69,13 @@ td.false { background-color: #ffaaaa; text-align: centre }
67 <span style="border: 1px solid #cccccc; background-color: #ffeeee; 69 <span style="border: 1px solid #cccccc; background-color: #ffeeee;
68 padding: 2px; padding-right: 1em; padding-left: 1em"> 70 padding: 2px; padding-right: 1em; padding-left: 1em">
69 { if $inherited } 71 { if $inherited }
70 -Inherited from {$inherited} 72 +{i18n}Inherited from:{/i18n} {$inherited}
71 [<a 73 [<a
72 -href="{$smarty.server.PHP_SELF}?action=copyPermissions&fFolderId={$iFolderId}">Copy</a>] 74 +href="{$smarty.server.PHP_SELF}?action=copyPermissions&fFolderId={$iFolderId}">{i18n}Copy{/i18n}</a>]
73 { else } 75 { else }
74 [<a 76 [<a
75 -href="{$smarty.server.PHP_SELF}?action=inheritPermissions&fFolderId={$iFolderId}">Use  
76 -parent's permissions</a>] 77 +href="{$smarty.server.PHP_SELF}?action=inheritPermissions&fFolderId={$iFolderId}">{i18n}Use
  78 +parent's permissions{/i18n}</a>]
77 { /if } 79 { /if }
78 </span> 80 </span>
79 </div> 81 </div>
@@ -113,7 +115,7 @@ value=&quot;{$iGroupId}&quot;&gt;&lt;/td&gt; @@ -113,7 +115,7 @@ value=&quot;{$iGroupId}&quot;&gt;&lt;/td&gt;
113 </tbody> 115 </tbody>
114 </table> 116 </table>
115 117
116 -<input type="submit" name="submit" value="Update"> 118 +<input type="submit" name="submit" value="{i18n}Update{/i18n}">
117 </form> 119 </form>
118 </div> 120 </div>
119 { /if } 121 { /if }
@@ -124,8 +126,8 @@ value=&quot;{$iGroupId}&quot;&gt;&lt;/td&gt; @@ -124,8 +126,8 @@ value=&quot;{$iGroupId}&quot;&gt;&lt;/td&gt;
124 <table class="pretty" cellpadding="0" cellspacing="0"> 126 <table class="pretty" cellpadding="0" cellspacing="0">
125 <thead> 127 <thead>
126 <tr> 128 <tr>
127 - <th>Group</th>  
128 - <th>Condition</th> 129 + <th>{i18n}Group{/i18n}</th>
  130 + <th>{i18n}Condition{/i18n}</th>
129 {foreach from=$permissions item=oPerm} 131 {foreach from=$permissions item=oPerm}
130 <th title="{$oPerm->sName}">{$oPerm->sHumanName}</th> 132 <th title="{$oPerm->sName}">{$oPerm->sHumanName}</th>
131 {/foreach} 133 {/foreach}
@@ -144,9 +146,9 @@ $this-&gt;assign(&quot;aPermissions&quot;, $this-&gt;_tpl_vars[&#39;oDynamicCondition&#39;]-&gt;getAssignme @@ -144,9 +146,9 @@ $this-&gt;assign(&quot;aPermissions&quot;, $this-&gt;_tpl_vars[&#39;oDynamicCondition&#39;]-&gt;getAssignme
144 {foreach from=$permissions item=oPerm} 146 {foreach from=$permissions item=oPerm}
145 {assign var=bHasPerm value=$oPerm->getId()|in_array:$aPermissions} 147 {assign var=bHasPerm value=$oPerm->getId()|in_array:$aPermissions}
146 { if $bHasPerm } 148 { if $bHasPerm }
147 - <td class="true">True</td> 149 + <td class="true">{i18n}True{/i18n}</td>
148 { else } 150 { else }
149 - <td class="false">False</td> 151 + <td class="false">{i18n}False{/i18n}</td>
150 { /if } 152 { /if }
151 {/foreach} 153 {/foreach}
152 </tr> 154 </tr>
@@ -156,15 +158,15 @@ $this-&gt;assign(&quot;aPermissions&quot;, $this-&gt;_tpl_vars[&#39;oDynamicCondition&#39;]-&gt;getAssignme @@ -156,15 +158,15 @@ $this-&gt;assign(&quot;aPermissions&quot;, $this-&gt;_tpl_vars[&#39;oDynamicCondition&#39;]-&gt;getAssignme
156 { /if } 158 { /if }
157 159
158 { if $edit } 160 { if $edit }
159 -<h3>Add a new dynamic permission</h3> 161 +<h3>{i18n}Add a new dynamic permission{/i18n}</h3>
160 <form> 162 <form>
161 <table class="pretty" cellpadding="0" cellspacing="0"> 163 <table class="pretty" cellpadding="0" cellspacing="0">
162 <input type="hidden" name="action" value="newDynamicPermission" /> 164 <input type="hidden" name="action" value="newDynamicPermission" />
163 <input type="hidden" name="fFolderId" value="{$iFolderId}" /> 165 <input type="hidden" name="fFolderId" value="{$iFolderId}" />
164 <thead> 166 <thead>
165 <tr> 167 <tr>
166 - <th>Group</th>  
167 - <th>Condition</th> 168 + <th>{i18n}Group{/i18n}</th>
  169 + <th>{i18n}Condition{/i18n}</th>
168 {foreach from=$permissions item=oPerm} 170 {foreach from=$permissions item=oPerm}
169 <th title="{$oPerm->sName}">{$oPerm->sHumanName}</th> 171 <th title="{$oPerm->sName}">{$oPerm->sHumanName}</th>
170 {/foreach} 172 {/foreach}
@@ -181,7 +183,7 @@ $this-&gt;assign(&quot;aPermissions&quot;, $this-&gt;_tpl_vars[&#39;oDynamicCondition&#39;]-&gt;getAssignme @@ -181,7 +183,7 @@ $this-&gt;assign(&quot;aPermissions&quot;, $this-&gt;_tpl_vars[&#39;oDynamicCondition&#39;]-&gt;getAssignme
181 </tr> 183 </tr>
182 </tbody> 184 </tbody>
183 </table> 185 </table>
184 -<input type="submit" name="submit" value="Add" /> 186 +<input type="submit" name="submit" value="{i18n}Add{/i18n}" />
185 </form> 187 </form>
186 { /if } 188 { /if }
187 189
@@ -191,7 +193,7 @@ $this-&gt;assign(&quot;aPermissions&quot;, $this-&gt;_tpl_vars[&#39;oDynamicCondition&#39;]-&gt;getAssignme @@ -191,7 +193,7 @@ $this-&gt;assign(&quot;aPermissions&quot;, $this-&gt;_tpl_vars[&#39;oDynamicCondition&#39;]-&gt;getAssignme
191 <table class="pretty" cellspacing="0" cellpadding="0" border="0" width="100%"> 193 <table class="pretty" cellspacing="0" cellpadding="0" border="0" width="100%">
192 <thead> 194 <thead>
193 <tr> 195 <tr>
194 -<th>User</th> 196 +<th>{i18n}User{/i18n}</th>
195 { foreach item=oPerm from=$permissions } 197 { foreach item=oPerm from=$permissions }
196 <th title="{$oPerm->sName}">{$oPerm->sHumanName}</th> 198 <th title="{$oPerm->sName}">{$oPerm->sHumanName}</th>
197 { /foreach } 199 { /foreach }
@@ -205,9 +207,9 @@ $this-&gt;assign(&quot;aPermissions&quot;, $this-&gt;_tpl_vars[&#39;oDynamicCondition&#39;]-&gt;getAssignme @@ -205,9 +207,9 @@ $this-&gt;assign(&quot;aPermissions&quot;, $this-&gt;_tpl_vars[&#39;oDynamicCondition&#39;]-&gt;getAssignme
205 { assign var=iPermId value=$oPerm->getId() } 207 { assign var=iPermId value=$oPerm->getId() }
206 { assign var=bHasPerm value=$aMapPermissionUser[$iPermId][$iUserId] } 208 { assign var=bHasPerm value=$aMapPermissionUser[$iPermId][$iUserId] }
207 { if $bHasPerm } 209 { if $bHasPerm }
208 -<td class="true">True</td> 210 +<td class="true">{i18n}True{/i18n}</td>
209 { else } 211 { else }
210 -<td class="false">False</td> 212 +<td class="false">{i18n}False{/i18n}</td>
211 { /if } 213 { /if }
212 { /foreach } 214 { /foreach }
213 </tr> 215 </tr>
templates/ktcore/manage_permissions.smarty
1 -<h2>Existing permissions</h2> 1 +<h2>{i18n}Existing permissions{/i18n}</h2>
2 2
3 <p class="descriptiveText"><strong>FIXME</strong> add a useful explanation about permissions.</p> 3 <p class="descriptiveText"><strong>FIXME</strong> add a useful explanation about permissions.</p>
4 4
5 <form> 5 <form>
6 <fieldset> 6 <fieldset>
7 -<legend>Create a new permission</legend> 7 +<legend>{i18n}Create a new permission{/i18n}</legend>
8 <input type="hidden" name="action" value="newPermission"> 8 <input type="hidden" name="action" value="newPermission">
9 9
10 10
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
14 {/foreach} 14 {/foreach}
15 15
16 <div class="form_actions"> 16 <div class="form_actions">
17 -<input type="submit" name="submit" value="Create"> 17 +<input type="submit" name="submit" value="{i18n}Create{/i18n}">
18 </div> 18 </div>
19 </fieldset> 19 </fieldset>
20 20
@@ -24,9 +24,9 @@ @@ -24,9 +24,9 @@
24 <table class="listing"> 24 <table class="listing">
25 <thead> 25 <thead>
26 <tr> 26 <tr>
27 - <th>Permission</th>  
28 - <th>Human Name</th>  
29 - <th>Delete</th> 27 + <th>{i18n}Permission{/i18n}</th>
  28 + <th>{i18n}Display Name{/i18n}</th>
  29 + <th>{i18n}Delete{/i18n}</th>
30 </tr> 30 </tr>
31 </thead> 31 </thead>
32 { foreach item=oPerm from=$permissions } 32 { foreach item=oPerm from=$permissions }
@@ -39,14 +39,16 @@ @@ -39,14 +39,16 @@
39 </td> 39 </td>
40 { if $oPerm->bBuiltIn == true } 40 { if $oPerm->bBuiltIn == true }
41 <td> 41 <td>
42 - Built-in 42 + {i18n}Built-in{/i18n}
43 </td> 43 </td>
44 { else } 44 { else }
45 <!-- <td> 45 <!-- <td>
46 Edit 46 Edit
47 </td> --> 47 </td> -->
48 <td> 48 <td>
49 - <a href="{$smarty.server.PHP_SELF}?action=deletePermission&id={$oPerm->getId()}" class="ktAction ktDelete">Delete Permission</a> 49 + <a
  50 +href="{$smarty.server.PHP_SELF}?action=deletePermission&id={$oPerm->getId()}"
  51 +class="ktAction ktDelete">{$i18n}Delete Permission{/i18n}</a>
50 </td> 52 </td>
51 { /if } 53 { /if }
52 </tr> 54 </tr>
templates/ktcore/principals/addgroup.smarty
1 -<h2>Create a new Group</h2> 1 +<h2>{i18n}Create a new Group{/i18n}</h2>
2 2
3 -<p class="descriptiveText">Create a new group.</p> 3 +<p class="descriptiveText">{i18n}Create a new group.{/i18n}</p>
4 4
5 <form action="{$smarty.server.PHP_SELF}" method="POST"> 5 <form action="{$smarty.server.PHP_SELF}" method="POST">
6 <input type="hidden" name="action" value="createGroup" /> 6 <input type="hidden" name="action" value="createGroup" />
7 7
8 <fieldset> 8 <fieldset>
9 - <legend>Change Group Details</legend> 9 + <legend>{i18n}Change Group Details{i18n}</legend>
10 <p class="descriptiveText"><strong>FIXME</strong> brief overview of group editing.</p> 10 <p class="descriptiveText"><strong>FIXME</strong> brief overview of group editing.</p>
11 {foreach item=oWidget from=$add_fields} 11 {foreach item=oWidget from=$add_fields}
12 {$oWidget->render()} 12 {$oWidget->render()}
13 {/foreach} 13 {/foreach}
14 <div class="form_actions"> 14 <div class="form_actions">
15 - <input type="submit" value="create group" />  
16 - <a href="?action=main" class="ktCancelLink">Cancel</a> 15 + <input type="submit" value="{i18n}create group{/i18n}" />
  16 + <a href="?action=main" class="ktCancelLink">{i18n}Cancel{/i18n}</a>
17 </div> 17 </div>
18 </fieldset> 18 </fieldset>
19 - </form>  
20 \ No newline at end of file 19 \ No newline at end of file
  20 + </form>
templates/ktcore/principals/adduser.smarty
1 -<h2>Add a user</h2> 1 +<h2>{i18n}Add a user{/i18n}</h2>
2 2
3 <p class="descriptiveText"><strong>FIXME</strong> brief overview of user management.</p> 3 <p class="descriptiveText"><strong>FIXME</strong> brief overview of user management.</p>
4 4
5 {if $authentication_sources} 5 {if $authentication_sources}
6 <form action="{$smarty.server.PHP_SELF}" method="POST"> 6 <form action="{$smarty.server.PHP_SELF}" method="POST">
7 <input type="hidden" name="action" value="addUserFromSource" /> 7 <input type="hidden" name="action" value="addUserFromSource" />
8 - <fieldset><legend>Add a user from an authentication source</legend> 8 + <fieldset><legend>{i18n}Add a user from an authentication source{/i18n}</legend>
9 9
10 -<p class="descriptiveText">Instead of manually creating the user within 10 +<p class="descriptiveText">{i18n}Instead of manually creating the user within
11 the document management system, the user can be found within an 11 the document management system, the user can be found within an
12 authentication source (such as an LDAP directory) that has already been 12 authentication source (such as an LDAP directory) that has already been
13 configured. This ensures that the user is correctly set up with limited 13 configured. This ensures that the user is correctly set up with limited
14 intervention from the administrator, and that the user will not need to 14 intervention from the administrator, and that the user will not need to
15 -remember an additional password for the document management system.</p> 15 +remember an additional password for the document management
  16 +system.{/i18n}</p>
16 17
17 {entity_select name="source_id" entities=$authentication_sources} 18 {entity_select name="source_id" entities=$authentication_sources}
18 <div class="form_actions "> 19 <div class="form_actions ">
19 - <input type="submit" name="submit" value="Add from source" /> 20 + <input type="submit" name="submit" value="{i18n}Add from source{/i18n}" />
20 </div> 21 </div>
21 </fieldset> 22 </fieldset>
22 </form> 23 </form>
23 </p> 24 </p>
24 25
25 -<p class="descriptiveText">Alternatively, you can manually create a user  
26 -within KnowledgeTree below.</p> 26 +<p class="descriptiveText">{i18n}Alternatively, you can manually create a user
  27 +within KnowledgeTree below.{/i18n}</p>
27 {/if} 28 {/if}
28 29
29 <form action="{$smarty.server.PHP_SELF}" method="POST"> 30 <form action="{$smarty.server.PHP_SELF}" method="POST">
30 <input type="hidden" name="action" value="createUser" /> 31 <input type="hidden" name="action" value="createUser" />
31 <fieldset> 32 <fieldset>
32 - <legend>Create a new user</legend> 33 + <legend>{i18n}Create a new user{/i18n}</legend>
33 {foreach item=oWidget from=$add_fields} 34 {foreach item=oWidget from=$add_fields}
34 {$oWidget->render()} 35 {$oWidget->render()}
35 {/foreach} 36 {/foreach}
36 <div class="form_actions"> 37 <div class="form_actions">
37 - <input type="submit" value="create user" />  
38 - <a href="?action=main" class="ktCancelLink">Cancel</a> 38 + <input type="submit" value="{i18n}create user{/i18n}" />
  39 + <a href="?action=main" class="ktCancelLink">{i18n}Cancel{/i18n}</a>
39 </div> 40 </div>
40 </fieldset> 41 </fieldset>
41 </form> 42 </form>
templates/ktcore/principals/editgroup.smarty
1 <h2>Edit Group Details</h2> 1 <h2>Edit Group Details</h2>
2 2
3 -<p class="descriptiveText">Change the system's information about group <strong>{$edit_group->getName()}</strong></p> 3 +<p class="descriptiveText">{i18n arg_name=$edit_group->getName()}Change
  4 +the system's information about group <strong>#name</strong>{/i18n}</p>
4 5
5 <form action="{$smarty.server.PHP_SELF}" method="POST"> 6 <form action="{$smarty.server.PHP_SELF}" method="POST">
6 <input type="hidden" name="action" value="saveGroup" /> 7 <input type="hidden" name="action" value="saveGroup" />
7 <input type="hidden" name="group_id" value="{$edit_group->getId()}" /> 8 <input type="hidden" name="group_id" value="{$edit_group->getId()}" />
8 <fieldset> 9 <fieldset>
9 - <legend>Change Group Details</legend> 10 + <legend>{i18n}Change Group Details{/i18n}</legend>
10 <p class="descriptiveText"><strong>FIXME</strong> brief overview of group editing.</p> 11 <p class="descriptiveText"><strong>FIXME</strong> brief overview of group editing.</p>
11 {foreach item=oWidget from=$edit_fields} 12 {foreach item=oWidget from=$edit_fields}
12 {$oWidget->render()} 13 {$oWidget->render()}
13 {/foreach} 14 {/foreach}
14 <div class="form_actions"> 15 <div class="form_actions">
15 - <input type="submit" value="save changes to group" />  
16 - <a href="?action=main" class="ktCancelLink">Cancel</a> 16 + <input type="submit" value="{i18n}save changes to group{/i18n}" />
  17 + <a href="?action=main" class="ktCancelLink">{i18n}Cancel{/i18n}</a>
17 </div> 18 </div>
18 </fieldset> 19 </fieldset>
19 - </form>  
20 \ No newline at end of file 20 \ No newline at end of file
  21 + </form>
templates/ktcore/principals/edituser.smarty
1 -<h2>Edit User Details</h2> 1 +<h2>{i18n}Edit User Details{/i18n}</h2>
2 2
3 <form action="{$smarty.server.PHP_SELF}" method="POST"> 3 <form action="{$smarty.server.PHP_SELF}" method="POST">
4 <input type="hidden" name="action" value="saveUser" /> 4 <input type="hidden" name="action" value="saveUser" />
5 <input type="hidden" name="user_id" value="{$edit_user->getId()}" /> 5 <input type="hidden" name="user_id" value="{$edit_user->getId()}" />
6 <fieldset> 6 <fieldset>
7 - <legend>Change User Details</legend> 7 + <legend>{i18n}Change User Details{/i18n}</legend>
8 <p class="descriptiveText"><strong>FIXME</strong> brief overview of user editing.</p> 8 <p class="descriptiveText"><strong>FIXME</strong> brief overview of user editing.</p>
9 {foreach item=oWidget from=$edit_fields} 9 {foreach item=oWidget from=$edit_fields}
10 10
11 {$oWidget->render()} 11 {$oWidget->render()}
12 {/foreach} 12 {/foreach}
13 <div class="form_actions"> 13 <div class="form_actions">
14 - <input type="submit" value="save changes" />  
15 - <a href="?action=main" class="ktCancelLink">Cancel</a> 14 + <input type="submit" value="{i18n}save changes{/i18n}" />
  15 + <a href="?action=main" class="ktCancelLink">{i18n}Cancel{/i18n}</a>
16 </div> 16 </div>
17 </fieldset> 17 </fieldset>
18 </form> 18 </form>
19 19
20 {assign var=provider_stuff value=$provider->showUserSource($edit_user, $source)} 20 {assign var=provider_stuff value=$provider->showUserSource($edit_user, $source)}
21 {if $provider_stuff} 21 {if $provider_stuff}
22 -<fieldset><legend>Authentication</legend>  
23 -<p class="descriptiveText">{$edit_user->getName()}'s authentication is  
24 -handled by the <strong>{$provider->getName()}</strong>.</p> 22 +<fieldset><legend>{i18n}Authentication{/i18n}</legend>
  23 +<p class="descriptiveText">{i18n arg_name=$edit_user->getName()
  24 +arg_provider=$provider->getName()}#name#'s authentication is
  25 +handled by the <strong>#provider#</strong>.{/i18n}</p>
25 {$provider_stuff} 26 {$provider_stuff}
26 </fieldset> 27 </fieldset>
27 {/if} 28 {/if}
templates/ktcore/principals/groupadmin.smarty
1 -<h2>Group Administration</h2> 1 +<h2>{i18n}Group Administration{/i18n}</h2>
2 2
3 <p class="descriptiveText"><strong>FIXME</strong> Overview of groups.</p> 3 <p class="descriptiveText"><strong>FIXME</strong> Overview of groups.</p>
4 4
@@ -8,18 +8,18 @@ @@ -8,18 +8,18 @@
8 <!-- we roll both in here. --> 8 <!-- we roll both in here. -->
9 <form action="{$smarty.server.PHP_SELF}" method="GET"> 9 <form action="{$smarty.server.PHP_SELF}" method="GET">
10 <fieldset> 10 <fieldset>
11 -<legend>Search for groups</legend>  
12 -<p class="descriptiveText">Since there may be many groups in the system, please  
13 -type a few letters from the group's name to begin.  
14 -Alternatively, <a href="?show_all=1">view all groups</a> (note that this may be  
15 -very slow if you have many groups.</p> 11 +<legend>{i18n}Search for groups{/i18n}</legend>
  12 +<p class="descriptiveText">{i18n}Since there may be many groups in the
  13 +system, please type a few letters from the group's name to begin.
  14 +Alternatively, <a href="?show_all=1">view all groups</a> (note that this
  15 +may be very slow if you have many groups.{/i18n}</p>
16 16
17 {foreach item=oWidget from=$search_fields} 17 {foreach item=oWidget from=$search_fields}
18 {$oWidget->render()} 18 {$oWidget->render()}
19 {/foreach} 19 {/foreach}
20 20
21 <div class="form_actions"> 21 <div class="form_actions">
22 - <input type="submit" value="search for groups" /> 22 + <input type="submit" value="{i18n}search for groups{/i18n}" />
23 </div class="form_actions"> 23 </div class="form_actions">
24 </fieldset> 24 </fieldset>
25 </form> 25 </form>
@@ -27,12 +27,12 @@ very slow if you have many groups.&lt;/p&gt; @@ -27,12 +27,12 @@ very slow if you have many groups.&lt;/p&gt;
27 <table class="listing"> 27 <table class="listing">
28 <thead> 28 <thead>
29 <tr> 29 <tr>
30 - <th>Group Name</th>  
31 - <th>Unit Name</th>  
32 - <th>Edit</th>  
33 - <th>Manage Users</th>  
34 - <th>Manage sub-groups</th>  
35 - <th>Delete</th> 30 + <th>{i18n}Group Name{/i18n}</th>
  31 + <th>{i18n}Unit Name{/i18n}</th>
  32 + <th>{i18n}Edit{/i18n}</th>
  33 + <th>{i18n}Manage Users{/i18n}</th>
  34 + <th>{i18n}Manage sub-groups{/i18n}</th>
  35 + <th>{i18n}Delete{/i18n}</th>
36 </tr> 36 </tr>
37 </thead> 37 </thead>
38 <tbody> 38 <tbody>
@@ -41,22 +41,26 @@ very slow if you have many groups.&lt;/p&gt; @@ -41,22 +41,26 @@ very slow if you have many groups.&lt;/p&gt;
41 {foreach item=oGroup from=$search_results} 41 {foreach item=oGroup from=$search_results}
42 <tr> 42 <tr>
43 <td>{$oGroup->getName()}</td> 43 <td>{$oGroup->getName()}</td>
44 - <td>{if (!$oGroup->hasUnit())}<span class="descriptiveText">not part of a unit</span>{else} 44 + <td>{if (!$oGroup->hasUnit())}<span class="descriptiveText">{i18n}not part of a unit{/i18n}</span>{else}
45 {$context->_getUnitName($oGroup)} 45 {$context->_getUnitName($oGroup)}
46 46
47 {/if}</td> 47 {/if}</td>
48 - <td><a href="?action=editGroup&group_id={$oGroup->getId()}" class="ktAction ktEdit">Edit</a></td>  
49 - <td><a href="?action=manageUsers&group_id={$oGroup->getId()}">Manage Users</a></td>  
50 - <td><a href="?action=manageSubgroups&group_id={$oGroup->getId()}">Manage sub-groups</a></td>  
51 - <td><a href="?action=deleteGroup&group_id={$oGroup->getId()}" class="ktAction ktDelete">Delete</a></td> 48 + <td><a href="?action=editGroup&group_id={$oGroup->getId()}"
  49 +class="ktAction ktEdit">{i18n}Edit{/i18n}</a></td>
  50 + <td><a
  51 +href="?action=manageUsers&group_id={$oGroup->getId()}">{i18n}Manage Users{/i18n}</a></td>
  52 + <td><a
  53 +href="?action=manageSubgroups&group_id={$oGroup->getId()}">{i18n}Manage sub-groups{/i18n}</a></td>
  54 + <td><a href="?action=deleteGroup&group_id={$oGroup->getId()}"
  55 +class="ktAction ktDelete">{i18n}Delete{/i18n}</a></td>
52 </tr> 56 </tr>
53 {/foreach} 57 {/foreach}
54 {else} 58 {else}
55 <tr> 59 <tr>
56 <td colspan="7" class="ktInfo"> 60 <td colspan="7" class="ktInfo">
57 - <p>No search specified, or no results for your search.</p> 61 + <p>{i18n}No search specified, or no results for your search.{/i18n}</p>
58 </td> 62 </td>
59 </tr> 63 </tr>
60 {/if} 64 {/if}
61 </tbody> 65 </tbody>
62 -</table>  
63 \ No newline at end of file 66 \ No newline at end of file
  67 +</table>
templates/ktcore/principals/groups_managesubgroups.smarty
1 -<h2>Manage Sub-Groups in {$edit_group->getName()}</h2> 1 +<h2>{i18n arg_name=$edit_group->getName()}Manage Sub-Groups in #name#{/i18n}</h2>
2 2
3 {$context->oPage->requireJSResource('thirdpartyjs/OptionTransfer.js')} 3 {$context->oPage->requireJSResource('thirdpartyjs/OptionTransfer.js')}
4 {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Base.js')} 4 {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Base.js')}
@@ -19,15 +19,15 @@ side-effects to this when used by unitAdmins.&lt;/p&gt; @@ -19,15 +19,15 @@ side-effects to this when used by unitAdmins.&lt;/p&gt;
19 19
20 20
21 <fieldset> 21 <fieldset>
22 - <legend>Change Sub-Groups in {$edit_group->getName()}</legend>  
23 - <p class="descriptiveText">Select the groups which should be part of this group. <strong>FIXME</strong> this helptext is v. awkward.</p> 22 + <legend>{i18n arg_name=$edit_group->getName()}Change Sub-Groups in #name#{/i18n}</legend>
  23 + <p class="descriptiveText">{i18n}Select the groups which should be part of this group.{/i18n} <strong>FIXME</strong> this helptext is v. awkward.</p>
24 24
25 <table border="0" width="600"> 25 <table border="0" width="600">
26 <thead> 26 <thead>
27 <tr> 27 <tr>
28 - <th>Available Groups</th> 28 + <th>{i18n}Available Groups{/i18n}</th>
29 <th>&nbsp;</th> 29 <th>&nbsp;</th>
30 - <th>Assigned Groups</th> 30 + <th>{i18n}Assigned Groups{/i18n}</th>
31 </tr> 31 </tr>
32 </thead> 32 </thead>
33 <tbody> 33 <tbody>
@@ -53,19 +53,19 @@ side-effects to this when used by unitAdmins.&lt;/p&gt; @@ -53,19 +53,19 @@ side-effects to this when used by unitAdmins.&lt;/p&gt;
53 </td> 53 </td>
54 </tr> 54 </tr>
55 <tr> 55 <tr>
56 - <td><label for="ug-filter">Filter</label> 56 + <td><label for="ug-filter">{i18n}Filter{/i18n}</label>
57 <input name="filterUG" id="ug-filter" onkeyup="optGroup.sortSelectMatch(groupSelect, this.value)" onchange="optGroup.sortSelectMatch(groupSelect, this.value)" type="text"> 57 <input name="filterUG" id="ug-filter" onkeyup="optGroup.sortSelectMatch(groupSelect, this.value)" onchange="optGroup.sortSelectMatch(groupSelect, this.value)" type="text">
58 </td> 58 </td>
59 <td>&nbsp;</td> 59 <td>&nbsp;</td>
60 - <td><label for="og-filter">Filter</label> 60 + <td><label for="og-filter">{i18n}Filter{/i18n}</label>
61 <input name="filterOG" id="og-filter" onkeyup="optGroup.sortSelectMatch(chosenGroups, this.value)" onchange="optGroup.sortSelectMatch(chosenGroups, this.value)" type="text"> 61 <input name="filterOG" id="og-filter" onkeyup="optGroup.sortSelectMatch(chosenGroups, this.value)" onchange="optGroup.sortSelectMatch(chosenGroups, this.value)" type="text">
62 </td> 62 </td>
63 </tr> 63 </tr>
64 </tbody></table> 64 </tbody></table>
65 65
66 <div class="form_actions"> 66 <div class="form_actions">
67 - <input type="submit" value="save changes" />  
68 - <a href="?action=main" class="ktCancelLink">Cancel</a> 67 + <input type="submit" value="{i18n}save changes{/i18n}" />
  68 + <a href="?action=main" class="ktCancelLink">{i18n}Cancel{/i18n}</a>
69 </div> 69 </div>
70 </fieldset> 70 </fieldset>
71 - </form>  
72 \ No newline at end of file 71 \ No newline at end of file
  72 + </form>
templates/ktcore/principals/groups_manageusers.smarty
1 -<h2>Manage Users in {$edit_group->getName()}</h2> 1 +<h2>{i18n arg_name=$edit_group->getName()}Manage Users in #name#{/i18n}</h2>
2 2
3 {$context->oPage->requireJSResource('thirdpartyjs/OptionTransfer.js')} 3 {$context->oPage->requireJSResource('thirdpartyjs/OptionTransfer.js')}
4 {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Base.js')} 4 {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Base.js')}
@@ -17,15 +17,15 @@ @@ -17,15 +17,15 @@
17 17
18 18
19 <fieldset> 19 <fieldset>
20 - <legend>Change Users in {$edit_group->getName()}</legend>  
21 - <p class="descriptiveText">Select the users which should be part of this group. <strong>FIXME</strong> this helptext is v. awkward.</p> 20 + <legend>{i18n arg_name=$edit_group->getName()}Manage Users in #name#{/i18n}</legend>
  21 + <p class="descriptiveText">{i18n}Select the users which should be part of this group.{/i18n} <strong>FIXME</strong> this helptext is v. awkward.</p>
22 22
23 <table border="0" width="600"> 23 <table border="0" width="600">
24 <thead> 24 <thead>
25 <tr> 25 <tr>
26 - <th>Available Users</th> 26 + <th>{i18n}Available Users{/i18n}</th>
27 <th>&nbsp;</th> 27 <th>&nbsp;</th>
28 - <th>Member users</th> 28 + <th>{i18n}Member users{/i18n}</th>
29 </tr> 29 </tr>
30 </thead> 30 </thead>
31 <tbody> 31 <tbody>
@@ -50,19 +50,19 @@ @@ -50,19 +50,19 @@
50 </td> 50 </td>
51 </tr> 51 </tr>
52 <tr> 52 <tr>
53 - <td><label for="ug-filter">Filter</label> 53 + <td><label for="ug-filter">{i18n}Filter{/i18n}</label>
54 <input name="filterUG" id="ug-filter" onkeyup="optGroup.sortSelectMatch(userSelect, this.value)" onchange="optGroup.sortSelectMatch(groupSelect, this.value)" type="text"> 54 <input name="filterUG" id="ug-filter" onkeyup="optGroup.sortSelectMatch(userSelect, this.value)" onchange="optGroup.sortSelectMatch(groupSelect, this.value)" type="text">
55 </td> 55 </td>
56 <td>&nbsp;</td> 56 <td>&nbsp;</td>
57 - <td><label for="og-filter">Filter</label> 57 + <td><label for="og-filter">{i18n}Filter{/i18n}</label>
58 <input name="filterOG" id="og-filter" onkeyup="optGroup.sortSelectMatch(chosenUsers, this.value)" onchange="optGroup.sortSelectMatch(chosenGroups, this.value)" type="text"> 58 <input name="filterOG" id="og-filter" onkeyup="optGroup.sortSelectMatch(chosenUsers, this.value)" onchange="optGroup.sortSelectMatch(chosenGroups, this.value)" type="text">
59 </td> 59 </td>
60 </tr> 60 </tr>
61 </tbody></table> 61 </tbody></table>
62 62
63 <div class="form_actions"> 63 <div class="form_actions">
64 - <input type="submit" value="save changes" />  
65 - <a href="?action=main" class="ktCancelLink">Cancel</a> 64 + <input type="submit" value="{i18n}save changes{/i18n}" />
  65 + <a href="?action=main" class="ktCancelLink">{i18n}Cancel{/i18n}</a>
66 </div> 66 </div>
67 </fieldset> 67 </fieldset>
68 - </form>  
69 \ No newline at end of file 68 \ No newline at end of file
  69 + </form>
templates/ktcore/principals/orgadmin.smarty
1 -<h2>Orgnisation Administration</h2> 1 +<h2>{i18n}Orgnisation Administration{/i18n}</h2>
2 2
3 <p class="descriptiveText"><strong>FIXME</strong> Overview of Organisations.</p> 3 <p class="descriptiveText"><strong>FIXME</strong> Overview of Organisations.</p>
4 4
@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 6
7 <form action="{$smarty.server.PHP_SELF}" method="GET"> 7 <form action="{$smarty.server.PHP_SELF}" method="GET">
8 <fieldset> 8 <fieldset>
9 -<legend>Change organisation details</legend> 9 +<legend>{i18n}Change organisation details{/i18n}</legend>
10 10
11 asd 11 asd
12 <input type="hidden" name="action" value="updateOrg" /> 12 <input type="hidden" name="action" value="updateOrg" />
@@ -18,7 +18,7 @@ asd @@ -18,7 +18,7 @@ asd
18 {/foreach} 18 {/foreach}
19 19
20 <div class="form_actions"> 20 <div class="form_actions">
21 - <input type="submit" value="update organisation information" /> 21 + <input type="submit" value="{i18n}update organisation information{/i18n}" />
22 </div class="form_actions"> 22 </div class="form_actions">
23 </fieldset> 23 </fieldset>
24 </form> 24 </form>
@@ -28,17 +28,17 @@ asd @@ -28,17 +28,17 @@ asd
28 <table class="listing"> 28 <table class="listing">
29 <thead> 29 <thead>
30 <tr> 30 <tr>
31 - <th>Organisation Name</th>  
32 - <th>Edit</th> 31 + <th>{i18n}Organisation Name{/i18n}</th>
  32 + <th>{i18n}Edit{/i18n}</th>
33 </tr> 33 </tr>
34 </thead> 34 </thead>
35 <tbody> 35 <tbody>
36 {foreach item=oOrg from=$org_list} 36 {foreach item=oOrg from=$org_list}
37 <tr> 37 <tr>
38 <td>{$oOrg->getName()}</td> 38 <td>{$oOrg->getName()}</td>
39 - <td><a href="?org_id={$oOrg->getId()}" class="ktAction ktEdit">Edit</a></td> 39 + <td><a href="?org_id={$oOrg->getId()}" class="ktAction ktEdit">{i18n}Edit{/i18n}</a></td>
40 40
41 </tr> 41 </tr>
42 {/foreach} 42 {/foreach}
43 </tbody> 43 </tbody>
44 -</table>  
45 \ No newline at end of file 44 \ No newline at end of file
  45 +</table>
templates/ktcore/principals/password.smarty
@@ -6,17 +6,17 @@ @@ -6,17 +6,17 @@
6 <input type="hidden" name="action" value="updatePassword" /> 6 <input type="hidden" name="action" value="updatePassword" />
7 7
8 <fieldset> 8 <fieldset>
9 - <legend>Your Details</legend> 9 + <legend>{i18n}Your Details{/i18n}</legend>
10 10
11 {foreach item=oWidget from=$edit_fields} 11 {foreach item=oWidget from=$edit_fields}
12 {$oWidget->render()} 12 {$oWidget->render()}
13 {/foreach} 13 {/foreach}
14 14
15 <div class="form_actions"> 15 <div class="form_actions">
16 - <input type="submit" value="Change your password" /> 16 + <input type="submit" value="{i18n}Change your password{/i18n}" />
17 <!-- FIXME add CSS for secondary actions. --> 17 <!-- FIXME add CSS for secondary actions. -->
18 - <p><a href="?action=setPassword">Change your password.</a></p> 18 + <p><a href="?action=setPassword">{i18n}Change your password.{/i18n}</a></p>
19 </div> 19 </div>
20 </fieldset> 20 </fieldset>
21 21
22 -</form>  
23 \ No newline at end of file 22 \ No newline at end of file
  23 +</form>
templates/ktcore/principals/preferences.smarty
1 <h2>Preferences</h2> 1 <h2>Preferences</h2>
2 2
3 -<p class="descriptiveText">From here you can adjust certain basic preferences about  
4 -how you work with KnowledgeTree.</p> 3 +<p class="descriptiveText">{i18n}From here you can adjust certain basic
  4 +preferences about how you work with KnowledgeTree.{/i18n}</p>
5 5
6 <form action="{$smarty.server.PHP_SELF}" method="POST"> 6 <form action="{$smarty.server.PHP_SELF}" method="POST">
7 <input type="hidden" name="action" value="updatePreferences" /> 7 <input type="hidden" name="action" value="updatePreferences" />
8 8
9 <fieldset> 9 <fieldset>
10 - <legend>Your Details</legend> 10 + <legend>{i18n}Your Details{/i18n}</legend>
11 11
12 {foreach item=oWidget from=$edit_fields} 12 {foreach item=oWidget from=$edit_fields}
13 {$oWidget->render()} 13 {$oWidget->render()}
14 {/foreach} 14 {/foreach}
15 15
16 <div class="form_actions"> 16 <div class="form_actions">
17 - <input type="submit" value="Update your details" /> 17 + <input type="submit" value="{i18n}Update your details{/i18n}" />
18 <!-- FIXME add CSS for secondary actions. --> 18 <!-- FIXME add CSS for secondary actions. -->
19 - <p><a href="?action=setPassword">Change your password.</a></p> 19 + <p><a href="?action=setPassword">{i18n}Change your password.{/i18n}</a></p>
20 </div> 20 </div>
21 </fieldset> 21 </fieldset>
22 22
23 -</form>  
24 \ No newline at end of file 23 \ No newline at end of file
  24 +</form>
templates/ktcore/principals/roleadmin.smarty
1 -<h2>Role Administration</h2> 1 +<h2>{i18n}Role Administration{/i18n}</h2>
2 2
3 <p class="descriptiveText"><strong>FIXME</strong> Overview of roles.</p> 3 <p class="descriptiveText"><strong>FIXME</strong> Overview of roles.</p>
4 4
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 9
10 <form action="{$smarty.server.PHP_SELF}" method="GET"> 10 <form action="{$smarty.server.PHP_SELF}" method="GET">
11 <fieldset> 11 <fieldset>
12 - <legend>Add a Role</legend> 12 + <legend>{i18n}Add a Role{/i18n}</legend>
13 13
14 <input type="hidden" name="action" value="createRole" /> 14 <input type="hidden" name="action" value="createRole" />
15 15
@@ -18,7 +18,7 @@ @@ -18,7 +18,7 @@
18 {/foreach} 18 {/foreach}
19 19
20 <div class="form_actions"> 20 <div class="form_actions">
21 - <input type="submit" value="create new role" /> 21 + <input type="submit" value="{i18n}create new role{/i18n}" />
22 </div class="form_actions"> 22 </div class="form_actions">
23 </fieldset> 23 </fieldset>
24 </form> 24 </form>
@@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
27 27
28 <form action="{$smarty.server.PHP_SELF}" method="GET"> 28 <form action="{$smarty.server.PHP_SELF}" method="GET">
29 <fieldset> 29 <fieldset>
30 - <legend>Change a role's details</legend> 30 + <legend>{i18n}Change a role's details{/i18n}</legend>
31 31
32 <input type="hidden" name="action" value="updateRole" /> 32 <input type="hidden" name="action" value="updateRole" />
33 <input type="hidden" name="role_id" value="{$edit_role->getId()}" /> 33 <input type="hidden" name="role_id" value="{$edit_role->getId()}" />
@@ -37,9 +37,8 @@ @@ -37,9 +37,8 @@
37 {/foreach} 37 {/foreach}
38 38
39 <div class="form_actions"> 39 <div class="form_actions">
40 - <input type="submit" value="update role information" />  
41 - <a href="?action=main" class="ktAction ktCancel">Cancel</a>  
42 - <a href="?action=main">Cancel</a> 40 + <input type="submit" value="{i18n}update role information{/i18n}" />
  41 + <a href="?action=main" class="ktAction ktCancel">{i18n}Cancel{/i18n}</a>
43 </div class="form_actions"> 42 </div class="form_actions">
44 </fieldset> 43 </fieldset>
45 </form> 44 </form>
@@ -49,9 +48,9 @@ @@ -49,9 +48,9 @@
49 <table class="listing"> 48 <table class="listing">
50 <thead> 49 <thead>
51 <tr> 50 <tr>
52 - <th>Role Name</th>  
53 - <th>Edit</th>  
54 - <th>Delete</th> 51 + <th>{i18n}Role Name{/i18n}</th>
  52 + <th>{i18n}Edit{/i18n}</th>
  53 + <th>{i18n}Delete{/i18n}</th>
55 </tr> 54 </tr>
56 </thead> 55 </thead>
57 <tbody> 56 <tbody>
@@ -59,14 +58,14 @@ @@ -59,14 +58,14 @@
59 {foreach item=oRole from=$roles} 58 {foreach item=oRole from=$roles}
60 <tr> 59 <tr>
61 <td>{$oRole->getName()}</td> 60 <td>{$oRole->getName()}</td>
62 - <td><a href="?action=editRole&role_id={$oRole->getId()}" class="ktAction ktEdit">Edit</a></td>  
63 - <td><a href="?action=deleteRole&role_id={$oRole->getId()}" class="ktAction ktDelete">Delete</a></td> 61 + <td><a href="?action=editRole&role_id={$oRole->getId()}" class="ktAction ktEdit">{i18n}Edit{/i18n}</a></td>
  62 + <td><a href="?action=deleteRole&role_id={$oRole->getId()}" class="ktAction ktDelete">{i18n}Delete{/i18n}</a></td>
64 </tr> 63 </tr>
65 {/foreach} 64 {/foreach}
66 {else} 65 {else}
67 <tr> 66 <tr>
68 - <td class="ktInfo" colspan="3"><p>There are currently no roles created within the system.</td> 67 + <td class="ktInfo" colspan="3"><p>{i18n}There are currently no roles created within the system.{/i18n}</td>
69 </tr> 68 </tr>
70 {/if} 69 {/if}
71 </tbody> 70 </tbody>
72 -</table>  
73 \ No newline at end of file 71 \ No newline at end of file
  72 +</table>
templates/ktcore/principals/unitadmin.smarty
1 -<h2>Unit Administration</h2> 1 +<h2>{i18n}Unit Administration{/i18n}</h2>
2 2
3 <p class="descriptiveText"><strong>FIXME</strong> Overview of units.</p> 3 <p class="descriptiveText"><strong>FIXME</strong> Overview of units.</p>
4 4
@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 6
7 <form action="{$smarty.server.PHP_SELF}" method="GET"> 7 <form action="{$smarty.server.PHP_SELF}" method="GET">
8 <fieldset> 8 <fieldset>
9 -<legend>Add a unit</legend> 9 +<legend>{i18n}Add a unit{/i18n}</legend>
10 10
11 <input type="hidden" name="action" value="createUnit" /> 11 <input type="hidden" name="action" value="createUnit" />
12 12
@@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
15 {/foreach} 15 {/foreach}
16 16
17 <div class="form_actions"> 17 <div class="form_actions">
18 - <input type="submit" value="create new unit" /> 18 + <input type="submit" value="{i18n}create new unit{/i18n}" />
19 </div class="form_actions"> 19 </div class="form_actions">
20 </fieldset> 20 </fieldset>
21 </form> 21 </form>
@@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
24 24
25 <form action="{$smarty.server.PHP_SELF}" method="GET"> 25 <form action="{$smarty.server.PHP_SELF}" method="GET">
26 <fieldset> 26 <fieldset>
27 -<legend>Change a unit's details</legend> 27 +<legend>{i18n}Change a unit's details{/i18n}</legend>
28 28
29 <input type="hidden" name="action" value="updateUnit" /> 29 <input type="hidden" name="action" value="updateUnit" />
30 <input type="hidden" name="unit_id" value="{$edit_unit->getId()}" /> 30 <input type="hidden" name="unit_id" value="{$edit_unit->getId()}" />
@@ -34,7 +34,7 @@ @@ -34,7 +34,7 @@
34 {/foreach} 34 {/foreach}
35 35
36 <div class="form_actions"> 36 <div class="form_actions">
37 - <input type="submit" value="update unit information" /> 37 + <input type="submit" value="{i18n}update unit information{/i18n}" />
38 </div class="form_actions"> 38 </div class="form_actions">
39 </fieldset> 39 </fieldset>
40 </form> 40 </form>
@@ -45,18 +45,19 @@ @@ -45,18 +45,19 @@
45 <table class="listing"> 45 <table class="listing">
46 <thead> 46 <thead>
47 <tr> 47 <tr>
48 - <th>Unit Name</th>  
49 - <th>Edit</th>  
50 - <th>Manage Members</th> 48 + <th>{i18n}Unit Name{/i18n}</th>
  49 + <th>{i18n}Edit{/i18n}</th>
  50 + <th>{i18n}Manage Members{/i18n}</th>
51 </tr> 51 </tr>
52 </thead> 52 </thead>
53 <tbody> 53 <tbody>
54 {foreach item=oUnit from=$unit_list} 54 {foreach item=oUnit from=$unit_list}
55 <tr> 55 <tr>
56 <td>{$oUnit->getName()}</td> 56 <td>{$oUnit->getName()}</td>
57 - <td><a href="?action=editGroup&unit_id={$oUnit->getId()}" class="ktAction ktEdit">Edit</a></td>  
58 - <!-- <td><a href="?action=manageMembers&unit_id={$oUnit->getId()}">Manage Members</a></td> --> 57 + <td><a href="?action=editGroup&unit_id={$oUnit->getId()}" class="ktAction ktEdit">{i18n}Edit{/i18n}</a></td>
  58 + <!-- <td><a
  59 +href="?action=manageMembers&unit_id={$oUnit->getId()}">{i18n}Manage Members{/i18n}</a></td> -->
59 </tr> 60 </tr>
60 {/foreach} 61 {/foreach}
61 </tbody> 62 </tbody>
62 -</table>  
63 \ No newline at end of file 63 \ No newline at end of file
  64 +</table>
templates/ktcore/principals/updatepassword.smarty
1 -<h2>Change User's Password</h2> 1 +<h2>{i18n}Change User's Password{/i18n}</h2>
2 2
3 <form action="{$smarty.server.PHP_SELF}" method="POST"> 3 <form action="{$smarty.server.PHP_SELF}" method="POST">
4 <input type="hidden" name="action" value="updatePassword" /> 4 <input type="hidden" name="action" value="updatePassword" />
5 <input type="hidden" name="user_id" value="{$edit_user->getId()}" /> 5 <input type="hidden" name="user_id" value="{$edit_user->getId()}" />
6 <fieldset> 6 <fieldset>
7 - <legend>Change User's Password</legend>  
8 - <p class="descriptiveText">Change the user's password.</p> 7 + <legend>{i18n}Change User's Password{/i18n}</legend>
  8 + <p class="descriptiveText">{i18n}Change the user's password.{/i18n}</p>
9 {foreach item=oWidget from=$edit_fields} 9 {foreach item=oWidget from=$edit_fields}
10 {$oWidget->render()} 10 {$oWidget->render()}
11 {/foreach} 11 {/foreach}
12 12
13 <div class="form_actions"> 13 <div class="form_actions">
14 - <input type="submit" value="change password" />  
15 - <a href="?action=main" class="ktCancelLink">Cancel</a> 14 + <input type="submit" value="{i18n}change password{/i18n}" />
  15 + <a href="?action=main" class="ktCancelLink">{i18n}Cancel{/i18n}</a>
16 </div> 16 </div>
17 </fieldset> 17 </fieldset>
18 </form> 18 </form>
templates/ktcore/principals/useradmin.smarty
@@ -5,23 +5,25 @@ @@ -5,23 +5,25 @@
5 5
6 <!-- FIXME inline CSS is _very_ bad. --> 6 <!-- FIXME inline CSS is _very_ bad. -->
7 7
8 -<p><a href="?action=addUser" class="ktAction ktAddUser" style="float: left; padding-right: 0.5em;">Add User</a><a href="?action=addUser">Add a new user</a>.</p> 8 +<p><a href="?action=addUser" class="ktAction ktAddUser" style="float:
  9 +left; padding-right: 0.5em;">Add User</a><a
  10 +href="?action=addUser">{i18n}Add a new user{/i18n}</a>.</p>
9 11
10 <!-- we roll both in here. --> 12 <!-- we roll both in here. -->
11 <form action="{$smarty.server.PHP_SELF}" method="GET"> 13 <form action="{$smarty.server.PHP_SELF}" method="GET">
12 <fieldset> 14 <fieldset>
13 <legend>Search for users</legend> 15 <legend>Search for users</legend>
14 -<p class="descriptiveText">Since there may be many users in the system, please 16 +<p class="descriptiveText">{i18n}Since there may be many users in the system, please
15 select a group from the list below, or type a few letters from the person's username 17 select a group from the list below, or type a few letters from the person's username
16 to begin. Alternatively, <a href="?show_all=1">view all users</a> (note that this may be 18 to begin. Alternatively, <a href="?show_all=1">view all users</a> (note that this may be
17 -very slow if you have many users.</p> 19 +very slow if you have many users.{/i18n}</p>
18 20
19 {foreach item=oWidget from=$search_fields} 21 {foreach item=oWidget from=$search_fields}
20 {$oWidget->render()} 22 {$oWidget->render()}
21 {/foreach} 23 {/foreach}
22 24
23 <div class="form_actions"> 25 <div class="form_actions">
24 - <input type="submit" value="search for users" /> 26 + <input type="submit" value="{i18n}search for users{/i18n}" />
25 </div class="form_actions"> 27 </div class="form_actions">
26 </fieldset> 28 </fieldset>
27 </form> 29 </form>
@@ -29,11 +31,11 @@ very slow if you have many users.&lt;/p&gt; @@ -29,11 +31,11 @@ very slow if you have many users.&lt;/p&gt;
29 <table class="listing"> 31 <table class="listing">
30 <thead> 32 <thead>
31 <tr> 33 <tr>
32 - <th>Name</th>  
33 - <th>Username</th>  
34 - <th>Edit</th>  
35 - <th>Delete</th>  
36 - <th>Group Memberships</th> 34 + <th>{i18n}Name{/i18n}</th>
  35 + <th>{i18n}Username{/i18n}</th>
  36 + <th>{i18n}Edit{/i18n}</th>
  37 + <th>{i18n}Delete{/i18n}</th>
  38 + <th>{i18n}Group Memberships{/i18n}</th>
37 </tr> 39 </tr>
38 </thead> 40 </thead>
39 <tbody> 41 <tbody>
@@ -43,16 +45,21 @@ very slow if you have many users.&lt;/p&gt; @@ -43,16 +45,21 @@ very slow if you have many users.&lt;/p&gt;
43 <tr> 45 <tr>
44 <td>{$oUser->getName()}</td> 46 <td>{$oUser->getName()}</td>
45 <td>{$oUser->getUsername()}</td> 47 <td>{$oUser->getUsername()}</td>
46 - <td><a href="?action=editUser&user_id={$oUser->getId()}" class="ktAction ktEdit">Edit</a></td>  
47 - <td><a href="?action=deleteuser&user_id={$oUser->getId()}" class="ktAction ktDelete">Delete</a></td>  
48 - <td><a href="?action=editgroups&user_id={$oUser->getId()}">Groups</a></td> 48 + <td><a href="?action=editUser&user_id={$oUser->getId()}" class="ktAction ktEdit">{i18n}Edit{/i18n}</a></td>
  49 + <td><a href="?action=deleteuser&user_id={$oUser->getId()}" class="ktAction ktDelete">{i18n}Delete{/i18n}</a></td>
  50 + <td><a href="?action=editgroups&user_id={$oUser->getId()}">{i18n}Groups{/i18n}</a></td>
49 </tr> 51 </tr>
50 {/foreach} 52 {/foreach}
51 {else} 53 {else}
52 <tr> 54 <tr>
53 <td colspan="5" class="ktInfo"> 55 <td colspan="5" class="ktInfo">
54 <!-- never show a very large set, if you can help it. --> 56 <!-- never show a very large set, if you can help it. -->
55 - <p>No search specified, or no results for your search. Please choose some criteria from the list above to find users.</p> 57 + <p>
  58 +{i18n}
  59 +No search specified, or no results for your search. Please choose some
  60 +criteria from the list above to find users.
  61 +{/i18n}
  62 +</p>
56 </td> 63 </td>
57 </tr> 64 </tr>
58 {/if} 65 {/if}
@@ -60,4 +67,4 @@ very slow if you have many users.&lt;/p&gt; @@ -60,4 +67,4 @@ very slow if you have many users.&lt;/p&gt;
60 67
61 --> 68 -->
62 </tbody> 69 </tbody>
63 -</table>  
64 \ No newline at end of file 70 \ No newline at end of file
  71 +</table>
templates/ktcore/principals/usergroups.smarty
1 -<h2>Change {$edit_user->getName()}'s Groups</h2> 1 +<h2>{i18n arg_name=$edit_user->getName()}Change #name#'s Groups{/i18n}</h2>
2 2
3 {$context->oPage->requireJSResource('thirdpartyjs/OptionTransfer.js')} 3 {$context->oPage->requireJSResource('thirdpartyjs/OptionTransfer.js')}
4 {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Base.js')} 4 {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Base.js')}
@@ -19,15 +19,16 @@ side-effects to this when used by unitAdmins.&lt;/p&gt; @@ -19,15 +19,16 @@ side-effects to this when used by unitAdmins.&lt;/p&gt;
19 19
20 20
21 <fieldset> 21 <fieldset>
22 - <legend>Change {$edit_user->getName()}'s Groups</legend>  
23 - <p class="descriptiveText">Select the groups which should contain this user. <strong>FIXME</strong> this helptext is v. awkward.</p> 22 + <legend>{i18n arg_name=$edit_user->getName()}Change #name#'s Groups{/i18n}</legend>
  23 + <p class="descriptiveText">{i18n}Select the groups which should
  24 +contain this user.{/i18n} <strong>FIXME</strong> this helptext is v. awkward.</p>
24 25
25 <table border="0" width="600"> 26 <table border="0" width="600">
26 <thead> 27 <thead>
27 <tr> 28 <tr>
28 - <th>Available Groups</th> 29 + <th>{i18n}Available Groups{/i18n}</th>
29 <th>&nbsp;</th> 30 <th>&nbsp;</th>
30 - <th>Assigned Groups</th> 31 + <th>{i18n}Assigned Groups{/i18n}</th>
31 </tr> 32 </tr>
32 </thead> 33 </thead>
33 <tbody> 34 <tbody>
@@ -53,19 +54,19 @@ side-effects to this when used by unitAdmins.&lt;/p&gt; @@ -53,19 +54,19 @@ side-effects to this when used by unitAdmins.&lt;/p&gt;
53 </td> 54 </td>
54 </tr> 55 </tr>
55 <tr> 56 <tr>
56 - <td><label for="ug-filter">Filter</label> 57 + <td><label for="ug-filter">{i18n}Filter{/i18n}</label>
57 <input name="filterUG" id="ug-filter" onkeyup="optGroup.sortSelectMatch(groupSelect, this.value)" onchange="optGroup.sortSelectMatch(groupSelect, this.value)" type="text"> 58 <input name="filterUG" id="ug-filter" onkeyup="optGroup.sortSelectMatch(groupSelect, this.value)" onchange="optGroup.sortSelectMatch(groupSelect, this.value)" type="text">
58 </td> 59 </td>
59 <td>&nbsp;</td> 60 <td>&nbsp;</td>
60 - <td><label for="og-filter">Filter</label> 61 + <td><label for="og-filter">{i18n}Filter{/i18n}</label>
61 <input name="filterOG" id="og-filter" onkeyup="optGroup.sortSelectMatch(chosenGroups, this.value)" onchange="optGroup.sortSelectMatch(chosenGroups, this.value)" type="text"> 62 <input name="filterOG" id="og-filter" onkeyup="optGroup.sortSelectMatch(chosenGroups, this.value)" onchange="optGroup.sortSelectMatch(chosenGroups, this.value)" type="text">
62 </td> 63 </td>
63 </tr> 64 </tr>
64 </tbody></table> 65 </tbody></table>
65 66
66 <div class="form_actions"> 67 <div class="form_actions">
67 - <input type="submit" value="save changes" />  
68 - <a href="?action=main" class="ktCancelLink">Cancel</a> 68 + <input type="submit" value="{i18n}save changes{/i18n}" />
  69 + <a href="?action=main" class="ktCancelLink">{i18n}Cancel{/i18n}</a>
69 </div> 70 </div>
70 </fieldset> 71 </fieldset>
71 - </form>  
72 \ No newline at end of file 72 \ No newline at end of file
  73 + </form>
templates/ktcore/search/administration/conditions.smarty
1 -<h1>Conditions</h1> 1 +<h1>{i18n}Conditions{/i18n}</h1>
2 2
3 -<h2>Create a new condition</h2> 3 +<h2>{i18n}Create a new condition{/i18n}</h2>
4 <form> 4 <form>
5 <input type="hidden" name="action" value="new" /> 5 <input type="hidden" name="action" value="new" />
6 -<input type="submit" name="submit" value="New" /> 6 +<input type="submit" name="submit" value="{i18n}New{/i18n}" />
7 </form> 7 </form>
8 8
9 {if $conditions} 9 {if $conditions}
10 -<h2>Edit existing conditions</h2> 10 +<h2>{i18n}Edit existing conditions{/i18n}</h2>
11 <form> 11 <form>
12 <input type="hidden" name="action" value="edit" /> 12 <input type="hidden" name="action" value="edit" />
13 {entity_radios entities=$conditions name="fSavedSearchId" assign=aRadios} 13 {entity_radios entities=$conditions name="fSavedSearchId" assign=aRadios}
14 {foreach from=$aRadios item=sRadio} 14 {foreach from=$aRadios item=sRadio}
15 {$sRadio}<br /> 15 {$sRadio}<br />
16 {/foreach} 16 {/foreach}
17 -<input type="submit" name="submit" value="Edit" /> 17 +<input type="submit" name="submit" value="{i18n}Edit{/i18n}" />
18 </form> 18 </form>
19 {/if} 19 {/if}
20 20
templates/ktcore/search/administration/savedsearches.smarty
1 -<h1>Saved searches</h1> 1 +<h1>{i18n}Saved searches{/i18n}</h1>
2 2
3 -<h2>Create a new saved search</h2> 3 +<h2>{i18n}Create a new saved search{/i18n}</h2>
4 <form> 4 <form>
5 <input type="hidden" name="action" value="new" /> 5 <input type="hidden" name="action" value="new" />
6 -<input type="submit" name="submit" value="New" /> 6 +<input type="submit" name="submit" value="{i18n}New{/i18n}" />
7 </form> 7 </form>
8 8
9 {if $saved_searches} 9 {if $saved_searches}
10 -<h2>Edit existing saved searches</h2> 10 +<h2>{i18n}Edit existing saved searches{/i18n}</h2>
11 <form> 11 <form>
12 <input type="hidden" name="action" value="edit" /> 12 <input type="hidden" name="action" value="edit" />
13 {entity_radios entities=$saved_searches name="fSavedSearchId" assign=aRadios} 13 {entity_radios entities=$saved_searches name="fSavedSearchId" assign=aRadios}
14 {foreach from=$aRadios item=sRadio} 14 {foreach from=$aRadios item=sRadio}
15 {$sRadio}<br /> 15 {$sRadio}<br />
16 {/foreach} 16 {/foreach}
17 -<input type="submit" name="submit" value="Edit" /> 17 +<input type="submit" name="submit" value="{i18n}Edit{/i18n}" />
18 </form> 18 </form>
19 19
20 -<h2>Run a saved search</h2> 20 +<h2>{i18n}Run a saved search{/i18n}</h2>
21 <form action="{"booleanSearch"|generateControllerUrl}" method="GET"> 21 <form action="{"booleanSearch"|generateControllerUrl}" method="GET">
22 <input type="hidden" name="action" value="booleanSearch" /> 22 <input type="hidden" name="action" value="booleanSearch" />
23 <input type="hidden" name="qs[action]" value="performSearch" /> 23 <input type="hidden" name="qs[action]" value="performSearch" />
@@ -25,7 +25,7 @@ @@ -25,7 +25,7 @@
25 {foreach from=$aRadios item=sRadio} 25 {foreach from=$aRadios item=sRadio}
26 {$sRadio}<br /> 26 {$sRadio}<br />
27 {/foreach} 27 {/foreach}
28 -<input type="submit" name="submit" value="Run" /> 28 +<input type="submit" name="submit" value="{i18n}Run{/i18n}" />
29 </form> 29 </form>
30 {/if} 30 {/if}
31 31