HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How can I localise/translate Vanilla easily?*

245

Comments

  • His problem is the core is not loading properly.

    What version of php do you have?

    grep is your friend.

  • magrufmagruf New
    edited April 2013

    Apache : 2.2.22

    MySQL : 5.1.68-cll

    PHP : 5.2.17

  • x00x00 MVP
    edited April 2013

    try

    $ php -a
    php > error_reporting(-1);
    php > define('APPLICATION',TRUE);
    php > define('PATH_LIBRARY',"/path/to/forum/library");
    php > require PATH_LIBRARY."/core/functions.general.php";
    php > exit;
    

    substituting /path/to/forum/library

    grep is your friend.

  • Sorry I am not a developer. You mean to save it and put the folder /library or run these commands?

  • hgtonighthgtonight ∞ · New Moderator

    @magruf Run those commands in a terminal (command, console, term, etc.)

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • you could also create a file test.php and point to it.

    <?php
    error_reporting(-1);
    define('APPLICATION',TRUE);
    define('PATH_LIBRARY',"/path/to/forum/library");
    require PATH_LIBRARY."/core/functions.general.php";
    exit;
    

    grep is your friend.

  • magrufmagruf New
    edited April 2013

    It gaves an error when to run these file. It seems the error regard with PHPMyadmin?

    Warning: require(/path/to/forum/library/core/functions.general.php) [function.require]: failed to open stream: No such file or directory in /home/zaheknet/public_html/vtest/library/test.php on line 5

    Fatal error: require() [function.require]: Failed opening required '/path/to/forum/library/core/functions.general.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/zaheknet/public_html/vtest/library/test.php on line 5

  • did your non-local forum run ok before trying to translate? Or did it just stop working when you tried to translate.

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

  • Yes peregrine, zahek.net is a live server and I can run Vanilla without problem. Both last stable version and beta version.
    But when I try to translate it downs. Actually It happens once to choose tr-TR option after enable the plugin.

  • peregrineperegrine MVP
    edited April 2013

    do you have any duplicate translations directories lying around? if so delete all of them.

    1 - especially the one in the locale directory.
    can you post a directory listing of your locale directory.

    2 - can you post of what is inside conf/constants.php

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

  • magrufmagruf New
    edited April 2013

    I have installed new and no any another directory in vanilla folder.

    1- Here is folder list

    2- Here is content of constant.php

    http://sharetext.org/GAj7

  • peregrineperegrine MVP
    edited April 2013

    I need the folder list of locales folder.

    on the machine that has the faulty translation

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

  • magrufmagruf New
    edited April 2013

    Sorry it has just to folder like this,

    /skeleton

    /vf_tr_TR

  • peregrineperegrine MVP
    edited April 2013

    permissions and ownership of /vf_tr_TR

    screenshot would help.

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

  • magrufmagruf New
    edited April 2013

    Like this:

  • peregrineperegrine MVP
    edited April 2013

    I don't know:, back to x00's capable hands.

    but...
    Just out of curiousity.  Try a different transiflex e.g. 
    
    
    
    download and install this one
    http://vanillaforums.org/addon/vf_ca_es-locale
    
    
    and after it is installed - add this to your config.php
    $Configuration['EnabledLocales']['vf_ca_ES'] = 'ca-ES';
    $Configuration['Garden']['Locale'] = 'ca-ES';
    

    make sure those are the only two locale related statements in your config.

    then delete all the files  that end in   ".ini"   in your  /cache folder.
    
    
    then see if you get an error with the catalan locale.
    

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

    UnderDoggunix
  • I am wondering if you can rename the vf_tr_TR folder to tr_TR maybe it will help

  • @UnderDog

    the config should take care of that. -
    $Configuration['EnabledLocales']['vf_ca_ES'] = 'ca-ES';

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

  • @peregrine, It works :)

    http://www.zahek.net/vtest1/

    Shall I do the same as for Turkish? or will yo do something with Turkish plugin?

  • remove the catalan ones and
    
    try the same with turkish - 
    
    $Configuration['Garden']['Locale'] = 'tr-TR';
    $Configuration['EnabledLocales']['vf_tr_TR'] = 'tr-TR';
    

    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.