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.
[Smart Localization] Comments
S
✭✭
For questions on addons page...
0
Comments
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!