Vanilla Forums
Home
Addons
Community
Documentation
Blog
Hosting
Download
Home
»
Questions
Activity
•
Sign In
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Categories
16.1K
Questions
15.6K
Feedback
349
Developers
49
Localization
49
Blog
15
Categories
Recent Discussions
In this Discussion
the0ne
January 2011
Who's Online
9
+
5
guests
[Smart Localization] Comments
S
December 2010
in
Questions
This discussion is related to the
Smart Localization
addon.
For questions on addons page...
Comments
the0ne
January 2011
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.
Host Your Community With Us
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!