Files
Toiminnanohjaus/lang/en/users.php
petriandClaude Sonnet 5.5 32c33e2a64 Give the machine console its own session with PIN sign-in, make counters cumulative
The console under console/ has its own session cookie and console guard
(UseConsoleSession), so signing out or changing user there leaves the
normal interface alone. Links open it in a new window through a one-time
handoff key; a signed-out console asks for a PIN code or password on its
own login page. Users set their 4-6 digit PIN on the profile's PIN page,
and the console's change user dialog takes it on a keypad; five wrong
PINs lock PIN sign-in for 15 minutes.

Machine counters are cumulative: users record how much a job used and it
is added to the latest reading. A maintenance record restarts the whole
counter interval from the reading at the record.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-29 09:58:11 +02:00

140 lines
6.0 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
return [
'title' => 'Users',
'create_title' => 'New user',
'edit_title' => 'Edit user',
'new' => 'New user',
'edit' => 'Edit',
'actions' => 'Actions',
'save' => 'Save',
'cancel' => 'Cancel',
'search' => 'Search users',
'search_description' => 'Search by name or email.',
'empty' => 'No users found.',
'result_count' => '{0} No users|{1} :count user|[2,*] :count users',
'created' => 'User :name added. We sent them a link for setting a password to :email.',
'created_link_failed' => 'User :name added, but sending the link by email failed. Copy the link below and give it to the user.',
'updated' => 'Details of :name saved.',
'send_link' => 'Create a set-password link',
'link_sent' => 'A new link was created and sent to :email. Earlier links no longer work.',
'link_mail_failed' => 'A new link was created, but sending it by email failed. Copy the link below and give it to the user.',
'setup_link' => [
'label' => 'Set-password link',
'hint' => 'The link can be used once and is valid for :count hours. Give it only to the user themselves.',
'copy' => 'Copy link',
'copied' => 'Link copied to the clipboard.',
'copy_failed' => 'Copying failed. The link is selected: copy it with Ctrl+C.',
],
'fields' => [
'name' => 'Name',
'email' => 'Email',
'role' => 'Role',
'status' => 'Status',
'active' => 'Active',
'active_description' => 'An inactive user cannot sign in. Their data is kept.',
'employment_ends_on' => 'Last day of internship',
'employment_ends_on_description' => 'The intern can sign in until the end of this day.',
'supervisor' => 'Supervisor',
'supervisor_placeholder' => 'Choose a supervisor',
],
'roles' => [
'admin' => 'Admin',
'management' => 'Management',
'employee' => 'Employee',
'intern' => 'Intern',
'subcontractor' => 'Subcontractor',
],
'status' => [
'active' => 'Active',
'inactive' => 'Not in use',
'ends_on' => 'Ends :date',
'ended_on' => 'Ended :date',
],
'money_permissions' => [
'legend' => 'Visibility of amounts',
'hint' => 'Consumer product prices are visible to everyone. Other amounts are shown to employees and interns only for the selected areas; admins and management see everything.',
'prices' => 'Prices',
'prices_note' => 'hourly rates and other product prices',
'expenses' => 'Expenses',
'expenses_note' => 'expense amounts',
'quotes' => 'Quotes',
'quotes_note' => 'budget and quote amount',
'billing' => 'Billing',
'billing_note' => 'billing material and billed amounts',
],
'errors' => [
'invalid_money_permission' => 'Choose the visibility of amounts from the list.',
'name_required' => 'Enter a name.',
'invalid_name' => 'The name may be at most 255 characters.',
'email_required' => 'Enter an email address.',
'invalid_email' => 'The email address is not valid.',
'email_taken' => 'There is already a user with this email address.',
'role_required' => 'Choose a role.',
'end_date_required' => 'Enter the last day of the internship.',
'end_date_invalid' => 'The date is not valid.',
'supervisor_required' => 'Choose a supervisor for the intern.',
'invalid_supervisor' => 'The supervisor must be an active user with the management or employee role.',
'last_admin' => 'The last active admin cannot be deactivated or given another role.',
'supervisor_has_interns' => 'The user is the supervisor of active interns. First choose a new supervisor for the interns.',
],
'pin' => [
'title' => 'Console PIN code',
'intro' => 'On a machine console you can switch to your user with your own PIN code, without your email and password. A session opened with the PIN code works only on the machine console.',
'is_set' => 'You have a PIN code.',
'not_set' => 'You do not have a PIN code yet.',
'current_password' => 'Current password',
'pin' => 'New PIN code',
'pin_hint' => '4–6 digits.',
'pin_confirmation' => 'PIN code again',
'save' => 'Save PIN code',
'remove' => 'Remove PIN code',
'saved' => 'PIN code saved.',
'removed' => 'PIN code removed.',
'errors' => [
'pin' => 'Enter 4–6 digits as the PIN code.',
'confirmation' => 'The PIN codes do not match.',
'password' => 'The password is not correct.',
],
],
'console_login' => [
'title' => 'Sign in to the machine console',
'intro' => 'The machine console has a sign-in of its own. The normal user interface in the same browser does not change.',
'with_pin' => 'With a PIN code',
'with_password' => 'With email and password',
],
'pin_switch' => [
'title' => 'Change user',
'user' => 'Who are you?',
'pin' => 'PIN code',
'keypad' => 'Number keys',
'clear' => 'Clear',
'backspace' => 'Remove the last digit',
'submit' => 'Sign in',
'no_users' => 'Nobody has a PIN code yet. A PIN code is set from the profile menu.',
'with_password' => 'Sign in with email and password',
'errors' => [
'user' => 'Choose your name.',
'pin' => 'The PIN code is not correct.',
'locked' => 'Too many wrong attempts. Try again in :minutes min or sign in with your password.',
],
],
'password_mail' => [
'subject' => 'Set your password',
'greeting' => 'Hello!',
'intro' => 'You can set a password for your account in the work management system with the button below.',
'action' => 'Set password',
'expires' => 'The link is valid for :count minutes.',
'expires_hours' => 'The link is valid for :count hours.',
'ignore' => 'If you were not expecting this message, you do not need to do anything.',
],
];