]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
i18n collection pagination
authorBanana <mail@bananas-playground.net>
Mon, 15 Apr 2024 13:08:19 +0000 (15:08 +0200)
committerBanana <mail@bananas-playground.net>
Mon, 15 Apr 2024 13:08:19 +0000 (15:08 +0200)
Signed-off-by: Banana <mail@bananas-playground.net>
webclient/view/98/collections/collections_pagination.html

index 321142d760596a64de9f55b383855eff116336b3..6ba86834ab5cbb986ed3d022a3229f41713b70ee 100644 (file)
@@ -2,7 +2,7 @@
 <?php
 if($TemplateData['pagination']['curPage'] > 1) {
        echo '<a href="index.php?'.Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('page'=>($TemplateData['pagination']['curPage']-1))).'"
-                       title="previous">&lt;</a>';
+                       title="'.$I18n->t('pagination.previous').'">&lt;</a>';
 }
 $ellipsisShown = 0;
 
@@ -12,7 +12,7 @@ for($i=1;$i<=$TemplateData['pagination']['pages'];$i++) {
 
        if(in_array($i,$TemplateData['pagination']['visibleRange'])) {
                echo '<a class="'.$active.'" href="index.php?'.Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('page'=>$i)).'"
-                                                       title="Goto page '.$i.'">'.$i.'</a>';
+                                                       title="'.$I18n->t('pagination.previous') $i.'">'.$i.'</a>';
        }
        else {
                if($i < $TemplateData['pagination']['currentRangeStart'] && $ellipsisShown == 0) {
@@ -28,7 +28,7 @@ for($i=1;$i<=$TemplateData['pagination']['pages'];$i++) {
 
 if($TemplateData['pagination']['curPage'] < $TemplateData['pagination']['pages']) {
        echo '<a href="index.php?'.Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('page'=>($TemplateData['pagination']['curPage']+1))).'"
-                       title="next">&gt;</a>';
+                       title="'.$I18n->t('pagination.next').'">&gt;</a>';
 }
 ?>
 </div>