teaminmedias-pluswerk / ke_search

Search Extension for TYPO3 Content Management System, including faceting search functions.
https://extensions.typo3.org/extension/ke_search/
GNU General Public License v3.0
35 stars 62 forks source link

Pagination translation: prev-next from fluid #451

Closed zabinetta closed 6 months ago

zabinetta commented 1 year ago

fluid has already got prev-next translations for pagination, why not use them in Resources/Private/Templates/Widget/Pagination.html

`<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:kesearch="http://typo3.org/ns/TeaminmediasPluswerk\KeSearch\ViewHelpers" data-namespace-typo3-fluid="true">

  • {f:translate(key:'widget.pagination.previous', extensionName: 'fluid')}
  • {page}
  • {f:translate(key:'widget.pagination.next', extensionName: 'fluid')}
`
zabinetta commented 1 year ago

translation could be far more flexible in resultrows, too. try: {f:translate(key:'pagebrowserresult', extensionName: 'ke_search', arguments:{0:pagebrowser.start,1:pagebrowser.end,3:pagebrowser.total},default:'Result %s until %s of %s')}

christianbltr commented 6 months ago

Pagination has been reworked with https://github.com/tpwd/ke_search/pull/203