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

How can I localise/translate Vanilla easily?*

135

Comments

  • Options

    You don't need to install any version of Vanilla to translate easily. Just use transifex and translate the strings.

  • Options

    Not worked and same result.

    Fatal error: Call to undefined function Iswritable() in /home/zaheknet/public_html/vtest1/library/core/class.filesystem.php on line 271

  • Options

    @Anonymoose said:
    You don't need to install any version of Vanilla to translate easily. Just use transifex and translate the strings.

    Hi, the problem is not translate it.

  • Options
    x00x00 MVP
    edited April 2013

    @magruf said:
    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

    well that is not surprising

    /path/to/forum/library/ is not an actual place. you are supposed to substitute it with your actual path. I wasn't psychic so I couldn't guess. If test.php is in the library folder you can do:

    <?php
    error_reporting(-1);
    define('APPLICATION',TRUE);
    define('PATH_LIBRARY',dirname(__FILE__));
    require PATH_LIBRARY."/core/functions.general.php";
    exit;
    

    However I'm starting to doubt that is the problem, because you would expect the same thing all over.

    what you could do is in

    conf/ create a file called boostrap.before.php and put:

    <?php if (!defined('APPLICATION')) exit();
    require PATH_ROOT."/library/core/functions.general.php";
    

    grep is your friend.

  • Options

    are you saying it works for another language?

    grep is your friend.

  • Options

    Yes it works withn another language of "ca-ES" but Turkish is strange ...

  • Options

    so even when you manually set

    $Configuration['Garden']['Locale'] = 'tr-TR';
    $Configuration['EnabledLocales']['vf_tr_TR'] = 'tr-TR';
    

    you still get a bug? This is a definite bug.

    grep is your friend.

  • Options

    can you try

    in conf/ create a file called boostrap.before.php and put:

    <?php if (!defined('APPLICATION')) exit();
    require PATH_ROOT."/library/core/functions.general.php";
    

    grep is your friend.

  • Options
    magrufmagruf New
    edited April 2013

    Yes I still get a bug. Pls check again if I am doing wrong anything.

    1- I install VF into new folder
    2- Upload Turkih lang. zip file and extrack it.
    3- I change conf.php as you said above.

    But I got an error below once F5 :)

    Fatal error: Call to undefined function Iswritable() in /home/zaheknet/public_html/vtest1/library/core/class.filesystem.php on line 271

    P.S: If you want I can gave you cpanel access info or ftp access to VF folder to check it?

  • Options
    x00x00 MVP
    edited April 2013

    did you do the above?

    grep is your friend.

  • Options
    magrufmagruf New
    edited April 2013

    Yes I did b I put them in folders , also tried commands on phpmyadmin but gaves lots of errors.
    I am confused :)

    I did them now but of course server did not respond becouse VF downed.
    Which step shall I follow after set up a new VF?

  • Options
    x00x00 MVP
    edited April 2013

    this is getting confusing I only want to you to tell me if you have tried this

    http://vanillaforums.org/discussion/comment/180591/#Comment_180591

    grep is your friend.

  • Options
    magrufmagruf New
    edited April 2013

    @x00, Sorry I took so much your time but no solution again. Here is my steps.

    1-Installed new DB + VF
    2-I created a file named boostrap.before.php into /conf

    3- I added strings to conf.php

    4-I put Turkish files into /locales

    It is downed before to enable it.
    http://www.zahek.net/vani/

  • Options
    peregrineperegrine MVP
    edited April 2013

    the weird thing is.

    1) why would it work for one language catalan transiflex and not another.

    2) the turkish locale works on local machine for him and not on not local server.

    when you replaced the spanish locale with the turkish locale. did you clear the .ini files out of your cache


    if all else fails at the end of the day if x00 is finished.

    you could copy all the definitions of the turkish locale into one big file and put them all into /conf/locale.php and remove the transiflex.

    $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.

  • Options

    do you have a file cache/loacle_map.ini ?

    grep is your friend.

  • Options

    @peregrine, @x00,

    After all new clear installation or change on any file I cleared .ini files in /cache.
    Now I solved the problem as going back to Catalan (Spain) Transifex . I installed that language and just changed content with Turkish afterthat it workd. Of course I did not change definition. But it seems a bug with Turkish translation file or definitions with tr-TR.
    I suggest you to check this or shall we report it.

    http://www.zahek.net/vani

    Do you have any other idea?

    I know a bit strange but it works :)

  • Options

    So are you saying turkish works now?

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

  • Options

    Yes Turkish works now with inside Catalan files :)

  • Options

    yes definitely a bug.

    Report it here

    https://github.com/vanillaforums/Garden/issues

    there are most likely goign to want to ftp details, you can send to it them privately.

    I take it you just copied the files to the Catalan version?

    grep is your friend.

  • Options

    not the best idea, but a solution.

    but. I tend to think it is not a problem with the turkish locale, but with your installation and the removal of .ini files.

    And your config.php may have duplicate locales in it that you may be overlooking.

    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.