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]>
This commit is contained in:
2026-11-25 06:28:39 +02:00
co-authored by Claude Opus 5.5
parent c2265256c3
commit 8aead06972
40 changed files with 2197 additions and 44 deletions
+8
View File
@@ -0,0 +1,8 @@
{
"Showing": "Showing",
"to": "to",
"of": "of",
"results": "results",
"All rights reserved.": "All rights reserved.",
"If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:": "If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:"
}
+40
View File
@@ -0,0 +1,40 @@
<?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.',
];
+198
View File
@@ -0,0 +1,198 @@
<?php
return [
'expense_line' => ':category :day: :what',
'csv' => [
'file' => 'billing-material-:number.csv',
'download' => 'Download CSV',
'download_short' => 'CSV',
'download_named' => 'Download CSV: Material :number',
'sensitive' => 'The file may contain consumer customers\' personal identity codes. Handle it as confidential and delete it once the data has been transferred to billing.',
'company' => 'Company',
'consumer' => 'Consumer',
'units' => [
'hours' => 'h',
'month' => 'mo',
'piece' => 'pcs',
],
'columns' => [
'Invoice', 'Customer', 'Customer type', 'Business ID', 'Personal identity code', 'Billing unit', 'Billing address',
'E-invoice address', 'Operator', 'Reference', 'Job', 'Job name', 'Line type', 'Description', 'Recorded h',
'Quantity', 'Unit', 'Unit price (c)', 'VAT (‰)', 'Excl. VAT (c)', 'VAT (c)', 'Incl. VAT (c)',
],
],
'statuses' => [
'draft' => 'Draft',
'created' => 'Created',
],
'modes' => [
'hours' => 'Hourly work',
'fixed_price' => 'Fixed price',
'monthly_fee' => 'Monthly fee',
'none' => 'Not billed through billing material',
],
'kinds' => [
'hours' => 'Hours',
'fixed_price' => 'Fixed price',
'expense' => 'Expense',
'monthly_fee' => 'Monthly fee',
],
'reasons' => [
'wrong_status' => 'The job is not done.',
'not_billable_basis' => 'The job is not billed through billing material (not billable, or an internal customer).',
'missing_monthly_fee' => 'The monthly billing job has no monthly fee.',
'missing_identity_code' => 'The customer\'s personal identity code is missing.',
'missing_hourly_rate' => 'Hourly rate missing: :names',
'missing_quoted_amount' => 'The fixed-price job has no quote amount.',
'nothing_to_bill' => 'Nothing to bill: no approved hours, unbilled months or billable expenses.',
],
'merge_refusals' => [
'different_customer' => 'The jobs have different customers.',
'different_billing_unit' => 'The jobs have different billing units.',
'different_reference' => 'The jobs have different customer references.',
'monthly_fee_alone' => 'A monthly billing job is billed on an invoice of its own.',
],
'index' => [
'title' => 'Billing',
'intro' => 'Once a month, the approved hours and billable expenses of done jobs are collected into billing material. The material is worked on as a draft, and creating it marks the lines as billed and moves the jobs to the status Invoice created.',
'new' => 'New material',
'continue' => 'Continue draft',
'none' => 'There is no billing material yet.',
'table' => 'Billing material',
'columns' => [
'number' => 'Material',
'status' => 'Status',
'created' => 'Started',
'finalized' => 'Created',
'invoices' => 'Invoices',
'jobs' => 'Jobs',
'net' => 'Amount excl. VAT',
'file' => 'File',
],
'export_label' => 'Material :number',
'draft_label' => 'Draft',
],
'export' => [
'title' => 'Billing material :number',
'draft_title' => 'Billing material draft',
'back' => 'All billing material',
'draft_info' => 'Draft, started by :name :at. Changes are saved immediately.',
'created_info' => 'Created :at by :name.',
'summary' => ':invoices invoices, :jobs jobs, total excl. VAT :net.',
'finalize' => 'Create material',
'finalize_title' => 'Create the billing material?',
'finalize_text' => 'The material will have :invoices invoices, total excl. VAT :net. Creating it marks the hours and expenses as billed and moves the jobs to the status Invoice created. Created material can no longer be changed.',
'finalized' => 'Billing material created: :invoices invoices.',
'discard' => 'Discard draft',
'discard_title' => 'Discard the draft?',
'discard_text' => 'The draft is deleted. Nothing has been billed yet, so the jobs stay as they are.',
'discarded' => 'Draft discarded.',
'problems' => 'Not all jobs can be billed. Fix or remove the marked jobs before creating the material.',
'period' => 'Billing month',
'period_help' => 'Monthly billing jobs are billed up to this month, including any skipped months.',
'period_saved' => 'The billing month is now :month.',
],
'invoices' => [
'title' => 'Invoices',
'none' => 'The draft has no jobs yet. Add done jobs below.',
'heading' => 'Invoice :number: :customer',
'billing_unit' => 'Billing unit',
'reference' => 'Customer reference',
'no_billing_unit' => 'No billing unit',
'no_reference' => 'No reference',
'totals' => 'Invoice totals',
'net' => 'Excl. VAT',
'vat' => 'VAT :rate',
'gross' => 'Incl. VAT',
'export_totals' => 'Material totals',
],
'jobs' => [
'open_job' => 'Open job :job',
'mode' => 'Billing method: :mode',
'unapproved' => 'Unapproved hours :hours h. They are not included in the material, and because the job moves to the status Invoice created, they will remain unbilled.',
'approvals_link' => 'Hour approval',
'hours_caption' => 'Hours by work type: :job',
'work_type' => 'Work type',
'approved_hours' => 'Approved h',
'billable_hours' => 'Billable h',
'billable_label' => 'Billable hours: :work_type',
'adjusted' => 'changed',
'rate' => 'Hourly rate',
'net' => 'Excl. VAT',
'no_rate' => 'Missing',
'billable_help' => 'By default the billable hours are the sum of the approved hours. An empty field restores the default.',
'fixed_price' => 'Fixed price: :amount',
'fixed_price_billed' => 'The fixed price has already been billed in earlier billing material.',
'fixed_hours' => 'The approved hours :hours h are shown for information and marked as billed.',
'monthly_hours' => 'The approved hours :hours h are included in the monthly fee and are marked as billed.',
'months_caption' => 'Billable months: :job',
'month' => 'Month',
'no_months' => 'No unbilled months.',
'no_hours' => 'No approved unbilled hours.',
'expenses_caption' => 'Expenses: :job',
'expense' => 'Expense',
'amount' => 'Excl. VAT',
'move_label' => 'Move to invoice: :job',
'move_placeholder' => 'Choose an invoice',
'move' => 'Move',
'move_named' => 'Move job :job',
'moved' => 'Job :job moved to the invoice.',
'separate' => 'Own invoice',
'separate_named' => 'Make job :job an invoice of its own',
'separated' => 'Job :job was made an invoice of its own.',
'remove' => 'Remove from material',
'remove_named' => 'Remove from material: :job',
'removed' => 'Job :job removed from the material.',
'hours_saved' => 'Billable hours saved: :job, :work_type.',
],
'lines' => [
'caption' => 'Invoice lines: :job',
'description' => 'Line',
'recorded' => 'Recorded h',
'quantity' => 'Billed h',
'unit_price' => 'Unit price',
'net' => 'Excl. VAT',
],
'available' => [
'title' => 'Billable jobs',
'intro' => 'Done jobs and monthly billing jobs that are not in the draft. Each added job is at first an invoice of its own.',
'none' => 'No other billable jobs.',
'columns' => [
'job' => 'Job',
'customer' => 'Customer',
'mode' => 'Billing method',
'hours' => 'Approved h',
'expenses' => 'Expenses',
'notes' => 'Notes',
'actions' => 'Actions',
],
'add' => 'Add to material',
'add_named' => 'Add to material: :job',
'added' => 'Job :job added to the material.',
'unapproved' => 'Not approved: :hours h',
],
'errors' => [
'draft_open' => 'A draft is already open. Continue it.',
'not_draft' => 'The material has already been created and cannot be changed.',
'not_found' => 'The billing material was not found.',
'empty' => 'The material has no jobs.',
'already_in_draft' => 'The job is already in the material.',
'not_in_draft' => 'The job is not in the material.',
'not_billable' => 'Job :job cannot be billed: :reason',
'hours' => 'Enter the hours in quarter hours, for example 12,5 or 3,25.',
'period' => 'Choose a month.',
],
];
+238
View File
@@ -0,0 +1,238 @@
<?php
return [
'title' => 'Basic data',
'intro' => 'Service units, services and work types. Service units are chosen for a customer job, and tasks and hours are recorded on work types. Rows are not deleted but taken out of use, so that old entries are kept.',
'show_inactive' => 'Show rows not in use',
'inactive' => 'Not in use',
'shared' => 'The work types can be chosen in all service units.',
'no_work_types' => 'No work types.',
'save' => 'Save',
'cancel' => 'Cancel',
'yes' => 'Yes',
'no' => 'No',
'prices_link' => 'Price list: hourly rates, products and mileage rate',
'workflows_link' => 'Workflow templates: ready-made task lists for work types',
'workflows' => [
'title' => 'Workflow templates',
'intro' => 'A template creates a ready-made task list for a customer job, e.g. video shoot: planning → shooting → editing → review → delivery. Changing a template does not change tasks already created. Templates are not deleted but taken out of use.',
'back_to_catalog' => 'Back to basic data',
'none' => 'No templates yet.',
'add' => 'Add template',
'create_title' => 'New workflow template',
'edit_title' => 'Edit workflow template',
'name_help' => 'E.g. Short video. The same work type can have several templates.',
'work_type' => 'Work type',
'work_type_help' => 'The template is offered for jobs whose service unit has the work type (templates of work types common to all are offered for all jobs).',
'choose_work_type' => 'Choose a work type',
'step_count' => 'Steps',
'steps' => 'Steps',
'steps_help' => 'Each step becomes a task, in this order.',
'step_legend' => 'Step :number',
'step_title' => 'Task name',
'step_work_type' => 'Task work type',
'step_work_type_named' => 'Task work type, step :number',
'step_work_type_help' => 'The hours are priced at this work type\'s hourly rate.',
'template_work_type' => 'Template\'s work type',
'step_description' => 'Description',
'add_step' => 'Add step',
'move_up' => 'Move up',
'move_down' => 'Move down',
'move_up_named' => 'Move up: step :number',
'move_down_named' => 'Move down: step :number',
'remove_step' => 'Remove step',
'remove_step_named' => 'Remove step :number',
'status' => [
'step_added' => 'Step :number added.',
'step_moved' => 'Step :from moved to position :to.',
'step_removed' => 'Step :number removed.',
'already_first' => 'Step :number is already first.',
'already_last' => 'Step :number is already last.',
'deactivated' => ':name taken out of use. It is not offered for jobs.',
],
'errors' => [
'name_taken' => 'The work type already has a template with this name.',
'work_type_required' => 'Choose a work type.',
'steps_required' => 'Add at least one step to the template.',
'step_title_required' => 'Enter the task name.',
'invalid_step_title' => 'The task name may be at most 255 characters.',
'step_work_type_not_allowed' => 'Choose a work type in use from the template\'s service unit or from those common to all.',
'description_too_long' => 'The description may be at most 5 000 characters.',
],
],
'actions' => [
'edit' => 'Edit',
'edit_named' => 'Edit: :name',
'move_up_named' => 'Move up: :name',
'move_down_named' => 'Move down: :name',
'active' => 'In use',
'active_named' => 'In use: :name',
'add_service_unit' => 'Add service unit',
'add_service' => 'Add service',
'add_service_to' => 'Add a service to unit :name',
'add_work_type' => 'Add work type',
'add_work_type_to' => 'Add a work type to unit :name',
],
'status' => [
'moved_up' => ':name moved up.',
'moved_down' => ':name moved down.',
'already_first' => ':name is already first.',
'already_last' => ':name is already last.',
'activated' => ':name taken into use.',
'deactivated' => ':name taken out of use. It is not shown in new selections.',
'not_found' => 'The row was not found. Refresh the page.',
'created' => ':name added.',
'updated' => ':name saved.',
],
'service_units' => [
'create_title' => 'New service unit',
'edit_title' => 'Edit service unit',
],
'services' => [
'create_title' => 'New service',
'edit_title' => 'Edit service',
],
'work_types' => [
'create_title' => 'New work type',
'edit_title' => 'Edit work type',
'service' => 'Service',
'service_description' => 'A work type can belong to a service or directly to a service unit.',
'no_service' => 'No service (directly under the service unit)',
'hourly_rate' => 'Hourly rate (€/h, excl. VAT)',
'hourly_rate_help' => 'E.g. 85 or 85,50. Leave empty if the work type has no price.',
],
'prices' => [
'title' => 'Price list',
'intro' => 'Prices exclude VAT, except consumer product prices, which are entered including VAT. A price change applies to billing material and sales made after the change; material already created keeps its prices.',
'hourly_rates' => 'Hourly rates',
'hourly_rates_help' => 'The hourly rate is set per work type. The rate is saved when you leave the field. An empty field removes the rate.',
'work_type' => 'Work type',
'hourly_rate' => 'Hourly rate (€/h)',
'rate_label' => 'Hourly rate €/h: :name, :unit',
'rate_saved' => ':name: hourly rate :rate saved.',
'rate_removed' => ':name: hourly rate removed.',
],
'products' => [
'title' => 'Products',
'help' => 'Fixed-price products sold by the piece, e.g. passport photos and prints. Consumer product prices are visible to all users.',
'none' => 'No products.',
'add' => 'Add product',
'create_title' => 'New product',
'edit_title' => 'Edit product',
'unit' => 'Unit',
'vat_rate' => 'VAT rate',
'price_net' => 'Price excl. VAT (€ / unit)',
'price_gross' => 'Price incl. VAT (€ / unit)',
'price_help' => 'Price excluding VAT, e.g. 12 or 12,50.',
'price_gross_help' => 'A consumer product\'s price is entered including VAT, e.g. 18 or 18,50. The price excluding VAT is calculated from the VAT rate.',
'net_equivalent' => 'Price excl. VAT: :price',
'gross_equivalent' => 'Price incl. VAT: :price',
'net_column' => 'Price excl. VAT',
'gross_column' => 'Price incl. VAT',
'vat_column' => 'VAT',
'entered' => 'entered price',
'consumer' => 'Consumer product',
'consumer_help' => 'A consumer product\'s price is visible to all users, including those without permission to other prices.',
'consumer_column' => 'Consumer product',
'auto_booking' => 'Automatic time entry',
'duration' => 'Duration (h)',
'duration_help' => 'Time recorded for the seller in hours, in steps of 0,25 h, e.g. 0,25. Leave empty if no hours are recorded.',
'duration_column' => 'Time entry',
'duration_value' => ':hours h',
'no_duration' => 'No',
'work_type' => 'Work type',
'work_type_help' => 'The work type the duration is recorded on. Required if a duration is given.',
'no_work_type' => 'No work type',
'actions' => 'Actions',
'deactivated' => ':name taken out of use. It can no longer be sold.',
],
'vat_rates' => [
'title' => 'VAT rates',
'help' => 'A VAT rate is chosen for each product. The default rate is used for hours, expenses and mileage in billing material. When the statutory rate changes, change the rate\'s percentage: the change applies to all products that use the rate.',
'add' => 'Add VAT rate',
'create_title' => 'New VAT rate',
'edit_title' => 'Edit VAT rate',
'change_help' => 'A change of percentage applies to all products that use this rate. Consumer products keep their price including VAT and their price excluding VAT is recalculated; other products keep their price excluding VAT.',
'name_help' => 'E.g. Standard or Reduced 10 %.',
'percentage' => 'VAT percentage (%)',
'percentage_help' => 'E.g. 25,5 or 0.',
'percentage_column' => 'Percentage',
'default_column' => 'Default',
'is_default' => 'Default rate',
'is_default_help' => 'This is the default rate. The default can be moved to another rate on its form.',
'make_default' => 'Default rate',
'make_default_help' => 'The default rate is used for hours, expenses and mileage. Selecting this moves the default to this rate.',
'deactivated' => ':name taken out of use. It cannot be chosen for new products.',
],
'price_list' => [
'product' => 'Product',
'consumer_products' => 'Consumer products',
'consumer_help' => 'Prices include VAT.',
'other_products' => 'Other products',
'hourly_help' => 'Hourly rates exclude VAT.',
'no_price' => 'No price',
'mileage_value' => ':rate / km (excl. VAT)',
'no_permission' => 'Hourly rates and other product prices are shown only if the admin has given you the prices permission.',
],
'units' => [
'piece' => 'pcs',
'page' => 'page',
'square_metre' => 'm²',
'metre' => 'm',
'hour' => 'h',
'package' => 'package',
],
'expense_markup' => [
'section' => 'Expenses',
'label' => 'Default expense markup (%)',
'help' => 'Suggested as the markup of new purchase expenses, e.g. 15. No markup is added to mileage. Empty field: no markup.',
'saved' => 'Default expense markup :markup saved.',
'removed' => 'Default expense markup removed.',
],
'mileage' => [
'title' => 'Mileage rate',
'rate' => 'Mileage rate (€/km, excl. VAT)',
'help' => 'The price of mileage expenses, e.g. 0,59. An empty field removes the rate.',
'saved' => 'Mileage rate :rate saved.',
'removed' => 'Mileage rate removed.',
],
'fields' => [
'name' => 'Name',
'service_unit' => 'Service unit',
],
'errors' => [
'name_required' => 'Enter a name.',
'invalid_name' => 'The name may be at most 100 characters.',
'name_taken' => 'There is already a row with this name on the same level.',
'service_not_in_unit' => 'The chosen service belongs to another service unit.',
'shared_unit_has_no_services' => 'Services cannot be added to the work types common to all.',
'invalid_markup' => 'Enter the markup as a percentage between 0 and 100, at most two decimals (e.g. 15).',
'invalid_price' => 'Enter the price in euros, e.g. 85 or 85,50 (at most two decimals, 0–1 000 000 €).',
'price_required' => 'Enter a price.',
'invalid_unit' => 'Choose a unit from the list.',
'product_name_taken' => 'A product with this name already exists.',
'invalid_duration' => 'Enter the duration in hours in steps of 0,25 h, at most 24 h (e.g. 0,25 or 1,5).',
'work_type_required' => 'Choose the work type the duration is recorded on.',
'work_type_unavailable' => 'The chosen work type is not in use. Choose another.',
'vat_rate_unavailable' => 'Choose a VAT rate in use.',
'vat_rate_name_taken' => 'A VAT rate with this name already exists.',
'vat_percentage_required' => 'Enter the VAT percentage.',
'invalid_vat_percentage' => 'Enter the VAT percentage between 0 and 100, at most two decimals (e.g. 25,5).',
'default_vat_rate_active' => ':name is the default rate and cannot be taken out of use. First move the default to another rate.',
],
];
+27
View File
@@ -0,0 +1,27 @@
<?php
return [
'title' => 'Company details',
'intro' => 'The company details are printed on receipts, and the menu name is shown at the left edge of the main menu. The VAT number is formed from the business ID.',
'fields' => [
'name' => 'Company name',
'menu_name' => 'Menu name',
'menu_name_hint' => 'Shown at the left edge of the main menu. If left empty, the name Toiminnanohjaus is used.',
'business_id' => 'Business ID',
'business_id_hint' => 'For example 1234567-8.',
'address' => 'Address',
'address_hint' => 'Street address, postcode and town on separate lines.',
'phone' => 'Phone',
'email' => 'Email',
],
'save' => 'Save',
'saved' => 'Company details saved.',
'errors' => [
'name' => 'Enter the company name (at most 255 characters).',
'business_id' => 'Enter a valid business ID, e.g. 1234567-8.',
'menu_name' => 'The menu name may be at most 100 characters.',
'address' => 'The address may be at most 500 characters.',
'phone' => 'The phone number may be at most 50 characters.',
'email' => 'Enter a valid email address.',
],
];
+124
View File
@@ -0,0 +1,124 @@
<?php
return [
'title' => 'Customers',
'create_title' => 'New customer',
'edit_title' => 'Edit customer',
'new' => 'New customer',
'edit' => 'Edit',
'actions' => 'Actions',
'save' => 'Save',
'cancel' => 'Cancel',
'search' => 'Search customers',
'search_description' => 'Search by name or business ID.',
'empty' => 'No customers found.',
'result_count' => '{0} No customers|{1} :count customer|[2,*] :count customers',
'created' => 'Customer :name added. You can now add contacts and billing units.',
'updated' => 'Details of :name saved.',
'edit_details' => 'Edit details',
'remove' => 'Remove',
'remove_customer' => 'Remove customer',
'customer_label' => 'Customer',
'internal' => 'Internal',
'internal_description' => 'Our own company. Internal work, such as administration, sales and training, is recorded on its customer jobs.',
'contacts' => [
'title' => 'Contacts',
'new' => 'Add contact',
'empty' => 'No contacts have been added for this customer yet.',
'create_title' => 'New contact',
'edit_title' => 'Edit contact',
'edit_named' => 'Edit contact :name',
'remove_named' => 'Remove contact :name',
'created' => 'Contact :name added.',
'updated' => 'Details of contact :name saved.',
'fields' => [
'name' => 'Name',
'title' => 'Title or role',
'title_description' => 'For example marketing manager or invoice approver.',
'phone' => 'Phone',
'email' => 'Email',
'note' => 'Note',
],
],
'billing_units' => [
'title' => 'Billing units',
'new' => 'Add billing unit',
'empty' => 'No billing units have been added for this customer yet.',
'create_title' => 'New billing unit',
'edit_title' => 'Edit billing unit',
'edit_named' => 'Edit billing unit :name',
'remove_named' => 'Remove billing unit :name',
'created' => 'Billing unit :name added.',
'updated' => 'Details of billing unit :name saved.',
'fields' => [
'name' => 'Name',
'name_description' => 'Each billing unit gets its own invoices.',
'billing_address' => 'Billing address',
'billing_address_description' => 'Postal address for a paper invoice, or a billing email address.',
'e_invoice_address' => 'E-invoice address',
'e_invoice_address_description' => 'For example the OVT code 003712345678. Optional.',
'e_invoice_operator' => 'Operator ID',
'e_invoice_operator_description' => 'The e-invoice operator\'s ID, for example 003721291126. Required if an e-invoice address is given.',
'reference' => 'Reference',
'reference_description' => 'A reference requested by the customer, printed on the invoice.',
],
],
'removal' => [
'title' => 'Confirm removal',
'question_customer' => 'Remove customer :name? This cannot be undone.',
'question_contact' => 'Remove contact :name? This cannot be undone.',
'question_billing_unit' => 'Remove billing unit :name? This cannot be undone.',
'removed_customer' => 'Customer :name removed.',
'removed_contact' => 'Contact :name removed.',
'removed_billing_unit' => 'Billing unit :name removed.',
'already_removed' => 'The row was not found. It may already have been removed.',
'in_use_customer' => 'Customer :name was not removed because it has contacts, billing units, customer jobs, sales or invoices. A customer can be removed only when nothing is linked to it.',
'internal_customer' => 'The internal customer cannot be removed.',
'in_use_contact' => 'Contact :name was not removed because it is selected on a customer job. First choose another contact for the customer job.',
'in_use_billing_unit' => 'Billing unit :name was not removed because it is selected on a customer job. First choose another billing unit for the customer job.',
],
'fields' => [
'name' => 'Name',
'type' => 'Customer type',
'business_id' => 'Business ID',
'business_id_description' => 'In the format 1234567-8. Optional.',
'personal_identity_code' => 'Personal identity code',
'personal_identity_code_description' => 'Needed when an invoice is sent to a consumer. In the format 131052-308T. Optional.',
'personal_identity_code_stored' => 'Saved: :code. Leave empty if you do not change it.',
'personal_identity_code_missing' => 'Not given – needed for billing',
'remove_personal_identity_code' => 'Remove the saved personal identity code',
],
'types' => [
'company' => 'Company',
'consumer' => 'Consumer',
],
'errors' => [
'name_required' => 'Enter the customer\'s name.',
'invalid_name' => 'The name may be at most 255 characters.',
'type_required' => 'Choose a customer type.',
'invalid_business_id' => 'The business ID is not valid. Check the digits and the format 1234567-8.',
'consumer_business_id' => 'A consumer customer cannot have a business ID.',
'business_id_taken' => 'There is already a customer with this business ID.',
'invalid_personal_identity_code' => 'The personal identity code is not valid. Check the date, the separator and the check character, for example 131052-308T.',
'company_personal_identity_code' => 'A company customer cannot have a personal identity code.',
'internal_must_be_company' => 'The internal customer is our own company, so it cannot be a consumer.',
'personal_identity_code_taken' => 'There is already a customer with this personal identity code. Search for the customer in the list by name.',
'personal_identity_code_throttled' => 'You have saved personal identity codes too many times within an hour. Try again later or ask management to save the code.',
'contact_name_required' => 'Enter the contact\'s name.',
'invalid_contact_name' => 'The name may be at most 255 characters.',
'invalid_email' => 'The email address is not valid.',
'billing_unit_name_required' => 'Enter the billing unit\'s name.',
'invalid_billing_unit_name' => 'The name may be at most 255 characters.',
'invalid_e_invoice_address' => 'The e-invoice address must have 12–35 letters or digits, for example 003712345678.',
'e_invoice_operator_required' => 'Enter the operator ID, because an e-invoice address is given.',
'too_long' => 'The text may be at most :max characters.',
],
];
+113
View File
@@ -0,0 +1,113 @@
<?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.',
],
];
+68
View File
@@ -0,0 +1,68 @@
<?php
return [
'title' => 'Public holidays',
'intro' => 'Finnish public holidays are calculated automatically for every year. The task calendar shows them like weekends, but tasks can still be scheduled on them. A holiday can be taken out of use, and the company\'s own days off can be added.',
'year_heading' => 'Year :year',
'previous_year' => 'Previous year',
'next_year' => 'Next year',
'showing_year' => 'Showing the public holidays of :year.',
'columns' => [
'date' => 'Date',
'name' => 'Name',
'kind' => 'Type',
'state' => 'Status',
'actions' => 'Actions',
],
'kinds' => [
'public' => 'Public holiday',
'company' => 'Company day off',
],
'in_use' => 'In use',
'not_in_use' => 'Not in use',
'disable' => 'Take out of use',
'enable' => 'Take into use',
'remove' => 'Remove',
'disable_named' => 'Take out of use: :name, :day',
'enable_named' => 'Take into use: :name, :day',
'remove_named' => 'Remove: :name, :day',
'disabled' => ':name (:day) taken out of use.',
'enabled' => ':name (:day) taken into use.',
'removed' => ':name (:day) removed.',
'added' => ':name (:day) added.',
'not_changed' => 'The day could not be changed. Reload the page.',
'add_heading' => 'Add a company day off',
'add' => 'Add',
'fields' => [
'date' => 'Date',
'name' => 'Name',
'name_hint' => 'For example "Company recreation day".',
],
'errors' => [
'date' => 'Enter a date as dd.mm.yyyy between the years 2000 and 2100.',
'name' => 'Enter a name (at most 100 characters).',
'exists' => 'The day is already a public holiday or a day off.',
],
'names' => [
'new_years_day' => 'New Year\'s Day',
'epiphany' => 'Epiphany',
'good_friday' => 'Good Friday',
'easter_monday' => 'Easter Monday',
'may_day' => 'May Day',
'ascension_day' => 'Ascension Day',
'midsummer_eve' => 'Midsummer Eve',
'independence_day' => 'Independence Day',
'christmas_eve' => 'Christmas Eve',
'christmas_day' => 'Christmas Day',
'st_stephens_day' => 'Boxing Day',
],
'weekdays' => [
1 => 'Mon',
2 => 'Tue',
3 => 'Wed',
4 => 'Thu',
5 => 'Fri',
6 => 'Sat',
7 => 'Sun',
],
];
+381
View File
@@ -0,0 +1,381 @@
<?php
return [
'vat_excluded' => '(excl. VAT)',
'title' => 'Customer jobs',
'new' => 'New customer job',
'create_title' => 'New customer job',
'edit_title' => 'Edit customer job',
'edit' => 'Edit',
'save' => 'Save',
'cancel' => 'Cancel',
'created' => 'Customer job :number :name created.',
'updated' => 'Details of customer job :number saved.',
'not_set' => '–',
'late' => 'Late',
'opens_in_new_tab' => 'opens in a new tab',
'tasks' => [
'title' => 'Tasks',
'new' => 'Add task',
'create_title' => 'New task',
'edit_title' => 'Edit task',
'job_label' => 'Customer job',
'empty' => 'No tasks.',
'expand_all' => 'Expand all',
'collapse_all' => 'Collapse all',
'all_expanded' => 'All tasks expanded.',
'all_collapsed' => 'All tasks collapsed.',
'not_allowed_yet' => 'Tasks can be added once the job is in the quote request status or later.',
'created' => 'Task :title added.',
'updated' => 'Task :title saved.',
'removed' => 'Task :title removed.',
'not_found' => 'The task was not found. Refresh the page.',
'status_of' => 'Status: :title',
'status_changed' => 'The status of task :title is now :status.',
'edit_named' => 'Edit task :title',
'remove_named' => 'Remove task :title',
'remove_question' => 'Remove task :title? This cannot be undone.',
'has_time_entries' => 'Task :title was not removed because hours have been entered on it.',
'book_time' => 'Enter hours',
'book_time_named' => 'Enter hours on task :title',
'from_template' => [
'title' => 'Add tasks from a template',
'intro' => 'Choose a workflow template. A task in the status Waiting is added for each step. You become the assignee unless you choose someone else. The tasks can be edited after they are added.',
'template' => 'Workflow template',
'option' => ':name (:work_type)',
'steps' => 'Steps: :steps',
'table_caption' => 'Tasks of template :name',
'schedule_help' => 'The due date, estimated time and assignee are optional. They can also be added later on the task form.',
'schedule_to_due' => 'Schedule the tasks to their due dates',
'schedule_to_due_hint' => 'A task ends on its due date. If the estimated time does not fit in the assignee\'s free time on the due date, the schedule starts earlier, but not before today.',
'task' => 'Task',
'due_on_of' => 'Due date: :title',
'hours_of' => 'Estimated time (h): :title',
'assignee_of' => 'Assignee: :title',
'none' => 'There are no workflow templates in use for the job\'s service units. Admins and management add templates in the basic data.',
'back' => 'Back to the job',
'submit' => 'Add tasks',
'choose' => 'Choose a template.',
'not_available' => 'The template is no longer available for this job. Choose another.',
'added' => '{1} Added 1 task from template :name.|[2,*] Added :count tasks from template :name.',
'scheduled' => '{1} 1 task was scheduled to its due date.|[2,*] :count tasks were scheduled to their due dates.',
'late' => '{1} 1 task did not fit in the assignee\'s days and ends after its due date.|[2,*] :count tasks did not fit in the assignees\' days and end after their due dates.',
],
'fields' => [
'title' => 'Name',
'work_type' => 'Work type',
'work_type_description' => 'Work types of the job\'s service units and those common to all.',
'assignee' => 'Assignee',
'assignee_hint' => 'The task is shown on the assignee\'s row in the task calendar and books their time.',
'members' => 'Members',
'members_hint' => 'Members see the task among their own jobs and hours, but it does not book their time in the calendar.',
'status' => 'Status',
'due_on' => 'Due date',
'estimated_hours' => 'Estimated time (h)',
'description' => 'Description',
'planned_from' => 'Schedule starts',
'planned_to' => 'Schedule ends',
'planned_hint' => 'The task is shown on the assignee\'s row in the task calendar. Without an end, the task lasts one day.',
],
'schedule' => 'Schedule',
'schedule_range' => ':from–:to',
'extended' => 'The assignee\'s days were full, so the schedule continues until :to.',
'statuses' => [
'waiting' => 'Waiting',
'in_progress' => 'In progress',
'in_review' => 'In review',
'done' => 'Done',
],
'checklist' => [
'title' => 'Checklist',
'progress' => '(:done/:total done)',
'list_of' => 'Checklist: :title',
'empty' => 'No items.',
'done' => 'done',
'not_done' => 'not done',
'new_item' => 'New item',
'text' => 'Item text',
'add' => 'Add item',
'add_named' => 'Add an item to task :title',
'save' => 'Save',
'cancel' => 'Cancel',
'rename_named' => 'Edit item :text',
'move_up_named' => 'Move up: :text',
'move_down_named' => 'Move down: :text',
'remove_named' => 'Remove item :text',
'added' => 'Item :text added.',
'renamed' => 'Item :text saved.',
'removed' => 'Item :text removed.',
'checked' => 'Item :text marked as done.',
'unchecked' => 'Item :text marked as not done.',
'moved_up' => 'Item :text moved up.',
'moved_down' => 'Item :text moved down.',
'already_first' => 'Item :text is already first.',
'already_last' => 'Item :text is already last.',
'not_found' => 'The item was not found. Refresh the page.',
'errors' => [
'text_required' => 'Enter the item text.',
'invalid_text' => 'The item text may be at most 255 characters.',
],
],
'errors' => [
'title_required' => 'Enter the task name.',
'invalid_title' => 'The name may be at most 255 characters.',
'work_type_required' => 'Choose a work type.',
],
],
'board' => [
'title' => 'Board',
'link' => 'Show as a board',
'show_list' => 'Show as a list',
'columns' => 'Board columns',
'count' => '{0} no jobs|{1} :count job|[2,*] :count jobs',
'empty' => 'No jobs in this status.',
'status_of' => 'Status: :job',
'moved' => 'Job :job moved to the status :status.',
'not_moved' => 'The job was not moved. Refresh the page and try again.',
'billing_not_allowed' => 'Job :job was not moved: the status :status can only be set by management or the job\'s biller.',
'unlock_not_allowed' => 'Job :job was not moved to the status :status: the hours and expenses of a done job are locked, and only management can unlock them.',
],
'calendar' => [
'title' => 'Task calendar',
'intro' => 'Tasks by assignee according to their schedule. Move a task by dragging its bar, change its length by dragging the bar\'s edge, or open the bar as a button to change the schedule, assignee and status in a form.',
'range' => ':from–:to',
'previous' => 'Previous 2 weeks',
'next' => 'Next 2 weeks',
'today' => 'Today',
'today_marker' => 'today',
'showing' => 'Showing :from–:to.',
'only_mine' => 'Only my row',
'subcontractor_note' => 'You see your own tasks in the jobs you are attached to.',
'people' => 'Assignees',
'no_assignee' => 'No assignee',
'load' => ':booked / :capacity h',
'load_of' => ':day: booked :booked / :capacity h',
'over_capacity' => 'over',
'holiday' => 'Public holiday',
'no_tasks' => 'No tasks in this period.',
'bar_label' => ':title, :job, :status, :from–:to:hours',
'bar_hours' => ', :hours h',
'continues' => 'continues',
'info' => [
'job' => 'Job',
'customer' => 'Customer',
'job_status' => 'Job status',
'job_due_on' => 'Job due date',
'responsible' => 'Responsible person',
'work_type' => 'Work type',
'due_on' => 'Task due date',
'schedule' => 'Schedule',
],
'unscheduled' => 'Unscheduled tasks',
'unscheduled_intro' => 'Open tasks without a schedule. Drag a task onto the calendar or choose Schedule.',
'unscheduled_none' => 'All open tasks have been scheduled.',
'schedule' => 'Schedule',
'schedule_named' => 'Schedule task :title',
'dialog_title' => 'Task schedule',
'dialog_task' => ':title (:job)',
'fields' => [
'from' => 'Starts',
'to' => 'Ends',
'to_hint' => 'If left empty, the task gets as many working days as its estimate needs.',
'assignee' => 'Assignee',
'assignee_hint' => 'The task moves to the chosen person\'s row. The members are kept.',
'status' => 'Status',
],
'save' => 'Save',
'clear' => 'Remove schedule',
'open_job' => 'Open job',
'edit_task' => 'Edit task',
'moved' => 'Task :title: :person :from–:to.',
'moved_extended' => 'Task :title: :person :from–:to. The days were full, so the task continues until :to.',
'status_changed' => 'The status of task :title is now :status.',
'cleared' => 'The schedule of task :title removed.',
'not_changed' => 'The task was not changed. Refresh the page and try again.',
'inactive_person' => 'The task was not moved: the chosen person is no longer active.',
'errors' => [
'from' => 'Enter a start date.',
'to' => 'The end cannot be before the start.',
],
],
'quick' => [
'title' => 'Quick intake',
'intro' => 'Record a new job quickly. Other details can be completed later on the job\'s page.',
'description' => 'Short description',
'service_unit' => 'Service unit',
'service_unit_required' => 'Choose a service unit.',
'save' => 'Save job',
'open' => 'Open job :number',
'complete' => 'Complete details',
'link' => 'Quick intake',
],
'list' => [
'search' => 'Search customer jobs',
'search_description' => 'Search by number, name or customer name.',
'all_statuses' => 'All statuses (except archived)',
'all_priorities' => 'All priorities',
'all_service_units' => 'All service units',
'only_mine' => 'Only my jobs',
'only_mine_description' => 'Jobs where you are the responsible person, contact person, biller or a member.',
'include_archived' => 'Show archived',
'empty' => 'No customer jobs found.',
'result_count' => '{0} No customer jobs|{1} :count customer job|[2,*] :count customer jobs',
'subcontractor_note' => 'You see the customer jobs you are attached to.',
],
'sections' => [
'expenses' => 'Expenses',
'basics' => 'Basic details',
'schedule' => 'Schedule',
'classification' => 'Classification',
'members' => 'Members',
'extra' => 'Additional details',
'links' => 'Links',
'instructions' => 'Instructions',
'history' => 'Change history',
],
'fields' => [
'number' => 'Number',
'name' => 'Name',
'description' => 'Description',
'customer' => 'Customer',
'service_units' => 'Service units',
'starts_on' => 'Start date',
'due_on' => 'Deadline',
'planned_from' => 'Planned start',
'planned_to' => 'Planned end',
'kind' => 'Duration / type',
'status' => 'Status',
'priority' => 'Priority',
'payment_basis' => 'Payment basis',
'estimated_hours' => 'Estimated hours',
'estimated_hours_description' => 'In hours, for example 7,5.',
'quoted_amount' => 'Budget / quote amount',
'quoted_amount_input' => 'Budget / quote amount (€, excl. VAT)',
'quoted_amount_description' => 'Amount excluding VAT, e.g. 4500. Visible only to those with the quotes permission.',
'monthly_fee' => 'Monthly fee',
'monthly_fee_input' => 'Monthly fee (€, excl. VAT)',
'monthly_fee_description' => 'Billed through billing material every month from the job\'s start month. Visible only to those with the quotes permission.',
'completed_at' => 'Completed',
'customer_reference' => 'Customer reference (PO)',
'instructions' => 'Instructions',
'instructions_description' => 'Matters and notes about the job for those working on it.',
'responsible_user' => 'Responsible person',
'contact_user' => 'Contact person',
'contact_user_description' => 'Our own employee who handles contact with the customer.',
'customer_contact' => 'Customer\'s contact',
'biller_user' => 'Biller',
'biller_user_description' => 'The employee who makes the invoice.',
'billing_unit' => 'Billing unit',
'members' => 'Other members',
'members_description' => 'The job is shown among the members\' own jobs. A subcontractor sees only the jobs they are a member of.',
'tags' => 'Tags',
'links' => 'Links',
'created_at' => 'Created',
'created_by' => 'Created by',
'none_selected' => 'Not selected',
'no_payment_basis' => 'Not selected',
],
'customer_picker' => [
'search' => 'Search customers',
'search_description' => 'Type at least two characters of the customer\'s name or business ID.',
'results' => '{0} No matches.|{1} :count match.|[2,*] :count matches.',
'choose' => 'Choose :name',
'create' => 'Add new customer: :name',
'selected' => 'Selected customer: :name',
'change' => 'Change customer',
'created' => 'Customer :name added and selected. Other details can be completed on the customer\'s page.',
'choose_customer_first' => 'Choose a customer first.',
],
'tags' => [
'new' => 'New tag',
'new_description' => 'Choose from the suggestions or type a new one, and press Add tag.',
'add' => 'Add tag',
'remove' => 'Remove tag :tag',
'added' => 'Tag :tag added.',
'removed' => 'Tag :tag removed.',
'none' => 'No tags.',
],
'links' => [
'title' => 'Title',
'url' => 'Address',
'url_description' => 'For example a link to Drive or Dropbox, starting with https://',
'add' => 'Add link',
'remove' => 'Remove link :number',
'link_number' => 'Link :number',
'none' => 'No links.',
],
'history' => [
'empty' => 'No changes.',
'count' => '{0} (no changes)|{1} (1 change)|[2,*] (:count changes)',
'unlocked' => '(unlocked)',
'created' => ':user created job :number.',
'changed' => ':field: :old → :new',
'by' => ':user, :time',
'unknown' => 'no. :id',
],
'kinds' => [
'service' => 'Service job (small, from the price list)',
'one_off' => 'One-off',
'fixed_term' => 'Fixed-term',
'ongoing' => 'Ongoing',
],
'statuses' => [
'prospect' => 'Prospect',
'tentative' => 'Tentative',
'quote_request' => 'Quote request',
'order' => 'Order',
'in_production' => 'In production',
'on_hold' => 'On hold',
'done' => 'Done',
'invoiced' => 'Invoice created',
'billed' => 'Billed',
'archived' => 'Archived',
],
'priorities' => [
'waiting' => 'Waiting',
'normal' => 'Normal',
'first' => 'First',
'urgent' => 'Urgent',
'immediate' => 'Immediately',
],
'payment_bases' => [
'price_list' => 'Fixed price list',
'fixed_quote' => 'Fixed, based on a quote',
'monthly_fee' => 'Fixed monthly billing',
'hourly' => 'Hourly work',
'not_billable' => 'Not billable',
],
'errors' => [
'name_required' => 'Enter the customer job\'s name.',
'invalid_name' => 'The name may be at most 255 characters.',
'customer_required' => 'Choose a customer or add a new one.',
'service_units_required' => 'Choose at least one service unit.',
'responsible_required' => 'Choose a responsible person.',
'invalid_date' => 'Enter a date as dd.mm.yyyy.',
'due_before_start' => 'The deadline cannot be before the start date.',
'plan_ends_before_start' => 'The planned end cannot be before the planned start.',
'invalid_hours' => 'Enter hours as zero or more, in quarter hours (e.g. 7,25).',
'invalid_amount' => 'Enter the amount in euros, e.g. 4500 or 4500,50 (at most two decimals).',
'invalid_tag' => 'A tag is 1–50 characters long.',
'invalid_link' => 'Give the link a title and an address starting with http:// or https://.',
'invalid_reference' => 'The selection is no longer available. Choose again.',
'status_not_allowed' => 'You do not have permission to set this status.',
'too_long' => 'The text may be at most :max characters.',
],
];
+50
View File
@@ -0,0 +1,50 @@
<?php
return [
'skip_to_content' => 'Skip to main content',
'main_menu' => 'Main menu',
'home' => 'Home',
'jobs' => 'Customer jobs',
'quick_intake' => 'Quick intake',
'board' => 'Board',
'calendar' => 'Calendar',
'time' => 'Time entry',
'approvals' => 'Hour approval',
'expenses' => 'Expenses',
'quick_sale' => 'Quick sale',
'billing' => 'Billing',
'customers' => 'Customers',
'users' => 'Users',
'company' => 'Company details',
'holidays' => 'Public holidays',
'catalog' => 'Basic data',
'prices' => 'Price list',
'logout' => 'Sign out',
'theme_toggle' => 'Dark theme',
'cancel' => 'Cancel',
'group_work' => 'Work',
'group_own' => 'My entries',
'group_sales' => 'Customers and sales',
'group_admin' => 'Administration',
'group_maintenance' => 'Maintenance',
'new_job' => 'New job',
'sales_list' => 'Quick sales and cash days',
'workflow_templates' => 'Workflow templates',
'price_list_admin' => 'Price list maintenance',
'current_section' => '(current section)',
'profile' => [
'menu' => 'Profile: :name',
'language' => 'Language',
'theme' => 'Theme',
'theme_light' => 'Light',
'theme_dark' => 'Dark',
'theme_system' => 'System default',
'selected' => '(selected)',
],
'demo' => [
'title' => 'Toiminnanohjaus',
'intro' => 'Livewire and TallStackUI are working. This is a temporary test page.',
'add_click' => 'Add click',
'clicked' => 'Clicked :count times',
],
];
+6
View File
@@ -0,0 +1,6 @@
<?php
return [
'previous' => 'Previous page',
'next' => 'Next page',
];
+9
View File
@@ -0,0 +1,9 @@
<?php
return [
'reset' => 'Your password has been saved. You can now sign in.',
'sent' => 'We have sent you a link for setting your password.',
'throttled' => 'Please wait a moment before requesting a new link.',
'token' => 'The link has expired or is invalid. Request a new link.',
'user' => 'The link has expired or is invalid. Request a new link.',
];
+141
View File
@@ -0,0 +1,141 @@
<?php
return [
'job_name' => 'Quick sales :year',
'hours_note' => 'Quick sale #:number',
'payment_methods' => [
'cash' => 'Cash',
'card' => 'Debit card',
],
'sell' => [
'title' => 'Quick sale',
'intro' => 'Cash and card sales of consumer products. Prices include VAT. The duration of the products is recorded as your hours.',
'products' => 'Products',
'products_help' => 'Each press adds one to the sale.',
'add_named' => 'Add :product, :price / :unit',
'cart' => 'Sale',
'cart_empty' => 'The sale has no products yet.',
'line' => ':quantity × :price = :total',
'line_hours' => 'Records :hours h as your hours.',
'decrease_named' => 'Remove one: :product',
'increase_named' => 'Add one: :product',
'remove_named' => 'Remove from the sale: :product',
'changed' => ':product: :quantity. Total :total.',
'removed' => ':product removed. Total :total.',
'no_products' => 'The price list has no consumer products in use.',
'total' => 'Total :total (incl. VAT)',
'payment_method' => 'Payment method',
'customer' => 'Customer (optional)',
'customer_search' => 'Search customers',
'customer_search_description' => 'Leave empty if the customer is an anonymous consumer.',
'customer_results' => '{0} No customers found.|{1} 1 customer found.|[2,*] :count customers found.',
'choose_customer' => 'Choose customer :name',
'change_customer' => 'Remove customer',
'save' => 'Record sale',
'saved' => 'Sale #:number recorded: :total, :method.',
'hours_booked' => ':hours h were recorded as your hours.',
'hours_not_booked' => 'The hours (:hours h) could not be recorded, because the day\'s hours have already been approved or the day would exceed 24 h. Enter them in the week view or ask management to cancel the approval.',
'to_list' => 'The day\'s sales and cash day',
],
'index' => [
'title' => 'Quick sales',
'day_navigation' => 'Day selection',
'previous' => 'Previous day',
'today' => 'Today',
'next' => 'Next day',
'new_sale' => 'New sale',
'sales' => 'Sales',
'own_only' => 'You see your own sales. The cash day balance includes everyone\'s sales.',
'seller' => 'Seller',
'all_sellers' => 'All sellers',
'none' => 'No sales on this day.',
'unclosed' => 'Cash days not closed:',
],
'columns' => [
'time' => 'Time',
'number' => 'Number',
'seller' => 'Seller',
'customer' => 'Customer',
'products' => 'Products',
'payment_method' => 'Payment method',
'total' => 'Amount',
'actions' => 'Actions',
],
'anonymous' => 'Anonymous',
'line' => ':quantity × :product at :price',
'credit_of' => 'Credit for sale #:number',
'credited_by' => 'Credited (#:number)',
'credit' => 'Credit',
'credit_named' => 'Credit sale #:number',
'credit_title' => 'Credit the sale?',
'credit_text' => 'A credit is recorded for sale #:number (:total) on this day, with the same products as negative amounts. Refund the customer with the same payment method (:method). The sale\'s hours do not change: correct them in the week view if needed.',
'credit_confirm' => 'Record credit',
'receipt_link' => 'Receipt',
'receipt' => [
'open' => 'Open receipt #:number (PDF, opens in a new tab)',
'open_named' => 'Receipt #:number (PDF, opens in a new tab)',
'title' => 'Receipt',
'credit_title' => 'Credit receipt',
'file' => 'receipt-:number.pdf',
'number' => 'Receipt no.',
'date' => 'Date',
'seller' => 'Seller',
'customer' => 'Customer',
'payment_method' => 'Payment method',
'credits' => 'Credits receipt no. :number',
'business_id' => 'Business ID',
'vat_number' => 'VAT number',
'product' => 'Product',
'quantity' => 'Quantity',
'unit_price' => 'Unit price',
'line_total' => 'Total',
'total' => 'Total (incl. VAT)',
'vat_heading' => 'Value added tax',
'vat_rate' => 'VAT %',
'net' => 'Excl. VAT',
'vat' => 'VAT',
'gross' => 'Incl. VAT',
'thanks' => 'Thank you for your visit!',
'company_missing' => 'Company details are missing: the admin fills them in under Company details.',
],
'credited' => 'Credit #:credit was recorded for sale #:number.',
'cash_day' => [
'title' => 'Cash day',
'open' => 'The cash day is open.',
'closed' => 'Cash day closed :at (:name).',
'reopened' => 'Reopened :at (:name).',
'balance' => 'Balance',
'preview' => 'Balance formed on closing',
'sale_count' => 'Sales (including credits)',
'cash' => 'Cash',
'card' => 'Debit card',
'total' => 'Total',
'vat_breakdown' => 'VAT breakdown',
'vat_rate' => 'VAT',
'gross' => 'Incl. VAT',
'net' => 'Excl. VAT',
'vat' => 'VAT',
'item' => 'Item',
'amount' => 'Amount',
'close' => 'Close cash day',
'close_title' => 'Close the cash day?',
'close_text' => 'A balance is formed from the day\'s sales, and no more sales can be recorded for the day.',
'closed_message' => 'Cash day :day closed.',
'reopen' => 'Reopen cash day',
'reopen_title' => 'Reopen the cash day?',
'reopen_text' => 'The balance is removed, and it is formed again when the day is closed.',
'reopened_message' => 'Cash day :day reopened.',
],
'errors' => [
'empty' => 'Enter a quantity for at least one product.',
'quantity' => 'Enter the quantity as a whole number 0–999.',
'product' => 'The product is no longer on sale. Refresh the page.',
'customer' => 'The customer was not found. Choose the customer again.',
'day_closed' => 'The cash day is closed; ask management to reopen it.',
'already_credited' => 'The sale has already been credited.',
'credit_of_credit' => 'A credit cannot be credited.',
'not_found' => 'The sale was not found.',
'future' => 'A future cash day cannot be closed.',
'not_closed' => 'The cash day is not closed.',
],
];
+106
View File
@@ -0,0 +1,106 @@
<?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',
],
];
+98
View File
@@ -0,0 +1,98 @@
<?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.',
],
'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.',
],
];
+15 -1
View File
@@ -19,7 +19,6 @@ return [
'holidays' => 'Arkipyhät',
'catalog' => 'Pohjatiedot',
'prices' => 'Hinnasto',
'signed_in_as' => 'Kirjautuneena: :name',
'logout' => 'Kirjaudu ulos',
'theme_toggle' => 'Tumma teema',
'cancel' => 'Peruuta',
@@ -33,4 +32,19 @@ return [
'workflow_templates' => 'Työnkulkupohjat',
'price_list_admin' => 'Hinnaston ylläpito',
'current_section' => '(nykyinen osio)',
'profile' => [
'menu' => 'Profiili: :name',
'language' => 'Kieli',
'theme' => 'Teema',
'theme_light' => 'Vaalea',
'theme_dark' => 'Tumma',
'theme_system' => 'Järjestelmän mukainen',
'selected' => '(valittu)',
],
'demo' => [
'title' => 'Toiminnanohjaus',
'intro' => 'Livewire ja TallStackUI toimivat. Tämä on väliaikainen kokeilusivu.',
'add_click' => 'Lisää klikkaus',
'clicked' => 'Klikattu :count kertaa',
],
];