JText

From Joomla! Documentation

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