Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

[Smart Localization] Comments

SS ✭✭
edited December 2010 in Vanilla 2.0 - 2.8
For questions on addons page...

Comments

  • Options
    hi!

    i think your plugin is extremely useful & clever.
    however, may i propose the following enhancement.
    after line 104, i added the following block:

    $LocaleName = C('Garden.Locale');
    $EnabledLocales = C('EnabledLocales');
    if (is_array($EnabledLocales)) {
    foreach ($EnabledLocales as $Key => $Locale) {
    if ($Locale != $LocaleName)
    continue; // skip locales that aren't in effect.
    $Path = ConcatSep(PATH_ROOT, DS, 'locales', $Key, 'distinctions.php');
    if (file_exists($Path)) $Sources[] = $Path;
    }
    }

    this makes it possible to store the distinctions.php file into the locale folder as
    ./locale/whatever/distinctions.php

    thanks!
Sign In or Register to comment.