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

My localization doesn't work

edited July 2011 in Localization
Hello all. Im trying to make my locale work. But Im not successful yet. I did everything from guide - downloaded Baseline locale, translated it (slovak lang), uploaded, enabled in dashboard and set as default. But there is no change. Im trying to figure it out for about two hours, but i just cant find a mistake.

My definitions.php looks like this:

$LocaleInfo['Slovak'] = array (
'Locale' => 'sk',
'Name' => 'Slovenský preklad',
'Description' => 'Slovenský preklad RS Vanilla.',
'Version' => '1.0',
'Author' => '....',
'AuthorEmail' => '....',
'AuthorUrl' => 'http://....',
'License' => 'GPL2', );

those dots are filled, of course... other two files are named captured.php and captured_admin.php.... and folder is named sk...

Im running webserver at localhost (XAMPP)... thanks for your time
Tagged:

Best Answer

Answers

  • Just addition - i have Vanilla 2.0.18b2
  • Okey, I found a mistake. There is missing part of php syntax in Baseline Locale from downloads of this site. The code looks like this:

    <?php if (!defined('APPLICATION')) exit();
    /** This file was generated by the Locale Developer plugin on 2010-11-23 12:23:07 **/

    $LocaleInfo['Baseline'] = array (
    'Locale' => 'en-CA',
    'Name' => 'Baseline Locale',
    'Description' => 'All of the text in a default Vanilla install.',
    'Version' => '1.0.1b',
    'Author' => 'Todd Burry',
    'AuthorEmail' => 'todd@vanillaforums.com',
    'AuthorUrl' => 'http://vanillaforums.org/profile/todd',
    'License' => 'GPL2',
    );

    ... where is ending of php code?? i mean, there is no ?> in the end. So, if you had this problem, just add ?> to the end of file, or just copy this and replace your code:

    <?php if (!defined('APPLICATION')) exit();
    /** This file was generated by the Locale Developer plugin on 2010-11-23 12:23:07 **/

    $LocaleInfo['Baseline'] = array (
    'Locale' => 'en-CA',
    'Name' => 'Baseline Locale',
    'Description' => 'All of the text in a default Vanilla install.',
    'Version' => '1.0.1b',
    'Author' => 'Todd Burry',
    'AuthorEmail' => 'todd@vanillaforums.com',
    'AuthorUrl' => 'http://vanillaforums.org/profile/todd',
    'License' => 'GPL2',
    );
    ?>

    You can close discussion, if you want :)
  • lucluc ✭✭
    Answer ✓
    Answer found by OP
Sign In or Register to comment.