Thanks for the speedy reply Shaun. I’ve already got all Lexicon (and JS) caching disables, so that shouldn’t be the problem. Upon changing the Lexicon in the Lexicon Management and then clicking the reload tool of the ExtJS Grid, the string updated to "Caching!" so that points to non-core lexicons working perfectly - aside from not being displayed as default with default content.
The package I’ve got going on hasn’t been installed through Package Management, since I’m developing it within MODX. I’ve added all Namespace, Action and Menu specifcs by hand, which we also did with VisionCart back in the day.
Since the still classified nature of the component, I can’t give away too much at this time, so for future reference I’m going to address it as "component".
I’ve got a {core_path}components/component set up as a namespace with the component name and the duplicate folder structure used in Quip, VisionCart and all my other MODX projects. Currently the setting has been set up like so:
Key: component.cache
Name: setting_component_cache
Field type: Yes/No
Namespace: component
Area Lexicon Entry: caching
Value: No (0)
Description: setting_component_cache_desc
In my default.inc.php I’ve got both cases to catch any of them:
$_lang['setting_component.cache'] = 'Caching';
$_lang['setting_component.cache_desc'] = 'Enables global caching options';
$_lang['setting_component_cache'] = 'Caching 2';
$_lang['setting_component_cache_desc'] = 'Enables global caching options 2';
Now, when I go into the Lexicon Management (namespace: component, topic: default, language: en), the first 2 are green lit and I had to "Revert" the entry to it’s default state, which was set in the default.inc.php. The fun part is, both show up there but still are not loaded to replace the default technical term in the settings by the more human formar "Caching" (or Caching 2).
So, what’s going wrong here?
Oh yes! I checked the database "modx_lexicon_entries" and it contains 2 entries at this time, the setting_component.cache and setting_component.cache_desc. Strangely enough, the value is exactly the same but the one point (".") is replaced by an underscore ("_").
-- 16:22 / 2nd of August
I’ve bugtested some of it, and when I add a setting like I described above, it still creates a Lexicon entry in the database. When I delete those 2, it works! What the ?! So, I reckon when I use it to install it, it doesn’t use the default functionality provided by MODX and I’ll be safe from this?
I’m not going to mark this as SOLVED yet as I am not sure if this is a correct behaviour.