Skip to content

Commit

Permalink
Search SoR translations
Browse files Browse the repository at this point in the history
  • Loading branch information
alainvd committed Apr 19, 2024
1 parent 164005b commit a5dee79
Show file tree
Hide file tree
Showing 16 changed files with 131 additions and 37 deletions.
4 changes: 3 additions & 1 deletion lang/en/pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"Data Retention Policy" => "Data Retention Policy",
"Api Documentation" => "Api Documentation",
"Documentation" => "Documentation",
"Faq" => "Frequently Asked Questions"
"Faq" => "Frequently Asked Questions",
"Search for Statements of Reasons" => "Search for Statements of Reasons",
"Create a Statement of Reason" => "Create a Statement of Reason"

];
8 changes: 8 additions & 0 deletions lang/en/search-form-simple.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

return [

'label' => 'Search',
'placeholder' => 'enter your text search here'

];
10 changes: 10 additions & 0 deletions lang/en/statement-create.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

return [

'title' => 'Submit a Statement of Reason',
'body' => 'For more information on the fields, please have a look at the <a href="/documentation">global documentation</a>',
'button' => 'Create the Statement of Reason',


];
26 changes: 26 additions & 0 deletions lang/en/statement-search.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

return [

'title' => 'Search “Statements of reasons”',
'body' => ' On this page, you can search for statements of reasons submitted by providers of online platforms. You
can use the free text search box to look for specific words within the free text fields of each
statement of reason submitted by providers of online platforms.
<br/>
<br/>
Through the advanced search button, you can easily find the statements of reasons submitted by each
platform, and filter by several data fields, e.g. the type of restriction(s) imposed, categories and
keywords, or the type or language of the content. Please note that only the first 10 000 results are
paginated, and only the first 1000 statements of reasons can be exported in .csv
format at a given time. The data is updated once every day. If you want to access a larger subset of
statements of reasons, please visit the
“<a class="ecl-link" href="/data-download">Data download</a>” page.
To submit feedback on the content of this page and to propose additional features, please visit the
<a class="ecl-link" href="/feedback">feedback form</a>.',
"Statements of Reasons" => "Déclarations de motifs",
'Statements of Reasons Found: ' => 'Statements of Reasons Found: ',
'.csv' => '.csv',
'Advanced Search' => 'Advanced Search'


];
10 changes: 10 additions & 0 deletions lang/en/statement-table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

return [

'Platform' => 'Platform',
'Restrictions' => 'Restrictions',
'Category' => 'Category',
'Creation Date' => 'Creation Date',

];
2 changes: 1 addition & 1 deletion lang/fr/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'General' => 'Général',
'Technical' => 'Technique',
'Platforms' => 'Plateformes',
'Submit statements of reasons' => 'Soumettre des Déclarations de Motifs',
'Submit statements of reasons' => 'Soumettre des Déclarations de Raisons',
'Global Documentation' => 'Documentation Globale',
'API Documentation' => 'Documentation de l\'API'
];
5 changes: 4 additions & 1 deletion lang/fr/pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@
"Data Retention Policy" => "Politique de conservation des données",
"Api Documentation" => "Documentation de l'API",
"Documentation" => "Documentation Globale",
"Faq" => "Questions Fréquemment Posées"
"Faq" => "Questions Fréquemment Posées",
"Search for Statements of Reasons" => "Chercher des déclaration de Raison",
"Create a Statement of Reason" => "Créer une déclaration de Raison"

];
9 changes: 9 additions & 0 deletions lang/fr/search-form-simple.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

return [

'label' => 'Rechercher',
'placeholder' => 'entrez votre recherche de texte ici'

];

11 changes: 11 additions & 0 deletions lang/fr/statement-create.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

return [

'title' => 'Soumettre une déclaration de raison',
'body' => 'Pour plus d\'informations sur les champs, veuillez consulter la <a href="/documentation">documentation globale</a>',
'button' => 'Créer la déclaration de raison',
'Decision Taken (Please select at least one item from the available options)' => 'Décision prise (Veuillez sélectionner au moins un élément parmi les options disponibles)',
'Select visibility decision(s)' => 'Sélectionnez les décisions en matière de visibilité'

];
18 changes: 18 additions & 0 deletions lang/fr/statement-search.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

return [

'title' => 'Recherche de Déclarations de Motifs',
'body' => '
Sur cette page, vous pouvez rechercher des déclarations de motifs soumises par des fournisseurs de plateformes en ligne. Vous pouvez utiliser la zone de recherche de texte libre pour rechercher des mots spécifiques dans les champs de texte libre de chaque déclaration de motif soumise par des fournisseurs de plateformes en ligne.
<br/>
<br/>
À travers le bouton de recherche avancée, vous pouvez facilement trouver les déclarations de motifs soumises par chaque plateforme et filtrer par plusieurs champs de données, tels que le type de restriction(s) imposée(s), les catégories et mots-clés, ou le type ou la langue du contenu. Veuillez noter que seuls les 10 000 premiers résultats sont paginés, et seules les 1000 premières déclarations de motifs peuvent être exportées au format .csv à un moment donné. Les données sont mises à jour une fois par jour. Si vous souhaitez accéder à un sous-ensemble plus large de déclarations de motifs, veuillez visiter la page “<a class="ecl-link" href="/data-download">Téléchargement de données</a>”.
Pour soumettre des commentaires sur le contenu de cette page et proposer des fonctionnalités supplémentaires, veuillez visiter le <a class="ecl-link" href="/feedback">formulaire de retour d\'information </a >.',
"Statements of Reasons" => "Déclarations de motifs",
'Statements of Reasons Found' => 'Déclarations de motifs trouvées',
'Advanced Search' => 'Recherche avancée'


];
10 changes: 10 additions & 0 deletions lang/fr/statement-table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

return [

'Platform' => 'Plateforme',
'Restrictions' => 'Restrictions',
'Category' => 'Catégorie',
'Creation Date' => 'Date de création',

];
6 changes: 2 additions & 4 deletions resources/views/components/statement/form.blade.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
@php use App\Models\Statement; @endphp
@props(['statement' => null, 'options' => null])

<h4>Decision Taken (Please select at least one item from the available options)</h4>
<h4 class="ecl-u-type-heading-4">{{__('statement-create.Select visibility decision(s)')}}</h4>

<x-ecl.select-multiple :label="Statement::LABEL_STATEMENT_DECISION_VISIBILITY"
name="decision_visibility"
id="decision_visibility"
:options="$options['decision_visibilities']"
select_all="All"
select_item="Select visibility decision(s)"
select_item="{{__('statement-create.Select visibility decision(s)')}}"
enter_keyword="Enter a visibility decision"
/>




<x-ecl.textfield :label="Statement::LABEL_STATEMENT_FORM_OTHER" name="decision_visibility_other"
id="decision_visibility_other" required="true"/>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<form method="get" class="ecl-search-form" role="search">

<x-ecl.search name="s" id="s" label="Search" placeholder="enter your text search here" :value="request()->get('s', '')" />
<x-ecl.search name="s" id="s" label="{{__('search-form-simple.label')}}" placeholder="{{__('search-form-simple.placeholder')}}" :value="request()->get('s', '')" />

</form>

10 changes: 5 additions & 5 deletions resources/views/components/statement/table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
<table class="ecl-table ecl-table--zebra">
<thead class="ecl-table__head">
<tr class="ecl-table__row">
<th class="ecl-table__header">Platform</th>
<th class="ecl-table__header">Restrictions</th>
<th class="ecl-table__header">Category</th>
<th class="ecl-table__header">Creation Date</th>
<th class="ecl-table__header">{{__('statement-table.Platform')}}</th>
<th class="ecl-table__header">{{__('statement-table.Restrictions')}}</th>
<th class="ecl-table__header">{{__('statement-table.Category')}}</th>
<th class="ecl-table__header">{{__('statement-table.Creation Date')}}</th>
</tr>
</thead>
<tbody class="ecl-table__body">
Expand Down Expand Up @@ -47,4 +47,4 @@
})
</script>

{{ $statements->links('paginator') }}
{{ $statements->links('paginator') }}
10 changes: 4 additions & 6 deletions resources/views/statement/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,25 @@

@section('breadcrumbs')
<x-ecl.breadcrumb label="{{__('menu.Home')}}" url="{{ route('home') }}" />
<x-ecl.breadcrumb label="Dashboard" url="{{ route('dashboard') }}" />
<x-ecl.breadcrumb label="Statements of Reasons" url="{{ route('statement.index') }}" />
<x-ecl.breadcrumb label="Create a Statement of Reason" />
<x-ecl.breadcrumb label="{{__('pages.Create a Statement of Reason')}}" />
@endsection

@section('content')

{{-- <h1 class="ecl-page-header__title ecl-u-type-heading-1 ecl-u-mb-l">Create a Statement of Reason</h1>--}}

<h1 class="ecl-u-type-heading-1">Submit a Statement of Reason</h1>
<h1 class="ecl-u-type-heading-1">{{__('statement-create.title')}}</h1>

<p class="ecl-u-type-paragraph">
For more information on the fields, please have a look at the <a href="{{route('profile.page.show', ['documentation'])}}">global documentation</a>
{!! __('statement-create.body') !!}
</p>

<form method="post" action="{{route('statement.store')}}" id="create-statement-form">
@csrf
<x-statement.form :statement="$statement" :options="$options" />
</form>

<button class="ecl-button ecl-button--primary" onClick="document.getElementById('create-statement-form').submit();">Create the Statement of Reason</button>
<button class="ecl-button ecl-button--primary" onClick="document.getElementById('create-statement-form').submit();">{{__('statement-create.button')}}</button>
<script>
</script>
Expand Down
27 changes: 9 additions & 18 deletions resources/views/statement/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,17 @@

@section('breadcrumbs')
<x-ecl.breadcrumb label="{{__('menu.Home')}}" url="{{ route('home') }}"/>
<x-ecl.breadcrumb label="Search for Statements of Reasons"/>
<x-ecl.breadcrumb label="{{__('statement-search.title')}}"/>
@endsection

@section('content')

<h1 class="ecl-page-header__title ecl-u-type-heading-1 ecl-u-mb-l">Search “Statements of reasons”</h1>
<h1 class="ecl-page-header__title ecl-u-type-heading-1 ecl-u-mb-l">{{__('statement-search.title')}}</h1>

<div class="ecl-row ecl-u-mt-l ecl-u-mb-xl">
<div class="ecl-col-l-8">
<div class="ecl-u-type-paragraph">
On this page, you can search for statements of reasons submitted by providers of online platforms. You
can use the free text search box to look for specific words within the free text fields of each
statement of reason submitted by providers of online platforms.
<br/>
<br/>
Through the advanced search button, you can easily find the statements of reasons submitted by each
platform, and filter by several data fields, e.g. the type of restriction(s) imposed, categories and
keywords, or the type or language of the content. Please note that only the first 10 000 results are
paginated, and only the first 1000 statements of reasons can be exported in .csv
format at a given time. The data is updated once every day. If you want to access a larger subset of
statements of reasons, please visit the
“<a class="ecl-link" href="{{route("dayarchive.index")}}">Data download</a>” page.
To submit feedback on the content of this page and to propose additional features, please visit the
<a class="ecl-link" href="{{route("feedback.index")}}">feedback form</a>.
{!! __('statement-search.body') !!}
</div>
</div>
<div class="ecl-col-l-4">
Expand All @@ -50,7 +37,7 @@ class="ecl-media-container__media"
</div>
<div class="ecl-col-l-4">
<a href="{{ route('statement.search', request()->query()) }}" class="ecl-button ecl-button--secondary">
Advanced Search
{{__('statement-search.Advanced Search')}}
</a>
</div>
</div>
Expand All @@ -60,7 +47,11 @@ class="ecl-media-container__media"
<div class="ecl-u-pt-l ecl-u-d-inline-flex ecl-u-align-items-center ecl-u-f-r">

<div class="ecl-u-type-paragraph ecl-u-mr-s">
Statements of Reasons @if(!$reindexing)Found: {{ $total }} @endif
@if(!$reindexing)
{{__('statement-search.Statements of Reasons')}}: {{ $total }}
@else
{{__('statement-search.Statements of Reasons Found: ')}}: {{ $total }}
@endif
</div>


Expand Down

0 comments on commit a5dee79

Please sign in to comment.