From 2e2b0031f75f97b87dc4780a4482b5eae916836b Mon Sep 17 00:00:00 2001 From: nbm Date: Mon, 5 Dec 2005 20:42:17 +0000 Subject: [PATCH] Add i18n tags around translatable text. --- templates/ktcore/documenttypes/edit.smarty | 18 +++++++++--------- templates/ktcore/documenttypes/folderassign.smarty | 15 ++++++++------- templates/ktcore/documenttypes/list.smarty | 23 ++++++++++++----------- templates/ktcore/edit_conditional.smarty | 35 +++++++++++++++++++---------------- templates/ktcore/edit_fieldset.smarty | 34 ++++++++++++++++------------------ templates/ktcore/edit_lookuptrees.smarty | 22 +++++++++++----------- templates/ktcore/manage_fieldsets.smarty | 22 +++++++++++----------- templates/ktcore/manage_lookuptrees.smarty | 12 ++++++------ templates/ktcore/metadata/edit.smarty | 30 +++++++++++++++--------------- templates/ktcore/metadata/editField.smarty | 60 +++++++++++++++++++++++++++++------------------------------- templates/ktcore/metadata/editFieldset.smarty | 64 ++++++++++++++++++++++++++++++++-------------------------------- templates/ktcore/metadata/listFieldsets.smarty | 22 +++++++++++----------- 12 files changed, 179 insertions(+), 178 deletions(-) diff --git a/templates/ktcore/documenttypes/edit.smarty b/templates/ktcore/documenttypes/edit.smarty index 1e1b61c..4ec6f80 100644 --- a/templates/ktcore/documenttypes/edit.smarty +++ b/templates/ktcore/documenttypes/edit.smarty @@ -1,4 +1,4 @@ -

Document Type: { $oDocumentType->getName() }

+

{i18n}Document Type{/i18n}: { $oDocumentType->getName() }

@@ -7,21 +7,21 @@
-

Type-specific field sets

+

{i18n}Type-specific field sets{/i18n}

{ if $aCurrentFieldsets }
-Linked Fieldsets +{i18n}Linked Fieldsets{/i18n} - + @@ -34,18 +34,18 @@
Fieldset{i18n}Fieldset{/i18n}
- +
{else} -

No fieldsets are currently associated with this type.

+

{i18n}No fieldsets are currently associated with this type.{/i18n}

{ /if } { if $aAvailableFieldsets }
-Associate Fieldsets +{i18n}Associate Fieldsets{/i18n} @@ -53,11 +53,11 @@ {$availableWidget->render()}
- +
{else} -

There are no fieldsets available for adding. FIXME link to fieldset creation from here.

+

{i18n}There are no fieldsets available for adding.{/i18n} FIXME link to fieldset creation from here.

{ /if } diff --git a/templates/ktcore/documenttypes/folderassign.smarty b/templates/ktcore/documenttypes/folderassign.smarty index 0e99831..c577bcb 100644 --- a/templates/ktcore/documenttypes/folderassign.smarty +++ b/templates/ktcore/documenttypes/folderassign.smarty @@ -1,20 +1,21 @@ -

Document types

+

{i18n}Document types{/i18n}

-

Select document types allowed in folder:

+

{i18n}Select document types allowed in folder{/i18n}:

- - - + +
Folder{$oFolder->getName()}
Restrict document types{boolean_checkbox name="restricted" bool=$oFolder->getRestrictDocumentTypes() }
Document Types +
{i18n}Folder{/i18n}{$oFolder->getName()}
{i18n}Restrict document types{/i18n}{boolean_checkbox name="restricted" bool=$oFolder->getRestrictDocumentTypes() }
{i18n}Document Types{/i18n} {entity_select entities=$document_types selected=$selected_types name="document_types[]" multiple="yes"}
- +
{assign var="iFolderId" value=$oFolder->getId()} -Back to folder +{i18n}Back to folder{/i18n} diff --git a/templates/ktcore/documenttypes/list.smarty b/templates/ktcore/documenttypes/list.smarty index 821c508..3f8967b 100644 --- a/templates/ktcore/documenttypes/list.smarty +++ b/templates/ktcore/documenttypes/list.smarty @@ -1,35 +1,36 @@ -

Document Types

+

{i18n}Document Types{/i18n}

-Create a new document type +{i18n}Create a new document type{/i18n} -

To start the process of creating a new document type, -please enter a name for the type below.

+

{i18n}To start the process of creating a new document type, +please enter a name for the type below.{/i18n}

{foreach item=oWidget from=$add_fields} {$oWidget->render()} {/foreach}
- - + +
-Existing document types +{i18n}Existing document types{/i18n} -

Select a document type from the list below to change -its details, or click on the delete button to remove it from the system.

+

{i18n}Select a document type from the list below to change +its details, or click on the delete button to remove it from the +system.{/i18n}

- + @@ -38,7 +39,7 @@ its details, or click on the delete button to remove it from the system.

{ if $oDocumentType->isUsed() }   { else } -Delete Type +{i18n}Delete Type{/i18n} {/if}
Document Type{i18n}Document Type{/i18n}
diff --git a/templates/ktcore/edit_conditional.smarty b/templates/ktcore/edit_conditional.smarty index 3260ef9..8cb0c4e 100644 --- a/templates/ktcore/edit_conditional.smarty +++ b/templates/ktcore/edit_conditional.smarty @@ -1,21 +1,23 @@ -

Edit Fieldset

+

{i18n}Edit Fieldset{/i18n}

-Current Fields in Set -

Fields which are currently not included in any set can be added to this set.

+{i18n}Current Fields in Set{/i18n} + +

{i18n}Fields which are currently not included in any set can be added +to this set.{/i18n}

{if (empty($children))} -

No fields associated with this fieldset.

+

{i18n}No fields associated with this fieldset.{/i18n}

{else} {foreach item=oField from=$children} {$oField->getName()} {/foreach} {/if}
- +
@@ -23,14 +25,15 @@
-Add Field to set -

Fields which are currently not included in any set can be added to this set.

+{i18n}Add Field to set{/i18n} +

{i18n}Fields which are currently not included in any set can be added +to this set.{/i18n}

{if (empty($freefields))} -

No free fields.

+

{i18n}No free fields.{/i18n}

{else} {/if}
- +
@@ -47,14 +50,14 @@ {if ($fieldSet->canBeMadeConditional() === true)}
-Make this fieldset conditional +{i18n}Make this fieldset conditional{/i18n}
{if (empty($freefields))} -

No free fields.

+

{i18n}No free fields.{/i18n}

{else} {/if}
- +
{else} {if ($fieldSet->getIsConditional())} -Field has conditions attached to it.. +{i18n}Field has conditions attached to it.{/i18n}
    -
  • Manage conditions.
  • -
  • Test conditions
  • +
  • {i18n}Manage conditions.{/i18n}
  • +
  • {i18n}Test conditions{/i18n}
{else} -

Fieldset cannot be made conditional. One of the fields must not be a lookup.

+

{i18n}Fieldset cannot be made conditional. One of the fields must not be a lookup.{/i18n}

{/if} {/if} diff --git a/templates/ktcore/edit_fieldset.smarty b/templates/ktcore/edit_fieldset.smarty index 3260ef9..3033d7b 100644 --- a/templates/ktcore/edit_fieldset.smarty +++ b/templates/ktcore/edit_fieldset.smarty @@ -1,36 +1,34 @@ -

Edit Fieldset

+

{i18n}Edit Fieldset{/i18n}

-Current Fields in Set -

Fields which are currently not included in any set can be added to this set.

+{i18n}Current Fields in Set{/i18n} +

{i18n}Fields which are currently not included in any set can be added to this set.{/i18n}

{if (empty($children))} -

No fields associated with this fieldset.

+

{i18n}No fields associated with this fieldset.{/i18n}

{else} {foreach item=oField from=$children} {$oField->getName()} {/foreach} {/if}
- +
- -
-Add Field to set -

Fields which are currently not included in any set can be added to this set.

+{i18n}Add Field to set{/i18n} +

{i18n}Fields which are currently not included in any set can be added to this set.{/i18n}

{if (empty($freefields))} -

No free fields.

+

{i18n}No free fields.{/i18n}

{else} {/if}
- +
@@ -47,14 +45,14 @@ {if ($fieldSet->canBeMadeConditional() === true)}
-Make this fieldset conditional +{i18n}Make this fieldset conditional{/i18n}
{if (empty($freefields))} -

No free fields.

+

{i18n}No free fields.{/i18n}

{else} {/if}
- +
{else} {if ($fieldSet->getIsConditional())} -Field has conditions attached to it.. +{i18n}Field has conditions attached to it.{/i18n}
    -
  • Manage conditions.
  • -
  • Test conditions
  • +
  • {i18n}Manage conditions.{/i18n}
  • +
  • {i18n}Test conditions{/i18n}
{else} -

Fieldset cannot be made conditional. One of the fields must not be a lookup.

+

{i18n}Fieldset cannot be made conditional. One of the fields must not be a lookup.{/i18n}

{/if} {/if} diff --git a/templates/ktcore/edit_lookuptrees.smarty b/templates/ktcore/edit_lookuptrees.smarty index 62a1d15..02cb86b 100644 --- a/templates/ktcore/edit_lookuptrees.smarty +++ b/templates/ktcore/edit_lookuptrees.smarty @@ -37,12 +37,12 @@ {$context->oPage->requireJSResource("thirdpartyjs/MochiKit/Iter.js")} {$context->oPage->requireJSResource("thirdpartyjs/MochiKit/DOM.js")} -

Edit Lookup Tree: {$field->getName()}

+

{i18n}Edit Lookup Tree{/i18n}: {$field->getName()}

- Add New Subcategory + {i18n}Add New Subcategory{/i18n} @@ -54,20 +54,20 @@
- +
{if ($currentNode != 0)} {if (empty($freechildren))} -

No free keywords. Use the "unlink" action on a keyword to -make it available.

+

{i18n}No free keywords. Use the "unlink" action on a keyword to +make it available.{/i18n}

{else}
- Link free keywords. + {i18n}Link free keywords.{/i18n} -

Category: {if ($currentNode == 0)} +

{i18n}Category{/i18n}: {if ($currentNode == 0)} Root {else} {$tree->mapnodes[$currentNode]->getName()} @@ -87,7 +87,7 @@ Root

- +
@@ -95,10 +95,10 @@ Root {/if} -

Preview

+

{i18n}Preview{/i18n}

- Use the +/- arrows to open or close the tree. Bold items are metadata keywords. - To edit a category (including adding or removing keywords) click on the "edit" link. + {i18n}Use the +/- arrows to open or close the tree. Bold items are metadata keywords. + To edit a category (including adding or removing keywords) click on the "edit" link.{/i18n}
{$renderedTree} diff --git a/templates/ktcore/manage_fieldsets.smarty b/templates/ktcore/manage_fieldsets.smarty index 920f35b..5f9d727 100644 --- a/templates/ktcore/manage_fieldsets.smarty +++ b/templates/ktcore/manage_fieldsets.smarty @@ -1,10 +1,10 @@ -

Existing Fieldsets

+

{i18n}Existing Fieldsets{/i18n}

- - - + + + { foreach item=oFieldSet from=$fieldsets } @@ -18,14 +18,14 @@ @@ -33,22 +33,22 @@ { /foreach }
Human NameNamespaceManage{i18n}Human Name{/i18n}{i18n}Namespace{/i18n}{i18n}Manage{/i18n}
Edit + href="{$smarty.server.PHP_SELF}?action=editFieldset&id={$oFieldSet->getId()}">{i18n}Edit{/i18n} {if $oFieldSet->bMandatory == false} Delete + href="{$smarty.server.PHP_SELF}?action=deleteFieldset&id={$oFieldSet->getId()}">{i18n}Delete{/i18n} {else} - Built-in set. + {i18n}Built-in set.{/i18n} {/if}
-

Create a new Fieldset

+

{i18n}Create a new Fieldset{/i18n}

- + - +
Name:{i18n}Name{/i18n}:
Namespace:{i18n}Namespace{/i18n}:
- +
diff --git a/templates/ktcore/manage_lookuptrees.smarty b/templates/ktcore/manage_lookuptrees.smarty index dfbc464..a521d27 100644 --- a/templates/ktcore/manage_lookuptrees.smarty +++ b/templates/ktcore/manage_lookuptrees.smarty @@ -1,29 +1,29 @@ -

Manage Lookup Trees

+

{i18n}Manage Lookup Trees{/i18n}

-Fields that have lookup categories. +{i18n}Fields that have lookup categories.{/i18n} {foreach item=oField from=$treefields} {$oField->getName()} {/foreach}
- +
-

Convert to Trees.

+

{i18n}Convert to Trees.{/i18n}

-Lookup fields without categories. +{i18n}Lookup fields without categories.{/i18n} {foreach item=oField from=$lookupfields} {$oField->getName()} {/foreach}
- +
diff --git a/templates/ktcore/metadata/edit.smarty b/templates/ktcore/metadata/edit.smarty index 7d623ca..96b8b8a 100644 --- a/templates/ktcore/metadata/edit.smarty +++ b/templates/ktcore/metadata/edit.smarty @@ -1,26 +1,26 @@ -

Fieldset: {$oFieldset->getName()|escape}

+

{i18n}Fieldset{/i18n}: {$oFieldset->getName()|escape}

-

Fieldset properties

+

{i18n}Fieldset properties{/i18n}

- + - +
Name{i18n}Name{/i18n}
Namespace{i18n}Namespace{/i18n}
- +
-

Fieldset members

+

{i18n}Fieldset members{/i18n}

{if $oFieldset->getFields() } -

Existing members

+

{i18n}Existing members{/i18n}

    @@ -30,30 +30,30 @@ name="fieldsetids[]" value="{$oField->getId()}">{$oField->getName()|escape} {/foreach}
- +
{/if} -

Add a new field

+

{i18n}Add a new field{/i18n}

- + - +
Name{i18n}Name{/i18n}
Type{i18n}Type{/i18n}
- +
diff --git a/templates/ktcore/metadata/editField.smarty b/templates/ktcore/metadata/editField.smarty index d438774..25e5e4d 100644 --- a/templates/ktcore/metadata/editField.smarty +++ b/templates/ktcore/metadata/editField.smarty @@ -1,25 +1,25 @@ -

Edit Field: {$oField->getName()|escape}

+

{i18n}Edit Field{/i18n}: {$oField->getName()|escape}

-Field properties - - - +{i18n}Field properties{/i18n} + + + - + - +
Name{i18n}Name{/i18n}
Type{i18n}Type{/i18n} {$oField->getType()|escape}
- +
@@ -28,19 +28,19 @@ {assign var="aEnabledMetadata" value=$oField->getEnabledValues()} {assign var="aDisabledMetadata" value=$oField->getDisabledValues()} -

Lookup Values

+

{i18n}Lookup Values{/i18n}

-Add new values +{i18n}Add new values{/i18n} - +
@@ -48,33 +48,32 @@ {if $oField->getHasLookup() and $oField->getHasLookupTree()} {assign var=iFieldId value=$oField->getId()} Manage -lookup tree +href="{"manageLookupTrees"|generateControllerUrl:"action=editTree&field_id=$iFieldId"}">{i18n}Manage +lookup tree{/i18n} {/if} {if $aEnabledMetadata} -
Existing values - - - + + +
    {foreach from=$aEnabledMetadata item=oMetaData}
  • {/foreach}
- - - + + +
@@ -82,27 +81,26 @@ from another source) {if $aDisabledMetadata} -
Disabled values - - - + + +
    {foreach from=$aDisabledMetadata item=oMetaData}
  • {/foreach}
- - - + + +
diff --git a/templates/ktcore/metadata/editFieldset.smarty b/templates/ktcore/metadata/editFieldset.smarty index 29bb516..902fa50 100644 --- a/templates/ktcore/metadata/editFieldset.smarty +++ b/templates/ktcore/metadata/editFieldset.smarty @@ -1,8 +1,8 @@ -

Fieldset: {$oFieldset->getName()|escape}

+

{i18n}Fieldset{/i18n}: {$oFieldset->getName()|escape}

{if $sIncomplete}
-

IncompleteThis conditional fieldset cannot be used:
+

{i18n}Incomplete{/i18n}: {i18n}This conditional fieldset cannot be used{/i18n}:
{$sIncomplete|escape}

{/if} @@ -10,14 +10,14 @@
-Fieldset properties +{i18n}Fieldset properties{/i18n}

FIXME add help text for fieldset editing.

- - + + @@ -29,19 +29,19 @@

-A conditional fieldset contains only lookup fields. The values for each -field can depend on the user's selections for the others. +{i18n}A conditional fieldset contains only lookup fields. The values for each +field can depend on the user's selections for the others.{/i18n}

{if $oFieldset->getIsConditional() } - Yes + {i18n}Yes{/i18n} {else} - No + {i18n}No{/i18n} {/if}
- +
@@ -58,11 +58,11 @@ field can depend on the user's selections for the others. {if ($oFieldset->getIsConditional() || $showForm)}
-Conditionality +{i18n}Conditionality{/i18n}

-A conditional fieldset contains only lookup fields. The values for each -field can depend on the user's selections for the others. +{i18n}A conditional fieldset contains only lookup fields. The values for each +field can depend on the user's selections for the others.{/i18n}

@@ -70,15 +70,15 @@ field can depend on the user's selections for the others. {if $oFieldset->getIsConditional() }
- - - + + +
- - - + + +
{else} @@ -92,9 +92,9 @@ field can depend on the user's selections for the others. {if $showForm}
- - - + + +
{/if} @@ -104,10 +104,10 @@ field can depend on the user's selections for the others.
{else} -

This fieldset cannot be made conditional, since it contains fields which are not lookup types.

+

{i18n}This fieldset cannot be made conditional, since it contains fields which are not lookup types.{/i18n}

{/if} -

Fieldset members

+

{i18n}Fieldset members{/i18n}

FIXME add help text for fieldset members. @@ -117,22 +117,22 @@ field can depend on the user's selections for the others. {if $oFieldset->getFields() }

-Existing members +{i18n}Existing members{/i18n} - - + +
    {foreach from=$oFieldset->getFields() item=oField}
  • +value="{$oField->getId()}" /> {$oField->getName()|escape} (edit) +href="{$smarty.server.PHP_SELF}?action=editField&fFieldId={$oField->getId()}&fFieldsetId={$oFieldset->getId()}">{i18n}edit{/i18n})
  • {/foreach}
- +
@@ -142,7 +142,7 @@ href="{$smarty.server.PHP_SELF}?action=editField&fFieldId={$oField->getId()}&fFi
-Add a new field +{i18n}Add a new field{/i18n}

FIXME add help text for field creation.

@@ -156,7 +156,7 @@ href="{$smarty.server.PHP_SELF}?action=editField&fFieldId={$oField->getId()}&fFi {/foreach}
- +
diff --git a/templates/ktcore/metadata/listFieldsets.smarty b/templates/ktcore/metadata/listFieldsets.smarty index 4f1addc..5dd946f 100644 --- a/templates/ktcore/metadata/listFieldsets.smarty +++ b/templates/ktcore/metadata/listFieldsets.smarty @@ -1,23 +1,23 @@ -

Document Fieldsets

+

{i18n}Document Fieldsets{/i18n}

FIXME add documentation about what fieldsets are, and how to use them.

{ if $fieldsets} -

Existing document fieldsets

+

{i18n}Existing document fieldsets{/i18n}

- - - + + + {foreach from=$fieldsets item=oFieldset}
NameGenericFields{i18n}Name{/i18n}{i18n}Generic{/i18n}{i18n}Fields{/i18n}
- Delete + {i18n}Delete{/i18n} { $oFieldset->getName() } @@ -25,9 +25,9 @@ {if $oFieldset->getIsGeneric()} - Yes + {i18n}Yes{/i18n} {else} - No + {i18n}No{/i18n} {/if} @@ -51,19 +51,19 @@
-
Create a new document fieldset +
{i18n}Create a new document fieldset{/i18n}

FIXME add documentation about what fieldsets are, and how to use them.

- + {foreach item=oWidget from=$creation_fields} {$oWidget->render()} {/foreach}
+
-- libgit2 0.21.4