Blog
Documentation
Book a Demo
toggle menu
Categories
Discussions
Activity
Best Of...
Sign In
Sign In
Categories
Discussions
Activity
Best Of...
Sign In
×
Home
›
Vanilla 2.0 - 2.8
Discussion
[Smart Localization] Comments
Author
Date within
1 day
3 days
1 week
2 weeks
1 month
2 months
6 months
1 year
of
Examples: Monday, today, last week, Mar 26, 3/26/04
Search
[Smart Localization] Comments
S
✭✭
December 2010
edited December 2010
in
Vanilla 2.0 - 2.8
For questions on addons page...
0
Comments
the0ne
January 2011
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!
0
Sign In
or
Register
to comment.
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!