Skip to content

Commit

Permalink
Renamed domain names
Browse files Browse the repository at this point in the history
  • Loading branch information
mikadamczyk committed Aug 17, 2023
1 parent 8f96644 commit fbf665d
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 38 deletions.
3 changes: 2 additions & 1 deletion src/bundle/Form/Type/SearchType.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Ibexa\Bundle\Search\Form\Data\SearchData;
use Ibexa\Contracts\Core\Repository\PermissionResolver;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
use JMS\TranslationBundle\Annotation\Desc;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
use Symfony\Component\Form\Extension\Core\Type\TextType as CoreTextType;
Expand Down Expand Up @@ -90,7 +91,7 @@ public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'data_class' => SearchData::class,
'translation_domain' => 'search',
'translation_domain' => 'ibexa_search',
]);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
<note>The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message.</note>
</header>
<body>
<trans-unit id="663d5cd498c0849675ac4fd684d4270a1a3f1acb" resname="pagination.viewing">
<source>Viewing %viewing% out of %total% items</source>
<target>Viewing %viewing% out of %total% items</target>
<note>key: pagination.viewing</note>
</trans-unit>
<trans-unit id="2c0d71c1688c1f04ff156bb9dff167ca5ae663b6" resname="search.any.content.type">
<source>Any Content Type</source>
<target>Any Content Type</target>
Expand Down Expand Up @@ -63,7 +68,7 @@
</trans-unit>
<trans-unit id="03d6d5922fd2012e155e50306eaf98e2dfeb21c6" resname="search.section.any">
<source>All</source>
<target state="new">All</target>
<target>All</target>
<note>key: search.section.any</note>
</trans-unit>
<trans-unit id="777cc1ef279096d5a978aa3553e9434d828f8248" resname="search.tips.check_spelling">
Expand Down
16 changes: 0 additions & 16 deletions src/bundle/Resources/translations/messages.en.xliff

This file was deleted.

16 changes: 0 additions & 16 deletions src/bundle/Resources/translations/pagination.en.xliff

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% trans_default_domain 'search' %}
{% trans_default_domain 'ibexa_search' %}

{% form_theme form 'bootstrap_5_layout.html.twig' %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% trans_default_domain 'search' %}
{% trans_default_domain 'ibexa_search' %}

{% block content %}
<div>
Expand Down Expand Up @@ -54,9 +54,13 @@
{% if pager.haveToPaginate %}
<div>
<span>
{{ 'pagination.viewing'|trans({
{{ 'pagination.viewing'|trans(
{
'%viewing%': pager.currentPageResults|length,
'%total%': pager.nbResults}, 'pagination')|desc('Viewing %viewing% out of %total% items')|raw }}
'%total%': pager.nbResults
},
'ibexa_search'
)|desc('Viewing %viewing% out of %total% items')|raw }}
</span>
</div>
<div>
Expand Down

0 comments on commit fbf665d

Please sign in to comment.