Commit da17f4a83bc2b22fbdcc351ff5c22de80e3e7519
1 parent
8e83d7b0
Add i18n tags around translatable text.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4341 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
46 changed files
with
323 additions
and
289 deletions
templates/kt3/document/edit.smarty
| ... | ... | @@ -11,7 +11,7 @@ |
| 11 | 11 | |
| 12 | 12 | {$context->oPage->requireCSSResource('resources/css/kt-treewidget.css')} |
| 13 | 13 | |
| 14 | -<h2>Editing: {$document->getName()}</h2> | |
| 14 | +<h2>{i18n}Editing{/i18n}: {$document->getName()}</h2> | |
| 15 | 15 | <p class="descriptiveText"><strong>FIXME</strong>: do we need assisting text here?</p> |
| 16 | 16 | |
| 17 | 17 | <form method="POST"> |
| ... | ... | @@ -25,5 +25,5 @@ |
| 25 | 25 | |
| 26 | 26 | |
| 27 | 27 | <div class="form_actions"> |
| 28 | - <input class="save" type="submit" value="Save Changes" /> | |
| 29 | -</div> | |
| 30 | 28 | \ No newline at end of file |
| 29 | + <input class="save" type="submit" value="{i18n}Save Changes{/i18n}" /> | |
| 30 | +</div> | ... | ... |
templates/kt3/document/metadata_history.smarty
| 1 | -<h2>Metadata History: {$document->getName()}</h2> | |
| 1 | +<h2>{i18n}Metadata History{/i18n}: {$document->getName()}</h2> | |
| 2 | 2 | |
| 3 | -<p class="descriptiveText">This lists the older versions of the document, as the metadata about it has been changed.</p> | |
| 3 | +<p class="descriptiveText">{i18n}This lists the older versions of the document, as the metadata about it has been changed.{/i18n}</p> | |
| 4 | 4 | |
| 5 | 5 | |
| 6 | - <table class="document_history" summary="Document History for KnowledgeTree New UI Presentation" cellspacing="0"> | |
| 6 | + <table class="document_history" summary="{i18n}Document History for KnowledgeTree New UI Presentation{/i18n}" cellspacing="0"> | |
| 7 | 7 | |
| 8 | 8 | <thead> |
| 9 | 9 | <tr> |
| 10 | - <th class="username">User</th> | |
| 11 | - <th class="date">Metadata Version</th> | |
| 12 | - <th class="date">Content Version</th> | |
| 13 | - <th class="compare">Compare</th> | |
| 10 | + <th class="username">{i18n}User{/i18n}</th> | |
| 11 | + <th class="date">{i18n}Metadata Version{/i18n}</th> | |
| 12 | + <th class="date">{i18n}Content Version{/i18n}</th> | |
| 13 | + <th class="compare">{i18n}Compare{/i18n}</th> | |
| 14 | 14 | |
| 15 | 15 | </tr> |
| 16 | 16 | </thead> |
| ... | ... | @@ -19,7 +19,7 @@ |
| 19 | 19 | <td class="username">{$context->getUserForId($document->getModifiedUserId())}</td> |
| 20 | 20 | <td class="date">{$document->getMetadataVersion()}</td> |
| 21 | 21 | <td class="date">{$document->getMajorVersionNumber()}.{$document->getMinorVersionNumber()}</td> |
| 22 | - <td class="compare">Current</td> | |
| 22 | + <td class="compare">{i18n}Current{/i18n}</td> | |
| 23 | 23 | </tr> |
| 24 | 24 | |
| 25 | 25 | {foreach item=oVersion from=$versions} |
| ... | ... | @@ -27,7 +27,7 @@ |
| 27 | 27 | <td class="username">{$context->getUserForId($oVersion->getModifiedUserId())}</td> |
| 28 | 28 | <td class="date">{$oVersion->getMetadataVersion()}</td> |
| 29 | 29 | <td class="date">{$oVersion->getMajorVersionNumber()}.{$oVersion->getMinorVersionNumber()}</td> |
| 30 | - <td class="compare"><a href="{$smarty.server.PHP_SELF}?action=viewComparison&fDocumentId={$document->getId()}&fComparisonVersion={$oVersion->getId()}">compare with current</a></td> | |
| 30 | + <td class="compare"><a href="{$smarty.server.PHP_SELF}?action=viewComparison&fDocumentId={$document->getId()}&fComparisonVersion={$oVersion->getId()}">{i18n}compare with current{/i18n}</a></td> | |
| 31 | 31 | </tr> |
| 32 | 32 | {/foreach} |
| 33 | 33 | </tbody> | ... | ... |
templates/kt3/document/view.smarty
| 1 | 1 | <h2>{$document->getName()}</h2> |
| 2 | -<p class="descriptiveText">showing information for <strong>version {$document->getMajorVersionNumber()}.{$document->getMinorVersionNumber()}</strong> </p> | |
| 2 | +{capture assign=version} | |
| 3 | +{$document->getMajorVersionNumber()}.{$document->getMinorVersionNumber()} | |
| 4 | +{/capture} | |
| 5 | +<p class="descriptiveText">{i18n arg_version=$version}showing information for <strong>version #version#</strong>{/i18n}</p> | |
| 3 | 6 | |
| 4 | 7 | {foreach item=oFieldset from=$fieldsets} |
| 5 | 8 | {$oFieldset->render($document_data)} |
| 6 | -{/foreach} | |
| 7 | 9 | \ No newline at end of file |
| 10 | +{/foreach} | ... | ... |
templates/kt3/fields/base.smarty
| 1 | 1 | <div class="field {if ($has_errors)}error{/if}"> |
| 2 | - <label for="{$name}">{$label}{if ($required === true)}<span class="required">(Required)</span>{/if}</label> | |
| 2 | + <label for="{$name}">{$label}{if ($required === true)}<span class="required">({i18n}Required{/i18n})</span>{/if}</label> | |
| 3 | 3 | <p class="descriptiveText">{$description}</p> |
| 4 | 4 | {if ($has_errors)} |
| 5 | 5 | {foreach item=sError from=$errors} |
| ... | ... | @@ -12,4 +12,4 @@ |
| 12 | 12 | {/if} |
| 13 | 13 | |
| 14 | 14 | <input type="text" name="{$name}" {if $has_id}id="{$id}"{/if} {if $has_value}value="{$value}"{/if}/><input type="hidden" name="kt_core_fieldsets_expect[{$name}]" value ="1" /> |
| 15 | - </div> | |
| 16 | 15 | \ No newline at end of file |
| 16 | + </div> | ... | ... |
templates/kt3/fields/checkbox.smarty
| 1 | 1 | <div class="field {if ($has_errors)}error{/if}"> |
| 2 | - <label for="{$name}">{$label}{if ($required === true)}<span class="required">(Required)</span>{/if}</label> | |
| 2 | + <label for="{$name}">{$label}{if ($required === true)}<span class="required">({i18n}Required{/i18n})</span>{/if}</label> | |
| 3 | 3 | <p class="descriptiveText">{$description}</p> |
| 4 | 4 | {if ($has_errors)} |
| 5 | 5 | {foreach item=sError from=$errors} |
| ... | ... | @@ -12,4 +12,4 @@ |
| 12 | 12 | {/if} |
| 13 | 13 | |
| 14 | 14 | <input type="checkbox" name="{$name}" {if $has_id}id="{$id}"{/if} {if ($has_value && ($value == true))}checked="checked"{/if}/><input type="hidden" name="kt_core_fieldsets_expect[{$name}]" value ="1" /> |
| 15 | - </div> | |
| 16 | 15 | \ No newline at end of file |
| 16 | + </div> | ... | ... |
templates/kt3/fields/fileupload.smarty
| 1 | 1 | <div class="field {if ($has_errors)}error{/if}"> |
| 2 | - <label for="{$name}">{$label}{if ($required === true)}<span class="required">(Required)</span>{/if}</label> | |
| 2 | + <label for="{$name}">{$label}{if ($required === true)}<span class="required">({i18n}Required{/i18n})</span>{/if}</label> | |
| 3 | 3 | <p class="descriptiveText">{$description}</p> |
| 4 | 4 | {if ($has_errors)} |
| 5 | 5 | {foreach item=sError from=$errors} | ... | ... |
templates/kt3/fields/lookup.smarty
| 1 | 1 | <div class="field {if ($has_errors)}error{/if}"> |
| 2 | - <label for="{$name}">{$label}{if ($required === true)}<span class="required">(Required)</span>{/if}</label> | |
| 2 | + <label for="{$name}">{$label}{if ($required === true)}<span class="required">({i18n}Required{/i18n})</span>{/if}</label> | |
| 3 | 3 | <p class="descriptiveText">{$description}</p> |
| 4 | 4 | {if ($has_errors)} |
| 5 | 5 | {foreach item=sError from=$errors} |
| ... | ... | @@ -17,4 +17,4 @@ |
| 17 | 17 | {/foreach} |
| 18 | 18 | </select> |
| 19 | 19 | <input type="hidden" name="kt_core_fieldsets_expect[{$name}]" value ="1" /> |
| 20 | - </div> | |
| 21 | 20 | \ No newline at end of file |
| 21 | + </div> | ... | ... |
templates/kt3/fields/password.smarty
| 1 | 1 | <div class="field {if ($has_errors)}error{/if}"> |
| 2 | - <label for="{$name}">{$label}{if ($required === true)}<span class="required">(Required)</span>{/if}</label> | |
| 2 | + <label for="{$name}">{$label}{if ($required === true)}<span class="required">({i18n}Required{/i18n})</span>{/if}</label> | |
| 3 | 3 | <p class="descriptiveText">{$description}</p> |
| 4 | 4 | {if ($has_errors)} |
| 5 | 5 | {foreach item=sError from=$errors} |
| ... | ... | @@ -12,4 +12,4 @@ |
| 12 | 12 | {/if} |
| 13 | 13 | |
| 14 | 14 | <input type="password" name="{$name}" {if $has_id}id="{$id}"{/if} {if $has_value}value="{$value}"{/if}/><input type="hidden" name="kt_core_fieldsets_expect[{$name}]" value ="1" /> |
| 15 | - </div> | |
| 16 | 15 | \ No newline at end of file |
| 16 | + </div> | ... | ... |
templates/kt3/fields/statictext.smarty
| 1 | 1 | <div class="field {if ($has_errors)}error{/if}"> |
| 2 | - <label for="{$name}">{$label}{if ($required === true)}<span class="required">(Required)</span>{/if}</label> | |
| 2 | + <label for="{$name}">{$label}{if ($required === true)}<span class="required">({i18n}Required{/i18n})</span>{/if}</label> | |
| 3 | 3 | <p class="descriptiveText">{$description}</p> |
| 4 | 4 | {if ($has_errors)} |
| 5 | 5 | {foreach item=sError from=$errors} | ... | ... |
templates/kt3/fields/text.smarty
| 1 | 1 | <div class="field {if ($has_errors)}error{/if}"> |
| 2 | - <label for="{$name}">{$label}{if ($required === true)}<span class="required">(Required)</span>{/if}</label> | |
| 2 | + <label for="{$name}">{$label}{if ($required === true)}<span class="required">({i18n}Required{/i18n})</span>{/if}</label> | |
| 3 | 3 | <p class="descriptiveText">{$description}</p> |
| 4 | 4 | {if ($has_errors)} |
| 5 | 5 | {foreach item=sError from=$errors} | ... | ... |
templates/kt3/fields/tree.smarty
| 1 | 1 | <div class="field {if ($has_errors)}error{/if}"> |
| 2 | - <label for="{$name}">{$label}{if ($required === true)}<span class="required">(Required)</span>{/if}</label> | |
| 2 | + <label for="{$name}">{$label}{if ($required === true)}<span class="required">({i18n}Required{/i18n})</span>{/if}</label> | |
| 3 | 3 | <p class="descriptiveText">{$description}</p> |
| 4 | 4 | {if ($has_errors)} |
| 5 | 5 | {foreach item=sError from=$errors} |
| ... | ... | @@ -13,4 +13,4 @@ |
| 13 | 13 | |
| 14 | 14 | {$options.tree} |
| 15 | 15 | <input type="hidden" name="kt_core_fieldsets_expect[{$name}]" value ="1" /> |
| 16 | - </div> | |
| 17 | 16 | \ No newline at end of file |
| 17 | + </div> | ... | ... |
templates/kt3/fieldsets/conditional_editable.smarty
templates/kt3/fieldsets/generic.smarty
| 1 | 1 | <div class="detail_fieldset"> |
| 2 | - <h3>Generic Information</h3> | |
| 2 | + <h3>{i18n}Generic Information{/i18n}</h3> | |
| 3 | 3 | <p class="descriptiveText"> |
| 4 | - The information in this section is stored by the KnowledgeTree™ for every | |
| 5 | - document. | |
| 4 | + {i18n}The information in this section is stored by the KnowledgeTree™ for every | |
| 5 | + document.{/i18n} | |
| 6 | 6 | </p> |
| 7 | 7 | <dl class="metadata"> |
| 8 | - <dt>File is a </dt> | |
| 8 | + <dt>{i18n}File is a{/i18n} </dt> | |
| 9 | 9 | <dd>{$context->_mimeHelper($document->getMimeTypeID())} ({$context->_sizeHelper($document->getSize())})</dd> |
| 10 | 10 | |
| 11 | - <dt>Created by</dt> | |
| 11 | + <dt>{i18n}Created by{/i18n}</dt> | |
| 12 | 12 | <dd>{$creator} ({$creation_date})</dd> |
| 13 | 13 | |
| 14 | - <dt>Last update by</dt> | |
| 14 | + <dt>{i18n}Last update by{/i18n}</dt> | |
| 15 | 15 | <dd>{$last_modified_by} ({$last_modified_date})</dd> |
| 16 | 16 | |
| 17 | - <dt>Document Type</dt> | |
| 17 | + <dt>{i18n}Document Type{/i18n}</dt> | |
| 18 | 18 | <dd>{$document_type}</dd> |
| 19 | 19 | |
| 20 | - <dt>Workflow status</dt> | |
| 20 | + <dt>{i18n}Workflow status{/i18n}</dt> | |
| 21 | 21 | <dd> |
| 22 | 22 | {if $workflow_state} |
| 23 | 23 | {$workflow_state->getName()} |
| 24 | 24 | {else} |
| 25 | -No workflow | |
| 25 | +{i18n}No workflow{/i18n} | |
| 26 | 26 | {/if} |
| 27 | -(<a href="{$rootUrl}/action.php/ktcore.actions.document.workflow?fDocumentId={$document->getId()}">manage workflow</a>) | |
| 27 | +(<a | |
| 28 | +href="{$rootUrl}/action.php/ktcore.actions.document.workflow?fDocumentId={$document->getId()}">{i18n}manage workflow{/i18n}</a>) | |
| 28 | 29 | </dd> |
| 29 | 30 | </dl> |
| 30 | 31 | <div class="floatClear"><!-- --> </div> | ... | ... |
templates/kt3/fieldsets/generic_versioned.smarty
| 1 | 1 | <div class="detail_fieldset"> |
| 2 | - <h3>Generic Information</h3> | |
| 2 | + <h3>{i18n}Generic Information{/i18n}</h3> | |
| 3 | 3 | <p class="descriptiveText"> |
| 4 | - The information in this section is stored by the KnowledgeTree™ for every | |
| 5 | - document. | |
| 4 | + {i18n}The information in this section is stored by the KnowledgeTree™ for every | |
| 5 | + document.{/i18n} | |
| 6 | 6 | </p> |
| 7 | 7 | <dl class="metadata versioned"> |
| 8 | - <dt>File is a </dt> | |
| 8 | + <dt>{i18n}File is a{/i18n} </dt> | |
| 9 | 9 | <dd> |
| 10 | 10 | <div class="current">{$context->_mimeHelper($document->getMimeTypeID())} ({$context->_sizeHelper($document->getSize())})</div> |
| 11 | 11 | <div class="previous">{$context->_mimeHelper($comparison_document->getMimeTypeID())} ({$context->_sizeHelper($comparison_document->getSize())})</div> |
| 12 | 12 | </dd> |
| 13 | 13 | |
| 14 | - <dt>Created by</dt> | |
| 14 | + <dt>{i18n}Created by{/i18n}</dt> | |
| 15 | 15 | <dd> |
| 16 | - {$creator} ({$creation_date}) <span class="descriptiveText">(this cannot not change between versions)</span> | |
| 16 | + {$creator} ({$creation_date}) <span class="descriptiveText">({i18n}this cannot not change between versions{/i18n})</span> | |
| 17 | 17 | </dd> |
| 18 | 18 | |
| 19 | - <dt>Last update by</dt> | |
| 19 | + <dt>{i18n}Last update by{/i18n}</dt> | |
| 20 | 20 | <dd> |
| 21 | 21 | <div class="current">{$last_modified_by} ({$last_modified_date})</div> |
| 22 | 22 | <div class="previous">{$last_modified_by} ({$comparison_last_modified_date})</div> |
| 23 | 23 | </dd> |
| 24 | 24 | |
| 25 | 25 | |
| 26 | - <dt>Document Type</dt> | |
| 26 | + <dt>{i18n}Document Type{/i18n}</dt> | |
| 27 | 27 | <dd> |
| 28 | 28 | <div class="current">{$document_type}</div> |
| 29 | 29 | <div class="previous">{$comparison_document_type}</div> |
| 30 | 30 | </dd> |
| 31 | 31 | |
| 32 | - <dt>Workflow status</dt> | |
| 32 | + <dt>{i18n}Workflow status{/i18n}</dt> | |
| 33 | 33 | <dd> |
| 34 | 34 | <div class="current"> |
| 35 | 35 | {if $workflow_state} |
| 36 | 36 | {$workflow_state->getName()} |
| 37 | 37 | {else} |
| 38 | -No workflow | |
| 38 | +{i18n}No workflow{/i18n} | |
| 39 | 39 | {/if} |
| 40 | -(<a | |
| 41 | -href="{$rootUrl}/action.php/ktcore.actions.document.workflow?fDocumentId={$document->getId()}">manage | |
| 42 | -workflow</a>) | |
| 43 | 40 | </div> |
| 44 | 41 | <div class="previous"> |
| 45 | 42 | {if $comparison_workflow_state} |
| 46 | 43 | {$comparison_workflow_state->getName()} |
| 47 | 44 | {else} |
| 48 | -No workflow | |
| 45 | +{i18n}No workflow{/i18n} | |
| 49 | 46 | {/if} |
| 50 | 47 | </div> |
| 51 | 48 | </dd> | ... | ... |
templates/kt3/fieldsets/simple.smarty
| 1 | 1 | <div class="detail_fieldset"> |
| 2 | 2 | <h3>{$fieldset->getName()}</h3> |
| 3 | 3 | <p class="descriptiveText"> |
| 4 | - This is the data assigned to the <strong>{$fieldset->getName()}</strong> aspect of this document. | |
| 4 | +{capture assign=name} | |
| 5 | +{$fieldset->getName()} | |
| 6 | +{/capture} | |
| 7 | + {i18n arg_name=$name}This is the data assigned to the <strong>#name#</strong> aspect of this document.{/i18n} | |
| 5 | 8 | </p> |
| 6 | 9 | |
| 7 | 10 | <dl class="metadata"> |
| 8 | 11 | {foreach item=aFieldPair from=$fieldset_values} |
| 9 | 12 | <dt>{$aFieldPair.field->getName()}</dt> |
| 10 | 13 | <dd>{if ($aFieldPair.value !== null)}{$aFieldPair.value} |
| 11 | - {else}<span class="descriptiveText">no value</span>{/if}</dd> | |
| 14 | + {else}<span class="descriptiveText">{i18n}no value{/i18n}</span>{/if}</dd> | |
| 12 | 15 | {/foreach} |
| 13 | 16 | </dl> |
| 14 | 17 | |
| 15 | 18 | <div class="floatClear"><!-- --> </div> |
| 16 | -</div> | |
| 17 | 19 | \ No newline at end of file |
| 20 | +</div> | ... | ... |
templates/kt3/fieldsets/simple_versioned.smarty
| 1 | 1 | <div class="detail_fieldset"> |
| 2 | 2 | <h3>{$fieldset->getName()}</h3> |
| 3 | 3 | <p class="descriptiveText"> |
| 4 | - This is the data assigned to the <strong>{$fieldset->getName()}</strong> aspect of this document. | |
| 4 | + {capture assign=name} | |
| 5 | + {$fieldset->getName()} | |
| 6 | + {/capture | |
| 7 | + {i18n arg_name=$name}This is the data assigned to the | |
| 8 | +<strong>#name#</strong> aspect of this document.{/i18n} | |
| 5 | 9 | </p> |
| 6 | 10 | |
| 7 | 11 | <dl class="metadata versioned"> |
| ... | ... | @@ -19,4 +23,4 @@ |
| 19 | 23 | </dl> |
| 20 | 24 | |
| 21 | 25 | <div class="floatClear"><!-- --> </div> |
| 22 | -</div> | |
| 23 | 26 | \ No newline at end of file |
| 27 | +</div> | ... | ... |
templates/kt3/notifications/subscriptions.smarty
| ... | ... | @@ -4,12 +4,12 @@ |
| 4 | 4 | {if ($info.event_type == 'AddDocument')} |
| 5 | 5 | The document "{$info.object_name}" was added{if ($info.location_name !== null)} to "{$info.location_name}"{/if}. |
| 6 | 6 | <div class="actionoptions"> |
| 7 | - <a href="{$rootUrl}/notify.php?id={$info.notify_id}">Read Document</a> | | |
| 8 | - <a href="{$rootUrl}/notify.php?id={$info.notify_id}¬ify_action=clear">Clear Alert</a> | |
| 7 | + <a href="{$rootUrl}/notify.php?id={$info.notify_id}">{i18n}Read Document{/i18n}</a> | | |
| 8 | + <a href="{$rootUrl}/notify.php?id={$info.notify_id}¬ify_action=clear">{i18n}Clear Alert{/i18n}</a> | |
| 9 | 9 | </div> |
| 10 | 10 | {else} <!-- fallback. --> |
| 11 | 11 | {/if} |
| 12 | 12 | <div class="actionoptions"> |
| 13 | - <a href="{$rootUrl}/notify.php?id={$info.notify_id}¬ify_action=clear">Clear Alert</a> | |
| 13 | + <a href="{$rootUrl}/notify.php?id={$info.notify_id}¬ify_action=clear">{i18n}Clear Alert{/i18n}</a> | |
| 14 | 14 | </div> |
| 15 | -</dd> | |
| 16 | 15 | \ No newline at end of file |
| 16 | +</dd> | ... | ... |
templates/kt3/portlets/search_portlet.smarty
| 1 | 1 | <form action="{$rootUrl}/presentation/lookAndFeel/knowledgeTree/search/simpleSearch.php" method="GET"> |
| 2 | -<input type="text" name="fSearchableText" id="portlet-search-text" size="15" /><input type="submit" value="search" class="searchbutton" /> | |
| 2 | +<input type="text" name="fSearchableText" id="portlet-search-text" size="15" /><input type="submit" value="{i18n}search{/i18n}" class="searchbutton" /> | |
| 3 | 3 | </form> |
| 4 | 4 | <ul class="actionlist"> |
| 5 | -<li><a href="{$rootUrl}/presentation/lookAndFeel/knowledgeTree/search/booleanSearch.php">Boolean Search</a></li> | |
| 5 | +<li><a href="{$rootUrl}/presentation/lookAndFeel/knowledgeTree/search/booleanSearch.php">{i18n}Boolean Search{/i18n}</a></li> | |
| 6 | 6 | </ul> | ... | ... |
templates/kt3/standard_page.smarty
| ... | ... | @@ -73,7 +73,7 @@ |
| 73 | 73 | </div> |
| 74 | 74 | |
| 75 | 75 | <div id="breadcrumbs"> |
| 76 | -<span class="additional">You are here: </span> | |
| 76 | +<span class="additional">{i18n}You are here{/i18n}: </span> | |
| 77 | 77 | {if ($page->breadcrumbSection !== false)} |
| 78 | 78 | {if ($page->breadcrumbSection.url) } |
| 79 | 79 | <a href="{$page->breadcrumbSection.url}" class="primary">{$page->breadcrumbSection.label}</a> | ... | ... |
templates/kt3/view_document.smarty
| 1 | 1 | <h2>{$document->getName()}</h2> |
| 2 | -<p class="descriptiveText">showing information for <strong>version {$document->getMajorVersionNumber()}.{$document->getMinorVersionNumber()}</strong> </p> | |
| 2 | +{capture assign=version} | |
| 3 | +{$document->getMajorVersionNumber()}.{$document->getMinorVersionNumber()} | |
| 4 | +{/capture} | |
| 5 | +<p class="descriptiveText">{i18n arg_version=$version}showing information for <strong>version | |
| 6 | +#version#</strong>{/i18n}</p> | |
| 3 | 7 | |
| 4 | 8 | {foreach item=oFieldset from=$fieldsets} |
| 5 | 9 | {$oFieldset->render($document_data)} |
| 6 | -{/foreach} | |
| 7 | 10 | \ No newline at end of file |
| 11 | +{/foreach} | ... | ... |
templates/kt3/view_document_history.smarty
| 1 | -<h2>Document History: {$document->getName()}</h2> | |
| 1 | +<h2>{i18n}Document History{/i18n}: {$document->getName()}</h2> | |
| 2 | 2 | |
| 3 | -<p class="descriptiveText">This allows you to have a brief overview of the history of the document.</p> | |
| 3 | +<p class="descriptiveText">{i18n}This allows you to have a brief | |
| 4 | +overview of the history of the document.{/i18n}</p> | |
| 4 | 5 | |
| 5 | 6 | |
| 6 | - <table class="document_history" summary="Document History for KnowledgeTree New UI Presentation" cellspacing="0"> | |
| 7 | + <table class="document_history" summary="{i18n}Document History for KnowledgeTree New UI Presentation{/i18n}" cellspacing="0"> | |
| 7 | 8 | |
| 8 | 9 | <thead> |
| 9 | 10 | <tr> |
| 10 | - <th class="username">User</th> | |
| 11 | - <th class="action">Action</th> | |
| 12 | - <th class="date">Date</th> | |
| 13 | - <th class="contentversion">Content version</th> | |
| 14 | - <th class="comment">Comment</th> | |
| 11 | + <th class="username">{i18n}User{/i18n}</th> | |
| 12 | + <th class="action">{i18n}Action{/i18n}</th> | |
| 13 | + <th class="date">{i18n}Date{/i18n}</th> | |
| 14 | + <th class="contentversion">{i18n}Content version{/i18n}</th> | |
| 15 | + <th class="comment">{i18n}Comment{/i18n}</th> | |
| 15 | 16 | </tr> |
| 16 | 17 | </thead> |
| 17 | 18 | <tbody> | ... | ... |
templates/ktcore/authentication/manage.smarty
| 1 | -<h2>Authentication Sources</h2> | |
| 1 | +<h2>{i18n}Authentication Sources{/i18n}</h2> | |
| 2 | 2 | |
| 3 | 3 | {if $providers} |
| 4 | 4 | <form method="POST"> |
| 5 | -<fieldset><legend>Add an authentication source</legend> | |
| 5 | +<fieldset><legend>{i18n}Add an authentication source{/i18n}</legend> | |
| 6 | 6 | <input type="hidden" name="action" value="newsource" /> |
| 7 | 7 | |
| 8 | 8 | {foreach from=$fields item=oWidget} |
| ... | ... | @@ -10,14 +10,14 @@ |
| 10 | 10 | {/foreach} |
| 11 | 11 | |
| 12 | 12 | <div class="form_actions "> |
| 13 | - <input type="submit" name="submit" value="Add a new source"> | |
| 13 | + <input type="submit" name="submit" value="{i18n}Add a new source{/i18n}" /> | |
| 14 | 14 | </div> |
| 15 | 15 | </fieldset> |
| 16 | 16 | </form> |
| 17 | 17 | {/if} |
| 18 | 18 | |
| 19 | 19 | {if $sources} |
| 20 | -<h3>Existing sources</h3> | |
| 20 | +<h3>{i18n}Existing sources{/i18n}</h3> | |
| 21 | 21 | |
| 22 | 22 | <ul> |
| 23 | 23 | {foreach from=$sources item=oSource} | ... | ... |
templates/ktcore/authentication/viewsource.smarty
| 1 | 1 | |
| 2 | -<fieldset><legend>Standard configuration</legend> | |
| 2 | +<fieldset><legend>{i18n}Standard configuration{/i18n}</legend> | |
| 3 | 3 | <dl> |
| 4 | - <dt>Name</dt> | |
| 4 | + <dt>{i18n}Name{/i18n}</dt> | |
| 5 | 5 | <dd>{$source->getName()}</dd> |
| 6 | 6 | </dl> |
| 7 | 7 | <dl> |
| 8 | - <dt>Provider</dt> | |
| 8 | + <dt>{i18n}Provider{/i18n}</dt> | |
| 9 | 9 | <dd>{$provider->getName()}</dd> |
| 10 | 10 | </dl> |
| 11 | -<a href="?action=editsource&source_id={$source->getId()}">Edit standard configuration</a> | |
| 11 | +<a href="?action=editsource&source_id={$source->getId()}">{i18n}Edit standard configuration{/i18n}</a> | |
| 12 | 12 | </fieldset> |
| 13 | 13 | |
| 14 | 14 | {assign var=provider_stuff value=$provider->showSource($source)} |
| 15 | 15 | {if $provider_stuff} |
| 16 | -<fieldset><legend>Provider configuration</legend> | |
| 16 | +<fieldset><legend>{i18n}Provider configuration{/i18n}</legend> | |
| 17 | 17 | {$provider_stuff} |
| 18 | -<a href="?action=editsourceprovider&source_id={$source->getId()}">Edit provider configuration</a> | |
| 18 | +<a href="?action=editsourceprovider&source_id={$source->getId()}">{i18n}Edit provider configuration{/i18n}</a> | |
| 19 | 19 | </fieldset> |
| 20 | 20 | {/if} | ... | ... |
templates/ktcore/boolean_search.smarty
| ... | ... | @@ -44,27 +44,36 @@ legend { border: 1px dotted #999;} |
| 44 | 44 | </select> |
| 45 | 45 | </div> |
| 46 | 46 | |
| 47 | -<h2>{$title|default:"Boolean Search"}</h2> | |
| 47 | +{capture assign=defaulttitle} | |
| 48 | +{i18n}Boolean Search{/i18n} | |
| 49 | +{/capture} | |
| 50 | +<h2>{$title|default:$defaulttitle}</h2> | |
| 48 | 51 | |
| 49 | 52 | <form method="POST"> |
| 50 | 53 | <input type="hidden" name="action" value="performSearch" /> |
| 51 | 54 | {if $sNameTitle} |
| 52 | 55 | {$sNameTitle}: <input type="text" name="name" value="" /> <br /> |
| 53 | 56 | {/if} |
| 54 | - | |
| 55 | - <p class="helpText">Return items which match <select | |
| 56 | -name="boolean_search[join]"><option value="AND">all</option><option value="OR">any</option></select> of the <strong>criteria groups</strong> specified.</p> | |
| 57 | + | |
| 58 | +{capture assign=options} | |
| 59 | +<select name="boolean_search[join]"><option value="AND">all</option><option value="OR">any</option></select> | |
| 60 | +{/capture} | |
| 61 | + | |
| 62 | + <p class="helpText">{i18n arg_options=$options}Return items which match #options# of the <strong>criteria groups</strong> specified.{/i18n}</p> | |
| 57 | 63 | |
| 58 | 64 | <fieldset> |
| 59 | - <legend>Criteria Group</legend> | |
| 65 | + <legend>{i18n}Criteria Group{/i18n}</legend> | |
| 60 | 66 | |
| 61 | - <p class="helpText">Return items which match <select name="boolean_search[subgroup][0][join]"><option value="AND">all</option><option value="OR">any</option></select> of the criteria specified.</p> | |
| 67 | + {capture assign=options} | |
| 68 | + <select name="boolean_search[subgroup][0][join]"><option value="AND">all</option><option value="OR">any</option></select> | |
| 69 | + {/capture} | |
| 70 | + <p class="helpText">{i18n arg_options=$options}Return items which match #options# of the criteria specified.{/i18n}</p> | |
| 62 | 71 | |
| 63 | 72 | <table class="advanced-search-form"> |
| 64 | 73 | <tbody> |
| 65 | 74 | <tr> |
| 66 | - <th>Criteria</th> | |
| 67 | - <th>Values</th> | |
| 75 | + <th>{i18n}Criteria{/i18n}</th> | |
| 76 | + <th>{i18n}Values{/i18n}</th> | |
| 68 | 77 | <th> </th> |
| 69 | 78 | </tr> |
| 70 | 79 | <tr> |
| ... | ... | @@ -74,18 +83,21 @@ name="boolean_search[join]"><option value="AND">all</option><option value="OR">a |
| 74 | 83 | {/foreach} |
| 75 | 84 | </select> |
| 76 | 85 | </td> |
| 77 | - <td><p class="helpText">first select a type of query</p></td> | |
| 78 | - <td><input type="button" value="Add" onclick="addNewCriteria(this);" /></td> | |
| 86 | + <td><p class="helpText">{i18n}first select a type of query{/i18n}</p></td> | |
| 87 | + <td><input type="button" value="{i18n}Add{/i18n}" onclick="addNewCriteria(this);" /></td> | |
| 79 | 88 | </tr> |
| 80 | 89 | </tbody> |
| 81 | 90 | </table> |
| 82 | 91 | |
| 83 | 92 | </fieldset> |
| 84 | 93 | |
| 85 | - <input type="button" value="add another set of criteria" onclick="addBooleanGroup(this)"/> | |
| 94 | + <input type="button" value="{i18n}add another set of criteria{/i18n}" onclick="addBooleanGroup(this)" /> | |
| 86 | 95 | |
| 87 | 96 | |
| 88 | - <input type="submit" name="submit" value="{$searchButton|default:"Search"}" /> | |
| 97 | +{capture assign=defaultsubmit} | |
| 98 | +{i18n}Search{/i18n} | |
| 99 | +{/capture} | |
| 100 | + <input type="submit" name="submit" value="{$searchButton|default:$defaultsubmit}" /> | |
| 89 | 101 | </form> |
| 90 | 102 | |
| 91 | 103 | <!-- | ... | ... |
templates/ktcore/fields/edit.smarty
| 1 | -<h2>Fieldset: {$oFieldset->getName()|escape}</h2> | |
| 1 | +<h2>{i18n}Fieldset{/i18n}: {$oFieldset->getName()|escape}</h2> | |
| 2 | 2 | |
| 3 | 3 | |
| 4 | 4 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 5 | 5 | <fieldset> |
| 6 | -<legend>Fieldset properties</legend> | |
| 7 | -<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}"> | |
| 8 | -<input type="hidden" name="action" value="editobject"> | |
| 6 | +<legend>{i18n}Fieldset properties{/i18n}</legend> | |
| 7 | +<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> | |
| 8 | +<input type="hidden" name="action" value="editobject" /> | |
| 9 | 9 | <table class="prettysw" cellpadding="0" cellspacing="0"> |
| 10 | 10 | <tr> |
| 11 | - <th>Name</th> | |
| 12 | - <td><input type="textbox" name="name" value="{$oFieldset->getName()|escape}"></td> | |
| 11 | + <th>{i18n}Name{/i18n}</th> | |
| 12 | + <td><input type="textbox" name="name" value="{$oFieldset->getName()|escape}" /></td> | |
| 13 | 13 | </tr> |
| 14 | 14 | <tr> |
| 15 | - <th>Namespace</th> | |
| 16 | - <td><input type="textbox" name="namespace" value="{$oFieldset->getNamespace()|escape}"></td> | |
| 15 | + <th>{i18n}Namespace{/i18n}</th> | |
| 16 | + <td><input type="textbox" name="namespace" value="{$oFieldset->getNamespace()|escape}" /></td> | |
| 17 | 17 | </tr> |
| 18 | 18 | </table> |
| 19 | -<input type="submit" name="submit" value="Change"> | |
| 19 | +<input type="submit" name="submit" value="{i18n}Change{/i18n}" /> | |
| 20 | 20 | </fieldset> |
| 21 | 21 | </form> |
| 22 | 22 | |
| 23 | -<h2>Fieldset members</h2> | |
| 23 | +<h2>{i18n}Fieldset members{/i18n}</h2> | |
| 24 | 24 | |
| 25 | 25 | {if $oFieldset->getFields() } |
| 26 | -<h3>Existing members</h3> | |
| 26 | +<h3>{i18n}Existing members{/i18n}</h3> | |
| 27 | 27 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 28 | -<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}"> | |
| 28 | +<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> | |
| 29 | 29 | <ul> |
| 30 | 30 | {foreach from=$oFieldset->getFields() item=oField} |
| 31 | 31 | <li><label><input type="checkbox" |
| 32 | 32 | name="fieldsetids[]" |
| 33 | -value="{$oField->getId()}">{$oField->getName()|escape}</label></li> | |
| 33 | +value="{$oField->getId()}" />{$oField->getName()|escape}</label></li> | |
| 34 | 34 | {/foreach} |
| 35 | 35 | </ul> |
| 36 | -<input type="submit" name="submit" value="Remove fields"> | |
| 36 | +<input type="submit" name="submit" value="{i18n}Remove fields{/i18n}" /> | |
| 37 | 37 | </form> |
| 38 | 38 | {/if} |
| 39 | 39 | |
| 40 | -<h3>Add a new field</h3> | |
| 40 | +<h3>{i18n}Add a new field{/i18n}</h3> | |
| 41 | 41 | |
| 42 | 42 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 43 | -<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}"> | |
| 44 | -<input type="hidden" name="action" value="newfield"> | |
| 43 | +<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> | |
| 44 | +<input type="hidden" name="action" value="newfield" /> | |
| 45 | 45 | <table class="prettysw" cellpadding="0" cellspacing="0"> |
| 46 | 46 | <tr> |
| 47 | - <th>Name</th> | |
| 47 | + <th>{i18n}Name{/i18n}</th> | |
| 48 | 48 | <td><input type="textbox" name="name" /> |
| 49 | 49 | </tr> |
| 50 | 50 | <tr> |
| 51 | - <th>Type</th> | |
| 51 | + <th>{i18n}Type{/i18n}</th> | |
| 52 | 52 | <td> |
| 53 | 53 | <select name="type"> |
| 54 | -<option value="normal">Normal</option> | |
| 55 | -<option value="lookup">Lookup</option> | |
| 56 | -<option value="tree">Tree</option> | |
| 54 | +<option value="normal">{i18n}Normal{/i18n}</option> | |
| 55 | +<option value="lookup">{i18n}Lookup{/i18n}</option> | |
| 56 | +<option value="tree">{i18n}Tree{/i18n}</option> | |
| 57 | 57 | </select> |
| 58 | 58 | </td> |
| 59 | 59 | </tr> |
| 60 | 60 | </table> |
| 61 | -<input type="submit" name="submit" value="Add field"> | |
| 61 | +<input type="submit" name="submit" value="{i18n}Add field{/i18n}" /> | |
| 62 | 62 | </form> | ... | ... |
templates/ktcore/fields/list.smarty
| 1 | -<h1>Document Fields</h1> | |
| 1 | +<h1>{i18n}Document Fields{/i18n}</h1> | |
| 2 | 2 | |
| 3 | 3 | { if $fieldsets} |
| 4 | -<h2>Existing generic document fields</h2> | |
| 4 | +<h2>{i18n}Existing generic document fields{/i18n}</h2> | |
| 5 | 5 | |
| 6 | 6 | <table class="pretty" cellspacing="0" cellpadding="0"> |
| 7 | 7 | <thead> |
| 8 | 8 | <tr> |
| 9 | - <th colspan="2">Name</th> | |
| 10 | - <th>Generic</th> | |
| 11 | - <th>Fields</th> | |
| 9 | + <th colspan="2">{i18n}Name{/i18n}</th> | |
| 10 | + <th>{i18n}Generic{/i18n}</th> | |
| 11 | + <th>{i18n}Fields{/i18n}</th> | |
| 12 | 12 | </tr> |
| 13 | 13 | </thead> |
| 14 | 14 | <tbody> |
| 15 | 15 | {foreach from=$fieldsets item=oFieldset} |
| 16 | 16 | <tr> |
| 17 | 17 | <td> |
| 18 | - <a href="?action=edit&fFieldsetId={$oFieldset->getId()}" class="ktAction ktDelete">Delete</a> | |
| 18 | + <a href="?action=edit&fFieldsetId={$oFieldset->getId()}" class="ktAction ktDelete">{i18n}Delete{/i18n}</a> | |
| 19 | 19 | </td> |
| 20 | 20 | <td> |
| 21 | 21 | |
| ... | ... | @@ -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> |
| ... | ... | @@ -43,10 +43,10 @@ |
| 43 | 43 | </table> |
| 44 | 44 | {/if} |
| 45 | 45 | |
| 46 | -<h2>Create a new document field set</h2> | |
| 46 | +<h2>{i18n}Create a new document field set{/i18n}</h2> | |
| 47 | 47 | |
| 48 | 48 | <form method="POST"> |
| 49 | -<input type="hidden" name="action" value="new"> | |
| 50 | -<input type="textbox" name="name"> | |
| 51 | -<input type="submit" name="submit" value="Create"> | |
| 49 | +<input type="hidden" name="action" value="new" /> | |
| 50 | +<input type="textbox" name="name" /> | |
| 51 | +<input type="submit" name="submit" value="{i18n}Create{/i18n}" /> | |
| 52 | 52 | </form> | ... | ... |
templates/ktcore/login.smarty
| ... | ... | @@ -2,7 +2,7 @@ |
| 2 | 2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| 3 | 3 | <html> |
| 4 | 4 | <head> |
| 5 | - <title>Login | KnowledgeTree</title> | |
| 5 | + <title>{i18n}Login{/i18n} | KnowledgeTree</title> | |
| 6 | 6 | |
| 7 | 7 | <link rel="stylesheet" href="{$rootUrl}/resources/css/kt-login.css" type="text/css" /> |
| 8 | 8 | |
| ... | ... | @@ -16,19 +16,19 @@ |
| 16 | 16 | <input type="hidden" name="redirect" value="{$redirect|escape}" /> |
| 17 | 17 | <img src="{$rootUrl}/resources/graphics/ktlogo-topbar-right.png" alt="KnowledgeTree DMS" class="logoimage" width="252" height="50"/><br /> |
| 18 | 18 | {if ($errorMessage == null)} |
| 19 | - <p class="descriptiveText">Please enter your details below to login.</p> | |
| 19 | + <p class="descriptiveText">{i18n}Please enter your details below to login.{/i18n}</p> | |
| 20 | 20 | {else} |
| 21 | 21 | <div class="ktError"><p>{$errorMessage}</p></div> |
| 22 | 22 | {/if} |
| 23 | 23 | |
| 24 | - <label for="username">Username</label> | |
| 24 | + <label for="username">{i18n}Username{/i18n}</label> | |
| 25 | 25 | <input type="text" id="username" name="username"/> |
| 26 | 26 | |
| 27 | - <label for="password">Password</label> | |
| 27 | + <label for="password">{i18n}Password{/i18n}</label> | |
| 28 | 28 | <input type="password" id="password" name="password"/> |
| 29 | 29 | |
| 30 | 30 | <div class="form_actions"> |
| 31 | - <input type="submit" value="login" /> | |
| 31 | + <input type="submit" value="{i18n}login{/i18n}" /> | |
| 32 | 32 | </div> |
| 33 | 33 | </form> |
| 34 | 34 | </div> | ... | ... |
templates/ktcore/metadata/conditional/editcomplex.smarty
| ... | ... | @@ -35,7 +35,7 @@ addLoadEvent(updateActiveFields); |
| 35 | 35 | {/capture} |
| 36 | 36 | {$context->oPage->requireJSStandalone($sJS)} |
| 37 | 37 | |
| 38 | -<h2>Edit Complex Conditional Metadata</h2> | |
| 38 | +<h2>{i18n}Edit Complex Conditional Metadata{/i18n}</h2> | |
| 39 | 39 | <form> |
| 40 | 40 | <input type="hidden" name="fieldset_id" id="global-fieldset-id" value="{$fieldset_id}" /> |
| 41 | 41 | |
| ... | ... | @@ -52,10 +52,10 @@ addLoadEvent(updateActiveFields); |
| 52 | 52 | {foreach from=$aFields item=oField} |
| 53 | 53 | <td class="inactive" id="md_{$oField->getId()}"> |
| 54 | 54 | <h3>{$oField->getName()}</h3> |
| 55 | - <p class="inactivity_message">This column is not active.</p> | |
| 56 | - <p class="fixed_message">Editing behaviour <strong>Jack</strong></p> | |
| 55 | + <p class="inactivity_message">{i18n}This column is not active.{/i18n}</p> | |
| 56 | + <p class="fixed_message">{i18n}Editing behaviour <strong>Jack</strong>{/i18n}</p> | |
| 57 | 57 | <div class="unassigned_items"> |
| 58 | - <h3>Unassigned/Unavailable</h3> | |
| 58 | + <h3>{i18n}Unassigned/Unavailable{/i18n}</h3> | |
| 59 | 59 | <select class="item_list" multiple="true"> |
| 60 | 60 | <!-- These are orphaned - we fire a "activate" command on load / available. |
| 61 | 61 | <option value="-1">Test 1</option> |
| ... | ... | @@ -64,7 +64,7 @@ addLoadEvent(updateActiveFields); |
| 64 | 64 | <option value="-4">Test 4</option> |
| 65 | 65 | --> |
| 66 | 66 | </select> |
| 67 | - <p><strong>Assign to behaviour</strong></p> | |
| 67 | + <p><strong>{i18n}Assign to behaviour{/i18n}</strong></p> | |
| 68 | 68 | <select class="available_behaviours" onchange="assignToBehaviour(this, {$oField->getId()});"> |
| 69 | 69 | <option>Select a behaviour</option> |
| 70 | 70 | <!-- ditto |
| ... | ... | @@ -74,15 +74,15 @@ addLoadEvent(updateActiveFields); |
| 74 | 74 | <option value="4">Behaviour 4</option> |
| 75 | 75 | --> |
| 76 | 76 | </select> <br /> |
| 77 | - <strong>or</strong> to a new behaviour called <br /> | |
| 77 | + {i18n}<strong>or</strong> to a new behaviour called{/i18n} <br /> | |
| 78 | 78 | <input type="text" name="new_behaviour" class="new_behaviour" /> |
| 79 | - <input type="button" value="create behaviour" onclick="assignToNewBehaviour({$oField->getId()});" /> | |
| 79 | + <input type="button" value="{i18n}create behaviour{/i18n}" onclick="assignToNewBehaviour({$oField->getId()});" /> | |
| 80 | 80 | </div> |
| 81 | 81 | <div class="behaviour_edit_options"> |
| 82 | - <h3>Edit Behaviour</h3> | |
| 82 | + <h3>{i18n}Edit Behaviour{/i18n}</h3> | |
| 83 | 83 | <p class="helpText"> |
| 84 | - Select a behaviour from this list to change the | |
| 85 | - items which are available. | |
| 84 | + {i18n}Select a behaviour from this list to change the | |
| 85 | + items which are available.{/i18n} | |
| 86 | 86 | </p> |
| 87 | 87 | <select class="edit_behaviours" onchange="editBehaviour(this, {$oField->getId()});"> |
| 88 | 88 | <option>Select a behaviour</option> |
| ... | ... | @@ -94,7 +94,8 @@ addLoadEvent(updateActiveFields); |
| 94 | 94 | --> |
| 95 | 95 | </select> |
| 96 | 96 | <br /> |
| 97 | - <a href="#" onclick="changeAssignments({$oField->getId()}); return false;">Change Assignments for this field.</a> | |
| 97 | + <a href="#" onclick="changeAssignments({$oField->getId()}); return | |
| 98 | +false;">{i18n}Change Assignments for this field.{/i18n}</a> | |
| 98 | 99 | </div> |
| 99 | 100 | </td> |
| 100 | 101 | {/foreach} | ... | ... |
templates/ktcore/metadata/conditional/editsimple.smarty
| ... | ... | @@ -59,7 +59,7 @@ addLoadEvent(partial(editSimpleField, {$iMasterFieldId})); |
| 59 | 59 | |
| 60 | 60 | |
| 61 | 61 | |
| 62 | -<h2>Editing Fieldset Rules (Simple)</h2> | |
| 62 | +<h2>{i18n}Editing Fieldset Rules (Simple){/i18n}</h2> | |
| 63 | 63 | |
| 64 | 64 | <form> |
| 65 | 65 | <input type="hidden" name="fieldset_id" id="global-fieldset-id" value="{$fieldset_id}" /> |
| ... | ... | @@ -74,7 +74,7 @@ addLoadEvent(partial(editSimpleField, {$iMasterFieldId})); |
| 74 | 74 | |
| 75 | 75 | {foreach from=$aFields item=oField} |
| 76 | 76 | <td class="inactive" id="md_{$oField->getId()}"> |
| 77 | - <p class="inactivity_message">This field is not controlled by the currently active group.</p> | |
| 77 | + <p class="inactivity_message">{i18n}This field is not controlled by the currently active group.{/i18n}</p> | |
| 78 | 78 | <div class="lookup_items"> |
| 79 | 79 | <h3>Field: {$oField->getName()}</h3> |
| 80 | 80 | <select class="item_list"> |
| ... | ... | @@ -83,9 +83,9 @@ addLoadEvent(partial(editSimpleField, {$iMasterFieldId})); |
| 83 | 83 | {/foreach} |
| 84 | 84 | </select> |
| 85 | 85 | <div class="buttonset"> |
| 86 | - <input type="button" value="edit" class="edit_button" onclick="editSimpleField({$oField->getId()})" /> | |
| 87 | - <input type="button" value="save" class="save_button" onclick="saveSimpleField({$oField->getId()})" /> | |
| 88 | - <input type="button" value="done" class="done_button" onclick="finishSimpleField({$oField->getId()})" /> | |
| 86 | + <input type="button" value="{i18n}edit{/i18n}" class="edit_button" onclick="editSimpleField({$oField->getId()})" /> | |
| 87 | + <input type="button" value="{i18n}save{/i18n}" class="save_button" onclick="saveSimpleField({$oField->getId()})" /> | |
| 88 | + <input type="button" value="{i18n}done{/i18n}" class="done_button" onclick="finishSimpleField({$oField->getId()})" /> | |
| 89 | 89 | </div> |
| 90 | 90 | </div> |
| 91 | 91 | </td> | ... | ... |
templates/ktcore/metadata/conditional/manageConditional.smarty
| 1 | -<h2>Manage conditional fieldset<h2> | |
| 1 | +<h2>{i18n}Manage conditional fieldset{/i18n}<h2> | |
| 2 | 2 | |
| 3 | 3 | {if $sIncomplete || !$oFieldset->getIsComplete()} |
| 4 | 4 | <div class="ktError"> |
| 5 | -<p>This conditional fieldset is marked such that it | |
| 5 | +<p>{i18n}This conditional fieldset is marked such that it | |
| 6 | 6 | cannot be used. This happens when the fieldset has been edited and has |
| 7 | 7 | not been set to complete. Setting the fieldset to complete will do a |
| 8 | -check to see if the fieldset is usable by the user.</p> | |
| 8 | +check to see if the fieldset is usable by the user.{/i18n}</p> | |
| 9 | 9 | </div> |
| 10 | 10 | |
| 11 | 11 | {if $sIncomplete} |
| 12 | 12 | <div class="ktError"> |
| 13 | -<p>This error prevents this fieldset from being set | |
| 14 | -to complete: {$sIncomplete|escape}</p> | |
| 13 | +<p>{i18n}This error prevents this fieldset from being set | |
| 14 | +to complete{/i18n}: {$sIncomplete|escape}</p> | |
| 15 | 15 | </div> |
| 16 | 16 | {else} |
| 17 | 17 | |
| 18 | -Try to set to complete: | |
| 18 | +{i18n}Try to set to complete{/i18n}: | |
| 19 | 19 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 20 | -<input type="hidden" name="action" value="checkComplete"> | |
| 21 | -<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}"> | |
| 22 | -<input type="submit" name="submit" value="Check completeness"> | |
| 20 | +<input type="hidden" name="action" value="checkComplete" /> | |
| 21 | +<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> | |
| 22 | +<input type="submit" name="submit" value="{i18n}Check completeness{/i18n}" /> | |
| 23 | 23 | </form> |
| 24 | 24 | {/if} |
| 25 | 25 | {/if} |
| 26 | 26 | |
| 27 | -<h2>Conditional type</h2> | |
| 27 | +<h2>{i18n}Conditional type{/i18n}</h2> | |
| 28 | 28 | |
| 29 | 29 | {if $oFieldset->getIsComplex()} |
| 30 | -Complex: <a | |
| 31 | -href="{$config->get("urls/uiUrl")}/administration/docfieldmanagement/conditional/manageConditionals.php?action=editComplexFieldset&fieldset_id={$oFieldset->getId()}">Manage | |
| 32 | -complex conditional</a> | |
| 30 | +{i18n}Complex{/i18n}: <a | |
| 31 | +href="{$config->get("urls/uiUrl")}/administration/docfieldmanagement/conditional/manageConditionals.php?action=editComplexFieldset&fieldset_id={$oFieldset->getId()}">{i18n}Manage | |
| 32 | +complex conditional{/i18n}</a> | |
| 33 | 33 | |
| 34 | 34 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 35 | -<input type="hidden" name="action" value="changeToSimple"> | |
| 36 | -<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}"> | |
| 37 | -<input type="submit" name="submit" value="Change to simple"> | |
| 35 | +<input type="hidden" name="action" value="changeToSimple" /> | |
| 36 | +<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> | |
| 37 | +<input type="submit" name="submit" value="{i18n}Change to simple{/i18n}" /> | |
| 38 | 38 | </form> |
| 39 | 39 | |
| 40 | 40 | {else} |
| 41 | 41 | |
| 42 | -Simple: <a | |
| 43 | -href="{$config->get("urls/uiUrl")}/administration/docfieldmanagement/conditional/manageConditionals.php?action=editFieldset&fieldset_id={$oFieldset->getId()}">Manage simple conditional</a> | |
| 42 | +{i18n}Simple{/i18n}: <a | |
| 43 | +href="{$config->get("urls/uiUrl")}/administration/docfieldmanagement/conditional/manageConditionals.php?action=editFieldset&fieldset_id={$oFieldset->getId()}">{i18n}Manage simple conditional{/i18n}</a> | |
| 44 | 44 | |
| 45 | 45 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 46 | -<input type="hidden" name="action" value="changeToComplex"> | |
| 47 | -<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}"> | |
| 48 | -<input type="submit" name="submit" value="Change to complex"> | |
| 46 | +<input type="hidden" name="action" value="changeToComplex" /> | |
| 47 | +<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> | |
| 48 | +<input type="submit" name="submit" value="{i18n}Change to complex{/i18n}" /> | |
| 49 | 49 | </form> |
| 50 | 50 | |
| 51 | 51 | {/if} |
| 52 | 52 | |
| 53 | -<p>Changing the conditional type set will remove all existing field | |
| 54 | -ordering!</p> | |
| 53 | +<p>{i18n}Changing the conditional type set will remove all existing field | |
| 54 | +ordering!{/i18n}</p> | |
| 55 | 55 | |
| 56 | 56 | <h2>Master field</h2> |
| 57 | 57 | |
| 58 | 58 | {if !$oMasterField} |
| 59 | -No master field is set, please select the master field: | |
| 59 | +{i18n}No master field is set, please select the master field{/i18n}: | |
| 60 | 60 | |
| 61 | 61 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 62 | -<input type="hidden" name="action" value="setMasterField"> | |
| 63 | -<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}"> | |
| 62 | +<input type="hidden" name="action" value="setMasterField" /> | |
| 63 | +<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> | |
| 64 | 64 | |
| 65 | 65 | {entity_select entities=$oFieldset->getFields() name="fFieldId"} |
| 66 | -<input type="submit" name="submit" value="Set master field"> | |
| 66 | +<input type="submit" name="submit" value="{i18n}Set master field{/i18n}" /> | |
| 67 | 67 | </form> |
| 68 | 68 | |
| 69 | 69 | {else} |
| 70 | 70 | |
| 71 | 71 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 72 | -<input type="hidden" name="action" value="setMasterField"> | |
| 73 | -<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}"> | |
| 72 | +<input type="hidden" name="action" value="setMasterField" /> | |
| 73 | +<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> | |
| 74 | 74 | |
| 75 | 75 | {entity_select entities=$oFieldset->getFields() name="fFieldId" selected=$oMasterField->getId()} |
| 76 | -<input type="submit" name="submit" value="Change master field"> | |
| 76 | +<input type="submit" name="submit" value="{i18n}Change master field{/i18n}" /> | |
| 77 | 77 | </form> |
| 78 | 78 | |
| 79 | -<p>Changing the master field set will remove all existing field | |
| 80 | -ordering!</p> | |
| 79 | +<p>{i18n}Changing the master field set will remove all existing field | |
| 80 | +ordering!{/i18n}</p> | |
| 81 | 81 | |
| 82 | -<h2>Field ordering</h2> | |
| 82 | +<h2>{i18n}Field ordering{/i18n}</h2> | |
| 83 | 83 | |
| 84 | 84 | {if $aFieldOrders} |
| 85 | -<h3>Existing ordering</h2> | |
| 85 | +<h3>{i18n}Existing ordering{/i18n}</h2> | |
| 86 | 86 | |
| 87 | 87 | <ul> |
| 88 | 88 | {foreach from=$aFieldOrders item=aRow} |
| ... | ... | @@ -100,11 +100,11 @@ affects the values available in |
| 100 | 100 | {/if} |
| 101 | 101 | |
| 102 | 102 | { if $free_fields } |
| 103 | -<h3>Order fields</h2> | |
| 103 | +<h3>{i18n}Order fields{/i18n}</h2> | |
| 104 | 104 | |
| 105 | 105 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 106 | -<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}"> | |
| 107 | -<input type="hidden" name="action" value="orderFields"> | |
| 106 | +<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> | |
| 107 | +<input type="hidden" name="action" value="orderFields" /> | |
| 108 | 108 | |
| 109 | 109 | The available values of the selected fields: |
| 110 | 110 | <br /> |
| ... | ... | @@ -114,7 +114,7 @@ are conditional on the values of this field: |
| 114 | 114 | <br /> |
| 115 | 115 | {entity_select entities=$parent_fields name="fParentFieldId"} |
| 116 | 116 | <br /> |
| 117 | -<input type="submit" name="submit" value="Order"> | |
| 117 | +<input type="submit" name="submit" value="{i18n}Order{/i18n}" /> | |
| 118 | 118 | </form> |
| 119 | 119 | {/if} |
| 120 | 120 | ... | ... |
templates/ktcore/metadata/conditional/select_fieldset.smarty
| 1 | -<h2>Select Fieldset</h2> | |
| 1 | +<h2>{i18n}Select Fieldset{/i18n}</h2> | |
| 2 | 2 | |
| 3 | 3 | <form> |
| 4 | 4 | <fieldset> |
| 5 | -<legend>Current Conditional Fieldsets</legend> | |
| 6 | -<p>Fieldsets that are marked as conditional.</p> | |
| 5 | +<legend>{i18n}Current Conditional Fieldsets{/i18n}</legend> | |
| 6 | +<p>{i18n}Fieldsets that are marked as conditional.{/i18n}</p> | |
| 7 | 7 | |
| 8 | 8 | <input type="hidden" name="action" value="editFieldset" /> |
| 9 | 9 | |
| ... | ... | @@ -12,7 +12,7 @@ |
| 12 | 12 | {/foreach} |
| 13 | 13 | |
| 14 | 14 | <div> |
| 15 | -<input type="submit" name="submit" value="Edit"> | |
| 15 | +<input type="submit" name="submit" value="{i18n}Edit{/i18n}" /> | |
| 16 | 16 | </div> |
| 17 | 17 | </fieldset> |
| 18 | 18 | </form> | ... | ... |
templates/ktcore/widget_fieldset_conditional.smarty
| ... | ... | @@ -126,11 +126,11 @@ function triggerUpdate(formname) { |
| 126 | 126 | <input type="hidden" name="fieldset_id" class="resolved_conditional" value="{$fieldset_id}" /> |
| 127 | 127 | <!-- add items to handle save here. --> |
| 128 | 128 | |
| 129 | -<input type="button" value="Undo change" onclick="doConditionalUndo(); return false;"/> | |
| 129 | +<input type="button" value="{i18n}Undo change{/i18n}" onclick="doConditionalUndo(); return false;" /> | |
| 130 | 130 | |
| 131 | 131 | <fieldset id="conditional_field"> |
| 132 | -<legend>Project Details</legend> | |
| 133 | -<p>Please be aware that - depending on your selections - new values may become available.</p> | |
| 132 | +<legend>{i18n}Project Details{/i18n}</legend> | |
| 133 | +<p>{i18n}Please be aware that - depending on your selections - new values may become available.{/i18n}</p> | |
| 134 | 134 | |
| 135 | 135 | <div > |
| 136 | 136 | <!-- how do we add these after-the-fact, especially given that we need to add columns later? --> |
| ... | ... | @@ -149,7 +149,7 @@ function triggerUpdate(formname) { |
| 149 | 149 | |
| 150 | 150 | </fieldset> |
| 151 | 151 | |
| 152 | -<input type="submit" value="save" /> | |
| 152 | +<input type="submit" value="{i18n}save{/i18n}" /> | |
| 153 | 153 | </form> |
| 154 | 154 | |
| 155 | 155 | ... | ... |
templates/ktcore/workflow/documentWorkflow.smarty
| 1 | -<h2>Document Workflow</h2> | |
| 1 | +<h2>{i18n}Document Workflow{/i18n}</h2> | |
| 2 | 2 | |
| 3 | 3 | <p class="descriptiveText"> |
| 4 | -Workflow is a description of a document's lifecycle. It is made up of | |
| 4 | +{i18n}Workflow is a description of a document's lifecycle. It is made up of | |
| 5 | 5 | workflow states, which describe where in the lifecycle the document is, |
| 6 | 6 | and workflow transitions, which describe the next steps within the |
| 7 | -lifecycle of the document. | |
| 7 | +lifecycle of the document.{/i18n} | |
| 8 | 8 | </p> |
| 9 | 9 | |
| 10 | 10 | {if !$oWorkflow} |
| 11 | -<h3>No workflow</h3> | |
| 11 | +<h3>{i18n}No workflow{/i18n}</h3> | |
| 12 | 12 | |
| 13 | -<p>Document has no assigned workflow.</p> | |
| 13 | +<p>{i18n}Document has no assigned workflow.{/i18n}</p> | |
| 14 | 14 | |
| 15 | 15 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 16 | -<fieldset><legend>Start workflow on document</legend> | |
| 16 | +<fieldset><legend>{i18n}Start workflow on document{/i18n}</legend> | |
| 17 | 17 | <input type="hidden" name="action" value="startWorkflow" /> |
| 18 | 18 | <input type="hidden" name="fDocumentId" value="{$oDocument->getId()}" /> |
| 19 | 19 | {entity_select entities=$aWorkflows name=fWorkflowId} |
| 20 | 20 | <div class="form_actions"> |
| 21 | -<input type="submit" name="submit" value="Start Workflow" /> | |
| 21 | +<input type="submit" name="submit" value="{i18n}Start Workflow{/i18n}" /> | |
| 22 | 22 | </div> |
| 23 | 23 | </fieldset> |
| 24 | 24 | </form> |
| 25 | 25 | |
| 26 | 26 | {else} |
| 27 | 27 | |
| 28 | -<h3>Current workflow settings</h3> | |
| 28 | +<h3>{i18n}Current workflow settings{/i18n}</h3> | |
| 29 | 29 | |
| 30 | 30 | <dl class="metadata"> |
| 31 | -<dt>Workflow</dt><dd>{$oWorkflow->getName()}</dd> | |
| 32 | -<dt>State</dt><dd>{$oState->getName()}</dd> | |
| 31 | +<dt>{i18n}Workflow{/i18n}</dt><dd>{$oWorkflow->getName()}</dd> | |
| 32 | +<dt>{i18n}State{/i18n}</dt><dd>{$oState->getName()}</dd> | |
| 33 | 33 | </dl> |
| 34 | 34 | |
| 35 | 35 | {if $aTransitions} |
| 36 | 36 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 37 | 37 | <input type="hidden" name="action" value="performTransition" /> |
| 38 | 38 | <input type="hidden" name="fDocumentId" value="{$oDocument->getId()}" /> |
| 39 | -<fieldset><legend>Transition to another workflow state</legend> | |
| 39 | +<fieldset><legend>{i18n}Transition to another workflow state{/i18n}</legend> | |
| 40 | 40 | {foreach from=$transition_fields item=oWidget } |
| 41 | 41 | {$oWidget->render()} |
| 42 | 42 | {/foreach} |
| 43 | 43 | <div class="form_actions"> |
| 44 | -<input type="submit" name="submit" value="Perform Transition" /> | |
| 44 | +<input type="submit" name="submit" value="{i18n}Perform Transition{/i18n}" /> | |
| 45 | 45 | </div> |
| 46 | 46 | </fieldset> |
| 47 | 47 | </form> | ... | ... |
templates/ktcore/workflow/editState.smarty
| 1 | -<h2>State: {$oState->getName()|escape}</h2> | |
| 1 | +<h2>{i18n}State{/i18n}: {$oState->getName()|escape}</h2> | |
| 2 | 2 | |
| 3 | 3 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 4 | 4 | <fieldset> |
| 5 | -<legend>Edit state properties</legend> | |
| 5 | +<legend>{i18n}Edit state properties{/i18n}</legend> | |
| 6 | 6 | <input type="hidden" name="action" value="saveState" /> |
| 7 | 7 | <input type="hidden" name="fWorkflowId" value="{$oWorkflow->getId()}" /> |
| 8 | 8 | <input type="hidden" name="fStateId" value="{$oState->getId()}" /> |
| 9 | 9 | <input type="textbox" name="fName" value="{$oState->getName()|escape}" /> |
| 10 | 10 | <div class="form_actions"> |
| 11 | - <input type="submit" name="submit" value="Save" /> | |
| 11 | + <input type="submit" name="submit" value="{i18n}Save{/i18n}" /> | |
| 12 | 12 | </div> |
| 13 | 13 | </fieldset> |
| 14 | 14 | </form> |
| ... | ... | @@ -19,30 +19,30 @@ |
| 19 | 19 | <input type="hidden" name="fStateId" value="{$oState->getId()}" /> |
| 20 | 20 | |
| 21 | 21 | <fieldset> |
| 22 | -<legend>Inform Which Users?</legend> | |
| 23 | -<p class="descriptiveText">Please select which roles or groups should be | |
| 24 | -informed when this state is reached.</p> | |
| 22 | +<legend>{i18n}Inform Which Users?{/i18n}</legend> | |
| 23 | +<p class="descriptiveText">{i18n}Please select which roles or groups should be | |
| 24 | +informed when this state is reached.{/i18n}</p> | |
| 25 | 25 | |
| 26 | 26 | |
| 27 | -<h3>Roles</h3> | |
| 27 | +<h3>{i18n}Roles{/i18n}</h3> | |
| 28 | 28 | {entity_checkboxes entities=$aRoles name="fRoleIds" multiple="true" selected=$aInformed.role assign=aBoxes} |
| 29 | 29 | {foreach from=$aBoxes item=sBox} |
| 30 | 30 | {$sBox}<br /> |
| 31 | 31 | {/foreach} |
| 32 | 32 | |
| 33 | -<h3>Groups</h3> | |
| 33 | +<h3>{i18n}Groups{/i18n}</h3> | |
| 34 | 34 | {entity_checkboxes entities=$aGroups name="fGroupIds" multiple="true" selected=$aInformed.group assign=aBoxes} |
| 35 | 35 | {foreach from=$aBoxes item=sBox} |
| 36 | 36 | {$sBox}<br /> |
| 37 | 37 | {/foreach} |
| 38 | 38 | |
| 39 | 39 | {* |
| 40 | -<h3>Users</h3> | |
| 40 | +<h3>{i18n}Users{/i18n}</h3> | |
| 41 | 41 | {entity_checkboxes entities=$aUsers name="fUserIds" multiple="true" selected=$aInformed.user assign=aBoxes} |
| 42 | 42 | {foreach from=$aBoxes item=sBox} |
| 43 | 43 | {$sBox}<br /> |
| 44 | 44 | {/foreach} |
| 45 | -<input type="submit" name="submit" value="Save" /> | |
| 45 | +<input type="submit" name="submit" value="{i18n}Save{/i18n}" /> | |
| 46 | 46 | |
| 47 | 47 | </form> |
| 48 | 48 | *} |
| ... | ... | @@ -50,19 +50,19 @@ informed when this state is reached.</p> |
| 50 | 50 | </fieldset> |
| 51 | 51 | |
| 52 | 52 | |
| 53 | -<h3>Assigned Permissions</h3> | |
| 54 | -<p class="descriptiveText">While in this workflow state, additional permissions | |
| 53 | +<h3>{i18n}Assigned Permissions{/i18n}</h3> | |
| 54 | +<p class="descriptiveText">{i18n}While in this workflow state, additional permissions | |
| 55 | 55 | may be given. This is done either to expose the document to more users |
| 56 | 56 | or to allow a particular role to be fulfilled before a workflow |
| 57 | -transition can be accomplished.</p> | |
| 57 | +transition can be accomplished.{/i18n}</p> | |
| 58 | 58 | |
| 59 | 59 | |
| 60 | 60 | <fieldset> |
| 61 | -<legend>Transitions</legend> | |
| 61 | +<legend>{i18n}Transitions{/i18n}</legend> | |
| 62 | 62 | {if $aTransitionsTo} |
| 63 | 63 | |
| 64 | 64 | |
| 65 | -<h3>Transitions to this state</h3> | |
| 65 | +<h3>{i18n}Transitions to this state{/i18n}</h3> | |
| 66 | 66 | {if (!empty($aTransitionsTo))} |
| 67 | 67 | <ul> |
| 68 | 68 | {foreach from=$aTransitionsTo item=oTransition} |
| ... | ... | @@ -73,12 +73,12 @@ title="Transition |
| 73 | 73 | {/foreach} |
| 74 | 74 | </ul> |
| 75 | 75 | {else} |
| 76 | -No transitions lead to this state. | |
| 76 | +{i18n}No transitions lead to this state.{/i18n} | |
| 77 | 77 | {/if} |
| 78 | 78 | |
| 79 | 79 | {/if} |
| 80 | 80 | |
| 81 | -<h3>Transitions from this state</h3> | |
| 81 | +<h3>{i18n}Transitions from this state{/i18n}</h3> | |
| 82 | 82 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 83 | 83 | <input type="hidden" name="action" value="saveTransitions" /> |
| 84 | 84 | <input type="hidden" name="fWorkflowId" value="{$oWorkflow->getId()}" /> |
| ... | ... | @@ -87,10 +87,10 @@ No transitions lead to this state. |
| 87 | 87 | {if (!empty($aTransitions))} |
| 88 | 88 | {entity_checkboxes entities=$aTransitions name="fTransitionIds" multiple="true" selected=$aTransitionsSelected} |
| 89 | 89 | <div class="form_actions"> |
| 90 | -<input type="submit" name="submit" value="Save" /> | |
| 90 | +<input type="submit" name="submit" value="{i18n}Save{/i18n}" /> | |
| 91 | 91 | </div> |
| 92 | 92 | {else} |
| 93 | -No transitions defined. | |
| 93 | +{i18n}No transitions defined.{/i18n} | |
| 94 | 94 | {/if} |
| 95 | 95 | </form> |
| 96 | 96 | </fieldset> | ... | ... |
templates/ktcore/workflow/editTransition.smarty
| 1 | -<h2>Transition: {$oTransition->getName()|escape}</h2> | |
| 1 | +<h2>{i18n}Transition{/i18n}: {$oTransition->getName()|escape}</h2> | |
| 2 | 2 | |
| 3 | 3 | |
| 4 | 4 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 5 | 5 | <fieldset> |
| 6 | -<legend>Edit transition properties</legend> | |
| 6 | +<legend>{i18n}Edit transition properties{/i18n}</legend> | |
| 7 | 7 | |
| 8 | -<p class="helpText">Select the target state of the transition, and | |
| 8 | +<p class="helpText">{i18n}Select the target state of the transition, and | |
| 9 | 9 | select the permission, group, and/or role necessary to perform the |
| 10 | 10 | transition. Selecting more than one of permission, group, or role will |
| 11 | 11 | require that the user wishing to perform the transition fulfil every |
| 12 | -requirement.</p> | |
| 12 | +requirement.{/i18n}</p> | |
| 13 | 13 | |
| 14 | 14 | <input type="hidden" name="action" value="saveTransition" /> |
| 15 | 15 | <input type="hidden" name="fWorkflowId" value="{$oWorkflow->getId()}" /> |
| ... | ... | @@ -20,7 +20,7 @@ requirement.</p> |
| 20 | 20 | {/foreach} |
| 21 | 21 | |
| 22 | 22 | <div class="form_actions"> |
| 23 | -<input type="submit" name="submit" value="Save" /> | |
| 23 | +<input type="submit" name="submit" value="{i18n}Save{/i18n}" /> | |
| 24 | 24 | </div> |
| 25 | 25 | </fieldset> |
| 26 | 26 | </form> | ... | ... |
templates/ktcore/workflow/editWorkflow.smarty
| 1 | -<h2>Workflow: {$oWorkflow->getName()|escape}</h2> | |
| 1 | +<h2>{i18n}Workflow{/i18n}: {$oWorkflow->getName()|escape}</h2> | |
| 2 | 2 | |
| 3 | 3 | |
| 4 | 4 | |
| 5 | 5 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 6 | 6 | <fieldset> |
| 7 | -<legend>Edit workflow properties</legend> | |
| 7 | +<legend>{i18n}Edit workflow properties{/i18n}</legend> | |
| 8 | 8 | <input type="hidden" name="action" value="saveWorkflow" /> |
| 9 | 9 | <input type="hidden" name="fWorkflowId" value="{$oWorkflow->getId()}" /> |
| 10 | 10 | |
| ... | ... | @@ -13,7 +13,7 @@ |
| 13 | 13 | {/foreach} |
| 14 | 14 | |
| 15 | 15 | <div class="form_actions"> |
| 16 | -<input type="submit" name="submit" value="Update workflow properties" /> | |
| 16 | +<input type="submit" name="submit" value="{i18n}Update workflow properties{/i18n}" /> | |
| 17 | 17 | </div> |
| 18 | 18 | </fieldset> |
| 19 | 19 | </form> |
| ... | ... | @@ -22,7 +22,7 @@ |
| 22 | 22 | <p class="descriptiveText"><strong>FIXME</strong> insert intelligent help.</p> |
| 23 | 23 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 24 | 24 | <fieldset> |
| 25 | -<legend>Create a new state</legend> | |
| 25 | +<legend>{i18n}Create a new state{/i18n}</legend> | |
| 26 | 26 | <input type="hidden" name="action" value="newState" /> |
| 27 | 27 | <input type="hidden" name="fWorkflowId" value="{$oWorkflow->getId()}" /> |
| 28 | 28 | |
| ... | ... | @@ -32,14 +32,14 @@ |
| 32 | 32 | {/foreach} |
| 33 | 33 | |
| 34 | 34 | <div class="form_actions"> |
| 35 | -<input type="submit" name="submit" value="Create state" /> | |
| 35 | +<input type="submit" name="submit" value="{i18n}Create state{/i18n}" /> | |
| 36 | 36 | </div> |
| 37 | 37 | </fieldset> |
| 38 | 38 | </form> |
| 39 | 39 | |
| 40 | 40 | {if $aStates} |
| 41 | -<h4>Existing states</h4> | |
| 42 | -<p class="descriptiveText">Select a state to update its properties.</p> | |
| 41 | +<h4>{i18n}Existing states{/i18n}</h4> | |
| 42 | +<p class="descriptiveText">{i18n}Select a state to update its properties.{/i18n}</p> | |
| 43 | 43 | <ul> |
| 44 | 44 | {foreach from=$aStates item=oState} |
| 45 | 45 | <li><a |
| ... | ... | @@ -53,13 +53,13 @@ title="State {$oState->getId()}">{$oState->getName()|escape}</a></li> |
| 53 | 53 | |
| 54 | 54 | |
| 55 | 55 | |
| 56 | -<h3>Transitions</h3> | |
| 56 | +<h3>{i18n}Transitions{/i18n}</h3> | |
| 57 | 57 | |
| 58 | 58 | <p class="descriptiveText"><strong>FIXME</strong> insert intelligent help.</p> |
| 59 | 59 | |
| 60 | 60 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 61 | 61 | <fieldset> |
| 62 | -<legend>Create a new transition</legend> | |
| 62 | +<legend>{i18n}Create a new transition{/i18n}</legend> | |
| 63 | 63 | <input type="hidden" name="action" value="newTransition" /> |
| 64 | 64 | <input type="hidden" name="fWorkflowId" value="{$oWorkflow->getId()}" /> |
| 65 | 65 | |
| ... | ... | @@ -69,14 +69,14 @@ title="State {$oState->getId()}">{$oState->getName()|escape}</a></li> |
| 69 | 69 | {/foreach} |
| 70 | 70 | |
| 71 | 71 | <div class="form_actions"> |
| 72 | -<input type="submit" name="submit" value="Create transition" /> | |
| 72 | +<input type="submit" name="submit" value="{i18n}Create transition{/i18n}" /> | |
| 73 | 73 | </div> |
| 74 | 74 | </fieldset> |
| 75 | 75 | </form> |
| 76 | 76 | |
| 77 | 77 | |
| 78 | 78 | {if $aTransitions} |
| 79 | -<h3>Existing transitions</h3> | |
| 79 | +<h3>{i18n}Existing transitions{/i18n}</h3> | |
| 80 | 80 | |
| 81 | 81 | <ul> |
| 82 | 82 | {foreach from=$aTransitions item=oTransition} |
| ... | ... | @@ -92,7 +92,7 @@ title="Transition {$oTransition->getId()}">{$oTransition->getName()|escape}</a>< |
| 92 | 92 | |
| 93 | 93 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 94 | 94 | <fieldset> |
| 95 | -<legend>Actions controlled</legend> | |
| 95 | +<legend>{i18n}Actions controlled{/i18n}</legend> | |
| 96 | 96 | |
| 97 | 97 | <p class="descriptiveText"><strong>FIXME</strong> be helpful</p> |
| 98 | 98 | |
| ... | ... | @@ -106,7 +106,7 @@ title="Transition {$oTransition->getId()}">{$oTransition->getName()|escape}</a>< |
| 106 | 106 | {/foreach} |
| 107 | 107 | </ul> |
| 108 | 108 | <div class="form_actions"> |
| 109 | - <input type="submit" name="submit" value="Set controlled actions" /> | |
| 109 | + <input type="submit" name="submit" value="{i18n}Set controlled actions{/i18n}" /> | |
| 110 | 110 | </div> |
| 111 | 111 | </fieldset> |
| 112 | 112 | </form> | ... | ... |
templates/ktcore/workflow/listWorkflows.smarty
| 1 | -<h2>Workflow</h2> | |
| 1 | +<h2>{i18n}Workflow{/i18n}</h2> | |
| 2 | 2 | |
| 3 | 3 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 4 | 4 | <fieldset> |
| 5 | -<legend>Create a new workflow</legend> | |
| 5 | +<legend>{i18n}Create a new workflow{/i18n}</legend> | |
| 6 | 6 | |
| 7 | 7 | <input type="hidden" name="action" value="newWorkflow" /> |
| 8 | 8 | |
| ... | ... | @@ -12,15 +12,15 @@ |
| 12 | 12 | {/foreach} |
| 13 | 13 | |
| 14 | 14 | <div class="form_actions"> |
| 15 | - <input type="submit" name="submit" value="Create" /> | |
| 15 | + <input type="submit" name="submit" value="{i18n}Create{/i18n}" /> | |
| 16 | 16 | </div> |
| 17 | 17 | </fieldset> |
| 18 | 18 | </form> |
| 19 | 19 | |
| 20 | 20 | |
| 21 | 21 | {if $aWorkflow} |
| 22 | -<h3>Existing workflows</h3> | |
| 23 | -<p class="descriptiveText">Select a workflow to modify.</p> | |
| 22 | +<h3>{i18n}Existing workflows{/i18n}</h3> | |
| 23 | +<p class="descriptiveText">{i18n}Select a workflow to modify.{/i18n}</p> | |
| 24 | 24 | <ul> |
| 25 | 25 | {foreach from=$aWorkflow item=oWorkflow} |
| 26 | 26 | <li><a href="?action=editWorkflow&fWorkflowId={$oWorkflow->getId()}" title="Workflow: {$oWorkflow->getId()}">{$oWorkflow->getName()}</a></li> | ... | ... |
templates/ktstandard/action/discussion.smarty
| 1 | 1 | {if $threads} |
| 2 | -<h3>Existing threads</h3> | |
| 2 | +<h3>{i18n}Existing threads{/i18n}</h3> | |
| 3 | 3 | <table class="listing" cellspacing="0" cellpadding="0"> |
| 4 | 4 | <thead> |
| 5 | 5 | <tr> |
| 6 | - <th>Subject</th> | |
| 7 | - <th>Creator</th> | |
| 8 | - <th>Views</th> | |
| 9 | - <th>Replies</th> | |
| 10 | - <th>Last activity</th> | |
| 6 | + <th>{i18n}Subject{/i18n}</th> | |
| 7 | + <th>{i18n}Creator{/i18n}</th> | |
| 8 | + <th>{i18n}Views{/i18n}</th> | |
| 9 | + <th>{i18n}Replies{/i18n}</th> | |
| 10 | + <th>{i18n}Last activity{/i18n}</th> | |
| 11 | 11 | </tr> |
| 12 | 12 | </thead> |
| 13 | 13 | <tbody> |
| ... | ... | @@ -17,19 +17,19 @@ |
| 17 | 17 | </tbody> |
| 18 | 18 | </table> |
| 19 | 19 | {else} |
| 20 | - <p class="descriptiveText">There are no existing threads for this document</p> | |
| 20 | + <p class="descriptiveText">{i18n}There are no existing threads for this document{/i18n}</p> | |
| 21 | 21 | {/if} |
| 22 | 22 | |
| 23 | 23 | <form method="POST" action="{$smarty.server.PHP_SELF}"> |
| 24 | 24 | <input type="hidden" name="action" value="newthread" /> |
| 25 | 25 | <input type="hidden" name="fDocumentId" value="{$context->oDocument->getId()}" /> |
| 26 | -<fieldset><legend>Create a new thread</legend> | |
| 26 | +<fieldset><legend>{i18n}Create a new thread{/i18n}</legend> | |
| 27 | 27 | {foreach from=$fields item=oWidget} |
| 28 | 28 | {$oWidget->render()} |
| 29 | 29 | {/foreach} |
| 30 | 30 | |
| 31 | 31 | <div class="form_actions "> |
| 32 | - <input type="submit" name="submit" value="Create a new thread"> | |
| 32 | + <input type="submit" name="submit" value="{i18n}Create a new thread{/i18n}" /> | |
| 33 | 33 | </div> |
| 34 | 34 | </fieldset> |
| 35 | 35 | </form> | ... | ... |
templates/ktstandard/action/discussion_comment_list_item.smarty
| ... | ... | @@ -10,8 +10,14 @@ dl.kt-discussion-comment > dt { |
| 10 | 10 | {$context->oPage->requireCSSStandalone($sCSS)} |
| 11 | 11 | |
| 12 | 12 | <dl class="kt-discussion-comment"> |
| 13 | - <dt>Posted</dt> | |
| 14 | - <dd>by {$creator->getName()} at {$comment->getDate()}</dd> | |
| 13 | + <dt>{i18n}Posted{/i18n}</dt> | |
| 14 | + {capture name=$name} | |
| 15 | + {$creator->getName()} | |
| 16 | + {/capture} | |
| 17 | + {capture name=$date} | |
| 18 | + {$comment->getDate()} | |
| 19 | + {/capture} | |
| 20 | + <dd>{i18n arg_name=$name arg_date=$date}by #name# at #date#{/i18n}</dd> | |
| 15 | 21 | <dt>Subject</dt> |
| 16 | 22 | <dd>{$comment->getSubject()}</dd> |
| 17 | 23 | |
| ... | ... | @@ -19,4 +25,4 @@ dl.kt-discussion-comment > dt { |
| 19 | 25 | <dd>{$comment->getBody()}</dd> |
| 20 | 26 | </dl> |
| 21 | 27 | |
| 22 | -<a class="kt-discussion-post-link" href="#kt-discussion-post">Post a reply</a> | |
| 28 | +<a class="kt-discussion-post-link" href="#kt-discussion-post">{i18n}Post a reply{/i18n}</a> | ... | ... |
templates/ktstandard/action/discussion_thread.smarty
| ... | ... | @@ -6,14 +6,14 @@ |
| 6 | 6 | <input type="hidden" name="action" value="postreply" /> |
| 7 | 7 | <input type="hidden" name="fDocumentId" value="{$context->oDocument->getId()}" /> |
| 8 | 8 | <input type="hidden" name="fThreadId" value="{$thread->getId()}" /> |
| 9 | -<fieldset><legend>Post a reply</legend> | |
| 9 | +<fieldset><legend>{i18n}Post a reply{/i18n}</legend> | |
| 10 | 10 | <a name="kt-discussion-post"></a> |
| 11 | 11 | {foreach from=$fields item=oWidget} |
| 12 | 12 | {$oWidget->render()} |
| 13 | 13 | {/foreach} |
| 14 | 14 | |
| 15 | 15 | <div class="form_actions "> |
| 16 | - <input type="submit" name="submit" value="Post a reply" /> | |
| 16 | + <input type="submit" name="submit" value="{i18n}Post a reply{/i18n}" /> | |
| 17 | 17 | </div> |
| 18 | 18 | </fieldset> |
| 19 | 19 | </form> | ... | ... |
templates/ktstandard/action/email.smarty
| ... | ... | @@ -37,7 +37,7 @@ addLoadEvent(kt_email_onload); |
| 37 | 37 | {/capture} |
| 38 | 38 | {$context->oPage->requireJSStandalone($sJavascript)} |
| 39 | 39 | |
| 40 | -<h2>Email document</h2> | |
| 40 | +<h2>{i18n}Email document{/i18n}</h2> | |
| 41 | 41 | |
| 42 | 42 | <form id="kt-email-form" method="POST"> |
| 43 | 43 | <input type="hidden" name="action" value="email" /> |
| ... | ... | @@ -70,7 +70,7 @@ Administrator</OPTION> |
| 70 | 70 | {/foreach} |
| 71 | 71 | |
| 72 | 72 | <div class="form_actions "> |
| 73 | - <input type="submit" name="submit" value="Email"> | |
| 73 | + <input type="submit" name="submit" value="{i18n}Email{/i18n}" /> | |
| 74 | 74 | </div> |
| 75 | 75 | |
| 76 | 76 | <input type="hidden" name="groupNewLeft" /> | ... | ... |
templates/ktstandard/authentication/ldapadduser.smarty
| ... | ... | @@ -3,14 +3,14 @@ |
| 3 | 3 | <input type="hidden" name="action" value="addUserFromSource" /> |
| 4 | 4 | <input type="hidden" name="source_id" value="{$source->getId()}" /> |
| 5 | 5 | <fieldset> |
| 6 | - <legend>Create a new user</legend> | |
| 6 | + <legend>{i18n}Create a new user{/i18n}</legend> | |
| 7 | 7 | {foreach item=oWidget from=$fields} |
| 8 | 8 | {$oWidget->render()} |
| 9 | 9 | {/foreach} |
| 10 | 10 | <input type="hidden" name="dn" value="{$dn}" /> |
| 11 | 11 | <div class="form_actions"> |
| 12 | - <input type="submit" name="submit[create]" value="create user" /> | |
| 13 | - <a href="?action=main" class="ktCancelLink">Cancel</a> | |
| 12 | + <input type="submit" name="submit[create]" value="{i18n}create user{/i18n}" /> | |
| 13 | + <a href="?action=main" class="ktCancelLink">{i18n}Cancel{/i18n}</a> | |
| 14 | 14 | </div> |
| 15 | 15 | </fieldset> |
| 16 | 16 | </form> | ... | ... |
templates/ktstandard/authentication/ldapeditsource.smarty
templates/ktstandard/authentication/ldapedituser.smarty
templates/ktstandard/authentication/ldapsearchuser.smarty
| 1 | 1 | <form method="POST" action="{$smarty.server.PHP_SELF}"> |
| 2 | -<p class="descriptiveText">Since there may be many users in the system, please | |
| 3 | -provider a few letters from the person's user name to begin.</p> | |
| 2 | +<p class="descriptiveText">{i18n}Since there may be many users in the | |
| 3 | +system, please provider a few letters from the person's user name to | |
| 4 | +begin.{/i18n}</p> | |
| 4 | 5 | |
| 5 | 6 | <input type="hidden" name="action" value="addUserFromSource" /> |
| 6 | 7 | <input type="hidden" name="source_id" value="{$source->getId()}" /> |
| ... | ... | @@ -9,15 +10,15 @@ provider a few letters from the person's user name to begin.</p> |
| 9 | 10 | {$oWidget->render()} |
| 10 | 11 | {/foreach} |
| 11 | 12 | <div class="form_actions"> |
| 12 | - <input type="submit" value="search for users" /> | |
| 13 | -</div class="form_actions"> | |
| 13 | + <input type="submit" value="{i18n}search for users{/i18n}" /> | |
| 14 | +</div> | |
| 14 | 15 | </fieldset> |
| 15 | 16 | </form> |
| 16 | 17 | |
| 17 | 18 | {if !$search_results} |
| 18 | 19 | <div class="ktInfo"> |
| 19 | 20 | <!-- never show a very large set, if you can help it. --> |
| 20 | - <p>No search specified, or no results for your search. Please choose some criteria from the list above to find users.</p> | |
| 21 | + <p>{i18n}No search specified, or no results for your search. Please choose some criteria from the list above to find users.{/i18n}</p> | |
| 21 | 22 | </div> |
| 22 | 23 | {else} |
| 23 | 24 | <form method="POST" action="{$smarty.server.PHP_SELF}"> |
| ... | ... | @@ -26,9 +27,9 @@ provider a few letters from the person's user name to begin.</p> |
| 26 | 27 | <table class="listing"> |
| 27 | 28 | <thead> |
| 28 | 29 | <tr> |
| 29 | - <th>Name</th> | |
| 30 | - <th>LDAP User Name</th> | |
| 31 | - <th>Distinguished Name (LDAP DN)</th> | |
| 30 | + <th>{i18n}Name{/i18n}</th> | |
| 31 | + <th>{i18n}LDAP User Name{/i18n}</th> | |
| 32 | + <th>{i18n}Distinguished Name (LDAP DN){/i18n}</th> | |
| 32 | 33 | </tr> |
| 33 | 34 | </thead> |
| 34 | 35 | <tbody> |
| ... | ... | @@ -46,6 +47,6 @@ value="{$potential_user.$identifier_field}" />{$potential_user.cn}</td> |
| 46 | 47 | --> |
| 47 | 48 | </tbody> |
| 48 | 49 | </table> |
| 49 | -<input type="submit" name="submit[chosen]" value="Add" /> | |
| 50 | +<input type="submit" name="submit[chosen]" value="{i18n}Add{/i18n}" /> | |
| 50 | 51 | </form> |
| 51 | 52 | {/if} | ... | ... |
templates/ktstandard/subscriptions/manage.smarty
| 1 | 1 | {if !$aFolderSubscriptions && !$aDocumentSubscriptions} |
| 2 | 2 | <div class="ktError"> |
| 3 | -<p>You have no subscriptions</p> | |
| 3 | +<p>{i18n}You have no subscriptions{/i18n}</p> | |
| 4 | 4 | </div> |
| 5 | 5 | {else} |
| 6 | 6 | |
| 7 | -<p class="descriptiveText">You are subscribed to the folders listed | |
| 8 | -below. You can remove your subscription by selecting the folders to | |
| 9 | -which you no longer wish to subscribe.</p> | |
| 7 | +<p class="descriptiveText">{i18n}You are subscribed to the folders and | |
| 8 | +documents listed below. You can remove your subscription by selecting | |
| 9 | +the folders and documents to which you no longer wish to | |
| 10 | +subscribe.{/i18n}</p> | |
| 10 | 11 | |
| 11 | 12 | <form method="POST" action="{$smarty.server.PHP_SELF}"> |
| 12 | 13 | <input type="hidden" name="action" value="removeSubscriptions" /> |
| 13 | -<fieldset><legend>Subscriptions</legend> | |
| 14 | +<fieldset><legend>{i18n}Subscriptions{/i18n}</legend> | |
| 14 | 15 | |
| 15 | 16 | {if $aFolderSubscriptions} |
| 16 | 17 | {entity_checkboxes name="foldersubscriptions" entities=$aFolderSubscriptions method=getContentLink assign=aCheckboxes} |
| ... | ... | @@ -27,7 +28,7 @@ which you no longer wish to subscribe.</p> |
| 27 | 28 | {/if} |
| 28 | 29 | |
| 29 | 30 | <div class="form_actions "> |
| 30 | - <input type="submit" name="submit" value="Remove subscription" /> | |
| 31 | + <input type="submit" name="submit" value="{i18n}Remove subscription{/i18n}" /> | |
| 31 | 32 | </div> |
| 32 | 33 | </fieldset> |
| 33 | 34 | </form> | ... | ... |