Please upgrade here. These earlier versions are no longer being updated and have security issues.

[Smart Localization] Comments

This discussion is related to the Smart Localization addon.
SS ✭✭
edited December 2010 in Vanilla 2.0 - 2.8
For questions on addons page...

Comments

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