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

114 lines
4.7 KiB
PHP
Raw 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 [
'add' => 'Add expense',
'save' => 'Save',
'cancel' => 'Cancel',
'edit' => 'Edit',
'edit_named' => 'Edit expense: :expense, :day',
'remove' => 'Remove',
'remove_named' => 'Remove expense: :expense, :day',
'removal_title' => 'Remove the expense?',
'remove_question' => 'Remove the expense ":expense" (:day)? This cannot be undone.',
'removed' => 'Expense ":expense" removed.',
'saved' => 'Expense saved.',
'updated' => 'Expense updated.',
'actions' => 'Actions',
'none' => 'No expenses.',
'locked' => 'The job is done, so its expenses cannot be added, changed or removed.',
'locked_short' => 'Locked',
'hidden_amount' => 'Not shown',
'not_billed' => 'Not billed',
'amounts_hidden_help' => 'Amounts of expenses recorded by others are shown only if the admin has given you the expenses permission. You always see your own expenses.',
'mileage_summary' => ':km km, :destination (:purpose)',
'categories' => [
'materials' => 'Products, supplies and materials',
'mileage' => 'Mileage',
'other' => 'Other purchases and tools',
],
'payers' => [
'company' => 'Paid by the company',
'employee' => 'Paid myself',
],
'fields' => [
'job' => 'Customer job',
'category' => 'Expense type',
'spent_on' => 'Date',
'paid_by' => 'Paid by',
'user' => 'Whose expense',
'what' => 'Expense',
'description' => 'Description',
'note' => 'Note',
'cost' => 'Cost (€, excl. VAT)',
'cost_column' => 'Cost (excl. VAT)',
'billed_column' => 'Billed (excl. VAT)',
'kilometers' => 'Kilometres',
'destination' => 'Destination',
'purpose' => 'Purpose',
'is_billable' => 'Billed to the customer',
'markup' => 'Markup (%)',
'billed_amount' => 'Amount to bill (€, excl. VAT)',
],
'form' => [
'create_title' => 'New expense',
'edit_title' => 'Edit expense',
'user_help' => 'Management also records subcontractors\' expenses.',
'description_help' => 'What was bought, e.g. printing paper.',
'cost_help' => 'Price excluding VAT, e.g. 24,90.',
'kilometers_help' => 'Kilometres driven, e.g. 42 or 42,5. The cost is calculated from the price list\'s mileage rate.',
'mileage_rate' => 'Mileage rate :rate / km.',
'mileage_cost' => 'Cost: :km km × :rate = :cost',
'billing' => 'Billing',
'markup_help' => 'Added to the cost, e.g. 15.',
'billed_amount_help' => 'Leave empty to bill the cost + markup.',
'suggested_billed' => 'Billed :amount (cost + markup).',
],
'job_page' => [
'title' => 'Expenses: :job',
'list' => 'Recorded expenses',
'back_to_job' => 'Back to the customer job',
'link' => 'Show and record the job\'s expenses',
],
'mine' => [
'title' => 'My expenses',
'help' => 'Expenses are recorded on the customer job\'s Expenses page. Expenses you paid yourself are reimbursed separately.',
'help_subcontractor' => 'Management records your expenses. Here you see the month\'s expenses.',
'month_navigation' => 'Month selection',
'previous' => 'Previous month',
'current' => 'This month',
'next' => 'Next month',
'total' => 'Total (costs, excl. VAT): :total',
],
'totals' => [
'cost' => 'Total costs (excl. VAT)',
'billed' => 'Total billed (excl. VAT)',
],
'months' => ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
'errors' => [
'locked' => 'The job is done, so its expenses can no longer be changed.',
'not_found' => 'The expense was not found. Refresh the page.',
'user_required' => 'Choose whose expense this is.',
'category_required' => 'Choose an expense type from the list.',
'payer_required' => 'Choose who paid from the list.',
'date_required' => 'Enter a date.',
'invalid_date' => 'Enter a date as dd.mm.yyyy.',
'description_required' => 'Tell what was bought.',
'cost_required' => 'Enter the cost.',
'invalid_amount' => 'Enter the amount in euros, e.g. 24 or 24,90 (at most two decimals).',
'invalid_kilometers' => 'Enter the kilometres with at most one decimal, e.g. 42 or 42,5.',
'mileage_details_required' => 'Enter the kilometres, destination and purpose.',
'mileage_rate_missing' => 'The price list has no mileage rate. Ask management to add it.',
'invalid_markup' => 'Enter the markup as a percentage, e.g. 15 (at most two decimals).',
'text_too_long' => 'The text may be at most 255 characters.',
],
];