语言文件(INI文件)
为了国际化,最好使用语言文件,在需要显示文字串的地方,采用JText::_( 'string' )来显示
比如,以下的参数
<param name="mode" type="list" default="1" label="Mode" description="Select how the emails will be displayed">
<option value="0">Nonlinkable Text</option>
<option value="1">As linkable mailto address</option>
</param>
实际应该在语言文件中设置相应的字串:
MODE=Mode
SELECT HOW THE EMAILS WILL BE DISPLAYED=Select how the e-mails will be displayed
NONLINKABLE TEXT=Nonlinkable text
AS LINKABLE MAILTO ADDRESS=As linkable mailto addressThe file looks repetitive, but will be very useful for translaters.