I have started working on building my first addon. I am looking at the code for this and wondering how I go about making the installation text that goes on the addon install page multi-lingual. When I try to use a $lang entry, I get:
Parse error: syntax error, unexpected T_GLOBAL, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/worldofw/public_html/roster200/addons/guildstats/inc/install.def.php on line 30
If I put in a line that says:
global $lang;
With it not there, I get:
Parse error: syntax error, unexpected T_VARIABLE in /home/worldofw/public_html/roster200/addons/guildstats/inc/install.def.php on line 39
which says:
var $fullname = $lang['guildstats_fullname']; // 'Guild Statistics';
Is it not doable? Is there a different way I need to do it? Thanks for any help in this.