Difference between revisions of "Handling complex translation needs"

From ICA-AtoM
Jump to navigation Jump to search
Line 4: Line 4:
  
  
The names of some [[user interface]] elements include template tokens.  
+
The names of some [[user interface]] elements include template tokens.
  
 
http://www.symfony-project.org/book/1_2/13-I18n-and-L10n#chapter_13_sub_handling_complex_translation_needs
 
http://www.symfony-project.org/book/1_2/13-I18n-and-L10n#chapter_13_sub_handling_complex_translation_needs
Line 11: Line 11:
 
'''Tokens''':
 
'''Tokens''':
  
*Are variables whose value is determined dynamically by the context.  
+
*Are variables whose value is determined dynamically by the context.
  
 
*Are represented by a number enclosed in percent signs (e.g. "%1%").
 
*Are represented by a number enclosed in percent signs (e.g. "%1%").
  
*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.  
+
*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.
  
  
Line 25: Line 25:
 
|-valign="top" align="left" style="color: rgb(0, 0, 0); background-color: rgb(255, 243, 243); "
 
|-valign="top" align="left" style="color: rgb(0, 0, 0); background-color: rgb(255, 243, 243); "
  
! style="width:15%;" |  
+
! style="width:15%;" |
 
Element name
 
Element name
  
Line 36: Line 36:
 
|-valign="top" align="left" style="color: rgb(0, 0, 0); background-color: rgb(240, 240, 255);"
 
|-valign="top" align="left" style="color: rgb(0, 0, 0); background-color: rgb(240, 240, 255);"
  
|  
+
|
 
%1% profile
 
%1% profile
  
Line 52: Line 52:
 
Entity type
 
Entity type
  
|  
+
|
 
Returns the type of [[entity]] being viewed on the current screen (e.g. [[archival description]]); appears as part of text on the [[list all button]] on [[Edit screen|edit screens]].
 
Returns the type of [[entity]] being viewed on the current screen (e.g. [[archival description]]); appears as part of text on the [[list all button]] on [[Edit screen|edit screens]].
  
Line 86: Line 86:
  
 
|}
 
|}
 +
 +
 +
[[Category:User manual]]

Revision as of 22:51, 7 April 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 > UM-5 Translate content / interface > UM-5.3 Translate interface > UM-5.3.1 Translate template tokens

Some interface element names include template tokens


The names of some user interface elements include template tokens.

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


Tokens:

  • Are variables whose value is determined dynamically by the context.
  • Are represented by a number enclosed in percent signs (e.g. "%1%").
  • 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 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.


Element name

Variable

Context

%1% profile

User's account name

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

list all %1%

Entity type

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

edit %1%

Entity type

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

list %1%

Entity type

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

view %1%

Entity type

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