Skip to content

Commit

Permalink
Add new translation texts for the search header & advanced search app
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamik10 committed Oct 7, 2023
1 parent a846042 commit ecc0646
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
1 change: 1 addition & 0 deletions web/modules/custom/dpl_react_apps/dpl_react_apps.module
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ function dpl_react_apps_preprocess_page(array &$variables): void {
'string-suggestion-author-text' => t('Author', [], ['context' => 'Search Header']),
'string-suggestion-topic-text' => t('Topic', [], ['context' => 'Search Header']),
'string-suggestion-work-text' => t('Work', [], ['context' => 'Search Header']),
'header-dropdown-item-advanced-search-text' => t('Advanced search', [], ['context' => 'Search Header']),
// Add external API base urls.
] + DplReactAppsController::externalApiBaseUrls(),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,27 @@ public function advancedSearch(): array {
'advanced-search-copy-string-text' => $this->t('copy string', [], ['context' => 'advanced search']),
'advanced-search-edit-cql-text' => $this->t('edit cql', [], ['context' => 'advanced search']),
'advanced-search-search-button-text' => $this->t('search', [], ['context' => 'advanced search']),
'loading-results-text' => $this->t('search', [], ['context' => 'Loading results...']),
'to-advanced-search-button-text' => $this->t('search', [], ['context' => 'Back to advanced search']),
'cql-search-title-text' => $this->t('search', [], ['context' => 'CQL search']),
'copied-to-clipboard-text' => $this->t('search', [], ['context' => 'Copied']),
'copied-link-to-this-search-text' => $this->t('search', [], ['context' => 'Link copied to clipboard']),
'loading-results-text' => $this->t('Loading results...', [], ['context' => 'advanced search']),
'to-advanced-search-button-text' => $this->t('Back to advanced search', [], ['context' => 'advanced search']),
'cql-search-title-text' => $this->t('CQL search', [], ['context' => 'advanced search']),
'copied-to-clipboard-text' => $this->t('Copied', [], ['context' => 'advanced search']),
'copied-link-to-this-search-text' => $this->t('Link copied to clipboard', [], ['context' => 'advanced search']),
'clause-and-text' => $this->t('and', [], ['context' => 'advanced search']),
'clause-or-text' => $this->t('or', [], ['context' => 'advanced search']),
'clause-not-text' => $this->t('not', [], ['context' => 'advanced search']),
'advanced-search-filter-material-type-text' => $this->t('material type', [], ['context' => 'advanced search']),
'advanced-search-filter-literature-form-text' => $this->t('literature form', [], ['context' => 'advanced search']),
'advanced-search-filter-access-text' => $this->t('accessibility', [], ['context' => 'advanced search']),
'advanced-search-filter-book-text' => $this->t('book', [], ['context' => 'advanced search']),
'advanced-search-filter-ebook-text' => $this->t('ebook', [], ['context' => 'advanced search']),
'advanced-search-filter-audio-book-text' => $this->t('audio book', [], ['context' => 'advanced search']),
'advanced-search-filter-article-text' => $this->t('article', [], ['context' => 'advanced search']),
'advanced-search-filter-movie-text' => $this->t('movie', [], ['context' => 'advanced search']),
'advanced-search-filter-music-text' => $this->t('music', [], ['context' => 'advanced search']),
'advanced-search-filter-physical-text' => $this->t('physical', [], ['context' => 'advanced search']),
'advanced-search-filter-online-text' => $this->t('online', [], ['context' => 'advanced search']),
'advanced-search-filter-fiction-text' => $this->t('fiction', [], ['context' => 'advanced search']),
'advanced-search-filter-non-fiction-text' => $this->t('Non-fiction', [], ['context' => 'advanced search']),
// Add external API base urls.
] + self::externalApiBaseUrls();

Expand Down

0 comments on commit ecc0646

Please sign in to comment.