Track machine counters and maintenance with counter and time intervals

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-26 16:52:49 +02:00
co-authored by Claude Sonnet 5.5
parent aac579257a
commit 3e1c671949
53 changed files with 2636 additions and 6 deletions
+3
View File
@@ -50,6 +50,9 @@ return [
],
'todo' => [
'maintenance' => '{1} 1 machine maintenance late|[2,*] :count machine maintenances late',
'maintenance_line' => ':machine: :item',
'stock' => '{1} 1 stock item to order|[2,*] :count stock items to order',
'title' => 'To do',
'approvals' => '{0} No hours waiting for approval|{1} One person has hours waiting for approval|[2,*] :count people have hours waiting for approval',
'approval_line' => ':name: :hours h over :weeks weeks',
+95
View File
@@ -125,6 +125,101 @@ return [
'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' => 'Latest reading :reading :unit (:at).',
'new_reading' => 'New reading (:unit)',
'save_reading' => 'Record reading',
'save_reading_named' => 'Record reading: :counter',
'reading_saved' => 'Reading :reading :unit of :counter recorded.',
'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',
'reading_at' => 'Reading (:counter)',
'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 restarts the interval.',
'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.',
'reading' => 'Enter a reading of zero or more, at most three decimals.',
],
],
'errors' => [
'name' => 'Enter a name (1–150 characters).',
'name_taken' => 'The name is already in use.',
+4
View File
@@ -14,6 +14,10 @@ return [
'member' => 'You were made a member of task :task (job :number :job).',
],
'job_assigned' => 'You were made :roles of job :number :job.',
'maintenance_due' => [
'approaching' => 'Maintenance :item of :machine is coming up.',
'overdue' => 'Maintenance :item of :machine is late.',
],
],
'job_roles' => [
'responsible' => 'the responsible person',
+3
View File
@@ -50,6 +50,9 @@ return [
],
'todo' => [
'maintenance' => '{1} 1 konehuolto myöhässä|[2,*] :count konehuoltoa myöhässä',
'maintenance_line' => ':machine: :item',
'stock' => '{1} 1 varastonimike tilattavana|[2,*] :count varastonimikettä tilattavana',
'title' => 'Vaatii toimia',
'approvals' => '{0} Ei hyväksymättömiä tunteja|{1} Yhdellä henkilöllä hyväksymättömiä tunteja|[2,*] :count henkilöllä hyväksymättömiä tunteja',
'approval_line' => ':name: :hours h, :weeks viikolta',
+95
View File
@@ -125,6 +125,101 @@ return [
'no_machines' => 'Tehtävän palveluyksikössä ei ole käytössä olevia koneita.',
],
'maintenance' => [
'create_title' => 'Uusi huoltokohde',
'edit_title' => 'Muokkaa huoltokohdetta',
'name' => 'Nimi',
'name_hint' => 'Esim. jätemustesäiliön tyhjennys, tulostuspään puhdistus, terän vaihto.',
'counter_interval' => 'Laskuriin perustuva huoltoväli',
'counter_interval_hint' => 'Huolto erääntyy, kun laskuri on kasvanut viimeisestä huollosta huoltovälin verran. Vapaaehtoinen.',
'no_counters' => 'Koneella ei ole laskureita. Lisää laskurit koneen lomakkeella.',
'counter' => 'Laskuri',
'no_counter' => 'Ei laskuriin perustuvaa väliä',
'interval' => 'Huoltoväli laskurin yksikköinä',
'interval_hint' => 'Esim. 20000.',
'time_interval' => 'Aikaan perustuva huoltoväli',
'time_interval_hint' => 'Päivä-, viikko-, kuukausi- tai vuosihuolto. Vapaaehtoinen; koneella voi olla useita eri välein huollettavia kohteita. Jos myös laskuriväli on annettu, huolto erääntyy kumman tahansa täyttyessä ensin.',
'period' => 'Huoltoväli',
'no_period' => 'Ei aikaan perustuvaa väliä',
'periods' => [
'day' => 'Päivähuolto',
'week' => 'Viikkohuolto',
'month' => 'Kuukausihuolto',
'year' => 'Vuosihuolto',
],
'period_count' => 'Joka … jakso',
'period_count_hint' => '1 = joka päivä / viikko / kuukausi / vuosi, 2 = joka toinen jne.',
'warning' => 'Ennakkovaroitus (% välistä)',
'warning_hint' => 'Huolto näytetään lähestyvänä, kun tämä osuus välistä on kulunut. Päivähuollolla ei ennakkovaroitusta.',
'instructions' => 'Ohje',
'stock_item' => 'Huollossa käytettävä varastonimike',
'stock_item_hint' => 'Vapaaehtoinen, esim. vaihtorumpu. Kirjataan käytetyksi jokaisessa huollossa.',
'no_stock_item' => 'Ei nimikettä',
'stock_quantity' => 'Määrä huoltoa kohden',
'saved' => 'Huoltokohde :name tallennettu.',
'activated' => 'Huoltokohde otettu käyttöön.',
'deactivated' => 'Huoltokohde poistettu käytöstä. Sen historia säilyy.',
'counters' => 'Laskurit',
'no_reading' => 'Ei lukemia.',
'latest_reading' => 'Viimeisin lukema :reading :unit (:at).',
'new_reading' => 'Uusi lukema (:unit)',
'save_reading' => 'Kirjaa lukema',
'save_reading_named' => 'Kirjaa lukema: :counter',
'reading_saved' => 'Laskurin :counter lukema :reading :unit kirjattu.',
'items' => 'Huollot',
'add' => 'Uusi huoltokohde',
'none' => 'Koneelle ei ole huoltokohteita.',
'levels' => [
'ok' => 'Kunnossa',
'approaching' => 'Huolto lähestyy',
'overdue' => 'Huolto myöhässä',
],
'remaining' => 'jäljellä :amount :unit',
'over' => 'yli :amount :unit',
'due' => 'erääntyy :date',
'was_due' => 'erääntyi :date',
'every_amount' => ':amount :unit (:counter)',
'every_period' => [
'day' => '{1} joka päivä|[2,*] joka :count. päivä',
'week' => '{1} joka viikko|[2,*] joka :count. viikko',
'month' => '{1} joka kuukausi|[2,*] joka :count. kuukausi',
'year' => '{1} joka vuosi|[2,*] joka :count. vuosi',
],
'or' => ' tai ',
'interval_text' => 'Huoltoväli: :interval',
'never_done' => 'Ei vielä huoltoja.',
'last_done' => 'Viimeksi huollettu :at (:name).',
'edit_named' => 'Muokkaa: :name',
'done' => 'Huolto tehty',
'done_named' => 'Huolto tehty: :name',
'reading_at' => 'Lukema (:counter)',
'note' => 'Huomautus',
'confirm_done' => 'Kirjaa huolto',
'recorded' => 'Huolto :name kirjattu.',
'stock_not_recorded' => 'Huollon varastonimikettä ei voitu kirjata käytetyksi.',
'history' => 'Huoltohistoria',
'history_item' => 'Huoltokohde',
'all_items' => 'Kaikki huoltokohteet',
'from' => 'Alkaen',
'to' => 'Päättyen',
'history_count' => '{0} Ei huoltoja.|{1} 1 huolto.|[2,*] :count huoltoa.',
'reading_was' => 'Lukema :reading',
'cancelled_by' => 'Peruttu :at (:name)',
'cancel' => 'Merkitse perutuksi',
'cancel_named' => 'Merkitse perutuksi: :name :at',
'cancel_title' => 'Merkitäänkö huolto perutuksi?',
'cancel_text' => 'Huoltokirjaus jää historiaan perutuksi merkittynä, eikä se enää nollaa huoltovälin kertymää.',
'cancelled' => 'Huolto :name merkitty perutuksi.',
'errors' => [
'needs_interval' => 'Anna laskuriin perustuva huoltoväli, aikaan perustuva huoltoväli tai molemmat.',
'invalid' => 'Tarkista nimi (1–150 merkkiä), huoltoväli ja ennakkovaroitus.',
'amount' => 'Anna määrä nollaa suurempana lukuna, enintään kolme desimaalia.',
'counter' => 'Valitse koneen laskuri.',
'period_count' => 'Anna jakso kokonaislukuna 1–365.',
'warning' => 'Anna ennakkovaroitus prosentteina 1–99.',
'reading' => 'Anna lukema nollana tai suurempana lukuna, enintään kolme desimaalia.',
],
],
'errors' => [
'name' => 'Anna nimi (1–150 merkkiä).',
'name_taken' => 'Nimi on jo käytössä.',
+4
View File
@@ -14,6 +14,10 @@ return [
'member' => 'Sinut lisättiin tehtävän :task jäseneksi (työ :number :job).',
],
'job_assigned' => 'Sinut lisättiin työn :number :job :roles.',
'maintenance_due' => [
'approaching' => 'Koneen :machine huolto :item lähestyy.',
'overdue' => 'Koneen :machine huolto :item on myöhässä.',
],
],
'job_roles' => [
'responsible' => 'vastuuhenkilöksi',