O'Reilly logo

Mastering Joomla! 1.5 Extension and Framework Development by Chuck Lanham, James Kennard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Translating plugins

As part of a plugin, we can define a set of translations. A full description of how to create language files is available in Chapter 9, Customizing the Page.

When we create plugin translation files we must name the file according to a specific naming convention: the language tag, a period, and the Joomla! parsed plugin name. For example, the English translation file for the plugin boxoffice would be called en-GB.plg_boxoffice.ini.

Plugin translation files are located in the administrator/language folders.

Unlike components and modules, plugin language files are not automatically loaded when a plugin is loaded. To use a plugin language file we must manually load it. We can do this using the static loadLanguage() method in the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required