Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

Translation

This discussion is related to the Voting Leader Board addon.
edited March 2013 in Localization

Hi for those like me, newcomers if you want to translate the frontend open "class.votingleaderboardmodule.php" and lookaround lines 17 and 34 there are only two strings to be translated.

BTW> i don´t know if this is the Vanilla way but it is quick and works :-)

Comments

  • peregrineperegrine MVP
    edited March 2013

    good point @wilsoncortez

    the way to do is add definitions to one of the files that is read in translating definitions.

    1) method one
    
    e.g.  these two lines could be added to conf/locale.php
    
    your conf/locale.php would look like this with other definitions.
    
    if the file doesn't exist - create it. 
    
    <?php if (!defined('APPLICATION')) exit();
    
    $Definition['Vote Leaders'] = "My translation of Vote Leaders";
    $Definition['Votes:'] = "My translation of Votes";
    
    
    
    2) method two
    
    add it to your other custom translations whereever you did that.
    
    $Definition['Vote Leaders'] = "My translation of Vote Leaders";
    $Definition['Votes:'] = "My translation of Votes";
    

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

    wilsoncortez
  • edited March 2013

    I´ll go with the second one ;-)
    Thanks Peregrine

    Vanilla´s translation process still seems a bit cumbusome to me

  • It's actually quite simple - anything surrounded by a T or Translate can be translated.

    cut and paste anything inside the T that you see within the code.

    T("the example");

    and don't change the things inside the T

    add it to a definition file

    e.g.

    $Definition['the example"] = "my new example";

    In that way you are not modifying the source code of the core, plugin, or theme.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Sign In or Register to comment.