As part of a module, 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 module translation files, we must name the file according to a specific naming convention: the language tag, a period, and the Joomla! parsed module name. For example, the British English translation file for our module Critics Choice
would be called en-GB.mod_criticschoice.php
. Our module language file looks like this:
# Critics Choice Module Language File # Created: 12/03/2009 # Author URL: http://www.packtpub.com # License: GNU/GPL COUNT=Count DESCCRITICSCHOICE=This Module shows a list of the movies that have been given five stars by our critics. COMPONENTMISSING=The Critics Choice module requires the Box Office component.
Module translation files are located in the language
and administrator/language
folders. If you are creating a frontend module, use the language
folder. If you are creating a backend...