Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 9

ericgillettemcdjmcdjpatsjvsarowlwp +5 guests

[Smart Localization] Comments

This discussion is related to the Smart Localization addon.
For questions on addons page...

Comments

  • Posts: 4
    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.