Allow lang-files placed relative to package.manifest
See original GitHub issueA brief description of your feature request goes here.
Umbraco 8 allows for manifest files to be placed “where ever” under app_plugins like App_Plugins/Plugin/Feature1/f1.manifest and App_Plugins/Plugin/Feature2/f2.manifest and so forth.
You could then build a plugin that can have multiple features.
Lang-files on the other hand can only live in one place – App_Plugins/Plugin/Lang/*.xml
From our own part of the woods, we a building a lot of internal stuff that we reuse, and instead of having 20-30 Company.This.That and Company.Some.Thing folders, we would like to have:
App_Plugins/Company/This/That
and App_Plugins/Company/Some/Thing
- and have lang-files in subfolders, together with the respective manifest files
How can you help?
https://github.com/umbraco/Umbraco-CMS/pull/4454 expanded the name of the lang files resolved. This could easily be changed to look for xml files in lang folder :
appPlugins
.GetDirectories("lang", SearchOption.AllDirectories)
.SelectMany(x => x.GetFiles("*.xml", SearchOption.TopDirectoryOnly))
Another aspect of this could be to allow a “lang”-setting in the package manifest.
{
"lang": ["~/App_Plugins/Company/This/That/lang"],
"propertyEditors": [],
"gridEditors": [],
"parameterEditors": [],
"javascript": ["~/App_Plugins/Company/This/That/js/controllers.js"],
"css": []
}
What would people prefer? Expanding the searching to include subfolders, or implement lang-property in manifest?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:18 (16 by maintainers)
Fixed in https://github.com/umbraco/Umbraco-CMS/pull/6153
PR in #6153