module Tr8n
Data Token
Forms:
{count} {count:number} {user:gender} {today:date} {user_list:list} {long_token_name} {user1} {user1:user} {user1:user::pos}
Data tokens can be associated with any rules through the :dependency notation or using the nameing convetnion of the token suffix, defined in the tr8n configuration file
Decoration Token
Forms:
- link: click here
-
Decoration
Tokens
Allow Nesting:- link: {count} {_messages}
- link: {count||message}
- link: {count||person, people}
- link: {user.name}
- link: {count||message}
- link: {count} {_messages}
Hidden Token
Forms:
{_he_she} {_posted__items}
'_' escaped as '/' '__' escaped as '__'
Hidden tokens cannot have rules and are there for default language substitutions only
Method Token
Forms
{user.name}
{user.name:gender}
Transform Token
Form
{count | message} - will not include count: “messages” {count | message, messages} {count:number | message, messages} {user:gender | he, she, he/she} {now:date | did, does, will do} {users:list | all male, all female, mixed genders}
{count || message, messages} - will include count: “5 messages”
Constants
- VERSION