Compare commits
18 Commits
Author | SHA1 | Date | |
---|---|---|---|
35a2d5a524
|
|||
2cf52871b8
|
|||
309d86050b
|
|||
c8f3020f17
|
|||
260dbdfd56
|
|||
53211076a0
|
|||
5ef5d5f701
|
|||
b053e18e11
|
|||
eb13ee2d2f
|
|||
dca1b81ef9
|
|||
86b1de0ec8
|
|||
147c511c61
|
|||
07ff78994e
|
|||
b09cb6b352
|
|||
e454b44f2b
|
|||
a72cd08cfb
|
|||
190ec4c863
|
|||
3105cffaf1
|
29
CHANGELOG
29
CHANGELOG
@ -1,3 +1,32 @@
|
||||
Version 1.20.3 - Jul. 12, 2016
|
||||
Third attempt to fix the same bug
|
||||
|
||||
Version 1.20.3 - Jul. 10, 2016
|
||||
Yesterdays bugfix broke more than it fixed, refixed.
|
||||
|
||||
Version 1.20.2 - Jul. 9, 2016
|
||||
Fix bug preventing to send PMs to number-only nicknames
|
||||
|
||||
Version 1.20.1 - Jun. 13, 2016
|
||||
Bugfix when logging guests out via admin section
|
||||
Don't hide image embedding option in profile with cookies disabled
|
||||
Making a moderator to member now sets incognito back to disabled
|
||||
|
||||
Version 1.20 - May 15, 2016
|
||||
Add setting in profile to allow offline inbox for: staff, members or everyone
|
||||
Completely fix link-redirection
|
||||
|
||||
Version 1.19.2 - May 7, 2016
|
||||
Remove JavaScript "load only new messages" feature
|
||||
Add JS auto-refresh to header instead
|
||||
|
||||
Version 1.19.1 - May 1, 2016
|
||||
Fix parts of the offline inbox
|
||||
|
||||
Version 1.19 - Apr. 29, 2016
|
||||
Add an offline inbox for members
|
||||
Allow deletion of member accounts in profile
|
||||
|
||||
Version 1.18 - Apr. 28, 2016
|
||||
Add time zone settings
|
||||
Combine Password reset and setting new nickname
|
||||
|
1
README
1
README
@ -60,6 +60,7 @@ When you are done, you have to edit the chat script, to include your translation
|
||||
'lang_code' =>'Language name',
|
||||
to the $L array in the load_lang() function at the bottom, similar to what I did for the German translation.
|
||||
Please share your translation with me, so I can add it to the official version.
|
||||
To update your translation, you can copy each new string to your translation file or edit the automated lang_update.php script to reflect you language and run it.
|
||||
|
||||
REGEX:
|
||||
|
||||
|
@ -64,6 +64,7 @@ When you are done, you have to edit the chat script, to include your translation
|
||||
'lang_code' =>'Language name',
|
||||
to the $L array in the load_lang() function at the bottom, similar to what I did for the German translation.
|
||||
Please share your translation with me, so I can add it to the official version.
|
||||
To update your translation, you can copy each new string to your translation file or edit the automated lang_update.php script to reflect you language and run it.
|
||||
|
||||
Regex:
|
||||
------
|
||||
|
10
lang_de.php
10
lang_de.php
@ -277,7 +277,6 @@ $T=array(
|
||||
'restore' => 'Wiederherstellen',
|
||||
'settings' => 'Einstellungen',
|
||||
'linkfilter' => 'Linkfilter',
|
||||
'enablejs' => 'JavaScript für besseres Nachrichtenladen erlauben',
|
||||
'chatname' => 'Chatname',
|
||||
'destroy' => 'Chat zerstören',
|
||||
'destroyed' => 'Chat erfolgreich zerstört',
|
||||
@ -339,6 +338,13 @@ $T=array(
|
||||
'tz' => 'Zeitzone',
|
||||
'optional' => '(optional)',
|
||||
'userloggedin' => 'Ein Nutzer mit diesem Nicknamen ist bereits angemeldet.',
|
||||
'regednick' => 'Dieser Nickname ist ein registeriertes Mitglied.'
|
||||
'regednick' => 'Dieser Nickname ist ein registeriertes Mitglied.',
|
||||
'eninbox' => 'Offline Posteingang aktivieren',
|
||||
'inboxmsgs' => '%d Nachrichten im Posteingang lesen',
|
||||
'offline' => '(offline)',
|
||||
'deleteacc' => 'Konto löschen',
|
||||
'eninall' => 'Für jeden',
|
||||
'eninmem' => 'Nur für Mitglieder',
|
||||
'eninstaff' => 'Nur für Moderatoren'
|
||||
);
|
||||
?>
|
||||
|
10
lang_en.php
10
lang_en.php
@ -277,7 +277,6 @@ $I=array(
|
||||
'restore' => 'Restore',
|
||||
'settings' => 'Settings',
|
||||
'linkfilter' => 'Linkfilter',
|
||||
'enablejs' => 'Allow JavaScript for better message loading',
|
||||
'chatname' => 'Chat name',
|
||||
'destroy' => 'Destroy chat',
|
||||
'destroyed' => 'Successfully destroyed chat',
|
||||
@ -339,6 +338,13 @@ $I=array(
|
||||
'tz' => 'Time zone',
|
||||
'optional' => '(optional)',
|
||||
'userloggedin' => 'A user with this nickname is already logged in.',
|
||||
'regednick' => 'This nickname is a registered member.'
|
||||
'regednick' => 'This nickname is a registered member.',
|
||||
'eninbox' => 'Enable offline inbox',
|
||||
'inboxmsgs' => 'Read %d messages in your inbox',
|
||||
'offline' => '(offline)',
|
||||
'deleteacc' => 'Delete account',
|
||||
'eninall' => 'For everyone',
|
||||
'eninmem' => 'For members only',
|
||||
'eninstaff' => 'For staff only'
|
||||
);
|
||||
?>
|
||||
|
@ -276,7 +276,6 @@ $T=array(
|
||||
'restore' => 'Restablacer copia',
|
||||
'settings' => 'Configuración',
|
||||
'linkfilter' => 'Filtro de enlaces',
|
||||
'enablejs' => 'Permitir JavaScript para mejorar la carga de mensajes',
|
||||
'chatname' => 'Nombre de la sala',
|
||||
'destroy' => 'Destruir sala',
|
||||
'destroyed' => 'Sala destruida satisfactoriamente',
|
||||
|
@ -276,7 +276,6 @@ $T=array(
|
||||
'restore' => 'Restaurar',
|
||||
'settings' => 'Preferencias',
|
||||
'linkfilter' => 'Filtro de enlaces',
|
||||
'enablejs' => 'Permitir JavaScript para mejorar la carga de mensajes',
|
||||
'chatname' => 'Nombre de la sala',
|
||||
'destroy' => 'Destruir sala',
|
||||
'destroyed' => 'Sala destruida satisfactoriamente',
|
||||
|
@ -276,7 +276,6 @@ $T=array(
|
||||
'restore' => 'Récupérer',
|
||||
'settings' => 'Paramètres',
|
||||
'linkfilter' => 'Lien filtré',
|
||||
'enablejs' => 'Autoriser JavaScript permet un meilleur chargement des messages ',
|
||||
'chatname' => 'Nom du chat',
|
||||
'destroy' => 'Destruction du chat',
|
||||
'destroyed' => 'Chat supprimé',
|
||||
|
@ -276,7 +276,6 @@ $T=array(
|
||||
'restore' => 'Pulihkan',
|
||||
'settings' => 'Pengaturan',
|
||||
'linkfilter' => 'penyaring-tautan',
|
||||
'enablejs' => 'Izinkan javascript agar pemuatan pesan lebih baik',
|
||||
'chatname' => 'Nama obrolan',
|
||||
'destroy' => 'Musnahkan obrolan',
|
||||
'destroyed' => 'Berhasil memusnahkan obrolan',
|
||||
|
45
lang_update.php
Normal file
45
lang_update.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
$native = 'Deutsch'; // Native lanugae name
|
||||
$english = 'German'; // Enlish language name
|
||||
$code = 'de'; // Language code
|
||||
|
||||
ob_start();
|
||||
echo "<?php
|
||||
/*
|
||||
* LE CHAT-PHP - a PHP Chat based on LE CHAT - $english translation
|
||||
*
|
||||
* Copyright (C) 2015-2016 Daniel Winzen <d@winzen4.de>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
//Native language name: $native
|
||||
\$T=array(
|
||||
";
|
||||
if(file_exists("lang_$code.php")){
|
||||
include("lang_$code.php");
|
||||
}
|
||||
include('lang_en.php');
|
||||
foreach($T as $id=>$value){
|
||||
if(isSet($I[$id])){
|
||||
$I[$id]=$value;
|
||||
}
|
||||
}
|
||||
foreach($I as $id=>$value){
|
||||
echo "\t'$id' => '".str_replace("'", "\'", $value)."',\n";
|
||||
}
|
||||
echo ");\n?>\n";
|
||||
$file=ob_get_clean();
|
||||
file_put_contents("lang_$code.php", $file);
|
||||
?>
|
Reference in New Issue
Block a user