Commit 2e2b0031f75f97b87dc4780a4482b5eae916836b
1 parent
99759e15
Add i18n tags around translatable text.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4338 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
12 changed files
with
179 additions
and
178 deletions
templates/ktcore/documenttypes/edit.smarty
| 1 | -<h2>Document Type: { $oDocumentType->getName() }</h2> | |
| 1 | +<h2>{i18n}Document Type{/i18n}: { $oDocumentType->getName() }</h2> | |
| 2 | 2 | |
| 3 | 3 | <form method="POST" action="{$smarty.server.PHP_SELF}"> |
| 4 | 4 | <input type="hidden" name="action" value="editobject"> |
| ... | ... | @@ -7,21 +7,21 @@ |
| 7 | 7 | <input type="submit" name="submit" value="Change"> |
| 8 | 8 | </form> |
| 9 | 9 | |
| 10 | -<h2>Type-specific field sets</h2> | |
| 10 | +<h2>{i18n}Type-specific field sets{/i18n}</h2> | |
| 11 | 11 | |
| 12 | 12 | <p class="descriptiveText"></p> |
| 13 | 13 | |
| 14 | 14 | { if $aCurrentFieldsets } |
| 15 | 15 | <form method="POST" action="{$smarty.server.PHP_SELF}"> |
| 16 | 16 | <fieldset> |
| 17 | -<legend>Linked Fieldsets</legend> | |
| 17 | +<legend>{i18n}Linked Fieldsets{/i18n}</legend> | |
| 18 | 18 | <input type="hidden" name="action" value="removefieldsets"> |
| 19 | 19 | <input type="hidden" name="fDocumentTypeId" value="{$oDocumentType->getId()}"> |
| 20 | 20 | |
| 21 | 21 | <table class="listing"> |
| 22 | 22 | <thead> |
| 23 | 23 | <tr> |
| 24 | - <th>Fieldset</th> | |
| 24 | + <th>{i18n}Fieldset{/i18n}</th> | |
| 25 | 25 | </tr> |
| 26 | 26 | </thead> |
| 27 | 27 | <tbody> |
| ... | ... | @@ -34,18 +34,18 @@ |
| 34 | 34 | </tbody> |
| 35 | 35 | </table> |
| 36 | 36 | <div class="form_actions"> |
| 37 | - <input type="submit" name="submit" value="Disassociate Fieldsets"> | |
| 37 | + <input type="submit" name="submit" value="{i18n}Disassociate Fieldsets{/i18n}"> | |
| 38 | 38 | </div> |
| 39 | 39 | </fieldset> |
| 40 | 40 | </form> |
| 41 | 41 | {else} |
| 42 | -<p>No fieldsets are currently associated with this type.</p> | |
| 42 | +<p>{i18n}No fieldsets are currently associated with this type.{/i18n}</p> | |
| 43 | 43 | { /if } |
| 44 | 44 | |
| 45 | 45 | { if $aAvailableFieldsets } |
| 46 | 46 | <form method="POST" action="{$smarty.server.PHP_SELF}"> |
| 47 | 47 | <fieldset> |
| 48 | -<legend>Associate Fieldsets</legend> | |
| 48 | +<legend>{i18n}Associate Fieldsets{/i18n}</legend> | |
| 49 | 49 | |
| 50 | 50 | <input type="hidden" name="action" value="addfieldsets"> |
| 51 | 51 | <input type="hidden" name="fDocumentTypeId" value="{$oDocumentType->getId()}"> |
| ... | ... | @@ -53,11 +53,11 @@ |
| 53 | 53 | {$availableWidget->render()} |
| 54 | 54 | |
| 55 | 55 | <div class="form_actions"> |
| 56 | - <input type="submit" name="submit" value="Associate Fieldsets"> | |
| 56 | + <input type="submit" name="submit" value="{i18n}Associate Fieldsets{/i18n}" /> | |
| 57 | 57 | </div> |
| 58 | 58 | </fieldset> |
| 59 | 59 | </form> |
| 60 | 60 | |
| 61 | 61 | {else} |
| 62 | -<p>There are no fieldsets available for adding. <strong>FIXME link to fieldset creation from here.</strong></p> | |
| 62 | +<p>{i18n}There are no fieldsets available for adding.{/i18n} <strong>FIXME link to fieldset creation from here.</strong></p> | |
| 63 | 63 | { /if } | ... | ... |
templates/ktcore/documenttypes/folderassign.smarty
| 1 | -<h1>Document types</h1> | |
| 1 | +<h2>{i18n}Document types{/i18n}</h2> | |
| 2 | 2 | |
| 3 | -<p>Select document types allowed in folder:</p> | |
| 3 | +<p>{i18n}Select document types allowed in folder{/i18n}:</p> | |
| 4 | 4 | |
| 5 | 5 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 6 | 6 | <input type="hidden" name="action" value="assign"> |
| 7 | 7 | <input type="hidden" name="fFolderId" value="{$oFolder->getId()}"> |
| 8 | 8 | <table class="prettysw" cellspacing="0" cellpadding="0"> |
| 9 | -<tr><th>Folder</th><td>{$oFolder->getName()}</td></tr> | |
| 10 | -<tr><th>Restrict document types</th><td>{boolean_checkbox name="restricted" bool=$oFolder->getRestrictDocumentTypes() }</td></tr> | |
| 11 | -<tr><th>Document Types</th><td> | |
| 9 | +<tr><th>{i18n}Folder{/i18n}</th><td>{$oFolder->getName()}</td></tr> | |
| 10 | +<tr><th>{i18n}Restrict document types{/i18n}</th><td>{boolean_checkbox name="restricted" bool=$oFolder->getRestrictDocumentTypes() }</td></tr> | |
| 11 | +<tr><th>{i18n}Document Types{/i18n}</th><td> | |
| 12 | 12 | {entity_select entities=$document_types selected=$selected_types name="document_types[]" multiple="yes"} |
| 13 | 13 | </td></tr> |
| 14 | 14 | </table> |
| 15 | 15 | |
| 16 | -<input type="submit" name="submit" value="Assign"> | |
| 16 | +<input type="submit" name="submit" value="{i18n}Assign{/i18n}" /> | |
| 17 | 17 | </form> |
| 18 | 18 | |
| 19 | 19 | {assign var="iFolderId" value=$oFolder->getId()} |
| 20 | -<a href="{"editFolder"|generateControllerUrl:"fFolderID=$iFolderId"}">Back to folder</a> | |
| 20 | +<a | |
| 21 | +href="{"editFolder"|generateControllerUrl:"fFolderID=$iFolderId"}">{i18n}Back to folder{/i18n}</a> | ... | ... |
templates/ktcore/documenttypes/list.smarty
| 1 | -<h2>Document Types</h2> | |
| 1 | +<h2>{i18n}Document Types{/i18n}</h2> | |
| 2 | 2 | |
| 3 | 3 | <form method="POST"> |
| 4 | 4 | |
| 5 | 5 | <fieldset> |
| 6 | -<legend>Create a new document type</legend> | |
| 6 | +<legend>{i18n}Create a new document type{/i18n}</legend> | |
| 7 | 7 | |
| 8 | -<p class="descriptiveText">To start the process of creating a new document type, | |
| 9 | -please enter a name for the type below.</p> | |
| 8 | +<p class="descriptiveText">{i18n}To start the process of creating a new document type, | |
| 9 | +please enter a name for the type below.{/i18n}</p> | |
| 10 | 10 | |
| 11 | 11 | {foreach item=oWidget from=$add_fields} |
| 12 | 12 | {$oWidget->render()} |
| 13 | 13 | {/foreach} |
| 14 | 14 | |
| 15 | 15 | <div class="form_actions"> |
| 16 | -<input type="hidden" name="action" value="new"> | |
| 17 | -<input type="submit" name="submit" value="Create"> | |
| 16 | +<input type="hidden" name="action" value="{i18n}new{/i18n}"> | |
| 17 | +<input type="submit" name="submit" value="{i18n}Create{/i18n}"> | |
| 18 | 18 | </div> |
| 19 | 19 | </fieldset> |
| 20 | 20 | |
| 21 | 21 | </form> |
| 22 | 22 | |
| 23 | 23 | <fieldset> |
| 24 | -<legend>Existing document types</legend> | |
| 24 | +<legend>{i18n}Existing document types{/i18n}</legend> | |
| 25 | 25 | |
| 26 | -<p class="descriptiveText">Select a document type from the list below to change | |
| 27 | -its details, or click on the delete button to remove it from the system.</p> | |
| 26 | +<p class="descriptiveText">{i18n}Select a document type from the list below to change | |
| 27 | +its details, or click on the delete button to remove it from the | |
| 28 | +system.{/i18n}</p> | |
| 28 | 29 | |
| 29 | 30 | <table class="listing" cellspacing="0" cellpadding="0"> |
| 30 | 31 | <thead> |
| 31 | 32 | <tr> |
| 32 | - <th colspan="2">Document Type</th> | |
| 33 | + <th colspan="2">{i18n}Document Type{/i18n}</th> | |
| 33 | 34 | </tr> |
| 34 | 35 | </thead> |
| 35 | 36 | <tbody> |
| ... | ... | @@ -38,7 +39,7 @@ its details, or click on the delete button to remove it from the system.</p> |
| 38 | 39 | { if $oDocumentType->isUsed() } |
| 39 | 40 | |
| 40 | 41 | { else } |
| 41 | -<a href="?action=delete&fDocumentTypeId={$oDocumentType->getId()}" class="ktAction ktDelete">Delete Type</a> | |
| 42 | +<a href="?action=delete&fDocumentTypeId={$oDocumentType->getId()}" class="ktAction ktDelete">{i18n}Delete Type{/i18n}</a> | |
| 42 | 43 | {/if} |
| 43 | 44 | </td> |
| 44 | 45 | <td> | ... | ... |
templates/ktcore/edit_conditional.smarty
| 1 | -<h2>Edit Fieldset</h2> | |
| 1 | +<h2>{i18n}Edit Fieldset{/i18n}</h2> | |
| 2 | 2 | |
| 3 | 3 | <form> |
| 4 | 4 | <fieldset> |
| 5 | -<legend>Current Fields in Set</legend> | |
| 6 | -<p>Fields which are currently not included in any set can be added to this set.</p> | |
| 5 | +<legend>{i18n}Current Fields in Set{/i18n}</legend> | |
| 6 | + | |
| 7 | +<p>{i18n}Fields which are currently not included in any set can be added | |
| 8 | +to this set.{/i18n}</p> | |
| 7 | 9 | |
| 8 | 10 | <input type="hidden" name="id" value="{$setId}" /> |
| 9 | 11 | <input type="hidden" name="action" value="removeFromFieldset" /> |
| 10 | 12 | {if (empty($children))} |
| 11 | -<p>No fields associated with this fieldset.</p> | |
| 13 | +<p>{i18n}No fields associated with this fieldset.{/i18n}</p> | |
| 12 | 14 | {else} |
| 13 | 15 | {foreach item=oField from=$children} |
| 14 | 16 | <input type="checkbox" name="fieldsToRemove[]" value="{$oField->getId()}">{$oField->getName()}</input> |
| 15 | 17 | {/foreach} |
| 16 | 18 | {/if} |
| 17 | 19 | <div> |
| 18 | -<input type="submit" name="submit" value="Remove"> | |
| 20 | +<input type="submit" name="submit" value="{i18n}Remove{/i18n}" /> | |
| 19 | 21 | </div> |
| 20 | 22 | </fieldset> |
| 21 | 23 | </form> |
| ... | ... | @@ -23,14 +25,15 @@ |
| 23 | 25 | |
| 24 | 26 | |
| 25 | 27 | <fieldset> |
| 26 | -<legend>Add Field to set</legend> | |
| 27 | -<p>Fields which are currently not included in any set can be added to this set.</p> | |
| 28 | +<legend>{i18n}Add Field to set{/i18n}</legend> | |
| 29 | +<p>{i18n}Fields which are currently not included in any set can be added | |
| 30 | +to this set.{/i18n}</p> | |
| 28 | 31 | <form> |
| 29 | 32 | <input type="hidden" name="id" value="{$setId}" /> |
| 30 | 33 | <input type="hidden" name="action" value="addToFieldset"> |
| 31 | 34 | |
| 32 | 35 | {if (empty($freefields))} |
| 33 | -<p>No free fields.</p> | |
| 36 | +<p>{i18n}No free fields.{/i18n}</p> | |
| 34 | 37 | {else} |
| 35 | 38 | <select name="fieldsToAdd[]" multiple="true"> |
| 36 | 39 | {foreach item=oField from=$freefields} |
| ... | ... | @@ -39,7 +42,7 @@ |
| 39 | 42 | </select> |
| 40 | 43 | {/if} |
| 41 | 44 | <div> |
| 42 | -<input type="submit" name="submit" value="Add to Fieldset"> | |
| 45 | +<input type="submit" name="submit" value="{i18n}Add to Fieldset{/i18n}" /> | |
| 43 | 46 | </div> |
| 44 | 47 | </form> |
| 45 | 48 | </fieldset> |
| ... | ... | @@ -47,14 +50,14 @@ |
| 47 | 50 | |
| 48 | 51 | {if ($fieldSet->canBeMadeConditional() === true)} |
| 49 | 52 | <fieldset> |
| 50 | -<legend>Make this fieldset conditional</legend> | |
| 53 | +<legend>{i18n}Make this fieldset conditional{/i18n}</legend> | |
| 51 | 54 | |
| 52 | 55 | <form> |
| 53 | 56 | <input type="hidden" name="id" value="{$setId}" /> |
| 54 | 57 | <input type="hidden" name="action" value="makeConditionalSet"> |
| 55 | 58 | |
| 56 | 59 | {if (empty($freefields))} |
| 57 | -<p>No free fields.</p> | |
| 60 | +<p>{i18n}No free fields.{/i18n}</p> | |
| 58 | 61 | {else} |
| 59 | 62 | <select name="fieldsToAdd" multiple="true"> |
| 60 | 63 | {foreach item=oField from=$freefields} |
| ... | ... | @@ -63,19 +66,19 @@ |
| 63 | 66 | </select> |
| 64 | 67 | {/if} |
| 65 | 68 | <div> |
| 66 | -<input type="submit" name="submit" value="Add to Fieldset"> | |
| 69 | +<input type="submit" name="submit" value="{i18n}Add to Fieldset{/i18n}" /> | |
| 67 | 70 | </div> |
| 68 | 71 | </form> |
| 69 | 72 | </fieldset> |
| 70 | 73 | |
| 71 | 74 | {else} |
| 72 | 75 | {if ($fieldSet->getIsConditional())} |
| 73 | -Field has conditions attached to it.. | |
| 76 | +{i18n}Field has conditions attached to it.{/i18n} | |
| 74 | 77 | <ul> |
| 75 | - <li>Manage conditions.</li> | |
| 76 | - <li>Test conditions</li> | |
| 78 | + <li>{i18n}Manage conditions.{/i18n}</li> | |
| 79 | + <li>{i18n}Test conditions{/i18n}</li> | |
| 77 | 80 | </ul> |
| 78 | 81 | {else} |
| 79 | -<p>Fieldset cannot be made conditional. One of the fields must not be a lookup.</p> | |
| 82 | +<p>{i18n}Fieldset cannot be made conditional. One of the fields must not be a lookup.{/i18n}</p> | |
| 80 | 83 | {/if} |
| 81 | 84 | {/if} | ... | ... |
templates/ktcore/edit_fieldset.smarty
| 1 | -<h2>Edit Fieldset</h2> | |
| 1 | +<h2>{i18n}Edit Fieldset{/i18n}</h2> | |
| 2 | 2 | |
| 3 | 3 | <form> |
| 4 | 4 | <fieldset> |
| 5 | -<legend>Current Fields in Set</legend> | |
| 6 | -<p>Fields which are currently not included in any set can be added to this set.</p> | |
| 5 | +<legend>{i18n}Current Fields in Set{/i18n}</legend> | |
| 6 | +<p>{i18n}Fields which are currently not included in any set can be added to this set.{/i18n}</p> | |
| 7 | 7 | |
| 8 | 8 | <input type="hidden" name="id" value="{$setId}" /> |
| 9 | 9 | <input type="hidden" name="action" value="removeFromFieldset" /> |
| 10 | 10 | {if (empty($children))} |
| 11 | -<p>No fields associated with this fieldset.</p> | |
| 11 | +<p>{i18n}No fields associated with this fieldset.{/i18n}</p> | |
| 12 | 12 | {else} |
| 13 | 13 | {foreach item=oField from=$children} |
| 14 | 14 | <input type="checkbox" name="fieldsToRemove[]" value="{$oField->getId()}">{$oField->getName()}</input> |
| 15 | 15 | {/foreach} |
| 16 | 16 | {/if} |
| 17 | 17 | <div> |
| 18 | -<input type="submit" name="submit" value="Remove"> | |
| 18 | +<input type="submit" name="submit" value="{i18n}Remove{/i18n}" /> | |
| 19 | 19 | </div> |
| 20 | 20 | </fieldset> |
| 21 | 21 | </form> |
| 22 | 22 | |
| 23 | - | |
| 24 | - | |
| 25 | 23 | <fieldset> |
| 26 | -<legend>Add Field to set</legend> | |
| 27 | -<p>Fields which are currently not included in any set can be added to this set.</p> | |
| 24 | +<legend>{i18n}Add Field to set{/i18n}</legend> | |
| 25 | +<p>{i18n}Fields which are currently not included in any set can be added to this set.{/i18n}</p> | |
| 28 | 26 | <form> |
| 29 | 27 | <input type="hidden" name="id" value="{$setId}" /> |
| 30 | 28 | <input type="hidden" name="action" value="addToFieldset"> |
| 31 | 29 | |
| 32 | 30 | {if (empty($freefields))} |
| 33 | -<p>No free fields.</p> | |
| 31 | +<p>{i18n}No free fields.{/i18n}</p> | |
| 34 | 32 | {else} |
| 35 | 33 | <select name="fieldsToAdd[]" multiple="true"> |
| 36 | 34 | {foreach item=oField from=$freefields} |
| ... | ... | @@ -39,7 +37,7 @@ |
| 39 | 37 | </select> |
| 40 | 38 | {/if} |
| 41 | 39 | <div> |
| 42 | -<input type="submit" name="submit" value="Add to Fieldset"> | |
| 40 | +<input type="submit" name="submit" value="{i18n}Add to Fieldset{/i18n}" /> | |
| 43 | 41 | </div> |
| 44 | 42 | </form> |
| 45 | 43 | </fieldset> |
| ... | ... | @@ -47,14 +45,14 @@ |
| 47 | 45 | |
| 48 | 46 | {if ($fieldSet->canBeMadeConditional() === true)} |
| 49 | 47 | <fieldset> |
| 50 | -<legend>Make this fieldset conditional</legend> | |
| 48 | +<legend>{i18n}Make this fieldset conditional{/i18n}</legend> | |
| 51 | 49 | |
| 52 | 50 | <form> |
| 53 | 51 | <input type="hidden" name="id" value="{$setId}" /> |
| 54 | 52 | <input type="hidden" name="action" value="makeConditionalSet"> |
| 55 | 53 | |
| 56 | 54 | {if (empty($freefields))} |
| 57 | -<p>No free fields.</p> | |
| 55 | +<p>{i18n}No free fields.{/i18n}</p> | |
| 58 | 56 | {else} |
| 59 | 57 | <select name="fieldsToAdd" multiple="true"> |
| 60 | 58 | {foreach item=oField from=$freefields} |
| ... | ... | @@ -63,19 +61,19 @@ |
| 63 | 61 | </select> |
| 64 | 62 | {/if} |
| 65 | 63 | <div> |
| 66 | -<input type="submit" name="submit" value="Add to Fieldset"> | |
| 64 | +<input type="submit" name="submit" value="{i18n}Add to Fieldset{/i18n}" /> | |
| 67 | 65 | </div> |
| 68 | 66 | </form> |
| 69 | 67 | </fieldset> |
| 70 | 68 | |
| 71 | 69 | {else} |
| 72 | 70 | {if ($fieldSet->getIsConditional())} |
| 73 | -Field has conditions attached to it.. | |
| 71 | +{i18n}Field has conditions attached to it.{/i18n} | |
| 74 | 72 | <ul> |
| 75 | - <li>Manage conditions.</li> | |
| 76 | - <li>Test conditions</li> | |
| 73 | + <li>{i18n}Manage conditions.{/i18n}</li> | |
| 74 | + <li>{i18n}Test conditions{/i18n}</li> | |
| 77 | 75 | </ul> |
| 78 | 76 | {else} |
| 79 | -<p>Fieldset cannot be made conditional. One of the fields must not be a lookup.</p> | |
| 77 | +<p>{i18n}Fieldset cannot be made conditional. One of the fields must not be a lookup.{/i18n}</p> | |
| 80 | 78 | {/if} |
| 81 | 79 | {/if} | ... | ... |
templates/ktcore/edit_lookuptrees.smarty
| ... | ... | @@ -37,12 +37,12 @@ |
| 37 | 37 | {$context->oPage->requireJSResource("thirdpartyjs/MochiKit/Iter.js")} |
| 38 | 38 | {$context->oPage->requireJSResource("thirdpartyjs/MochiKit/DOM.js")} |
| 39 | 39 | |
| 40 | -<h2>Edit Lookup Tree: {$field->getName()}</h2> | |
| 40 | +<h2>{i18n}Edit Lookup Tree{/i18n}: {$field->getName()}</h2> | |
| 41 | 41 | |
| 42 | 42 | |
| 43 | 43 | <form> |
| 44 | 44 | <fieldset> |
| 45 | - <legend>Add New Subcategory</legend> | |
| 45 | + <legend>{i18n}Add New Subcategory{/i18n}</legend> | |
| 46 | 46 | |
| 47 | 47 | |
| 48 | 48 | |
| ... | ... | @@ -54,20 +54,20 @@ |
| 54 | 54 | <input type="text" name="category_name"/> |
| 55 | 55 | |
| 56 | 56 | <div class="form_actions"> |
| 57 | - <input type="submit" name="submit" value="add new category" /> | |
| 57 | + <input type="submit" name="submit" value="{i18n}add new category{/i18n}" /> | |
| 58 | 58 | </div> |
| 59 | 59 | </fieldset> |
| 60 | 60 | </form> |
| 61 | 61 | {if ($currentNode != 0)} |
| 62 | 62 | {if (empty($freechildren))} |
| 63 | -<p>No free keywords. Use the "unlink" action on a keyword to | |
| 64 | -make it available.</p> | |
| 63 | +<p>{i18n}No free keywords. Use the "unlink" action on a keyword to | |
| 64 | +make it available.{/i18n}</p> | |
| 65 | 65 | {else} |
| 66 | 66 | <form> |
| 67 | 67 | <fieldset> |
| 68 | - <legend>Link free keywords.</legend> | |
| 68 | + <legend>{i18n}Link free keywords.{/i18n}</legend> | |
| 69 | 69 | |
| 70 | -<p>Category: <strong>{if ($currentNode == 0)} | |
| 70 | +<p>{i18n}Category{/i18n}: <strong>{if ($currentNode == 0)} | |
| 71 | 71 | Root |
| 72 | 72 | {else} |
| 73 | 73 | {$tree->mapnodes[$currentNode]->getName()} |
| ... | ... | @@ -87,7 +87,7 @@ Root |
| 87 | 87 | </select> |
| 88 | 88 | |
| 89 | 89 | <div class="form_actions"> |
| 90 | - <input type="submit" name="submit" value="Add to category" /> | |
| 90 | + <input type="submit" name="submit" value="{i18n}Add to category{/i18n}" /> | |
| 91 | 91 | </div> |
| 92 | 92 | </fieldset> |
| 93 | 93 | </form> |
| ... | ... | @@ -95,10 +95,10 @@ Root |
| 95 | 95 | {/if} |
| 96 | 96 | |
| 97 | 97 | |
| 98 | -<h2>Preview</h2> | |
| 98 | +<h2>{i18n}Preview{/i18n}</h2> | |
| 99 | 99 | <div class="helpText"> |
| 100 | - Use the +/- arrows to open or close the tree. Bold items are metadata keywords. | |
| 101 | - To edit a category (including adding or removing keywords) click on the "edit" link. | |
| 100 | + {i18n}Use the +/- arrows to open or close the tree. Bold items are metadata keywords. | |
| 101 | + To edit a category (including adding or removing keywords) click on the "edit" link.{/i18n} | |
| 102 | 102 | </div> |
| 103 | 103 | |
| 104 | 104 | {$renderedTree} | ... | ... |
templates/ktcore/manage_fieldsets.smarty
| 1 | -<h2>Existing Fieldsets</h2> | |
| 1 | +<h2>{i18n}Existing Fieldsets{/i18n}</h2> | |
| 2 | 2 | <table class="pretty" cellspacing="0" cellpadding="0" border="0"> |
| 3 | 3 | <thead> |
| 4 | 4 | <tr> |
| 5 | - <th>Human Name</th> | |
| 6 | - <th>Namespace</th> | |
| 7 | - <th colspan="2">Manage</th> | |
| 5 | + <th>{i18n}Human Name{/i18n}</th> | |
| 6 | + <th>{i18n}Namespace{/i18n}</th> | |
| 7 | + <th colspan="2">{i18n}Manage{/i18n}</th> | |
| 8 | 8 | </tr> |
| 9 | 9 | </thead> |
| 10 | 10 | { foreach item=oFieldSet from=$fieldsets } |
| ... | ... | @@ -18,14 +18,14 @@ |
| 18 | 18 | |
| 19 | 19 | <td> |
| 20 | 20 | <a |
| 21 | - href="{$smarty.server.PHP_SELF}?action=editFieldset&id={$oFieldSet->getId()}">Edit</a> | |
| 21 | + href="{$smarty.server.PHP_SELF}?action=editFieldset&id={$oFieldSet->getId()}">{i18n}Edit{/i18n}</a> | |
| 22 | 22 | </td> |
| 23 | 23 | <td> |
| 24 | 24 | {if $oFieldSet->bMandatory == false} |
| 25 | 25 | <a |
| 26 | - href="{$smarty.server.PHP_SELF}?action=deleteFieldset&id={$oFieldSet->getId()}">Delete</a> | |
| 26 | + href="{$smarty.server.PHP_SELF}?action=deleteFieldset&id={$oFieldSet->getId()}">{i18n}Delete{/i18n}</a> | |
| 27 | 27 | {else} |
| 28 | - Built-in set. | |
| 28 | + {i18n}Built-in set.{/i18n} | |
| 29 | 29 | {/if} |
| 30 | 30 | </td> |
| 31 | 31 | |
| ... | ... | @@ -33,22 +33,22 @@ |
| 33 | 33 | { /foreach } |
| 34 | 34 | </table> |
| 35 | 35 | |
| 36 | -<h2>Create a new Fieldset</h2> | |
| 36 | +<h2>{i18n}Create a new Fieldset{/i18n}</h2> | |
| 37 | 37 | |
| 38 | 38 | <form> |
| 39 | 39 | <input type="hidden" name="action" value="newFieldset"> |
| 40 | 40 | <table> |
| 41 | 41 | <tr> |
| 42 | -<td>Name:</td> | |
| 42 | +<td>{i18n}Name{/i18n}:</td> | |
| 43 | 43 | <td><input type="text" name="name" value=""></td> |
| 44 | 44 | </tr> |
| 45 | 45 | <tr> |
| 46 | -<td>Namespace:</td> | |
| 46 | +<td>{i18n}Namespace{/i18n}:</td> | |
| 47 | 47 | <td><input type="text" name="namespace" value="http://knowledgetree.jamwarehouse.com/fieldsets/custom/"></td> |
| 48 | 48 | </tr> |
| 49 | 49 | <tr> |
| 50 | 50 | <td colspan="2" align="right"> |
| 51 | -<input type="submit" name="submit" value="Create Fieldset"> | |
| 51 | +<input type="submit" name="submit" value="{i18n}Create Fieldset{/i18n}"> | |
| 52 | 52 | </td> |
| 53 | 53 | </tr> |
| 54 | 54 | </table> | ... | ... |
templates/ktcore/manage_lookuptrees.smarty
| 1 | -<h1>Manage Lookup Trees</h1> | |
| 1 | +<h2>{i18n}Manage Lookup Trees{/i18n}</h1> | |
| 2 | 2 | <form> |
| 3 | 3 | <fieldset> |
| 4 | -<legend>Fields that have lookup categories.</legend> | |
| 4 | +<legend>{i18n}Fields that have lookup categories.{/i18n}</legend> | |
| 5 | 5 | |
| 6 | 6 | <input type="hidden" name="action" value="editTree" /> |
| 7 | 7 | {foreach item=oField from=$treefields} |
| 8 | 8 | <input type="radio" name="field_id" value="{$oField->getId()}">{$oField->getName()}</input> |
| 9 | 9 | {/foreach} |
| 10 | 10 | <div class="formControls"> |
| 11 | -<input type="submit" name="submit" value="Edit Categorisation"> | |
| 11 | +<input type="submit" name="submit" value="{i18n}Edit Categorisation{/i18n}" /> | |
| 12 | 12 | </div> |
| 13 | 13 | </fieldset> |
| 14 | 14 | </form> |
| 15 | 15 | |
| 16 | -<h2>Convert to Trees.</h2> | |
| 16 | +<h3>{i18n}Convert to Trees.{/i18n}</h3> | |
| 17 | 17 | <form> |
| 18 | 18 | <fieldset> |
| 19 | -<legend>Lookup fields without categories.</legend> | |
| 19 | +<legend>{i18n}Lookup fields without categories.{/i18n}</legend> | |
| 20 | 20 | |
| 21 | 21 | <input type="hidden" name="action" value="createTree" /> |
| 22 | 22 | {foreach item=oField from=$lookupfields} |
| 23 | 23 | <input type="radio" name="field_id" value="{$oField->getId()}">{$oField->getName()}</input> |
| 24 | 24 | {/foreach} |
| 25 | 25 | <div class="formControls"> |
| 26 | -<input type="submit" name="submit" value="Convert"> | |
| 26 | +<input type="submit" name="submit" value="{i18n}Convert{/i18n}" /> | |
| 27 | 27 | </div> |
| 28 | 28 | </fieldset> |
| 29 | 29 | </form> | ... | ... |
templates/ktcore/metadata/edit.smarty
| 1 | -<h2>Fieldset: {$oFieldset->getName()|escape}</h2> | |
| 1 | +<h2>{i18n}Fieldset{/i18n}: {$oFieldset->getName()|escape}</h2> | |
| 2 | 2 | |
| 3 | -<h3>Fieldset properties</h3> | |
| 3 | +<h3>{i18n}Fieldset properties{/i18n}</h3> | |
| 4 | 4 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 5 | 5 | <input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}"> |
| 6 | 6 | <input type="hidden" name="action" value="editobject"> |
| 7 | 7 | <table class="prettysw" cellpadding="0" cellspacing="0"> |
| 8 | 8 | <tr> |
| 9 | - <th>Name</th> | |
| 9 | + <th>{i18n}Name{/i18n}</th> | |
| 10 | 10 | <td><input type="textbox" name="name" value="{$oFieldset->getName()|escape}"></td> |
| 11 | 11 | </tr> |
| 12 | 12 | <tr> |
| 13 | - <th>Namespace</th> | |
| 13 | + <th>{i18n}Namespace{/i18n}</th> | |
| 14 | 14 | <td><input type="textbox" name="namespace" value="{$oFieldset->getNamespace()|escape}"></td> |
| 15 | 15 | </tr> |
| 16 | 16 | </table> |
| 17 | -<input type="submit" name="submit" value="Change"> | |
| 17 | +<input type="submit" name="submit" value="{i18n}Change{/i18n}" /> | |
| 18 | 18 | </form> |
| 19 | 19 | |
| 20 | -<h3>Fieldset members</h3> | |
| 20 | +<h3>{i18n}Fieldset members{/i18n}</h3> | |
| 21 | 21 | |
| 22 | 22 | {if $oFieldset->getFields() } |
| 23 | -<h4>Existing members</h4> | |
| 23 | +<h4>{i18n}Existing members{/i18n}</h4> | |
| 24 | 24 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 25 | 25 | <input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}"> |
| 26 | 26 | <ul> |
| ... | ... | @@ -30,30 +30,30 @@ name="fieldsetids[]" |
| 30 | 30 | value="{$oField->getId()}">{$oField->getName()|escape}</label></li> |
| 31 | 31 | {/foreach} |
| 32 | 32 | </ul> |
| 33 | -<input type="submit" name="submit" value="Remove fields"> | |
| 33 | +<input type="submit" name="submit" value="{i18n}Remove fields{/i18n}" /> | |
| 34 | 34 | </form> |
| 35 | 35 | {/if} |
| 36 | 36 | |
| 37 | -<h4>Add a new field</h4> | |
| 37 | +<h4>{i18n}Add a new field{/i18n}</h4> | |
| 38 | 38 | |
| 39 | 39 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 40 | 40 | <input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}"> |
| 41 | 41 | <input type="hidden" name="action" value="newfield"> |
| 42 | 42 | <table class="prettysw" cellpadding="0" cellspacing="0"> |
| 43 | 43 | <tr> |
| 44 | - <th>Name</th> | |
| 44 | + <th>{i18n}Name{/i18n}</th> | |
| 45 | 45 | <td><input type="textbox" name="name" /> |
| 46 | 46 | </tr> |
| 47 | 47 | <tr> |
| 48 | - <th>Type</th> | |
| 48 | + <th>{i18n}Type{/i18n}</th> | |
| 49 | 49 | <td> |
| 50 | 50 | <select name="type"> |
| 51 | -<option value="normal">Normal</option> | |
| 52 | -<option value="lookup">Lookup</option> | |
| 53 | -<option value="tree">Tree</option> | |
| 51 | +<option value="normal">{i18n}Normal{/i18n}</option> | |
| 52 | +<option value="lookup">{i18n}Lookup{/i18n}</option> | |
| 53 | +<option value="tree">{i18n}Tree{/i18n}</option> | |
| 54 | 54 | </select> |
| 55 | 55 | </td> |
| 56 | 56 | </tr> |
| 57 | 57 | </table> |
| 58 | -<input type="submit" name="submit" value="Add field"> | |
| 58 | +<input type="submit" name="submit" value="{i18n}Add field{/i18n}" /> | |
| 59 | 59 | </form> | ... | ... |
templates/ktcore/metadata/editField.smarty
| 1 | -<h2>Edit Field: {$oField->getName()|escape}</h2> | |
| 1 | +<h2>{i18n}Edit Field{/i18n}: {$oField->getName()|escape}</h2> | |
| 2 | 2 | |
| 3 | 3 | |
| 4 | 4 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 5 | 5 | <fieldset> |
| 6 | -<legend>Field properties</legend> | |
| 7 | -<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}"> | |
| 8 | -<input type="hidden" name="fFieldId" value="{$oField->getId()}"> | |
| 9 | -<input type="hidden" name="action" value="editfieldobject"> | |
| 6 | +<legend>{i18n}Field properties{/i18n}</legend> | |
| 7 | +<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> | |
| 8 | +<input type="hidden" name="fFieldId" value="{$oField->getId()}" /> | |
| 9 | +<input type="hidden" name="action" value="editfieldobject" /> | |
| 10 | 10 | <table class="prettysw" cellpadding="0" cellspacing="0"> |
| 11 | 11 | <tr> |
| 12 | - <th>Name</th> | |
| 12 | + <th>{i18n}Name{/i18n}</th> | |
| 13 | 13 | <td><input type="textbox" name="name" value="{$oField->getName()|escape}"></td> |
| 14 | 14 | </tr> |
| 15 | 15 | <tr> |
| 16 | - <th>Type</th> | |
| 16 | + <th>{i18n}Type{/i18n}</th> | |
| 17 | 17 | <td>{$oField->getType()|escape}</td> |
| 18 | 18 | </tr> |
| 19 | 19 | </table> |
| 20 | 20 | |
| 21 | 21 | <div class="form_actions"> |
| 22 | -<input type="submit" name="submit" value="Change"> | |
| 22 | +<input type="submit" name="submit" value="{i18n}Change{/i18n}" /> | |
| 23 | 23 | </div> |
| 24 | 24 | </fieldset> |
| 25 | 25 | </form> |
| ... | ... | @@ -28,19 +28,19 @@ |
| 28 | 28 | {assign var="aEnabledMetadata" value=$oField->getEnabledValues()} |
| 29 | 29 | {assign var="aDisabledMetadata" value=$oField->getDisabledValues()} |
| 30 | 30 | |
| 31 | -<h2>Lookup Values</h2> | |
| 31 | +<h2>{i18n}Lookup Values{/i18n}</h2> | |
| 32 | 32 | |
| 33 | 33 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 34 | 34 | |
| 35 | 35 | <fieldset> |
| 36 | -<legend>Add new values</legend> | |
| 36 | +<legend>{i18n}Add new values{/i18n}</legend> | |
| 37 | 37 | |
| 38 | 38 | <input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> |
| 39 | 39 | <input type="hidden" name="fFieldId" value="{$oField->getId()}" /> |
| 40 | 40 | <input type="hidden" name="action" value="addLookups" /> |
| 41 | 41 | |
| 42 | 42 | <input type="textbox" name="value" /> |
| 43 | -<input type="submit" name="submit" value="Add" /> | |
| 43 | +<input type="submit" name="submit" value="{i18n}Add{/i18n}" /> | |
| 44 | 44 | |
| 45 | 45 | </fieldset> |
| 46 | 46 | </form> |
| ... | ... | @@ -48,33 +48,32 @@ |
| 48 | 48 | {if $oField->getHasLookup() and $oField->getHasLookupTree()} |
| 49 | 49 | {assign var=iFieldId value=$oField->getId()} |
| 50 | 50 | <a |
| 51 | -href="{"manageLookupTrees"|generateControllerUrl:"action=editTree&field_id=$iFieldId"}">Manage | |
| 52 | -lookup tree</a> | |
| 51 | +href="{"manageLookupTrees"|generateControllerUrl:"action=editTree&field_id=$iFieldId"}">{i18n}Manage | |
| 52 | +lookup tree{/i18n}</a> | |
| 53 | 53 | {/if} |
| 54 | 54 | |
| 55 | 55 | {if $aEnabledMetadata} |
| 56 | 56 | |
| 57 | - | |
| 58 | 57 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 59 | 58 | <fieldset> |
| 60 | 59 | <legend>Existing values</legend> |
| 61 | -<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}"> | |
| 62 | -<input type="hidden" name="fFieldId" value="{$oField->getId()}"> | |
| 63 | -<input type="hidden" name="action" value="metadataMultiAction"> | |
| 60 | +<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> | |
| 61 | +<input type="hidden" name="fFieldId" value="{$oField->getId()}" /> | |
| 62 | +<input type="hidden" name="action" value="metadataMultiAction" /> | |
| 64 | 63 | <ul> |
| 65 | 64 | {foreach from=$aEnabledMetadata item=oMetaData} |
| 66 | 65 | <li><label><input type="checkbox" name="metadata[]" |
| 67 | 66 | value="{$oMetaData->getId()}">{$oMetaData->getName()|escape} |
| 68 | 67 | { if $oMetaData->getIsStuck() } |
| 69 | -<span class="helpText">(stuck, will never be disabled when synchronising | |
| 70 | -from another source)</span> | |
| 68 | +<span class="helpText">({i18n}stuck, will never be disabled when synchronising | |
| 69 | +from another source{/i18n})</span> | |
| 71 | 70 | { /if }</label> |
| 72 | 71 | {/foreach} |
| 73 | 72 | </ul> |
| 74 | 73 | <div class="form_actions"> |
| 75 | -<input type="submit" name="submit[disable]" value="Disable"> | |
| 76 | -<input type="submit" name="submit[togglestickiness]" value="Toggle stickiness"> | |
| 77 | -<input type="submit" name="submit[remove]" value="Remove"> | |
| 74 | +<input type="submit" name="submit[disable]" value="{i18n}Disable{/i18n}" /> | |
| 75 | +<input type="submit" name="submit[togglestickiness]" value="{i18n}Toggle stickiness{/i18n}" /> | |
| 76 | +<input type="submit" name="submit[remove]" value="{i18n}Remove{/i18n}" /> | |
| 78 | 77 | </div> |
| 79 | 78 | </fieldset> |
| 80 | 79 | </form> |
| ... | ... | @@ -82,27 +81,26 @@ from another source)</span> |
| 82 | 81 | |
| 83 | 82 | {if $aDisabledMetadata} |
| 84 | 83 | |
| 85 | - | |
| 86 | 84 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 87 | 85 | <fieldset> |
| 88 | 86 | <legend>Disabled values</legend> |
| 89 | -<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}"> | |
| 90 | -<input type="hidden" name="fFieldId" value="{$oField->getId()}"> | |
| 91 | -<input type="hidden" name="action" value="metadataMultiAction"> | |
| 87 | +<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> | |
| 88 | +<input type="hidden" name="fFieldId" value="{$oField->getId()}" /> | |
| 89 | +<input type="hidden" name="action" value="metadataMultiAction" /> | |
| 92 | 90 | <ul> |
| 93 | 91 | {foreach from=$aDisabledMetadata item=oMetaData} |
| 94 | 92 | <li><label><input type="checkbox" name="metadata[]" |
| 95 | 93 | value="{$oMetaData->getId()}">{$oMetaData->getName()|escape} |
| 96 | 94 | { if $oMetaData->getIsStuck() } |
| 97 | -<span class="helpText">(stuck, will never be enabled when synchronising | |
| 98 | -from another source)</span> | |
| 95 | +<span class="helpText">({i18n}stuck, will never be enabled when synchronising | |
| 96 | +from another source{/i18n})</span> | |
| 99 | 97 | { /if }</label> |
| 100 | 98 | {/foreach} |
| 101 | 99 | </ul> |
| 102 | 100 | <div class="form_actions"> |
| 103 | -<input type="submit" name="submit[enable]" value="Enable"> | |
| 104 | -<input type="submit" name="submit[togglestickiness]" value="Toggle stickiness"> | |
| 105 | -<input type="submit" name="submit[remove]" value="Remove"> | |
| 101 | +<input type="submit" name="submit[enable]" value="{i18n}Enable{/i18n}" /> | |
| 102 | +<input type="submit" name="submit[togglestickiness]" value="{i18n}Toggle stickiness{/i18n}" /> | |
| 103 | +<input type="submit" name="submit[remove]" value="{i18n}Remove{/i18n}" /> | |
| 106 | 104 | </div> |
| 107 | 105 | </fieldset> |
| 108 | 106 | </form> | ... | ... |
templates/ktcore/metadata/editFieldset.smarty
| 1 | -<h2>Fieldset: {$oFieldset->getName()|escape}</h2> | |
| 1 | +<h2>{i18n}Fieldset{/i18n}: {$oFieldset->getName()|escape}</h2> | |
| 2 | 2 | |
| 3 | 3 | {if $sIncomplete} |
| 4 | 4 | <div class="ktError"> |
| 5 | -<p><strong>Incomplete</strong>This conditional fieldset cannot be used: <br /> | |
| 5 | +<p><strong>{i18n}Incomplete{/i18n}: </strong>{i18n}This conditional fieldset cannot be used{/i18n}: <br /> | |
| 6 | 6 | {$sIncomplete|escape}</p> |
| 7 | 7 | </div> |
| 8 | 8 | {/if} |
| ... | ... | @@ -10,14 +10,14 @@ |
| 10 | 10 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 11 | 11 | |
| 12 | 12 | <fieldset> |
| 13 | -<legend>Fieldset properties</legend> | |
| 13 | +<legend>{i18n}Fieldset properties{/i18n}</legend> | |
| 14 | 14 | |
| 15 | 15 | <p class="descriptiveText"> |
| 16 | 16 | <strong>FIXME</strong> add help text for fieldset editing. |
| 17 | 17 | </p> |
| 18 | 18 | |
| 19 | -<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}"> | |
| 20 | -<input type="hidden" name="action" value="editobject"> | |
| 19 | +<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> | |
| 20 | +<input type="hidden" name="action" value="editobject" /> | |
| 21 | 21 | |
| 22 | 22 | |
| 23 | 23 | |
| ... | ... | @@ -29,19 +29,19 @@ |
| 29 | 29 | <div class="field"> |
| 30 | 30 | <label>Conditional</label> |
| 31 | 31 | <p class="descriptiveText"> |
| 32 | -A <strong>conditional</strong> fieldset contains only lookup fields. The values for each | |
| 33 | -field can depend on the user's selections for the others. | |
| 32 | +{i18n}A <strong>conditional</strong> fieldset contains only lookup fields. The values for each | |
| 33 | +field can depend on the user's selections for the others.{/i18n} | |
| 34 | 34 | </p> |
| 35 | 35 | {if $oFieldset->getIsConditional() } |
| 36 | - Yes | |
| 36 | + {i18n}Yes{/i18n} | |
| 37 | 37 | {else} |
| 38 | - No | |
| 38 | + {i18n}No{/i18n} | |
| 39 | 39 | {/if} |
| 40 | 40 | </div> |
| 41 | 41 | |
| 42 | 42 | |
| 43 | 43 | <div class="form_actions"> |
| 44 | -<input type="submit" name="submit" value="Change"> | |
| 44 | +<input type="submit" name="submit" value="{i18n}Change{/i18n}" /> | |
| 45 | 45 | </div> |
| 46 | 46 | </fieldset> |
| 47 | 47 | </form> |
| ... | ... | @@ -58,11 +58,11 @@ field can depend on the user's selections for the others. |
| 58 | 58 | |
| 59 | 59 | {if ($oFieldset->getIsConditional() || $showForm)} |
| 60 | 60 | <fieldset> |
| 61 | -<legend>Conditionality</legend> | |
| 61 | +<legend>{i18n}Conditionality{/i18n}</legend> | |
| 62 | 62 | |
| 63 | 63 | <p class="descriptiveText"> |
| 64 | -A <strong>conditional</strong> fieldset contains only lookup fields. The values for each | |
| 65 | -field can depend on the user's selections for the others. | |
| 64 | +{i18n}A <strong>conditional</strong> fieldset contains only lookup fields. The values for each | |
| 65 | +field can depend on the user's selections for the others.{/i18n} | |
| 66 | 66 | </p> |
| 67 | 67 | |
| 68 | 68 | |
| ... | ... | @@ -70,15 +70,15 @@ field can depend on the user's selections for the others. |
| 70 | 70 | {if $oFieldset->getIsConditional() } |
| 71 | 71 | |
| 72 | 72 | <form action="{$smarty.server.PHP_SELF}" method="GET"> |
| 73 | -<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}"> | |
| 74 | -<input type="hidden" name="action" value="manageConditional"> | |
| 75 | -<input type="submit" name="submit" value="Manage conditional"> | |
| 73 | +<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> | |
| 74 | +<input type="hidden" name="action" value="manageConditional" /> | |
| 75 | +<input type="submit" name="submit" value="{i18n}Manage conditional{/i18n}" /> | |
| 76 | 76 | </form> |
| 77 | 77 | |
| 78 | 78 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 79 | -<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}"> | |
| 80 | -<input type="hidden" name="action" value="removeConditional"> | |
| 81 | -<input type="submit" name="submit" value="Remove conditional"> | |
| 79 | +<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> | |
| 80 | +<input type="hidden" name="action" value="removeConditional" /> | |
| 81 | +<input type="submit" name="submit" value="{i18n}Remove conditional{/i18n}" /> | |
| 82 | 82 | </form> |
| 83 | 83 | |
| 84 | 84 | {else} |
| ... | ... | @@ -92,9 +92,9 @@ field can depend on the user's selections for the others. |
| 92 | 92 | |
| 93 | 93 | {if $showForm} |
| 94 | 94 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 95 | -<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}"> | |
| 96 | -<input type="hidden" name="action" value="becomeConditional"> | |
| 97 | -<input type="submit" name="submit" value="Become conditional"> | |
| 95 | +<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> | |
| 96 | +<input type="hidden" name="action" value="becomeConditional" /> | |
| 97 | +<input type="submit" name="submit" value="{i18n}Become conditional{/i18n}" /> | |
| 98 | 98 | </form> |
| 99 | 99 | {/if} |
| 100 | 100 | |
| ... | ... | @@ -104,10 +104,10 @@ field can depend on the user's selections for the others. |
| 104 | 104 | |
| 105 | 105 | </fieldset> |
| 106 | 106 | {else} |
| 107 | -<div class="ktInfo"><p>This fieldset cannot be made conditional, since it contains fields which are not lookup types.</p></div> | |
| 107 | +<div class="ktInfo"><p>{i18n}This fieldset cannot be made conditional, since it contains fields which are not lookup types.{/i18n}</p></div> | |
| 108 | 108 | {/if} |
| 109 | 109 | |
| 110 | -<h3>Fieldset members</h3> | |
| 110 | +<h3>{i18n}Fieldset members{/i18n}</h3> | |
| 111 | 111 | |
| 112 | 112 | <p class="descriptiveText"> |
| 113 | 113 | <strong>FIXME</strong> add help text for fieldset members. |
| ... | ... | @@ -117,22 +117,22 @@ field can depend on the user's selections for the others. |
| 117 | 117 | {if $oFieldset->getFields() } |
| 118 | 118 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 119 | 119 | <fieldset> |
| 120 | -<legend>Existing members</legend> | |
| 120 | +<legend>{i18n}Existing members{/i18n}</legend> | |
| 121 | 121 | |
| 122 | -<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}"> | |
| 123 | -<input type="hidden" name="action" value="removefields"> | |
| 122 | +<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> | |
| 123 | +<input type="hidden" name="action" value="removefields" /> | |
| 124 | 124 | <ul> |
| 125 | 125 | {foreach from=$oFieldset->getFields() item=oField} |
| 126 | 126 | <li><input type="checkbox" name="fields[]" |
| 127 | -value="{$oField->getId()}"> | |
| 127 | +value="{$oField->getId()}" /> | |
| 128 | 128 | {$oField->getName()|escape} |
| 129 | 129 | (<a |
| 130 | -href="{$smarty.server.PHP_SELF}?action=editField&fFieldId={$oField->getId()}&fFieldsetId={$oFieldset->getId()}">edit</a>) | |
| 130 | +href="{$smarty.server.PHP_SELF}?action=editField&fFieldId={$oField->getId()}&fFieldsetId={$oFieldset->getId()}">{i18n}edit{/i18n}</a>) | |
| 131 | 131 | </li> |
| 132 | 132 | {/foreach} |
| 133 | 133 | </ul> |
| 134 | 134 | <div class="form_actions"> |
| 135 | - <input type="submit" name="submit" value="Remove fields"> | |
| 135 | + <input type="submit" name="submit" value="{i18n}Remove fields{/i18n}" /> | |
| 136 | 136 | </div> |
| 137 | 137 | </fieldset> |
| 138 | 138 | </form> |
| ... | ... | @@ -142,7 +142,7 @@ href="{$smarty.server.PHP_SELF}?action=editField&fFieldId={$oField->getId()}&fFi |
| 142 | 142 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 143 | 143 | |
| 144 | 144 | <fieldset> |
| 145 | -<legend>Add a new field</legend> | |
| 145 | +<legend>{i18n}Add a new field{/i18n}</legend> | |
| 146 | 146 | |
| 147 | 147 | <p class="descriptiveText"><strong>FIXME</strong> add help text for field creation.</p> |
| 148 | 148 | |
| ... | ... | @@ -156,7 +156,7 @@ href="{$smarty.server.PHP_SELF}?action=editField&fFieldId={$oField->getId()}&fFi |
| 156 | 156 | {/foreach} |
| 157 | 157 | |
| 158 | 158 | <div class="form_actions"> |
| 159 | - <input type="submit" name="submit" value="Add field"> | |
| 159 | + <input type="submit" name="submit" value="{i18n}Add field{/i18n}" /> | |
| 160 | 160 | </div> |
| 161 | 161 | </fieldset> |
| 162 | 162 | </form> | ... | ... |
templates/ktcore/metadata/listFieldsets.smarty
| 1 | -<h2>Document Fieldsets</h2> | |
| 1 | +<h2>{i18n}Document Fieldsets{/i18n}</h2> | |
| 2 | 2 | |
| 3 | 3 | <p class="descriptiveText"><strong>FIXME</strong> add documentation about what fieldsets are, and how to use them.</p> |
| 4 | 4 | |
| 5 | 5 | { if $fieldsets} |
| 6 | -<h3>Existing document fieldsets</h3> | |
| 6 | +<h3>{i18n}Existing document fieldsets{/i18n}</h3> | |
| 7 | 7 | |
| 8 | 8 | <table class="listing" cellpadding="1.5em" cellspacing="0"> |
| 9 | 9 | <thead> |
| 10 | 10 | <tr> |
| 11 | - <th colspan="2">Name</th> | |
| 12 | - <th>Generic</th> | |
| 13 | - <th>Fields</th> | |
| 11 | + <th colspan="2">{i18n}Name{/i18n}</th> | |
| 12 | + <th>{i18n}Generic{/i18n}</th> | |
| 13 | + <th>{i18n}Fields{/i18n}</th> | |
| 14 | 14 | </tr> |
| 15 | 15 | </thead> |
| 16 | 16 | <tbody> |
| 17 | 17 | {foreach from=$fieldsets item=oFieldset} |
| 18 | 18 | <tr> |
| 19 | 19 | <td> |
| 20 | - <a href="?action=delete&fFieldsetId={$oFieldset->getId()}"class="ktAction ktDelete">Delete</a> | |
| 20 | + <a href="?action=delete&fFieldsetId={$oFieldset->getId()}"class="ktAction ktDelete">{i18n}Delete{/i18n}</a> | |
| 21 | 21 | </td> |
| 22 | 22 | <td> |
| 23 | 23 | <a href="?action=edit&fFieldsetId={$oFieldset->getId()}"> { $oFieldset->getName() } |
| ... | ... | @@ -25,9 +25,9 @@ |
| 25 | 25 | </td> |
| 26 | 26 | <td> |
| 27 | 27 | {if $oFieldset->getIsGeneric()} |
| 28 | - Yes | |
| 28 | + {i18n}Yes{/i18n} | |
| 29 | 29 | {else} |
| 30 | - No | |
| 30 | + {i18n}No{/i18n} | |
| 31 | 31 | {/if} |
| 32 | 32 | </td> |
| 33 | 33 | <td> |
| ... | ... | @@ -51,19 +51,19 @@ |
| 51 | 51 | |
| 52 | 52 | |
| 53 | 53 | <form method="POST" action="{$smarty.server.PHP_SELF}"> |
| 54 | -<fieldset><legend>Create a new document fieldset</legend> | |
| 54 | +<fieldset><legend>{i18n}Create a new document fieldset{/i18n}</legend> | |
| 55 | 55 | |
| 56 | 56 | <p class="descriptiveText"><strong>FIXME</strong> add documentation about what fieldsets are, and how to use them.</p> |
| 57 | 57 | |
| 58 | 58 | |
| 59 | -<input type="hidden" name="action" value="new"> | |
| 59 | +<input type="hidden" name="action" value="new" /> | |
| 60 | 60 | |
| 61 | 61 | {foreach item=oWidget from=$creation_fields} |
| 62 | 62 | {$oWidget->render()} |
| 63 | 63 | {/foreach} |
| 64 | 64 | |
| 65 | 65 | <div class="form_actions" |
| 66 | -<input type="submit" name="submit" value="Create" /> | |
| 66 | +<input type="submit" name="submit" value="{i18n}Create{/i18n}" /> | |
| 67 | 67 | </div> |
| 68 | 68 | </fieldset> |
| 69 | 69 | </form> | ... | ... |