Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

In this Discussion

Plugins Namespace

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
or
YourPlugin.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

LincR_Jperegrine

Comments

  • LincLinc Vanilla's Bard (and Director of Development) Detroit Vanilla Staff

    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.

    R_JBleistivtperegrineShadowdare
Sign In or Register to comment.