Difference between revisions of "Translate static pages"

From ICA-AtoM
Jump to navigation Jump to search
Line 1: Line 1:
<span class="pageTitle">Translate static pages</span>
+
<span class="pageTitle">Translate template tokens</span>
  
[[Main Page]] > [[User manual|(UM) User manual]] > [[UM-5|UM-5 Translate content / interface]] > UM-5.4 Translate static pages
+
[[Main Page]] > [[User manual]] > [[UM-5|UM-5 Translate content / interface]] > [[UM-5.3|UM-5.3 Translate interface]] > UM-5.3.1 Translate template tokens
  
[[Image:um5-4Static.png|500px|right|thumb|Translate content of static page]]
+
[[Image:UM-5.3.1.png|500px|right|thumb|Some interface element names include template tokens]]
  
  
The content of most screens in ICA-AtoM is '''dynamically''' generated by context and depends on which record(s) has the user requested by which action (view, list, edit, search etc). The application does ship, however, with two pages whose content is always the same ([[Static page|static pages]]):
+
The names of some [[user interface]] elements include template tokens.
  
*The [[home page]] displays a welcome message to users.
 
  
*The [[about page]] displays information about the application.
+
'''Tokens''':
  
 +
*Are variables whose value is determined dynamically by the context.
  
[[Editor|Editors]] and [[Administrator|administrators]] can edit these pages, which are just text with HTML tags stored as a database record in the [[Static page|static page]] table.
+
*Are represented by a number enclosed in percent signs (e.g. "%1%").
  
*For more on customizing [[Static page|static pages]], see [[UM-7.3|UM-7.3 Administer ICA-AtoM > Customize settings]].  
+
*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.  
  
  
To translate a [[Static page|static page]]:
+
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.
  
 +
<br clear="right">
 +
{| style="width:95%; border: 1px solid rgb(255, 201, 201);"
  
1. In the [[language menu]], click the language into which you want to translate.
+
|-valign="top" align="left" style="color: rgb(0, 0, 0); background-color: rgb(255, 243, 243); "
  
 +
! style="width:15%;" |
 +
Element name
  
2. On the [[main menu bar]], click the ''translate > default content'' tab.
+
! style="width:25%;" |
 +
Variable
  
 +
! style="width:55%;" |
 +
Context
  
3. In the ''static pages'' section, click the page you want to translate.
+
|-valign="top" align="left" style="color: rgb(0, 0, 0); background-color: rgb(240, 240, 255);"
  
 +
|
 +
%1% profile
  
4. The left-hand column (highlighted) shows the English text; enter or edit the translation in the right-hand column.
+
|
 +
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.
  
5. Always include the HTML coding in the translation.
+
|-valign="top" align="left" style="color: rgb(0, 0, 0); background-color: rgb(255, 243, 243);"
 +
|
 +
list all %1%
  
 +
|
 +
Entity type
  
6. Click the ''save'' button.
+
|
 +
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]].
  
 +
|-valign="top" align="left" style="color: rgb(0, 0, 0); background-color: rgb(240, 240, 255);"
 +
|
 +
edit %1%
  
7. ICA-AtoM registers the new translations and re-loads the page, collapsing the ''static pages'' section.
+
|
 +
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 screen|edit screens]].
 +
 
 +
|-valign="top" align="left" style="color: rgb(0, 0, 0); background-color: rgb(255, 243, 243);"
 +
|
 +
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 screen|list screens]].
 +
 
 +
|-valign="top" align="left" style="color: rgb(0, 0, 0); background-color: rgb(240, 240, 255);"
 +
|
 +
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 screen|view screens]].
 +
 
 +
|}

Revision as of 16:27, 16 June 2009

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.

Translate template tokens

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.


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.