HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Plugins Namespace
Bleistivt
Moderator
I have another naming question:
The newest docs state, that the Plugins
namespace for permissions is deprecated.
So an example permission would be called YourPlugin.Comments.Add
Should the Plugins
namespace still be used for configuration values?
Plugins.YourPlugin.UseCategories
orYourPlugin.Categories.Use
?
Since plugins will get the same powers that applications have (or do they already?) at some point, it would make sense to drop the namespace for consistency.
And what about translation slugs?
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
7
Comments
No, don't use it for config either. Your second example is correct.
Translation slugs should be a normal phrase or sentence, spaced correctly. We've abandoned the "slug" method entirely. This makes them easier to manage on Transifex.