Files
Toiminnanohjaus/lang/en/time.php
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

107 lines
4.8 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' => 'Time entry',
'other_title' => 'Time entry: :name',
'other_intro' => 'You are viewing another user\'s hours. You can approve the week or cancel its approval, but you cannot change the hours.',
'week_heading' => 'Week :number: :from–:to',
'previous_week' => 'Previous week',
'this_week' => 'This week',
'next_week' => 'Next week',
'intro' => 'Enter hours on tasks in quarter hours, for example 2,5. An empty field removes the day\'s entry. A field is saved when you leave it.',
'table_caption' => 'Hours of the week by task',
'task' => 'Task',
'total' => 'Total',
'day_total' => 'Day total',
'week_total' => 'Week total: :hours h',
'hours_suffix' => ':hours h',
'no_rows' => 'No tasks this week. Add a task by searching below.',
'locked' => 'Locked – the job is done',
'cell_label' => 'Hours: :task, :day',
'choose_day' => 'Choose a day',
'day_button' => ':day, :hours h',
'saved' => 'Saved: :task :day :hours h.',
'removed' => 'Removed: :task :day.',
'days' => ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
'add' => [
'search' => 'Add a task to the week',
'search_description' => 'Search by job number, job name or task name.',
'results' => '{0} No matches.|{1} :count match.|[2,*] :count matches.',
'choose' => 'Add to the week: :task',
'added' => 'Task :task added to the week.',
],
'task_page' => [
'title' => 'Enter hours: :task',
'job' => 'Customer job',
'work_type' => 'Work type',
'worked_on' => 'Date',
'hours' => 'Hours',
'hours_description' => 'In quarter hours, for example 1,75. Hours entered for the same day are added to that day\'s entry.',
'note' => 'Description',
'save' => 'Enter hours',
'saved' => 'Entered :hours h. The entry for :day is now :total h.',
'own_entries' => 'My entries',
'no_entries' => 'You have not entered any hours on this task yet.',
'edit' => 'Edit',
'edit_named' => 'Edit the entry for :day',
'remove' => 'Remove',
'remove_named' => 'Remove the entry for :day',
'remove_question' => 'Remove the entry for :day (:hours h)? This cannot be undone.',
'updated' => 'The entry for :day saved.',
'entry_removed' => 'The entry for :day removed.',
'back_to_week' => 'To the week view',
'back_to_job' => 'To the customer job',
'locked' => 'The job is done, so its hours are locked. Entries cannot be added or changed.',
],
'errors' => [
'invalid_hours' => 'Enter hours in quarter hours between 0,25 and 24, for example 2,5.',
'day_full' => 'A day\'s hours may total at most 24.',
'locked' => 'The job is done, so its hours are locked.',
'not_found' => 'The task or entry was not found. Refresh the page.',
'date_required' => 'Enter a date.',
'invalid_date' => 'Enter a date as dd.mm.yyyy.',
'approved' => 'The hours have been approved, so they cannot be changed. Ask management to cancel the approval.',
],
'approval' => [
'title' => 'Week approval',
'unapproved' => 'Not approved: :hours h.',
'no_hours' => 'The week has no hours.',
'approved_by' => 'Approved :date (:name).',
'approve_week' => 'Approve week',
'approve_week_of' => 'Approve week: :name, :week',
'approved' => ':week approved. The approved hours are locked.',
'approved_for' => ':name: :week approved.',
'nothing_to_approve' => 'The week has no unapproved hours.',
'management_approves' => 'Management approves your hours.',
'cancel' => 'Cancel approval',
'cancel_title' => 'Cancel the approval?',
'cancel_question' => 'Cancel the approval of :week? The hours can then be changed, and they must be approved again.',
'cancelled' => ':week: approval cancelled.',
'cell_approved' => 'approved',
'back_to_list' => 'Back to hour approval',
],
'approvals' => [
'title' => 'Hour approval',
'intro' => 'Employees and interns approve their own hours; management approves subcontractors\' hours and can approve anyone\'s. Approval locks the hours. An approval can be cancelled on the week\'s page.',
'pending' => 'Not approved',
'approved' => 'Approved (8 weeks)',
'none_pending' => 'All hours have been approved.',
'none_approved' => 'No approved hours.',
'person' => 'Person',
'all_people' => 'Everyone',
'week' => 'Week',
'hours' => 'Hours',
'approver' => 'Approver',
'actions' => 'Actions',
'open_week' => 'Open week',
'open_week_of' => 'Open week: :name, :week',
'approver_value' => ':name, :date',
],
];