Merge branch 'Part-DB:master' into master

This commit is contained in:
Marc 2025-03-09 15:48:44 +01:00 committed by GitHub
commit 709439e710
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 61 additions and 23 deletions

View file

@ -1 +1 @@
1.16.0 1.16.1

View file

@ -201,6 +201,10 @@ You also have to create the database as described above in step 4.
You can run the console commands described in README by You can run the console commands described in README by
executing `docker exec --user=www-data -it partdb bin/console [command]` executing `docker exec --user=www-data -it partdb bin/console [command]`
{: .warning }
> If you run a root console inside the container, and wanna execute commands on the webserver behalf, be sure to use `sudo -E` command (with the `-E` flag) to preserve env variables from the current shell.
> Otherwise Part-DB console might use the wrong configuration to execute commands.
## Troubleshooting ## Troubleshooting
*Login is not possible. Login page is just reloading and no error message is shown or something like "CSFR token invalid"*: *Login is not possible. Login page is just reloading and no error message is shown or something like "CSFR token invalid"*:

View file

@ -25,6 +25,12 @@ is named `partdb`, you can execute the command `php bin/console cache:clear` wit
docker exec --user=www-data partdb php bin/console cache:clear docker exec --user=www-data partdb php bin/console cache:clear
``` ```
{: .warning }
> If you run a root console inside the docker container, and wanna execute commands on the webserver behalf, be sure to use `sudo -E` command (with the `-E` flag) to preserve env variables from the current shell.
> Otherwise Part-DB console might use the wrong configuration to execute commands.
## Troubleshooting
## User management commands ## User management commands
* `php bin/console partdb:users:list`: List all users of this Part-DB instance * `php bin/console partdb:users:list`: List all users of this Part-DB instance
@ -64,4 +70,4 @@ docker exec --user=www-data partdb php bin/console cache:clear
## Database commands ## Database commands
* `php bin/console doctrine:migrations:migrate`: Migrate the database to the latest version * `php bin/console doctrine:migrations:migrate`: Migrate the database to the latest version
* `php bin/console doctrine:migrations:up-to-date`: Check if the database is up-to-date * `php bin/console doctrine:migrations:up-to-date`: Check if the database is up-to-date

View file

@ -76,7 +76,7 @@ class LCSCProvider implements InfoProviderInterface
'Cookie' => new Cookie('currencyCode', $this->currency) 'Cookie' => new Cookie('currencyCode', $this->currency)
], ],
'query' => [ 'query' => [
'prductCode' => $id, 'productCode' => $id,
], ],
]); ]);

View file

@ -9304,7 +9304,7 @@ Element 3</target>
<unit id="oQmnwDq" name="part.filter.orderdetails_count"> <unit id="oQmnwDq" name="part.filter.orderdetails_count">
<segment state="translated"> <segment state="translated">
<source>part.filter.orderdetails_count</source> <source>part.filter.orderdetails_count</source>
<target>Number of orderdetails</target> <target>Number of order details</target>
</segment> </segment>
</unit> </unit>
<unit id="EVZFWzr" name="part.filter.lotExpirationDate"> <unit id="EVZFWzr" name="part.filter.lotExpirationDate">

View file

@ -780,18 +780,10 @@ L'utente dovrà configurare nuovamente tutti i metodi di autenticazione a due fa
<target>Eliminare</target> <target>Eliminare</target>
</segment> </segment>
</unit> </unit>
<unit id="W80Gv6o" name="attachment.external"> <unit id="FtktoBj" name="attachment.external_only">
<notes>
<note category="file-source" priority="1">Part-DB1\templates\AdminPages\_attachments.html.twig:41</note>
<note category="file-source" priority="1">Part-DB1\templates\Parts\edit\_attachments.html.twig:38</note>
<note category="file-source" priority="1">Part-DB1\templates\Parts\info\_attachments_info.html.twig:35</note>
<note category="file-source" priority="1">Part-DB1\src\DataTables\AttachmentDataTable.php:159</note>
<note priority="1">Part-DB1\templates\Parts\edit\_attachments.html.twig:38</note>
<note priority="1">Part-DB1\src\DataTables\AttachmentDataTable.php:159</note>
</notes>
<segment state="translated"> <segment state="translated">
<source>attachment.external</source> <source>attachment.external_only</source>
<target>Esterno</target> <target>Solo allegato esterno</target>
</segment> </segment>
</unit> </unit>
<unit id="JES0hrm" name="attachment.preview.alt"> <unit id="JES0hrm" name="attachment.preview.alt">
@ -806,7 +798,7 @@ L'utente dovrà configurare nuovamente tutti i metodi di autenticazione a due fa
<target>Miniatura dell'allegato</target> <target>Miniatura dell'allegato</target>
</segment> </segment>
</unit> </unit>
<unit id="fCQby7u" name="attachment.view"> <unit id="I_HDnsL" name="attachment.view_local">
<notes> <notes>
<note category="file-source" priority="1">Part-DB1\templates\AdminPages\_attachments.html.twig:52</note> <note category="file-source" priority="1">Part-DB1\templates\AdminPages\_attachments.html.twig:52</note>
<note category="file-source" priority="1">Part-DB1\templates\Parts\edit\_attachments.html.twig:50</note> <note category="file-source" priority="1">Part-DB1\templates\Parts\edit\_attachments.html.twig:50</note>
@ -816,8 +808,8 @@ L'utente dovrà configurare nuovamente tutti i metodi di autenticazione a due fa
<note priority="1">Part-DB1\templates\Parts\info\_attachments_info.html.twig:45</note> <note priority="1">Part-DB1\templates\Parts\info\_attachments_info.html.twig:45</note>
</notes> </notes>
<segment state="translated"> <segment state="translated">
<source>attachment.view</source> <source>attachment.view_local</source>
<target>Visualizzare</target> <target>Visualizza la copia locale</target>
</segment> </segment>
</unit> </unit>
<unit id="mEHEYM6" name="attachment.file_not_found"> <unit id="mEHEYM6" name="attachment.file_not_found">
@ -2119,14 +2111,14 @@ I sub elementi saranno spostati verso l'alto.</target>
<target>Immagine di anteprima</target> <target>Immagine di anteprima</target>
</segment> </segment>
</unit> </unit>
<unit id="O2kBcDz" name="attachment.download"> <unit id="Uuy6Ntl" name="attachment.download_local">
<notes> <notes>
<note category="file-source" priority="1">Part-DB1\templates\Parts\info\_attachments_info.html.twig:67</note> <note category="file-source" priority="1">Part-DB1\templates\Parts\info\_attachments_info.html.twig:67</note>
<note priority="1">Part-DB1\templates\Parts\info\_attachments_info.html.twig:50</note> <note priority="1">Part-DB1\templates\Parts\info\_attachments_info.html.twig:50</note>
</notes> </notes>
<segment state="translated"> <segment state="translated">
<source>attachment.download</source> <source>attachment.download_local</source>
<target>Download</target> <target>Scarica la copia in locale</target>
</segment> </segment>
</unit> </unit>
<unit id="mPK9Iyq" name="user.creating_user"> <unit id="mPK9Iyq" name="user.creating_user">
@ -12324,5 +12316,35 @@ Notare che non è possibile impersonare un utente disattivato. Quando si prova a
<target>Profilo salvato!</target> <target>Profilo salvato!</target>
</segment> </segment>
</unit> </unit>
<unit id="8C9ijHM" name="entity.export.flash.error.no_entities">
<segment state="translated">
<source>entity.export.flash.error.no_entities</source>
<target>Non ci sono entità da esportare!</target>
</segment>
</unit>
<unit id="0B3_rob" name="attachment.table.internal_file">
<segment state="translated">
<source>attachment.table.internal_file</source>
<target>File interno</target>
</segment>
</unit>
<unit id="uhfLnkB" name="attachment.table.external_link">
<segment state="translated">
<source>attachment.table.external_link</source>
<target>Link esterno</target>
</segment>
</unit>
<unit id="2WKNZAm" name="attachment.view_external.view_at">
<segment state="translated">
<source>attachment.view_external.view_at</source>
<target>Visualizza da %host%</target>
</segment>
</unit>
<unit id="nwO78O_" name="attachment.view_external">
<segment state="translated">
<source>attachment.view_external</source>
<target>Visualizza la versione esterna</target>
</segment>
</unit>
</file> </file>
</xliff> </xliff>

View file

@ -1,17 +1,23 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:2.0" version="2.0" srcLang="en" trgLang="zh-CN"> <xliff xmlns="urn:oasis:names:tc:xliff:document:2.0" version="2.0" srcLang="en" trgLang="zh-CN">
<file id="security.en"> <file id="security.en">
<unit id="aazoCks" name="user.login_error.user_disabled"> <unit id="GrLNa9P" name="user.login_error.user_disabled">
<segment state="translated"> <segment state="translated">
<source>user.login_error.user_disabled</source> <source>user.login_error.user_disabled</source>
<target>账户已被禁用。请联系管理员</target> <target>账户已被禁用。请联系管理员</target>
</segment> </segment>
</unit> </unit>
<unit id="Dpb9AmY" name="saml.error.cannot_login_local_user_per_saml"> <unit id="IFQ5XrG" name="saml.error.cannot_login_local_user_per_saml">
<segment state="translated"> <segment state="translated">
<source>saml.error.cannot_login_local_user_per_saml</source> <source>saml.error.cannot_login_local_user_per_saml</source>
<target>无法通过 SSO 以本地用户身份登录。请使用本地用户密码</target> <target>无法通过 SSO 以本地用户身份登录。请使用本地用户密码</target>
</segment> </segment>
</unit> </unit>
<unit id="wOYPZmb" name="saml.error.cannot_login_saml_user_locally">
<segment state="translated">
<source>saml.error.cannot_login_saml_user_locally</source>
<target>无法使用本地身份验证器以SAML用户身份登录请改用SSO登录</target>
</segment>
</unit>
</file> </file>
</xliff> </xliff>