diff --git a/lang/fi.yml b/lang/fi.yml new file mode 100644 index 0000000..f8a4426 --- /dev/null +++ b/lang/fi.yml @@ -0,0 +1,10 @@ +FI: + SilverStripe\FullTextSearch\Solr\Forms\SearchForm: + GO: Suorita + SEARCH: Haku + SearchQuery: 'Hakusanasi oli' + DidYouMean: 'Tarkoititko' + ReadMore: 'Lue lisää' + NoResults: 'Pahoittelut, mutta hakusi ei tuottanut yhtään osumaa.' + Page: 'Sivu' + of: '/' diff --git a/templates/Layout/Page_results_solr.ss b/templates/Layout/Page_results_solr.ss index d573908..aa96265 100644 --- a/templates/Layout/Page_results_solr.ss +++ b/templates/Layout/Page_results_solr.ss @@ -2,11 +2,11 @@
You searched for "{$Query}"
+<%t SearchQuery 'You searched for' %> "{$Query}"
<% end_if %> <% if $Results.Suggestion %> -Did you mean $Results.SuggestionNice?
+<%t DidYouMean 'Did you mean' %> $Results.SuggestionNice?
<% end_if %> <% if $Results.Matches %> @@ -23,12 +23,12 @@<% if $Abstract %>$Abstract.XML<% else %>$Content.ContextSummary<% end_if %>
- Read more about "{$Title}"... + <%t ReadMore 'Read more about' %> "{$Title}"... <% end_loop %> <% else %> -Sorry, your search query did not return any results.
+<%t NoResults 'Sorry, your search query did not return any results.' %>
<% end_if %> <% if $Results.Matches.MoreThanOnePage %> @@ -50,7 +50,7 @@ → <% end_if %> -Page $Results.Matches.CurrentPage of $Results.Matches.TotalPages
+<%t Page 'Page' %> $Results.Matches.CurrentPage <%t of 'of' %> $Results.Matches.TotalPages
<% end_if %>