JText

From Joomla! Documentation

Revision as of 22:54, 3 July 2009 by Chris Davenport (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

JText is a text handling class. JText allows the developer to specify text-fragments in the source-code, which will be translated into the site's language during runtime.

Contents

Availability

Joomla 1.5 Joomla 1.6

Defined in

/libraries/joomla/methods.php

Methods

Method name Description
_ Translates a string into the current language
printf Translates a string into the current language and passes it to the printf function.
sprintf Translates a string into the current language and passes it to the sprintf function.

Importing

jimport( 'joomla.methods' );

See also

Personal tools