Fork me on GitHub
Current releases are 2.1.3 (9 Sept 2014) and 2.0.18.13 (5 Aug 2014)

Ready for 2.1? Find out if your favorite plugins are compatible. The 2.0 branch will no longer receive updates after Dec 2014.

How to translate Voting plugin into a different languages?

exichloexichlo New
edited May 2011 in Vanilla 2.0 Help
This discussion is related to the Voting addon.
Hi all,

I would like to translate this plugin into a different language.

I have translated Vanilla forum by using this guide: http://vanillaforums.org/addon/baseline-locale, which is quite simple.

I have read http://vanillaforums.org/docs/localization. But I don't understand and not sure what should I do in order to start.

Please help!

Comments

  • ToddTodd Chief Product Officer Vanilla Staff
    What you need to do is go through the plugin and look for calls to T(). For instance, near the top of class.voting.plugin.php there is the following line:
    $Menu->AddLink('Forum', T('Voting'), 'settings/voting', 'Garden.Settings.Manage');
    When you see something like that then you need to add the following definition to your locale:
    $Definition['Voting'] = 'Your translation here.';
    You can put this definition in your regular locale pack. You can put it in a separate file if you wish to keep things organized.
Sign In or Register to comment.