Add language file versioning

This commit is contained in:
ruan 2021-01-19 19:33:38 +02:00
parent ad425339b5
commit a3b703e7b2
16 changed files with 21 additions and 0 deletions

View File

@ -23,6 +23,9 @@ final class LangTest extends TestCase {
$count = count($instance->array);
echo "Success. $count messages defined.\n";
if ($instance->version <= 0) {
echo "Outdated file: $lang\n";
}
}
}
}

View File

@ -2,6 +2,7 @@
class cs_CZ {
public function __construct() {
$this->version = 1;
$array = array();
$this->array = &$array;
$array["index.welcome.main"] = "Vítejte na {server} BanListu.";

View File

@ -2,6 +2,7 @@
class da_DK {
public function __construct() {
$this->version = 0;
$array = array();
$this->array = &$array;
$array["index.welcome.main"] = "Velkommen Til {server}'s Ban Liste.";

View File

@ -2,6 +2,7 @@
class de_DE {
public function __construct() {
$this->version = 0;
$array = array();
$this->array = &$array;
$array["index.welcome.main"] = "Willkommen zu {server}'s Bann Liste.";

View File

@ -2,8 +2,10 @@
class en_US {
public function __construct() {
$this->version = 1;
$array = array();
$this->array = &$array;
$array["index.welcome.main"] = "Welcome to {server}'s Ban List.";
$array["index.welcome.sub"] = "Here is where all of our punishments are listed.";

View File

@ -2,6 +2,7 @@
class es_ES {
public function __construct() {
$this->version = 1;
$array = array();
$this->array = &$array;
$array["index.welcome.main"] = "Bienvenido a la lista de sanciones de {server}.";

View File

@ -1,6 +1,7 @@
<?php
class fr_FR {
public function __construct() {
$this->version = 0;
$array = array();
$this->array = &$array;
$array["index.welcome.main"] = "Bienvenue sur la liste des bans de {server}.";

View File

@ -2,6 +2,7 @@
class hu_HU {
public function __construct() {
$this->version = 1;
$array = array();
$this->array = &$array;
$array["index.welcome.main"] = "Üdvözlünk a {server} büntetés listáján!";

View File

@ -2,6 +2,7 @@
class it_IT {
public function __construct() {
$this->version = 0;
$array = array();
$this->array = &$array;
$array["index.welcome.main"] = 'Benvenuto nella lista ban di {server}.';

View File

@ -2,6 +2,7 @@
class ja_JP {
public function __construct() {
$this->version = 0;
$array = array();
$this->array = &$array;
$array["index.welcome.main"] = 'ようこそ! {server} の BANリストへ';

View File

@ -2,6 +2,7 @@
class nl_NL {
public function __construct() {
$this->version = 0;
$array = array();
$this->array = &$array;
$array["index.welcome1"] = "Welkom op {server}'s Ban Lijst.";

View File

@ -2,8 +2,10 @@
class pl_PL {
public function __construct() {
$this->version = 1;
$array = array();
$this->array = &$array;
$array["index.welcome.main"] = "Witaj na liście banów {server}.";
$array["index.welcome.sub"] = "Tutaj jest lista wszystkich kar naszego serwera.";

View File

@ -4,6 +4,7 @@
class ru_RU {
public function __construct() {
$this->version = 1;
$array = array();
$this->array = &$array;
$array["index.welcome.main"] = "{server} | Бан-лист";

View File

@ -2,8 +2,10 @@
class sk_SK {
public function __construct() {
$this->version = 1;
$array = array();
$this->array = &$array;
$array["index.welcome.main"] = "Vitajte na {server} BanListu.";
$array["index.welcome.sub"] = "Nájdete tu vypísané všetky svoje tresty.";

View File

@ -2,6 +2,7 @@
class zh_CN {
public function __construct() {
$this->version = 1;
$array = array();
$this->array = &$array;
$array["index.welcome.main"] = "欢迎来到 {server} 封禁列表.";

View File

@ -2,6 +2,7 @@
class zh_HK {
public function __construct() {
$this->version = 1;
$array = array();
$this->array = &$array;
$array["index.welcome.main"] = "歡迎來到{server}的封禁名單!";