question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow lang-files placed relative to package.manifest

See original GitHub issue

A 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:18 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
nul800sebastiaancommented, Aug 23, 2019
2reactions
kjaccommented, Aug 20, 2019

PR in #6153

Read more comments on GitHub >

github_iconTop Results From Across the Web

Question - Package Manager - Using Relative Path?
Hi guys, I have recently started using custom packages for sharing code between projects. One problem, however, is using packages on disk ...
Read more >
Local folder or tarball paths
You can use either absolute paths, or paths that are relative to the project's Packages folder (that is, the root folder of the...
Read more >
JAR Manifest Main-Class relative or absolute?
(1) The Main-Class is neither relative not absolute. It isn't a filename at all. It is a fully-qualified class name, including its package....
Read more >
Importing Code into Package.swift - Using Swift - Swift Forums
A manifest can import , but there is no where to tell it where to find any modules Swift doesn't know about automatically....
Read more >
resources for language - Microsoft Q&A
Hello, Welcome to Micorosoft Q&A,. In general, we often set Language as x-generate like the following in the package manifest file.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found