mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 12:05:29 +00:00
Merge pull request #266 from mediaclinic/3
Added translation support for results page + Finnish translation.
This commit is contained in:
commit
8c4f3597c7
14
lang/fi.yml
Normal file
14
lang/fi.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
fi:
|
||||||
|
SilverStripe\FullTextSearch\Solr\Forms\SearchForm:
|
||||||
|
GO: Hae
|
||||||
|
SEARCH: Haku
|
||||||
|
SolrResultsPage:
|
||||||
|
SearchQuery: 'Hakusanasi oli'
|
||||||
|
DidYouMean: 'Tarkoititko'
|
||||||
|
ReadMore: 'Lue lisää'
|
||||||
|
NoResults: 'Pahoittelut, mutta hakusi ei tuottanut yhtään osumaa.'
|
||||||
|
Page: 'Sivu'
|
||||||
|
of: '/'
|
||||||
|
ViewPreviousPage: 'Katso edellinen sivu'
|
||||||
|
View page number: 'Siirry sivulle'
|
||||||
|
ViewNextPage: 'Katso seuraava sivu'
|
@ -2,11 +2,11 @@
|
|||||||
<h1>$Title</h1>
|
<h1>$Title</h1>
|
||||||
|
|
||||||
<% if $Query %>
|
<% if $Query %>
|
||||||
<p class="searchQuery">You searched for "{$Query}"</p>
|
<p class="searchQuery"><%t SolrResultsPage.SearchQuery 'You searched for' %> "{$Query}"</p>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
|
||||||
<% if $Results.Suggestion %>
|
<% if $Results.Suggestion %>
|
||||||
<p class="spellCheck">Did you mean <a href="{$Link}SearchForm?Search=$Results.SuggestionQueryString">$Results.SuggestionNice</a>?</p>
|
<p class="spellCheck"><%t SolrResultsPage.DidYouMean 'Did you mean' %> <a href="{$Link}SearchForm?Search=$Results.SuggestionQueryString">$Results.SuggestionNice</a>?</p>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
|
||||||
<% if $Results.Matches %>
|
<% if $Results.Matches %>
|
||||||
@ -23,34 +23,34 @@
|
|||||||
</a>
|
</a>
|
||||||
</h4>
|
</h4>
|
||||||
<p><% if $Abstract %>$Abstract.XML<% else %>$Content.ContextSummary<% end_if %></p>
|
<p><% if $Abstract %>$Abstract.XML<% else %>$Content.ContextSummary<% end_if %></p>
|
||||||
<a class="readMoreLink" href="$Link" title="Read more about "{$Title}"">Read more about "{$Title}"...</a>
|
<a class="readMoreLink" href="$Link" title="<%t SolrResultsPage.ReadMore 'Read more about' %> "{$Title}""><%t SolrResultsPage.ReadMore 'Read more about' %> "{$Title}"...</a>
|
||||||
</li>
|
</li>
|
||||||
<% end_loop %>
|
<% end_loop %>
|
||||||
</ul>
|
</ul>
|
||||||
<% else %>
|
<% else %>
|
||||||
<p>Sorry, your search query did not return any results.</p>
|
<p><%t SolrResultsPage.NoResults 'Sorry, your search query did not return any results.' %></p>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
|
||||||
<% if $Results.Matches.MoreThanOnePage %>
|
<% if $Results.Matches.MoreThanOnePage %>
|
||||||
<div id="PageNumbers">
|
<div id="PageNumbers">
|
||||||
<div class="pagination">
|
<div class="pagination">
|
||||||
<% if $Results.Matches.NotFirstPage %>
|
<% if $Results.Matches.NotFirstPage %>
|
||||||
<a class="prev" href="$Results.Matches.PrevLink" title="View the previous page">←</a>
|
<a class="prev" href="$Results.Matches.PrevLink" title="<%t SolrResultsPage.ViewPreviousPage 'View the previous page' %>">←</a>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
<span>
|
<span>
|
||||||
<% loop $Results.Matches.Pages %>
|
<% loop $Results.Matches.Pages %>
|
||||||
<% if $CurrentBool %>
|
<% if $CurrentBool %>
|
||||||
$PageNum
|
$PageNum
|
||||||
<% else %>
|
<% else %>
|
||||||
<a href="$Link" title="View page number $PageNum" class="go-to-page">$PageNum</a>
|
<a href="$Link" title="<%t SolrResultsPage.ViewPageNumber 'View page number' %> $PageNum" class="go-to-page">$PageNum</a>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
<% end_loop %>
|
<% end_loop %>
|
||||||
</span>
|
</span>
|
||||||
<% if $Results.Matches.NotLastPage %>
|
<% if $Results.Matches.NotLastPage %>
|
||||||
<a class="next" href="$Results.Matches.NextLink" title="View the next page">→</a>
|
<a class="next" href="$Results.Matches.NextLink" title="<%t SolrResultsPage.ViewNextPage 'View the next page' %>">→</a>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
</div>
|
</div>
|
||||||
<p>Page $Results.Matches.CurrentPage of $Results.Matches.TotalPages</p>
|
<p><%t SolrResultsPage.Page 'Page' %> $Results.Matches.CurrentPage <%t SolrResultsPage.of 'of' %> $Results.Matches.TotalPages</p>
|
||||||
</div>
|
</div>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user