Difference between revisions of "Handling complex translation needs"

From ICA-AtoM
Jump to navigation Jump to search
 
(29 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<span class="pageTitle">Translate template tokens</span>
+
[[Main Page]] > [[User manual]] > [[Translate]] > [[Translate interface]] > Handling complex translation needs
  
[[Main Page]] > [[User manual|(UM) User manual]] > [[UM-5|UM-5 Translate content / interface]] > [[UM-5.5|UM-5.5 Translate interface]] > UM-5.5.1 Translate template tokens
+
[[Image:UM-5.3.1.png|500px|right|thumb|Some interface element names include template tokens]]
  
 +
The names of some [[Glossary#User interface|user interface]] elements include tokens which are variables whose value is determined dynamically by the context. Tokens are represented by a number enclosed in percent signs (e.g. "%1%"). Tokens must be included in the translation, but because different languages have different grammar rules, translators need to be aware of the type of information being handled in any given variable in any given context.
  
The names of some [[Glossary#User interface|user interface]] elements include "template tokens". Tokens:
+
http://www.symfony-project.org/book/1_2/13-I18n-and-L10n#chapter_13_sub_handling_complex_translation_needs
  
*Are variables whose value is determined by dynamically by the context.  
+
The table below enumerates in English the elements whose names include tokens and for each gives a brief explanation of the nature of the variable and the context in which it occurs.
  
*Are represented by a number enclosed in percent signs (e.g. "%1%").
+
<table>
 
+
<thead>
*Must be included in the translation, but because different languages have different grammar rules, translators need to be aware of the type of information being handled in any given variable in any given context.
+
<tr>
 
+
<th>
 
 
The following list enumerates in English the elements whose name includes a tokens, the nature of the variable and the context in which it occurs.
 
 
 
 
 
{| style="width:95%; "
 
 
 
|-valign="top" align="left" style="color: rgb(0, 0, 0); background-color: rgb(255, 243, 243);border: 1px solid rgb(255, 201, 201); padding: 1em 1em 1em 1em;"
 
 
 
! style="width:15%;" |
 
 
Element name
 
Element name
 
+
</th><th>
! style="width:25%;" |
 
 
Variable
 
Variable
 
+
</th><th>
! style="width:55%;" |
 
 
Context
 
Context
 
+
</tr>
|-valign="top" align="left" style="color: rgb(0, 0, 0); background-color: rgb(240, 240, 255);"
+
</thead><tbody>
 
+
<tr>
|
+
<td>
 
%1% profile
 
%1% profile
 +
</td><td>
 +
User's account name
 +
</td><td>
 +
Returns the user's account name in the [[Glossary#User menu|user menu]]; clicked by the user to edit his or her [[Glossary#User profile|user profile]]; appears on all pages.
 +
</td>
 +
</tr><tr>
 +
<td>
 +
List all %1%
 +
</td><td>
 +
Entity type
 +
</td><td>
 +
Returns the type of [[Glossary#Entity|entity]] being viewed on the current page (e.g. [[Glossary#Archival description|archival description]]); appears as part of text on the list all button on [[Glossary#Edit page|edit pages]].
 +
</td>
 +
</tr><tr>
 +
<td>
 +
Edit %1%
 +
</td><td>
 +
Entity type
 +
</td><td>
 +
Returns the type of [[Glossary#Entity|entity]] being viewed on the current page (e.g. [[Glossary#Authority record|authority record]]); appears as part of the [[Glossary#Page title|page title]] on [[Glossary#Edit page|edit pages]].
 +
</td>
 +
</tr><tr>
 +
<td>
 +
List %1%
 +
</td><td>
 +
Entity type
 +
</td><td>
 +
Returns the type of [[Glossary#Entity|entity]] being viewed on the current page (e.g. [[Glossary#Archival description|archival institution]]); appears as part of the [[Glossary#Page title|page title]] on list pages.
 +
</td>
 +
</tr><tr>
 +
<td>
 +
View %1%
 +
</td><td>
 +
Entity type
 +
</td><td>
 +
Returns the type of [[Glossary#Entity|entity]] being viewed on the current page (e.g. [[Glossary#Archival description|archival description]]); appears as part of the [[Glossary#Page title|page title]] on [[Glossary#View page|view pages]].
 +
</td>
 +
</tr>
 +
</tbody>
 +
</table>
  
|
 
User's account name.
 
 
|
 
Returns user's [[Glossary#Account name|account name]] in the [[Glossary#System menu|System menu]] link; clicked by the user to edit his or her [[Glossary#User profile|user profile]]; appears on all screens.
 
 
|-valign="top" align="left" style="color: rgb(0, 0, 0); background-color: rgb(255, 243, 243);"
 
|
 
list all %1%
 
 
|
 
Entity type ([[Glossary#Archival description|archival description]], [[Glossary#Authority record|authority record]], [[Glossary#Archival institution|archival institution]], [[Glossary#Term|term]]).
 
 
|
 
Returns the type of entity being viewed on the current screen; appears as part of text on the [[Glossary#List all button|List all button]] on [[Glossary#Edit screen|Edit screens]].
 
 
|-valign="top" align="left" style="color: rgb(0, 0, 0); background-color: rgb(240, 240, 255);"
 
|
 
edit %1%
 
 
|
 
Entity type ([[Glossary#Archival description|archival description]], [[Glossary#Authority record|authority record]], [[Glossary#Archival institution|archival institution]], [[Glossary#Term|term]]).
 
 
|
 
Returns the type of entity being viewed on the current screen; appears as part of [[Glossary#Screen title]] on [[Glossary#Edit screen|Edit screens]].
 
 
|-valign="top" align="left" style="color: rgb(0, 0, 0); background-color: rgb(255, 243, 243);"
 
|
 
list %1%
 
 
|
 
Entity type ([[Glossary#Archival description|archival description]], [[Glossary#Authority record|authority record]], [[Glossary#Archival institution|archival institution]], [[Glossary#Term|term]]).
 
 
|
 
Returns the type of entity being viewed on the current screen; appears as part of screen title on [[Glossary#List screen|List screens]].
 
 
|-valign="top" align="left" style="color: rgb(0, 0, 0); background-color: rgb(240, 240, 255);"
 
|
 
view %1%
 
 
|
 
Entity type ([[Glossary#Archival description|archival description]], [[Glossary#Authority record|authority record]], [[Glossary#Archival institution|archival institution]], [[Glossary#Term|term]])
 
 
|
 
Returns the type of entity being viewed on the current screen; appears as part of screen title on [[Glossary#View screen|View screens]].
 
 
|}
 
  
<br clear="right">
+
[[Category:User manual]]
<span class="revised">Last revised: 6 June 2008 (ICA-AtoM v0.6)</span>
 

Latest revision as of 18:08, 24 June 2010

Please note that ICA-AtoM is no longer actively supported by Artefactual Systems.
Visit https://www.accesstomemory.org for information about AtoM, the currently supported version.

Main Page > User manual > Translate > Translate interface > Handling complex translation needs

Some interface element names include template tokens

The names of some user interface elements include tokens which are variables whose value is determined dynamically by the context. Tokens are represented by a number enclosed in percent signs (e.g. "%1%"). Tokens must be included in the translation, but because different languages have different grammar rules, translators need to be aware of the type of information being handled in any given variable in any given context.

http://www.symfony-project.org/book/1_2/13-I18n-and-L10n#chapter_13_sub_handling_complex_translation_needs

The table below enumerates in English the elements whose names include tokens and for each gives a brief explanation of the nature of the variable and the context in which it occurs.

<thead> </thead><tbody> </tbody>

Element name

Variable

Context

%1% profile

User's account name

Returns the user's account name in the user menu; clicked by the user to edit his or her user profile; appears on all pages.

List all %1%

Entity type

Returns the type of entity being viewed on the current page (e.g. archival description); appears as part of text on the list all button on edit pages.

Edit %1%

Entity type

Returns the type of entity being viewed on the current page (e.g. authority record); appears as part of the page title on edit pages.

List %1%

Entity type

Returns the type of entity being viewed on the current page (e.g. archival institution); appears as part of the page title on list pages.

View %1%

Entity type

Returns the type of entity being viewed on the current page (e.g. archival description); appears as part of the page title on view pages.