Commit 4d9faaef23ac9208b3fa1259454e248b88419b8f

Authored by kevin_fourie
1 parent 26334ad1

KTS-1860

"Misc patches for i18n support"
Verified and updated.

Reviewed by: Conrad

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6482 c91229c3-7414-0410-bfa2-8a42b809f60b
i18n/knowledgeTree.pot
... ... @@ -10681,4 +10681,21 @@ msgstr ""
10681 10681  
10682 10682 #: i18n/templates.c:5747
10683 10683 msgid "#appname# #versionname#"
10684   -msgstr ""
10685 10684 \ No newline at end of file
  10685 +msgstr ""
  10686 +
  10687 +#: templates/ktcore/search/administration/savedsearches.smarty:40
  10688 +msgid "Run Search"
  10689 +msgstr ""
  10690 +
  10691 +#: templates/ktcore/dashlets/notifications.smarty:15
  10692 +#: templates/ktcore/dashlets/notifications.smarty:18
  10693 +msgid "Are you sure you wish to clear all notifications?"
  10694 +msgstr ""
  10695 +
  10696 +#: templates/ktcore/documenttypes/list.smarty:74
  10697 +msgid "Are you sure you wish to disable this document type?"
  10698 +msgstr ""
  10699 +
  10700 +#: templates/ktcore/workflow/admin/permissions_overview.smarty:19
  10701 +msgid "Control"
  10702 +msgstr ""
... ...
lib/templating/smartytemplate.inc.php
... ... @@ -164,7 +164,7 @@ class KTSmartyTemplate extends KTTemplate {
164 164 $params['output'] = array();
165 165 if ($none) {
166 166 $params['values'][] = '';
167   - $params['output'][] = 'None';
  167 + $params['output'][] = _kt('None');
168 168 }
169 169 foreach ($entities as $oEntity) {
170 170 $params['values'][] = $oEntity->getId();
... ...
templates/ktcore/assist/assist_notification_details.smarty
... ... @@ -5,9 +5,9 @@
5 5 </p>
6 6  
7 7 <dl>
8   -<dt>Subject</dt>
  8 +<dt>{i18n}Subject{/i18n}</dt>
9 9 <dd>{$subject}</dd>
10   -<dt>Details</dt>
  10 +<dt>{i18n}Details{/i18n}</dt>
11 11 <dd>{$details} </dd>
12 12 </dl>
13 13  
... ...
templates/ktcore/dashlets/notifications.smarty
... ... @@ -12,10 +12,10 @@
12 12 {/if}
13 13 {* clear all link *}
14 14 <a href="{ktLink base="notify.php" query="clearAll=1"}"
15   - kt:deleteMessage="Are you sure you wish to clear all notifications?"
  15 + kt:deleteMessage="{i18n}Are you sure you wish to clear all notifications?{/i18n}"
16 16 class="ktAction ktInline ktDelete">{i18n}Clear all notifications{/i18n}</a>
17 17 <a href="{ktLink base="notify.php" query="clearAll=1"}"
18   - kt:deleteMessage="Are you sure you wish to clear all notifications?"
  18 + kt:deleteMessage="{i18n}Are you sure you wish to clear all notifications?{/i18n}"
19 19 class="ktLinkDelete">{i18n}Clear all notifications{/i18n}</a>
20 20 {else}
21 21 <div class="ktInfo"><p>{i18n}No items require your attention.{/i18n}</p></div>
... ...
templates/ktcore/documenttypes/list.smarty
... ... @@ -72,7 +72,7 @@ its details, or use the enable/disable buttons to change its availability state.
72 72 <a class="ktAction ktAdd" href="{addQS}action=enable&fDocumentTypeId={$oDocumentType->getId()}{/addQS}">{i18n}Enable{/i18n}</a>
73 73 {else}
74 74 <a class="ktAction ktDelete"
75   - kt:deleteMessage="Are you sure you wish to disable this document type?"
  75 + kt:deleteMessage="{i18n}Are you sure you wish to disable this document type?{/i18n}"
76 76 href="{addQS}action=disable&fDocumentTypeId={$oDocumentType->getId()}{/addQS}">{i18n}Disable{/i18n}</a>
77 77 {/if}
78 78 </td>
... ...
templates/ktcore/search/administration/savedsearches.smarty
... ... @@ -36,7 +36,7 @@ newsletters, etc.) based on a category or fieldset value.{/i18n}&lt;/p&gt;
36 36 <td>{if ($iUserId === '')}Global{else}{$context->_getUserName($iUserId)}{/if}</td>
37 37 <td><a href="{addQS}action=edit&fSavedSearchId={$oSearch->getId()}{/addQS}" class="ktAction ktEdit">{i18n}Edit{/i18n}</a></td>
38 38 <td><a href="{addQS}action=delete&fSavedSearchId={$oSearch->getId()}{/addQS}" class="ktAction ktDelete">{i18n}Delete{/i18n}</a></td>
39   - <td><a href="{"booleanSearch"|generateControllerUrl}&qs[action]=performSearch&qs[fSavedSearchId]={$oSearch->getId()}">Run Search</a></td>
  39 + <td><a href="{"booleanSearch"|generateControllerUrl}&qs[action]=performSearch&qs[fSavedSearchId]={$oSearch->getId()}">{i18n}Run Search{/i18n}</a></td>
40 40 </tr>
41 41 {/foreach}
42 42 </tbody>
... ...
templates/ktcore/workflow/admin/new_wizard_step2.smarty
... ... @@ -39,6 +39,6 @@ states. Use the table below to configure this behaviour.{/i18n}&lt;/p&gt;
39 39  
40 40 <div class="form_actions">
41 41 <input type="submit" value="{i18n}Create Workflow{/i18n}" />
42   - <a href="{$smarty.server.PHP_SELF}">Cancel</a>
  42 + <a href="{$smarty.server.PHP_SELF}">{i18n}Cancel{/i18n}</a>
43 43 </div>
44 44 </form>
... ...
templates/ktcore/workflow/admin/permissions_overview.smarty
... ... @@ -16,7 +16,7 @@ specify how it controls permissions.&lt;/strong&gt;{/i18n}&lt;/p&gt;
16 16 <thead>
17 17 <tr>
18 18 <th>{i18n}States{/i18n}</th>
19   - <th class="centered">Control</th>
  19 + <th class="centered">{i18n}Control{/i18n}</th>
20 20 {foreach from=$perms item=oPerm}
21 21 <th class="centered">{i18n}{$oPerm->getHumanName()}{/i18n}</th>
22 22 {/foreach}
... ...