Files
petriandClaude Sonnet 5.5 ef400054b0 Return stock of cancelled maintenance, throttle the PIN page's password
Cancelling a maintenance record now reverses the stock it used, through
Inventory's new ReverseMaintenanceStockUse behind the MaintenanceMaterials
port, in the same transaction as the cancellation.

The PIN page allows 5 wrong current passwords a minute per user, as the
login form does, so a signed-in session cannot be used to guess the
password.

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

323 lines
16 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 [
'types' => [
'printer' => 'Printing press / printer',
'cutter' => 'Sticker cutter',
'other' => 'Other',
],
'counter_units' => [
'piece' => 'pcs',
'sheet' => 'sheet',
'square_metre' => 'm²',
'millilitre' => 'ml',
'metre' => 'm',
'hour' => 'h',
],
'counter_names' => [
'prints' => 'Prints',
'printed_area' => 'Printed area',
'cut_length' => 'Cut length',
],
'index' => [
'title' => 'Machines',
'intro' => 'Machines by service unit. A machine\'s page has its day-by-day work list; the machine console is meant for the tablet next to the machine.',
'new' => 'New machine',
'unit' => 'Service unit',
'all_units' => 'All service units',
'include_inactive' => 'Also show machines out of use',
'none' => 'No machines.',
'inactive' => 'Out of use',
'responsible' => 'Responsible: :name',
'open' => 'Work list and details',
'open_named' => 'Work list and details of :name',
'console_named' => 'Machine console: :name',
],
'form' => [
'create_title' => 'New machine',
'edit_title' => 'Edit machine',
'name' => 'Name',
'type' => 'Machine type',
'description' => 'Description',
'service_units' => 'Service units',
'service_units_hint' => 'Only service units that use stock and machines. A shared machine belongs to several units.',
'no_stock_units' => 'No service unit uses stock and machines. Turn it on in the catalog.',
'responsible' => 'Responsible person',
'responsible_hint' => 'Gets the notifications of maintenance coming up and late.',
'no_responsible' => 'No responsible person',
'counters' => 'Counters',
'counters_hint' => 'Counters measure the need for maintenance, e.g. prints or printed area. Readings are recorded on the machine console.',
'counter_name' => 'Counter name',
'counter_unit' => 'Unit',
'counter_named' => 'Counter :number',
'add_counter' => 'Add counter',
'remove_counter_named' => 'Remove counter :number',
'suggest_counters' => 'Add the usual counters of the machine type',
'counter_added' => 'Counter :number added.',
'counter_removed' => 'Counter :number removed.',
'counters_suggested' => '{0} There are no suggested counters for the machine type.|{1} 1 counter added.|[2,*] :count counters added.',
'save' => 'Save',
'cancel' => 'Cancel',
'created' => 'Machine :name added.',
'updated' => 'Machine :name saved.',
'deactivate' => 'Take out of use',
'activate' => 'Take into use',
'deactivated' => 'The machine was taken out of use. It is not offered in choices, but its history is kept.',
'activated' => 'The machine was taken into use.',
],
'show' => [
'details' => 'Details',
'edit' => 'Edit',
'console' => 'Open the machine console',
'units' => 'Service units: :units',
'work_list' => 'Work list',
'day_navigation' => 'Choose day',
'previous_day' => 'Previous day',
'today' => 'Today',
'next_day' => 'Next day',
'day_field' => 'Day',
'show_day' => 'Show day',
'day_heading' => 'Work list :date',
'load' => 'Coming days',
'load_row' => ':date: :rows, estimate :hours h',
'rows' => '{0} no rows|{1} 1 row|[2,*] :count rows',
'none' => 'No work for this day.',
'row_count' => '{0} No rows.|{1} 1 row.|[2,*] :count rows.',
'late' => 'Late (planned :date)',
'order' => 'Customer waiting',
'outside_plan' => 'The day is outside the task\'s schedule or after its due date.',
'due' => 'Due :date',
'priority' => 'Priority: :priority',
'status' => 'Status: :status',
'instructions' => 'Job instructions',
'description' => 'Task description',
'up_named' => 'Move up: :title',
'down_named' => 'Move down: :title',
'moved_up' => ':title moved up.',
'moved_down' => ':title moved down.',
'first' => ':title is already first.',
'last' => ':title is already last.',
'open_task' => 'Open the task on the job page',
'reschedule' => 'Change day or machine',
'reschedule_named' => 'Change day or machine: :title',
'back' => 'Back to machines',
],
'task' => [
'title' => 'Machine',
'list_of' => 'Machine: :title',
'not_on_machine' => 'The task is not on any machine\'s work list.',
'on_machine' => 'On the work list of :machine on :date.',
'late' => 'Late: the planned day has passed.',
'move' => 'Move to machine',
'change' => 'Change machine or day',
'machine' => 'Machine',
'choose_machine' => 'Choose a machine',
'day' => 'Production day',
'day_hint' => 'By default the start of the task\'s schedule, else today.',
'save' => 'Save',
'cancel' => 'Cancel',
'remove' => 'Remove from machine',
'moved' => 'The task was moved to the work list of :machine on :date.',
'removed' => 'The task was removed from the machine\'s work list.',
'no_machines' => 'There are no machines in use in the task\'s service unit.',
],
'maintenance' => [
'create_title' => 'New maintenance item',
'edit_title' => 'Edit maintenance item',
'name' => 'Name',
'name_hint' => 'E.g. emptying the waste ink tank, cleaning the print head, changing the blade.',
'counter_interval' => 'Counter-based interval',
'counter_interval_hint' => 'Maintenance is due when the counter has grown by the interval since the last maintenance. Optional.',
'no_counters' => 'The machine has no counters. Add counters on the machine form.',
'counter' => 'Counter',
'no_counter' => 'No counter-based interval',
'interval' => 'Interval in the counter unit',
'interval_hint' => 'E.g. 20000.',
'time_interval' => 'Time-based interval',
'time_interval_hint' => 'Daily, weekly, monthly or yearly maintenance. Optional; a machine may have several items with different intervals. With a counter interval too, maintenance is due when either comes first.',
'period' => 'Interval',
'no_period' => 'No time-based interval',
'periods' => [
'day' => 'Daily maintenance',
'week' => 'Weekly maintenance',
'month' => 'Monthly maintenance',
'year' => 'Yearly maintenance',
],
'period_count' => 'Every … periods',
'period_count_hint' => '1 = every day / week / month / year, 2 = every other and so on.',
'warning' => 'Advance warning (% of the interval)',
'warning_hint' => 'Maintenance shows as coming up when this share of the interval has passed. No advance warning for daily maintenance.',
'instructions' => 'Instructions',
'stock_item' => 'Stock item used at maintenance',
'stock_item_hint' => 'Optional, e.g. a spare drum. Recorded as used at every maintenance.',
'no_stock_item' => 'No item',
'stock_quantity' => 'Quantity per maintenance',
'saved' => 'Maintenance item :name saved.',
'activated' => 'The maintenance item was taken into use.',
'deactivated' => 'The maintenance item was taken out of use. Its history is kept.',
'counters' => 'Counters',
'no_reading' => 'No readings.',
'latest_reading' => 'Counter now :reading :unit (updated :at).',
'usage' => 'Used by the job (:unit)',
'save_usage' => 'Record usage',
'save_usage_named' => 'Record usage: :counter',
'usage_saved' => ':usage :unit added to :counter, counter now :reading :unit.',
'items' => 'Maintenance',
'add' => 'New maintenance item',
'none' => 'The machine has no maintenance items.',
'levels' => [
'ok' => 'In order',
'approaching' => 'Maintenance coming up',
'overdue' => 'Maintenance late',
],
'remaining' => ':amount :unit left',
'over' => ':amount :unit over',
'due' => 'due :date',
'was_due' => 'was due :date',
'every_amount' => ':amount :unit (:counter)',
'every_period' => [
'day' => '{1} every day|[2,*] every :count days',
'week' => '{1} every week|[2,*] every :count weeks',
'month' => '{1} every month|[2,*] every :count months',
'year' => '{1} every year|[2,*] every :count years',
],
'or' => ' or ',
'interval_text' => 'Interval: :interval',
'never_done' => 'No maintenance yet.',
'last_done' => 'Last maintained :at (:name).',
'edit_named' => 'Edit: :name',
'done' => 'Maintenance done',
'done_named' => 'Maintenance done: :name',
'note' => 'Note',
'confirm_done' => 'Record maintenance',
'recorded' => 'Maintenance :name recorded.',
'stock_not_recorded' => 'The stock item of the maintenance could not be recorded as used.',
'history' => 'Maintenance history',
'history_item' => 'Maintenance item',
'all_items' => 'All maintenance items',
'from' => 'From',
'to' => 'To',
'history_count' => '{0} No maintenance.|{1} 1 maintenance.|[2,*] :count maintenances.',
'reading_was' => 'Reading :reading',
'cancelled_by' => 'Cancelled :at (:name)',
'cancel' => 'Mark as cancelled',
'cancel_named' => 'Mark as cancelled: :name :at',
'cancel_title' => 'Mark the maintenance as cancelled?',
'cancel_text' => 'The record stays in the history marked as cancelled, and it no longer resets the interval. The stock it used is returned with a reversal.',
'cancelled' => 'Maintenance :name marked as cancelled.',
'errors' => [
'needs_interval' => 'Give a counter-based interval, a time-based interval or both.',
'invalid' => 'Check the name (1–150 characters), the interval and the advance warning.',
'amount' => 'Enter an amount greater than zero, at most three decimals.',
'counter' => 'Choose a counter of the machine.',
'period_count' => 'Enter the period as a whole number 1–365.',
'warning' => 'Enter the advance warning as a percentage 1–99.',
'usage' => 'Enter the amount the job used as a number greater than zero, e.g. 350, at most three decimals.',
],
],
'console_picker' => [
'title' => 'Machine console',
'intro' => 'Choose the machine you are working at.',
'empty' => 'There are no machines in use.',
],
'console' => [
'ordered_at' => 'ordered at :time',
'order_step' => 'step :step/:steps',
'order_materials' => 'Materials of the step: check the quantities and confirm.',
'less_of' => 'Less: :item',
'more_of' => 'More: :item',
'confirm_order' => 'Confirm as done',
'order_finish_named' => 'Done: order :number',
'order_done' => ':product of order :number completed.',
'move_to' => 'Move to machine',
'move_to_named' => 'Move order :number to machine',
'move' => 'Move',
'order_moved' => 'Order :number moved to :machine.',
'title' => 'Machine console: :name',
'user' => 'User: :name',
'refresh' => 'Refresh',
'refreshed' => 'Refreshed at :time.',
'new_rows' => '{0} No new rows.|{1} 1 new row on the work list.|[2,*] :count new rows on the work list.',
'change_user' => 'Change user',
'back' => 'To the normal view',
'maintenance_late' => 'Maintenance late: :name',
'today_list' => 'Today\'s work list',
'next_list' => 'Work list :date (viewing)',
'next' => 'Next',
'select' => 'Select',
'select_named' => 'Select task :title',
'start' => 'Start',
'start_named' => 'Start: :title',
'review' => 'To review',
'review_named' => 'To review: :title',
'finish' => 'Done',
'finish_named' => 'Done: :title',
'status_changed' => ':title: status now :status.',
'finished' => ':title marked done and removed from the work list.',
'selected' => 'Selected task: :title',
'hours' => 'Hours today (h)',
'save_hours' => 'Record hours',
'hours_saved' => ':hours h recorded on :title. Day total :total h.',
'hours_error' => 'The hours could not be recorded. Check the amount (in steps of 0.25 h) and that the day\'s hours are not approved yet.',
'hours_note' => 'Machine :machine',
'material' => 'Material used',
'material_for' => 'Recorded on task :title.',
'material_without_task' => 'No task selected: the use is recorded on the machine. You can give a reason (e.g. a test run) or select a task from the work list.',
'search' => 'Search material',
'favourites' => 'The items used most often and most recently on this machine.',
'less' => 'Less',
'more' => 'More',
'record_material' => 'Record use',
'material_recorded' => 'Recorded :item :quantity. Balance now :balance.',
'material_undone' => 'The latest record was undone.',
'undo' => 'Undo the latest record',
'reason_required' => 'Give a reason when no task is selected.',
'counters_and_maintenance' => 'Counters and maintenance',
'latest' => 'Counter now :reading',
'usage' => ':counter: used by the job (:unit)',
'hour_suggestion' => 'Suggestion: record :hours h on the counter :counter. Confirm with Record usage.',
],
'process' => [
'title' => 'Production process',
'intro' => 'A product with a production process is sold as an order: the order goes on the work list of the first step\'s machine, and the product is paid when it is ready. A step by hand (e.g. finishing) holds the auxiliary materials no machine needs. Changes do not touch orders already sent.',
'step' => 'Step :number',
'machine' => 'Machine',
'machine_of' => 'Machine of step :number',
'by_hand' => 'No machine (by hand)',
'duration' => 'Duration per piece (h)',
'work_type' => 'Work type',
'work_type_of' => 'Work type of step :number',
'materials' => 'Materials per piece',
'material' => 'Item',
'material_of' => 'Material :number of step :step',
'per_piece' => 'Quantity / pc',
'remove_material' => 'Remove material :number of step :step',
'add_step' => 'Add step',
'save' => 'Save production process',
'saved' => 'Production process saved.',
'removed' => 'Production process removed: the product is paid at once.',
'step_added' => 'Step :number added.',
'step_removed' => 'Step :number removed.',
'step_moved' => 'Step :from moved to :to.',
'errors' => [
'invalid' => 'Check the steps: a duration of 0–24 h in steps of 0.25 h, a work type and material quantities greater than zero.',
'machine' => 'A step\'s machine must be in use and in the service unit of the product\'s work type.',
],
],
'errors' => [
'name' => 'Enter a name (1–150 characters).',
'name_taken' => 'The name is already in use.',
'service_units' => 'Choose at least one service unit.',
'counter' => 'Give the counter a name (1–100 characters) and a unit.',
'machine' => 'Choose a machine in use from the task\'s service unit.',
'day' => 'Enter the day as dd.mm.yyyy.',
'not_found' => 'The row was not found. Refresh the page.',
'task_done' => 'The task is already done and cannot be moved to a machine.',
],
];