254
In the great module Soapbox, I've found a tiny little word harcoded in a template file.
The heading of a column in the index page of Soapbox, there's the name of the author that is written like this: "By authorname".
The "By" is hardcoded in the template. I know that this is not significant but I just want to know if this is teh good way to solve this.
Here is what I did :
in Index.php, I added this line around line 46 :
Quote:
$xoopsTpl->assign('lang_byauthor',_MD_SB_BYAUTHOR);
In templates/sb_index.html, I change the line 14 from this :
Quote:
<span style="float:right; width: 29%; text-align: right; padding-right: 4px;">By <{$columna.authorname}></span></th>
To this :
Quote:
<span style="float:right; width: 29%; text-align: right; padding-right: 4px;"><{$lang_byauthor}> <{$columna.authorname}></span></th>
In Language/englishmain.php, I added this constant :
Quote:
define("_MD_SB_BYAUTHOR", "By");
Did the same thing with the other languages I use.
I performed an update of the module.
Since I'm pretty newbie in playing with module, could someone tell me if this is the good way to do this?