Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
[Solved] Localisation for an addon
TasteLikeWater
New
I have followed the introductions on http://vanillaforums.org/docs/creating-addons-for-the-addon-site but I am not able to create correct a localisation.
Using the following code:
Produces this output: echo "T('Hide');
I am new to Vanilla so I do not know where the core file showing the discussion options are saved.
Using the following code:
public function DiscussionsController_DiscussionOptions_Handler(&$Sender) {
$Sender->Options .= "<li><a href=\"hide/pass\">echo \"T('Hide')\";</a></li>";
}
Produces this output: echo "T('Hide');
I am new to Vanilla so I do not know where the core file showing the discussion options are saved.
Tagged:
0
Answers
$Sender->Options .= "<li><a href=\"hide/pass\">".T('Hide')."</a></li>";
does the job.