You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The source code to generate lists of maintenances (getImprovementOptions function) has one option -- 'PAT Test' -- hard-coded rather than using the translation provided by localization options.
Reproduction steps
Navigate file browser to resources/lang/es-MX/admin/asset_maintenances/general.php
Change 'PAT Test' to 'PAT prueba' on line 15
Save file
Go to Snipe-it admin settings in your browser
Go to Localization and set language to "Spanish, Mexico"
Go to an Asset in Snipe-it
Click on Maintenances tab
Note that one option is still "PAT Test"
Expected behavior
The option should show "PAT prueba"
Screenshots
This shows the code that causes this bug
Snipe-IT Version
6.0.10
Operating System
Ubuntu
Web Server
Apache
PHP Version
8.1.9
Operating System
No response
Browser
No response
Version
No response
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
No response
Additional context
The bug is caused by an error in app/Models/AssetMaintenance.php where "PAT Test" is hard-coded in English. So any future translations will not work.
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
rnelsonee
pushed a commit
to rnelsonee/snipe-it
that referenced
this issue
Sep 1, 2022
Debug mode
Describe the bug
The source code to generate lists of maintenances (getImprovementOptions function) has one option -- 'PAT Test' -- hard-coded rather than using the translation provided by localization options.
Reproduction steps
Expected behavior
The option should show "PAT prueba"
Screenshots
This shows the code that causes this bug
Snipe-IT Version
6.0.10
Operating System
Ubuntu
Web Server
Apache
PHP Version
8.1.9
Operating System
No response
Browser
No response
Version
No response
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
No response
Additional context
The bug is caused by an error in app/Models/AssetMaintenance.php where "PAT Test" is hard-coded in English. So any future translations will not work.
We need to change
to
Other context, this is my first bug report on Github. And if this bug is given a number, I'll attempt a PR to fix it.
The text was updated successfully, but these errors were encountered: