mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-06 19:19:29 +00:00
Use default translations for the NotBlank constraint
This commit is contained in:
parent
15e9d9e81f
commit
c6ea46b702
4 changed files with 4 additions and 26 deletions
|
|
@ -52,7 +52,7 @@ class DataSourceSynonymRowType extends AbstractType
|
|||
'choices' => $this->buildDataSourceChoices($options['data_sources']),
|
||||
'required' => true,
|
||||
'constraints' => [
|
||||
new Assert\NotBlank(message: 'settings.system.data_source_synonyms.row_type.value_not_blank'),
|
||||
new Assert\NotBlank(),
|
||||
],
|
||||
])
|
||||
->add('locale', LocaleType::class, [
|
||||
|
|
@ -63,7 +63,7 @@ class DataSourceSynonymRowType extends AbstractType
|
|||
'choices' => $this->buildLocaleChoices(true),
|
||||
'preferred_choices' => $this->getPreferredLocales(),
|
||||
'constraints' => [
|
||||
new Assert\NotBlank(message: 'settings.system.data_source_synonyms.row_type.value_not_blank'),
|
||||
new Assert\NotBlank(),
|
||||
],
|
||||
])
|
||||
->add('translation_singular', TextType::class, [
|
||||
|
|
@ -71,7 +71,7 @@ class DataSourceSynonymRowType extends AbstractType
|
|||
'required' => true,
|
||||
'empty_data' => '',
|
||||
'constraints' => [
|
||||
new Assert\NotBlank(message: 'settings.system.data_source_synonyms.row_type.value_not_blank'),
|
||||
new Assert\NotBlank(),
|
||||
],
|
||||
])
|
||||
->add('translation_plural', TextType::class, [
|
||||
|
|
@ -79,7 +79,7 @@ class DataSourceSynonymRowType extends AbstractType
|
|||
'required' => true,
|
||||
'empty_data' => '',
|
||||
'constraints' => [
|
||||
new Assert\NotBlank(message: 'settings.system.data_source_synonyms.row_type.value_not_blank'),
|
||||
new Assert\NotBlank(),
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
|
@ -133,9 +133,5 @@ class DataSourceSynonymRowType extends AbstractType
|
|||
{
|
||||
$resolver->setRequired('data_sources');
|
||||
$resolver->setAllowedTypes('data_sources', 'array');
|
||||
|
||||
$resolver->setDefaults([
|
||||
'error_translation_domain' => 'validators',
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -365,12 +365,6 @@
|
|||
<target>Neplatný kód. Zkontrolujte, zda je vaše ověřovací aplikace správně nastavena a zda je čas správně nastaven jak na serveru, tak na ověřovacím zařízení.</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="kduT6bD" name="settings.system.data_source_synonyms.row_type.value_not_blank">
|
||||
<segment state="translated">
|
||||
<source>settings.system.data_source_synonyms.row_type.value_not_blank</source>
|
||||
<target>Tato hodnota nemůže být prázdná.</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="djd7Z5r" name="settings.system.data_source_synonyms.collection_type.duplicate">
|
||||
<segment state="translated">
|
||||
<source>settings.system.data_source_synonyms.collection_type.duplicate</source>
|
||||
|
|
|
|||
|
|
@ -365,12 +365,6 @@
|
|||
<target>Ungültiger Code. Überprüfen Sie, ob die Authenticator App korrekt eingerichtet ist und ob der Server und das Gerät beide die korrekte Uhrzeit eingestellt haben.</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="kduT6bD" name="settings.system.data_source_synonyms.row_type.value_not_blank">
|
||||
<segment state="translated">
|
||||
<source>settings.system.data_source_synonyms.row_type.value_not_blank</source>
|
||||
<target>Dieser Wert darf nicht leer sein.</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="djd7Z5r" name="settings.system.data_source_synonyms.collection_type.duplicate">
|
||||
<segment state="translated">
|
||||
<source>settings.system.data_source_synonyms.collection_type.duplicate</source>
|
||||
|
|
|
|||
|
|
@ -365,12 +365,6 @@
|
|||
<target>Invalid code. Check that your authenticator app is set up correctly and that both the server and authentication device has the time set correctly.</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="kduT6bD" name="settings.system.data_source_synonyms.row_type.value_not_blank">
|
||||
<segment state="translated">
|
||||
<source>settings.system.data_source_synonyms.row_type.value_not_blank</source>
|
||||
<target>This value should not be blank.</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="djd7Z5r" name="settings.system.data_source_synonyms.collection_type.duplicate">
|
||||
<segment state="translated">
|
||||
<source>settings.system.data_source_synonyms.collection_type.duplicate</source>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue