SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 173 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"


Chapter 5
[ 127 ]
If we are creating a module in conjunction with a component, we may want to use
a component language file instead of, or in addition to, the module language file.
To load a component language file from within a module we can use the global
JLanguage object.
This example shows how we would load the My Extension component language file
(you would need to do this before using JText to translate any strings):
$language =& JFactory::getLanguage();
$language->load('com_myextension');
Packaging
Modules are packaged in archive files. A number of archive formats are supported:
.gz, .tar, .tar.gz, and .zip. There is no specific naming convention for module
archive files; however, the following is often used: mod_name-version. For
example, the package for version 1.0.0 of My Extension would be called
mod_myextension-1.0.0.
When you package a module, ensure you do not include any system
files. Apple Mac developers should be especially vigilant and
consider using the CleanArchiver utility
(http://www.


Pages:
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6