mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Improved translations for filter operators.
This commit is contained in:
parent
b11ef1d60d
commit
fc1bf5d037
5 changed files with 64 additions and 10 deletions
|
@ -37,7 +37,7 @@ class DateTimeConstraintType extends AbstractType
|
|||
'>' => '>',
|
||||
'<=' => '<=',
|
||||
'>=' => '>=',
|
||||
'BETWEEN' => 'BETWEEN',
|
||||
'filter.number_constraint.value.operator.BETWEEN' => 'BETWEEN',
|
||||
];
|
||||
|
||||
$builder->add('value1', DateTimeType::class, array_merge_recursive([
|
||||
|
|
|
@ -39,7 +39,7 @@ class NumberConstraintType extends AbstractType
|
|||
'>' => '>',
|
||||
'<=' => '<=',
|
||||
'>=' => '>=',
|
||||
'BETWEEN' => 'BETWEEN',
|
||||
'filter.number_constraint.value.operator.BETWEEN' => 'BETWEEN',
|
||||
];
|
||||
|
||||
$builder->add('value1', NumberType::class, array_merge_recursive([
|
||||
|
|
|
@ -27,13 +27,13 @@ class TextConstraintType extends AbstractType
|
|||
{
|
||||
$choices = [
|
||||
'' => '',
|
||||
'=' => '=',
|
||||
'!=' => '!=',
|
||||
'STARTS' => 'STARTS',
|
||||
'ENDS' => 'ENDS',
|
||||
'CONTAINS' => 'CONTAINS',
|
||||
'LIKE' => 'LIKE',
|
||||
'REGEX' => 'REGEX',
|
||||
'filter.text_constraint.value.operator.EQ' => '=',
|
||||
'filter.text_constraint.value.operator.NEQ' => '!=',
|
||||
'filter.text_constraint.value.operator.STARTS' => 'STARTS',
|
||||
'filter.text_constraint.value.operator.ENDS' => 'ENDS',
|
||||
'filter.text_constraint.value.operator.CONTAINS' => 'CONTAINS',
|
||||
'filter.text_constraint.value.operator.LIKE' => 'LIKE',
|
||||
'filter.text_constraint.value.operator.REGEX' => 'REGEX',
|
||||
];
|
||||
|
||||
$builder->add('value', SearchType::class, [
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"data-action": "change->filters--number-constraint#update"
|
||||
}}) }}
|
||||
{{ form_widget(form.value1) }}
|
||||
<span class="input-group-text d-none" {{ stimulus_target('filters/number_constraint', 'thingsToHide') }}>AND</span>
|
||||
<span class="input-group-text d-none" {{ stimulus_target('filters/number_constraint', 'thingsToHide') }}>{% trans %}filter.number_constraint.AND{% endtrans %}</span>
|
||||
{{ form_widget(form.value2, {"attr": {"class": "d-none", "data-filters--number-constraint-target": "thingsToHide"}}) }}
|
||||
{% if form.vars["text_suffix"] %}
|
||||
<span class="input-group-text">{{ form.vars["text_suffix"] }}</span>
|
||||
|
|
|
@ -9357,5 +9357,59 @@ Element 3</target>
|
|||
<target>Do you really want to delete this attachment?</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="JtGEdQP" name="filter.text_constraint.value.operator.EQ">
|
||||
<segment>
|
||||
<source>filter.text_constraint.value.operator.EQ</source>
|
||||
<target>Is</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="9RAGNGw" name="filter.text_constraint.value.operator.NEQ">
|
||||
<segment>
|
||||
<source>filter.text_constraint.value.operator.NEQ</source>
|
||||
<target>Is not</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="N1AQsNF" name="filter.text_constraint.value.operator.STARTS">
|
||||
<segment>
|
||||
<source>filter.text_constraint.value.operator.STARTS</source>
|
||||
<target>Starts with</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="3Rr21xj" name="filter.text_constraint.value.operator.CONTAINS">
|
||||
<segment>
|
||||
<source>filter.text_constraint.value.operator.CONTAINS</source>
|
||||
<target>Contains</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="S_U21kw" name="filter.text_constraint.value.operator.ENDS">
|
||||
<segment>
|
||||
<source>filter.text_constraint.value.operator.ENDS</source>
|
||||
<target>Ends with</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="l2ojG4Z" name="filter.text_constraint.value.operator.LIKE">
|
||||
<segment>
|
||||
<source>filter.text_constraint.value.operator.LIKE</source>
|
||||
<target>LIKE pattern</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="hAcin33" name="filter.text_constraint.value.operator.REGEX">
|
||||
<segment>
|
||||
<source>filter.text_constraint.value.operator.REGEX</source>
|
||||
<target>Regular expression</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="hWtqvI3" name="filter.number_constraint.value.operator.BETWEEN">
|
||||
<segment>
|
||||
<source>filter.number_constraint.value.operator.BETWEEN</source>
|
||||
<target>Between</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="Pho_nY5" name="filter.number_constraint.AND">
|
||||
<segment>
|
||||
<source>filter.number_constraint.AND</source>
|
||||
<target>and</target>
|
||||
</segment>
|
||||
</unit>
|
||||
</file>
|
||||
</xliff>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue