Files
petriandClaude Opus 5.5 8aead06972 Add English to the UI and a profile menu for language and theme
Every UI string now exists in lang/fi and lang/en; a unit test checks that
both languages have the same keys and placeholders. A user's language is
stored on the account (users.locale) and applied by the SetLocale web
middleware, falling back to the session's choice on signed-out pages and
then APP_LOCALE. Emails use the user's language through
HasLocalePreference, and the login page keeps the language after logout.

The header's name, theme toggle and logout button become one profile menu
(a disclosure) with the language buttons, light/dark/system theme radios
kept on the device, and logging out. Signed-out pages get a Suomi/English
switch next to the theme toggle.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 06:28:39 +02:00

41 lines
1.9 KiB
PHP

<?php
return [
'failed' => 'Sign-in failed. Check your email and password. If your account has been disabled, contact the admin.',
'password' => 'The password is incorrect.',
'throttle' => 'Too many sign-in attempts. Try again in :seconds seconds.',
'forgot_throttle' => 'Too many link requests. Try again in :seconds seconds.',
'account_disabled' => 'Your access has ended. Contact the admin.',
'logged_out' => 'You have signed out.',
'login_title' => 'Sign in',
'login' => 'Sign in',
'email' => 'Email',
'password_label' => 'Password',
'show_password' => 'Show password',
'remember' => 'Remember me on this device',
'forgot_password' => 'Forgot your password?',
'forgot_title' => 'Set a password',
'forgot_intro' => 'Enter the email address of your account. We will send it a link for setting a new password.',
'forgot_submit' => 'Send link',
'forgot_sent' => 'If the address has an account, we have sent it a link for setting a password.',
'back_to_login' => 'Back to sign-in',
'reset_title' => 'Set password',
'reset_intro' => 'Choose a new password. You can then sign in.',
'new_password' => 'New password',
'confirm_password' => 'Repeat new password',
'password_rules' => 'At least 12 characters, upper and lower case letters, a number and a symbol.',
'password_needs_mixed_case' => 'The password must contain both upper and lower case letters.',
'password_needs_number' => 'The password must contain at least one number.',
'password_needs_symbol' => 'The password must contain at least one symbol, for example ! ? - or #.',
'reset_submit' => 'Save password',
'email_required' => 'Enter an email address.',
'email_invalid' => 'The email address is not valid.',
'password_required' => 'Enter a password.',
'password_mismatch' => 'The passwords do not match.',
'password_too_short' => 'The password must be at least :min characters long.',
];