Compare commits
49 Commits
Author | SHA1 | Date | |
---|---|---|---|
5c4586c04e
|
|||
ba35a1c8d0
|
|||
e8968d7712
|
|||
35a2d5a524
|
|||
2cf52871b8
|
|||
309d86050b
|
|||
c8f3020f17
|
|||
260dbdfd56
|
|||
53211076a0
|
|||
5ef5d5f701
|
|||
b053e18e11
|
|||
eb13ee2d2f
|
|||
dca1b81ef9
|
|||
86b1de0ec8
|
|||
147c511c61
|
|||
07ff78994e
|
|||
b09cb6b352
|
|||
e454b44f2b
|
|||
a72cd08cfb
|
|||
190ec4c863
|
|||
3105cffaf1
|
|||
1a8eefc396
|
|||
47ffde6839
|
|||
ae3fe6d510
|
|||
6ccce399b7
|
|||
8538b22f6a
|
|||
a37026ca64
|
|||
555208a556
|
|||
d9c9dae6c0
|
|||
266523902f
|
|||
8408edd1f8
|
|||
7210a9fc90
|
|||
37fbb7bc43
|
|||
e72dc58d56
|
|||
b2df491ab7
|
|||
63b4764ec4
|
|||
15a4eb62bc
|
|||
60355735ee
|
|||
0b8cdcc1e5
|
|||
51ee2e1495
|
|||
db86cb984b
|
|||
30d460b91e
|
|||
ea24d7ae5b
|
|||
6a8186d984
|
|||
2757f62d48
|
|||
df140d0ee7
|
|||
6890bdb80a
|
|||
5c62bcef00
|
|||
f2c6d9fb95 |
58
CHANGELOG
58
CHANGELOG
@ -1,3 +1,61 @@
|
|||||||
|
Version 1.20.5 - Jul. 19, 2016
|
||||||
|
Check permission before selectively deleting a message.
|
||||||
|
|
||||||
|
Version 1.20.4 - 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
|
||||||
|
Add useful error message on failed login
|
||||||
|
|
||||||
|
Version 1.17 - Apr. 20, 2016
|
||||||
|
Make nocache refresh hack configurable in profile
|
||||||
|
Add disable PM option
|
||||||
|
Allow disabling the chat completely
|
||||||
|
|
||||||
|
Version 1.16.4 - Apr. 15, 2016
|
||||||
|
Properly escape some parameters
|
||||||
|
Add caching hack for aggressively caching browsers (e.g. links)
|
||||||
|
Improve invalid filter handling + allow new line match with \n
|
||||||
|
Fix a few forms to be used cookie-less
|
||||||
|
|
||||||
|
Version 1.16.3 - Apr. 14, 2016
|
||||||
|
Fix warning on redirection of links without a scheme
|
||||||
|
|
||||||
|
Version 1.16.2 - Apr. 14, 2016
|
||||||
|
Add CSS classes and move more css to the database
|
||||||
|
Allow extreme captcha to be solved in both directions
|
||||||
|
|
||||||
|
Version 1.16.1 - Apr. 13, 2016
|
||||||
|
Fixed a typo
|
||||||
|
|
||||||
Version 1.16 - Apr. 13, 2016
|
Version 1.16 - Apr. 13, 2016
|
||||||
Use constants for configuration
|
Use constants for configuration
|
||||||
Simplify extreme captcha code generation
|
Simplify extreme captcha code generation
|
||||||
|
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',
|
'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.
|
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.
|
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:
|
REGEX:
|
||||||
|
|
||||||
|
@ -64,6 +64,7 @@ When you are done, you have to edit the chat script, to include your translation
|
|||||||
'lang_code' =>'Language name',
|
'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.
|
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.
|
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:
|
Regex:
|
||||||
------
|
------
|
||||||
|
27
lang_de.php
27
lang_de.php
@ -86,7 +86,7 @@ $T=array(
|
|||||||
'guestwait' => 'Mit Warteraum erlauben',
|
'guestwait' => 'Mit Warteraum erlauben',
|
||||||
'adminallow' => 'Moderator-Erlaubnis benötigen',
|
'adminallow' => 'Moderator-Erlaubnis benötigen',
|
||||||
'guestdisallow' => 'Nur Mitglieder',
|
'guestdisallow' => 'Nur Mitglieder',
|
||||||
'addsuguest' => 'Anwerber hinzufügen',
|
'addsuguest' => 'Anwerber registrieren',
|
||||||
'register' => 'Registrieren',
|
'register' => 'Registrieren',
|
||||||
'admmembers' => 'Mitglieder',
|
'admmembers' => 'Mitglieder',
|
||||||
'memdel' => 'Aus der Datenbank löschen',
|
'memdel' => 'Aus der Datenbank löschen',
|
||||||
@ -277,7 +277,6 @@ $T=array(
|
|||||||
'restore' => 'Wiederherstellen',
|
'restore' => 'Wiederherstellen',
|
||||||
'settings' => 'Einstellungen',
|
'settings' => 'Einstellungen',
|
||||||
'linkfilter' => 'Linkfilter',
|
'linkfilter' => 'Linkfilter',
|
||||||
'enablejs' => 'JavaScript für besseres Nachrichtenladen erlauben',
|
|
||||||
'chatname' => 'Chatname',
|
'chatname' => 'Chatname',
|
||||||
'destroy' => 'Chat zerstören',
|
'destroy' => 'Chat zerstören',
|
||||||
'destroyed' => 'Chat erfolgreich zerstört',
|
'destroyed' => 'Chat erfolgreich zerstört',
|
||||||
@ -309,7 +308,6 @@ $T=array(
|
|||||||
'newer' => 'Neuer',
|
'newer' => 'Neuer',
|
||||||
'accessdenied' => 'Zugriff verweigert',
|
'accessdenied' => 'Zugriff verweigert',
|
||||||
'loggedinas' => 'Du bist als %s angemeldet und hast keinen Zugriff auf diesen Bereich.',
|
'loggedinas' => 'Du bist als %s angemeldet und hast keinen Zugriff auf diesen Bereich.',
|
||||||
'changenickname' => 'Nickname ändern',
|
|
||||||
'newnickname' => 'Neuer Nickname:',
|
'newnickname' => 'Neuer Nickname:',
|
||||||
'nicknametaken' => 'Nickname ist bereits vergeben',
|
'nicknametaken' => 'Nickname ist bereits vergeben',
|
||||||
'nopass' => 'Ungültiges Passwort (Mindestens %d Zeichen), Nickname nicht geändert',
|
'nopass' => 'Ungültiges Passwort (Mindestens %d Zeichen), Nickname nicht geändert',
|
||||||
@ -324,10 +322,29 @@ $T=array(
|
|||||||
'mailsender' => 'E-Mail mit dieser Adresse versenden',
|
'mailsender' => 'E-Mail mit dieser Adresse versenden',
|
||||||
'mailreceiver' => 'E-Mail and diese Adresse senden',
|
'mailreceiver' => 'E-Mail and diese Adresse senden',
|
||||||
'modfallback' => 'Auf Warteraum rückgreifen, falls kein Moderator anwesend ist, um Gäste hereinzulassen',
|
'modfallback' => 'Auf Warteraum rückgreifen, falls kein Moderator anwesend ist, um Gäste hereinzulassen',
|
||||||
'regpass' => 'Zum registrieren<br>Passwort wiederholen<br>(optional)',
|
'regpass' => 'Zum registrieren<br>Passwort wiederholen',
|
||||||
'guestreg' => 'Gäste sich selbst registrieren lassen',
|
'guestreg' => 'Gäste sich selbst registrieren lassen',
|
||||||
'asmember' => 'Als Mitglied',
|
'asmember' => 'Als Mitglied',
|
||||||
'assuguest' => 'Als Anwerber',
|
'assuguest' => 'Als Anwerber',
|
||||||
'fatalerror' => 'Fataler Fehler'
|
'fatalerror' => 'Fataler Fehler',
|
||||||
|
'prevmatch' => 'Ihr regex war folgender',
|
||||||
|
'matchtoolong' => 'Ihr Match war zu lang. Sie können max. 255 Zeichen benutzen. Versuchen Sie diesen aufzuteilen.',
|
||||||
|
'nocache' => 'Neulade-Hack für alte Browser hinzufügen.<br>Aktiviere dies, falls Neuladen nicht funktioniert.',
|
||||||
|
'disablepm' => 'Private Nachrichten deaktivieren',
|
||||||
|
'disablechat' => 'Chat deaktivieren',
|
||||||
|
'disabletext' => 'Chat deaktiviert Nachricht (html)',
|
||||||
|
'disabledtext' => 'Kurzzeitig deaktiviert',
|
||||||
|
'defaulttz' => 'Standard Zeitzone',
|
||||||
|
'tz' => 'Zeitzone',
|
||||||
|
'optional' => '(optional)',
|
||||||
|
'userloggedin' => 'Ein Nutzer mit diesem Nicknamen ist bereits angemeldet.',
|
||||||
|
'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'
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
|
27
lang_en.php
27
lang_en.php
@ -86,7 +86,7 @@ $I=array(
|
|||||||
'guestwait' => 'Allow with waitingroom',
|
'guestwait' => 'Allow with waitingroom',
|
||||||
'adminallow' => 'Require moderator approval',
|
'adminallow' => 'Require moderator approval',
|
||||||
'guestdisallow' => 'Only members',
|
'guestdisallow' => 'Only members',
|
||||||
'addsuguest' => 'Add applicant',
|
'addsuguest' => 'Register applicant',
|
||||||
'register' => 'Register',
|
'register' => 'Register',
|
||||||
'admmembers' => 'Members',
|
'admmembers' => 'Members',
|
||||||
'memdel' => 'Delete from database',
|
'memdel' => 'Delete from database',
|
||||||
@ -277,7 +277,6 @@ $I=array(
|
|||||||
'restore' => 'Restore',
|
'restore' => 'Restore',
|
||||||
'settings' => 'Settings',
|
'settings' => 'Settings',
|
||||||
'linkfilter' => 'Linkfilter',
|
'linkfilter' => 'Linkfilter',
|
||||||
'enablejs' => 'Allow JavaScript for better message loading',
|
|
||||||
'chatname' => 'Chat name',
|
'chatname' => 'Chat name',
|
||||||
'destroy' => 'Destroy chat',
|
'destroy' => 'Destroy chat',
|
||||||
'destroyed' => 'Successfully destroyed chat',
|
'destroyed' => 'Successfully destroyed chat',
|
||||||
@ -309,7 +308,6 @@ $I=array(
|
|||||||
'newer' => 'Newer',
|
'newer' => 'Newer',
|
||||||
'accessdenied' => 'Access denied',
|
'accessdenied' => 'Access denied',
|
||||||
'loggedinas' => 'You are logged in as %s and don\'t have access to this section.',
|
'loggedinas' => 'You are logged in as %s and don\'t have access to this section.',
|
||||||
'changenickname' => 'Change nickname',
|
|
||||||
'newnickname' => 'New nickname:',
|
'newnickname' => 'New nickname:',
|
||||||
'nicknametaken' => 'Nickname is already taken',
|
'nicknametaken' => 'Nickname is already taken',
|
||||||
'nopass' => 'Invalid password (At least %d characters), not changing nickname',
|
'nopass' => 'Invalid password (At least %d characters), not changing nickname',
|
||||||
@ -324,10 +322,29 @@ $I=array(
|
|||||||
'mailsender' => 'Send mail using this address',
|
'mailsender' => 'Send mail using this address',
|
||||||
'mailreceiver' => 'Send mail to this address',
|
'mailreceiver' => 'Send mail to this address',
|
||||||
'modfallback' => 'Fallback to waiting room, if no moderator is present to approve guests',
|
'modfallback' => 'Fallback to waiting room, if no moderator is present to approve guests',
|
||||||
'regpass' => 'Repeat password<br>to register<br>(optional)',
|
'regpass' => 'Repeat password<br>to register',
|
||||||
'guestreg' => 'Let guests register themselves',
|
'guestreg' => 'Let guests register themselves',
|
||||||
'asmember' => 'As member',
|
'asmember' => 'As member',
|
||||||
'assuguest' => 'As applicant',
|
'assuguest' => 'As applicant',
|
||||||
'fatalerror' => 'Fatal error'
|
'fatalerror' => 'Fatal error',
|
||||||
|
'prevmatch' => 'Your match was as follows',
|
||||||
|
'matchtoolong' => 'Your match was too long. You can use max. 255 characters. Try splitting it up.',
|
||||||
|
'nocache' => 'Add refresh hack for old browsers.<br>Enable, if refreshing doesn\'t work.',
|
||||||
|
'disablepm' => 'Disable private messages',
|
||||||
|
'disablechat' => 'Disable chat',
|
||||||
|
'disabletext' => 'Chat disabled message (html)',
|
||||||
|
'disabledtext' => 'Temporarily disabled',
|
||||||
|
'defaulttz' => 'Default time zone',
|
||||||
|
'tz' => 'Time zone',
|
||||||
|
'optional' => '(optional)',
|
||||||
|
'userloggedin' => 'A user with this nickname is already logged in.',
|
||||||
|
'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',
|
'restore' => 'Restablacer copia',
|
||||||
'settings' => 'Configuración',
|
'settings' => 'Configuración',
|
||||||
'linkfilter' => 'Filtro de enlaces',
|
'linkfilter' => 'Filtro de enlaces',
|
||||||
'enablejs' => 'Permitir JavaScript para mejorar la carga de mensajes',
|
|
||||||
'chatname' => 'Nombre de la sala',
|
'chatname' => 'Nombre de la sala',
|
||||||
'destroy' => 'Destruir sala',
|
'destroy' => 'Destruir sala',
|
||||||
'destroyed' => 'Sala destruida satisfactoriamente',
|
'destroyed' => 'Sala destruida satisfactoriamente',
|
||||||
@ -308,7 +307,6 @@ $T=array(
|
|||||||
'newer' => 'Newer',
|
'newer' => 'Newer',
|
||||||
'accessdenied' => 'Acceso no permitido',
|
'accessdenied' => 'Acceso no permitido',
|
||||||
'loggedinas' => 'Estás identificado como %s y no tenés acceso a esta sección.',
|
'loggedinas' => 'Estás identificado como %s y no tenés acceso a esta sección.',
|
||||||
'changenickname' => 'Cambiar apodo',
|
|
||||||
'newnickname' => 'Nuevo apodo:',
|
'newnickname' => 'Nuevo apodo:',
|
||||||
'nicknametaken' => 'Ese apodo ya fue tomado',
|
'nicknametaken' => 'Ese apodo ya fue tomado',
|
||||||
'nopass' => 'Constraseña incorrecta (al menos %d caracteres), no se cambia apodo'
|
'nopass' => 'Constraseña incorrecta (al menos %d caracteres), no se cambia apodo'
|
||||||
|
@ -276,7 +276,6 @@ $T=array(
|
|||||||
'restore' => 'Restaurar',
|
'restore' => 'Restaurar',
|
||||||
'settings' => 'Preferencias',
|
'settings' => 'Preferencias',
|
||||||
'linkfilter' => 'Filtro de enlaces',
|
'linkfilter' => 'Filtro de enlaces',
|
||||||
'enablejs' => 'Permitir JavaScript para mejorar la carga de mensajes',
|
|
||||||
'chatname' => 'Nombre de la sala',
|
'chatname' => 'Nombre de la sala',
|
||||||
'destroy' => 'Destruir sala',
|
'destroy' => 'Destruir sala',
|
||||||
'destroyed' => 'Sala destruida satisfactoriamente',
|
'destroyed' => 'Sala destruida satisfactoriamente',
|
||||||
@ -308,7 +307,6 @@ $T=array(
|
|||||||
'newer' => 'Newer',
|
'newer' => 'Newer',
|
||||||
'accessdenied' => 'Acceso denegado',
|
'accessdenied' => 'Acceso denegado',
|
||||||
'loggedinas' => 'Estás identificado como %s y no tenés acceso a esta sección.',
|
'loggedinas' => 'Estás identificado como %s y no tenés acceso a esta sección.',
|
||||||
'changenickname' => 'Cambiar apodo',
|
|
||||||
'newnickname' => 'Nuevo apodo:',
|
'newnickname' => 'Nuevo apodo:',
|
||||||
'nicknametaken' => 'Ese apodo ya fue tomado',
|
'nicknametaken' => 'Ese apodo ya fue tomado',
|
||||||
'nopass' => 'Constraseña incorrecta (al menos %d caracteres), no se cambia apodo'
|
'nopass' => 'Constraseña incorrecta (al menos %d caracteres), no se cambia apodo'
|
||||||
|
@ -276,7 +276,6 @@ $T=array(
|
|||||||
'restore' => 'Récupérer',
|
'restore' => 'Récupérer',
|
||||||
'settings' => 'Paramètres',
|
'settings' => 'Paramètres',
|
||||||
'linkfilter' => 'Lien filtré',
|
'linkfilter' => 'Lien filtré',
|
||||||
'enablejs' => 'Autoriser JavaScript permet un meilleur chargement des messages ',
|
|
||||||
'chatname' => 'Nom du chat',
|
'chatname' => 'Nom du chat',
|
||||||
'destroy' => 'Destruction du chat',
|
'destroy' => 'Destruction du chat',
|
||||||
'destroyed' => 'Chat supprimé',
|
'destroyed' => 'Chat supprimé',
|
||||||
@ -308,7 +307,6 @@ $T=array(
|
|||||||
'newer' => 'Nouveau',
|
'newer' => 'Nouveau',
|
||||||
'accessdenied' => 'Accès interdit',
|
'accessdenied' => 'Accès interdit',
|
||||||
'loggedinas' => 'Vous êtes connecté en tant que %s et vous n\'avez pas accès à cette section.',
|
'loggedinas' => 'Vous êtes connecté en tant que %s et vous n\'avez pas accès à cette section.',
|
||||||
'changenickname' => 'Changer de Pseudo',
|
|
||||||
'newnickname' => 'Nouveau Pseudo:',
|
'newnickname' => 'Nouveau Pseudo:',
|
||||||
'nicknametaken' => 'Pseudo déjà pris',
|
'nicknametaken' => 'Pseudo déjà pris',
|
||||||
'nopass' => 'Mot de passe invalide (au moins % caractères), ne pas changer le pseudo',
|
'nopass' => 'Mot de passe invalide (au moins % caractères), ne pas changer le pseudo',
|
||||||
|
@ -276,7 +276,6 @@ $T=array(
|
|||||||
'restore' => 'Pulihkan',
|
'restore' => 'Pulihkan',
|
||||||
'settings' => 'Pengaturan',
|
'settings' => 'Pengaturan',
|
||||||
'linkfilter' => 'penyaring-tautan',
|
'linkfilter' => 'penyaring-tautan',
|
||||||
'enablejs' => 'Izinkan javascript agar pemuatan pesan lebih baik',
|
|
||||||
'chatname' => 'Nama obrolan',
|
'chatname' => 'Nama obrolan',
|
||||||
'destroy' => 'Musnahkan obrolan',
|
'destroy' => 'Musnahkan obrolan',
|
||||||
'destroyed' => 'Berhasil memusnahkan obrolan',
|
'destroyed' => 'Berhasil memusnahkan obrolan',
|
||||||
@ -308,7 +307,6 @@ $T=array(
|
|||||||
'newer' => 'Baru',
|
'newer' => 'Baru',
|
||||||
'accessdenied' => 'Akses ditolak',
|
'accessdenied' => 'Akses ditolak',
|
||||||
'loggedinas' => 'Anda masuk sebagai %s dan tak dapat mengakses bagian ini.',
|
'loggedinas' => 'Anda masuk sebagai %s dan tak dapat mengakses bagian ini.',
|
||||||
'changenickname' => 'Ubah nama',
|
|
||||||
'newnickname' => 'Nama baru:',
|
'newnickname' => 'Nama baru:',
|
||||||
'nicknametaken' => 'Nama sudah ada',
|
'nicknametaken' => 'Nama sudah ada',
|
||||||
'nopass' => 'Kata sandi salah (Minimal %d karakter), tak merubah nama'
|
'nopass' => 'Kata sandi salah (Minimal %d karakter), tak merubah nama'
|
||||||
|
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