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

edited August 2011 in Vanilla 2.0 - 2.8
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:

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.

Answers

  • edited August 2011
    I found a solution: $Sender->Options .= "<li><a href=\"hide/pass\">".T('Hide')."</a></li>"; does the job.
Sign In or Register to comment.