/
Translations
Translations
Files Overview
The following files shall be used for translations in future.
Name | In modules | Purpose | Notes |
---|---|---|---|
auth.php | Translation strings for authentication | ||
help.php | Help messages for formular fields | Currently named helper.php ... will be renamed in future | |
messages.php | Predominantly for log and error/warning messages (e.g. in modals) | ||
validation.php | All validation error messages | ||
view.php | Everything else that appears in views: Labels, Headlines, table headers, sidebar menu entries |
Guidelines
- Use Array syntax
- Create module specific language files
- Use camelCase for array keys
Examples
/* Global / Generic used messages */ $helpmessage1 = trans('help.translate'); /* In file resources/lang/en/help.php */ return [ 'translate' => 'You can help translating NMS PRIME at', ]; /* Module specific */ $helpmessage2 = trans('billing::help.settlementrun.msg'); /* In file modules/BillingBase/Resources/lang/en/help.php */ return [ 'settlementrun' => [ 'msg' => 'This is a help message', 'restartFailed' => 'The array key of the message is camel case!', ], ];
Related content
Invoice Templates
Invoice Templates
More like this
Special Storage Configuration Files
Special Storage Configuration Files
More like this
Function Summary
Function Summary
More like this
Applications Coding Manual
Applications Coding Manual
More like this
Prime Billing
Prime Billing
More like this
Programming Advices
Programming Advices
More like this