cuba-platform / documentation

CUBA Platform Documentation
https://www.cuba-platform.com
Creative Commons Attribution 4.0 International
26 stars 45 forks source link

Add code sample for specific permission localized caption #729

Closed alexbudarov closed 4 years ago

alexbudarov commented 4 years ago

Environment

Description of the bug or enhancement

From slack:

https://doc.cuba-platform.com/manual-latest/permissions.xml.html It describes " the id Attribute is used as a key to get a localized category name“. How do I localize specific permissions?

Suggestion: Add a small code sample with localized captions in the main messages pack to this page.

And another suggestion: use imagination and create better permission IDs. "doSomething", "doSomethingOther" is garbage. Good examples: "app.payments.exportTransactionsToPdf", "app.orders.modifyInvoicedOrders".