Localization of Pagination
This commit is contained in:
parent
23f9765b3a
commit
2586db7a6f
6 changed files with 18 additions and 31 deletions
19
lang/de.php
19
lang/de.php
|
@ -1,20 +1,11 @@
|
|||
<?php
|
||||
/**
|
||||
* PHP Version 5.6
|
||||
*
|
||||
* Rangitaki Project
|
||||
*
|
||||
* Language File: German / Deutsch
|
||||
*
|
||||
* @category Language_File
|
||||
* @package Rbe
|
||||
* @author Marcel Kapfer (mmk2410) <marcelmichaelkapfer@yahoo.co.nz>
|
||||
* @license MIT License
|
||||
* @link http://marcel-kapfer.de/rangitaki
|
||||
*/
|
||||
// Rangitaki Project
|
||||
// LANGUAGE: GERMAN
|
||||
|
||||
$BLOGLANG = [
|
||||
"Blogs on" => "Blogs auf",
|
||||
"Check out this blog" => "Schau dir diesen Blog an:",
|
||||
"Check out" => "Schau dir das an:"
|
||||
"Check out" => "Schau dir das an:",
|
||||
"Next Page" => "Nächste Seite",
|
||||
"Previous Page" => "Vorherige Seite",
|
||||
];
|
||||
|
|
17
lang/en.php
17
lang/en.php
|
@ -1,20 +1,11 @@
|
|||
<?php
|
||||
/**
|
||||
* PHP Version 5.6
|
||||
*
|
||||
* Rangitaki Project
|
||||
*
|
||||
* Language File: German / Deutsch
|
||||
*
|
||||
* @category Language_File
|
||||
* @package Rbe
|
||||
* @author Marcel Kapfer (mmk2410) <marcelmichaelkapfer@yahoo.co.nz>
|
||||
* @license MIT License
|
||||
* @link http://marcel-kapfer.de/rangitaki
|
||||
*/
|
||||
// Rangitaki Project
|
||||
// LANGUAGE: ENGLISH
|
||||
|
||||
$BLOGLANG = [
|
||||
"Blogs on" => "Blogs on",
|
||||
"Check out this blog" => "Check out this blog:",
|
||||
"Check out" => "Check out:",
|
||||
"Next Page" => "Next Page",
|
||||
"Previous Page" => "Previous Page",
|
||||
];
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
* @link http://marcel-kapfer.de/rangitaki
|
||||
*/
|
||||
require_once "BlogListGenerator.php";
|
||||
require_once "config.php";
|
||||
require_once "lang/" . $language . ".php";
|
||||
|
||||
if ($pagination) {
|
||||
?>
|
||||
|
@ -21,13 +23,13 @@ if ($pagination) {
|
|||
?>
|
||||
<a href="<?php
|
||||
echo "?blog=" . $getblog . "&page=" . ($pagenumber - 1);
|
||||
?>" class="pag_prev button">PREVIOUS PAGE</a>
|
||||
?>" class="pag_prev button"><?php echo $BLOGLANG["Previous Page"]; ?></a>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<a href="<?php
|
||||
echo "?page=" . ($pagenumber - 1);
|
||||
?>" class="pag_prev button">PREVIOUS PAGE</a>
|
||||
?>" class="pag_prev button"><?php echo $BLOGLANG['Previous Page']; ?></a>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
@ -41,13 +43,13 @@ if ($pagination) {
|
|||
?>
|
||||
<a href="<?php
|
||||
echo "?blog=" . $getblog . "&page=" . ($pagenumber + 1);
|
||||
?>" class="pag_next button">NEXT PAGE</a>
|
||||
?>" class="pag_next button"><?php echo $BLOGLANG["Next Page"]; ?></a>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<a href="<?php
|
||||
echo "?page=" . ($pagenumber + 1);
|
||||
?>" class="pag_next button">NEXT PAGE</a>
|
||||
?>" class="pag_next button"><?php echo $BLOGLANG["Next Page"];?></a>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
|
|
@ -140,6 +140,7 @@ body{
|
|||
.button {
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
text-transform: uppercase;
|
||||
box-shadow: 0px 1px 1.5px 1.5px rgba(42, 42, 42, 0.65);
|
||||
-moz-box-shadow: 0px 1px 1.5px 1.5px rgba(42, 42, 42, 0.65);
|
||||
-webkit-box-shadow: 0px 1px 1.5px 1.5px rgba(42, 42, 42, 0.65);
|
||||
|
|
|
@ -134,6 +134,7 @@ body{
|
|||
}
|
||||
|
||||
.button{
|
||||
text-transform: uppercase;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
box-shadow: 0px 1px 1.5px 1.5px rgba(42, 42, 42, 0.65);
|
||||
|
|
|
@ -138,6 +138,7 @@ body{
|
|||
}
|
||||
|
||||
.button {
|
||||
text-transform: uppercase;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
box-shadow: 0.4px 1px 1.5px 1px #aaa;
|
||||
|
|
Reference in a new issue