On this page:
The text tag is a single tag which is primarily used to return localized language strings from the
txp_lang database table.
Tag will accept the following attributes (case-sensitive):
- Escape HTML entities such as
- Values: See the tag escaping documentation for all possible values.
- Piece of text to display, preferably an item from the
namecolumn of the
txp_langdatabase table. If the given item matches a key there, the contents of the respective item in the
datacolumn will be returned. Otherwise, whatever you supply as the
itemvalue is returned verbatim.
Example 1: Display some localized text
<txp:older> <txp:text item="older" /> </txp:older>
Outputs the text ‘older’ inside the
<txp:older /> tag, respecting the current Textpattern language, instead of using the tag like this:
<txp:older>older</txp:older> which would always render the English text ‘older’, it replaces the contents with the value assigned to the name ‘older’ in the current language. So you would see a link with the word ‘älter’ if you were using German
de as the Textpattern site language.
Other tags used: older.
Accepts L10n replacement tags as attributes.
escape attribute added.