Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Translating

A major strength of Joomla! is its built-in multilingual support. Joomla! has special language handling classes that translate strings. The default language is configured in the Language Manager. The language can be overridden by a logged-in user’s preferences.

Translating Text

We use the static JText class to translate text. JText has three methods for translating text: _(), sprintf(), and printf(). The method that we use most is _(). This method is the most basic; it simply translates a string.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial