mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Add language file versioning
This commit is contained in:
parent
ad425339b5
commit
a3b703e7b2
@ -23,6 +23,9 @@ final class LangTest extends TestCase {
|
|||||||
|
|
||||||
$count = count($instance->array);
|
$count = count($instance->array);
|
||||||
echo "Success. $count messages defined.\n";
|
echo "Success. $count messages defined.\n";
|
||||||
|
if ($instance->version <= 0) {
|
||||||
|
echo "Outdated file: $lang\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
class cs_CZ {
|
class cs_CZ {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
$this->version = 1;
|
||||||
$array = array();
|
$array = array();
|
||||||
$this->array = &$array;
|
$this->array = &$array;
|
||||||
$array["index.welcome.main"] = "Vítejte na {server} BanListu.";
|
$array["index.welcome.main"] = "Vítejte na {server} BanListu.";
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
class da_DK {
|
class da_DK {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
$this->version = 0;
|
||||||
$array = array();
|
$array = array();
|
||||||
$this->array = &$array;
|
$this->array = &$array;
|
||||||
$array["index.welcome.main"] = "Velkommen Til {server}'s Ban Liste.";
|
$array["index.welcome.main"] = "Velkommen Til {server}'s Ban Liste.";
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
class de_DE {
|
class de_DE {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
$this->version = 0;
|
||||||
$array = array();
|
$array = array();
|
||||||
$this->array = &$array;
|
$this->array = &$array;
|
||||||
$array["index.welcome.main"] = "Willkommen zu {server}'s Bann Liste.";
|
$array["index.welcome.main"] = "Willkommen zu {server}'s Bann Liste.";
|
||||||
|
@ -2,8 +2,10 @@
|
|||||||
|
|
||||||
class en_US {
|
class en_US {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
$this->version = 1;
|
||||||
$array = array();
|
$array = array();
|
||||||
$this->array = &$array;
|
$this->array = &$array;
|
||||||
|
|
||||||
$array["index.welcome.main"] = "Welcome to {server}'s Ban List.";
|
$array["index.welcome.main"] = "Welcome to {server}'s Ban List.";
|
||||||
$array["index.welcome.sub"] = "Here is where all of our punishments are listed.";
|
$array["index.welcome.sub"] = "Here is where all of our punishments are listed.";
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
class es_ES {
|
class es_ES {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
$this->version = 1;
|
||||||
$array = array();
|
$array = array();
|
||||||
$this->array = &$array;
|
$this->array = &$array;
|
||||||
$array["index.welcome.main"] = "Bienvenido a la lista de sanciones de {server}.";
|
$array["index.welcome.main"] = "Bienvenido a la lista de sanciones de {server}.";
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
class fr_FR {
|
class fr_FR {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
$this->version = 0;
|
||||||
$array = array();
|
$array = array();
|
||||||
$this->array = &$array;
|
$this->array = &$array;
|
||||||
$array["index.welcome.main"] = "Bienvenue sur la liste des bans de {server}.";
|
$array["index.welcome.main"] = "Bienvenue sur la liste des bans de {server}.";
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
class hu_HU {
|
class hu_HU {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
$this->version = 1;
|
||||||
$array = array();
|
$array = array();
|
||||||
$this->array = &$array;
|
$this->array = &$array;
|
||||||
$array["index.welcome.main"] = "Üdvözlünk a {server} büntetés listáján!";
|
$array["index.welcome.main"] = "Üdvözlünk a {server} büntetés listáján!";
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
class it_IT {
|
class it_IT {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
$this->version = 0;
|
||||||
$array = array();
|
$array = array();
|
||||||
$this->array = &$array;
|
$this->array = &$array;
|
||||||
$array["index.welcome.main"] = 'Benvenuto nella lista ban di {server}.';
|
$array["index.welcome.main"] = 'Benvenuto nella lista ban di {server}.';
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
class ja_JP {
|
class ja_JP {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
$this->version = 0;
|
||||||
$array = array();
|
$array = array();
|
||||||
$this->array = &$array;
|
$this->array = &$array;
|
||||||
$array["index.welcome.main"] = 'ようこそ! {server} の BANリストへ';
|
$array["index.welcome.main"] = 'ようこそ! {server} の BANリストへ';
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
class nl_NL {
|
class nl_NL {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
$this->version = 0;
|
||||||
$array = array();
|
$array = array();
|
||||||
$this->array = &$array;
|
$this->array = &$array;
|
||||||
$array["index.welcome1"] = "Welkom op {server}'s Ban Lijst.";
|
$array["index.welcome1"] = "Welkom op {server}'s Ban Lijst.";
|
||||||
|
@ -2,8 +2,10 @@
|
|||||||
|
|
||||||
class pl_PL {
|
class pl_PL {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
$this->version = 1;
|
||||||
$array = array();
|
$array = array();
|
||||||
$this->array = &$array;
|
$this->array = &$array;
|
||||||
|
|
||||||
$array["index.welcome.main"] = "Witaj na liście banów {server}.";
|
$array["index.welcome.main"] = "Witaj na liście banów {server}.";
|
||||||
$array["index.welcome.sub"] = "Tutaj jest lista wszystkich kar naszego serwera.";
|
$array["index.welcome.sub"] = "Tutaj jest lista wszystkich kar naszego serwera.";
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
class ru_RU {
|
class ru_RU {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
$this->version = 1;
|
||||||
$array = array();
|
$array = array();
|
||||||
$this->array = &$array;
|
$this->array = &$array;
|
||||||
$array["index.welcome.main"] = "{server} | Бан-лист";
|
$array["index.welcome.main"] = "{server} | Бан-лист";
|
||||||
|
@ -2,8 +2,10 @@
|
|||||||
|
|
||||||
class sk_SK {
|
class sk_SK {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
$this->version = 1;
|
||||||
$array = array();
|
$array = array();
|
||||||
$this->array = &$array;
|
$this->array = &$array;
|
||||||
|
|
||||||
$array["index.welcome.main"] = "Vitajte na {server} BanListu.";
|
$array["index.welcome.main"] = "Vitajte na {server} BanListu.";
|
||||||
$array["index.welcome.sub"] = "Nájdete tu vypísané všetky svoje tresty.";
|
$array["index.welcome.sub"] = "Nájdete tu vypísané všetky svoje tresty.";
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
class zh_CN {
|
class zh_CN {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
$this->version = 1;
|
||||||
$array = array();
|
$array = array();
|
||||||
$this->array = &$array;
|
$this->array = &$array;
|
||||||
$array["index.welcome.main"] = "欢迎来到 {server} 封禁列表.";
|
$array["index.welcome.main"] = "欢迎来到 {server} 封禁列表.";
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
class zh_HK {
|
class zh_HK {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
$this->version = 1;
|
||||||
$array = array();
|
$array = array();
|
||||||
$this->array = &$array;
|
$this->array = &$array;
|
||||||
$array["index.welcome.main"] = "歡迎來到{server}的封禁名單!";
|
$array["index.welcome.main"] = "歡迎來到{server}的封禁名單!";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user