Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Files Overview

The following files shall be used for translations in future.

NameIn modulesPurposeNotes
auth.php(error)Translation strings for authentication
help.php(tick)Help messages for formular fieldsCurrently named helper.php ... will be renamed in future
messages.php(tick)Predominantly for log and error/warning messages (e.g. in modals)
validation.php(error)All validation error messages
view.php(tick)Everything else that appears in views: Labels, Headlines, table headers, sidebar menu entries

Guidelines

(1) Use Array syntax

(2) Create module specific language files

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',
    ],
];
  • No labels