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
|
||||||
/**
|
// Rangitaki Project
|
||||||
* PHP Version 5.6
|
// LANGUAGE: GERMAN
|
||||||
*
|
|
||||||
* 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
|
|
||||||
*/
|
|
||||||
|
|
||||||
$BLOGLANG = [
|
$BLOGLANG = [
|
||||||
"Blogs on" => "Blogs auf",
|
"Blogs on" => "Blogs auf",
|
||||||
"Check out this blog" => "Schau dir diesen Blog an:",
|
"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
|
||||||
/**
|
// Rangitaki Project
|
||||||
* PHP Version 5.6
|
// LANGUAGE: ENGLISH
|
||||||
*
|
|
||||||
* 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
|
|
||||||
*/
|
|
||||||
|
|
||||||
$BLOGLANG = [
|
$BLOGLANG = [
|
||||||
"Blogs on" => "Blogs on",
|
"Blogs on" => "Blogs on",
|
||||||
"Check out this blog" => "Check out this blog:",
|
"Check out this blog" => "Check out this blog:",
|
||||||
"Check out" => "Check out:",
|
"Check out" => "Check out:",
|
||||||
|
"Next Page" => "Next Page",
|
||||||
|
"Previous Page" => "Previous Page",
|
||||||
];
|
];
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
* @link http://marcel-kapfer.de/rangitaki
|
* @link http://marcel-kapfer.de/rangitaki
|
||||||
*/
|
*/
|
||||||
require_once "BlogListGenerator.php";
|
require_once "BlogListGenerator.php";
|
||||||
|
require_once "config.php";
|
||||||
|
require_once "lang/" . $language . ".php";
|
||||||
|
|
||||||
if ($pagination) {
|
if ($pagination) {
|
||||||
?>
|
?>
|
||||||
|
@ -21,13 +23,13 @@ if ($pagination) {
|
||||||
?>
|
?>
|
||||||
<a href="<?php
|
<a href="<?php
|
||||||
echo "?blog=" . $getblog . "&page=" . ($pagenumber - 1);
|
echo "?blog=" . $getblog . "&page=" . ($pagenumber - 1);
|
||||||
?>" class="pag_prev button">PREVIOUS PAGE</a>
|
?>" class="pag_prev button"><?php echo $BLOGLANG["Previous Page"]; ?></a>
|
||||||
<?php
|
<?php
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
<a href="<?php
|
<a href="<?php
|
||||||
echo "?page=" . ($pagenumber - 1);
|
echo "?page=" . ($pagenumber - 1);
|
||||||
?>" class="pag_prev button">PREVIOUS PAGE</a>
|
?>" class="pag_prev button"><?php echo $BLOGLANG['Previous Page']; ?></a>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -41,13 +43,13 @@ if ($pagination) {
|
||||||
?>
|
?>
|
||||||
<a href="<?php
|
<a href="<?php
|
||||||
echo "?blog=" . $getblog . "&page=" . ($pagenumber + 1);
|
echo "?blog=" . $getblog . "&page=" . ($pagenumber + 1);
|
||||||
?>" class="pag_next button">NEXT PAGE</a>
|
?>" class="pag_next button"><?php echo $BLOGLANG["Next Page"]; ?></a>
|
||||||
<?php
|
<?php
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
<a href="<?php
|
<a href="<?php
|
||||||
echo "?page=" . ($pagenumber + 1);
|
echo "?page=" . ($pagenumber + 1);
|
||||||
?>" class="pag_next button">NEXT PAGE</a>
|
?>" class="pag_next button"><?php echo $BLOGLANG["Next Page"];?></a>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,6 +140,7 @@ body{
|
||||||
.button {
|
.button {
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
|
text-transform: uppercase;
|
||||||
box-shadow: 0px 1px 1.5px 1.5px rgba(42, 42, 42, 0.65);
|
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);
|
-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);
|
-webkit-box-shadow: 0px 1px 1.5px 1.5px rgba(42, 42, 42, 0.65);
|
||||||
|
|
|
@ -134,6 +134,7 @@ body{
|
||||||
}
|
}
|
||||||
|
|
||||||
.button{
|
.button{
|
||||||
|
text-transform: uppercase;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
box-shadow: 0px 1px 1.5px 1.5px rgba(42, 42, 42, 0.65);
|
box-shadow: 0px 1px 1.5px 1.5px rgba(42, 42, 42, 0.65);
|
||||||
|
|
|
@ -138,6 +138,7 @@ body{
|
||||||
}
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
|
text-transform: uppercase;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
box-shadow: 0.4px 1px 1.5px 1px #aaa;
|
box-shadow: 0.4px 1px 1.5px 1px #aaa;
|
||||||
|
|
Reference in a new issue