Howdy, Stranger!

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

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

Translating Welcome to vanilla!

EilieneEiliene newb
edited July 2012 in Localization

So.. has anyone still managet to translate that Welcome to vanilla! text?? if so, how? trans strings in def file doesnt work :D.. or has anyone able to find the file wich contains that text? :D

Comments

  • since vanilla has a translation

    T('Welcome to Vanilla!')

    which you can find by looking in your files

    by

    grep -ri "Welcome to Vanilla" *

    you then need to look at the localization documentation and add it to your theme in a definition in your definitions.php file.

    or create a file that will get erased when you upgrade vanilla (at least in current paradigm)

    if you go the locale.php option,

    /conf/locale.php

    will contain

    <?php if (!defined('APPLICATION')) exit();
    $Definition['Welcome to Vanilla'] = 'Welcome to Not Vanilla'; 
    

    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

  • $Definition['Welcome to Vanilla'] = 'Welcome to somewhere'; That doesnt work. That "Welcome to Vanilla" is the only thing cant translate to finnish :D.

  • peregrineperegrine MVP
    edited July 2012

    where is welcome to vanilla showing up in your browser in the activity. show an image of browser or a text of an e-mail where it shows up.

    it should be - I left out !

    $Definition['Welcome to Vanilla!'] = 'Welcome to Not Vanilla';


    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

  • Dear friend, you need the ! at the end

    define68
  • EilieneEiliene newb
    edited July 2012

    Yes it has ! at the end :D. It shows in activity, even if i change it in class usermodel php, cache clearet etc.

  • peregrineperegrine MVP
    edited July 2012

    If it is an old one, it won't change because it is stored in the database. it is in the activity table - story column.

    The new additions to the activity table should change if I am not mistaken after you make the correct change to the definition.

    show your definition for the Welcome to ....


    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

  • peregrineperegrine MVP
    edited July 2012
    'Welcome to Vanilla'  - if it occurs on your activity page for old activities.
    
    you need to go into the database and modify it there.  since the record is already written the definition change has no impact.  it is in the activity table - story column.  
    
    
    $Definition['Welcome to Vanilla!'] = 'Welcome to Not Vanilla';
    
    the definition change in this case will only affect now additions to the activity table.  Do you understand!
    

    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

Sign In or Register to comment.