Version 2.2.0 RC-1
This commit is contained in:
1 parent
f73f8bff6d
commit
22f1b963ee
1034 files changed
+178610
-70897
No files matched your search
@@ -2,28 +2,18 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.1.7
|
||||
| Invision Power Board
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2005 Invision Power Services, Inc.
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Tuesday 18th of July 2006 05:56:00 PM
|
||||
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2005-12-08 16:32:40 +0000 (Thu, 08 Dec 2005) $
|
||||
| > $Revision: 96 $
|
||||
| > $Author: bfarber $
|
||||
| > $Date: 2006-10-06 10:09:22 +0100 (Fri, 06 Oct 2006) $
|
||||
| > $Revision: 611 $
|
||||
| > $Author: matt $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Language functions
|
||||
@@ -37,13 +27,14 @@
|
||||
|
||||
if ( ! defined( 'IN_ACP' ) )
|
||||
{
|
||||
print "<h1>Íåâåðíûé âõîä</h1> Ó Âàñ íåò äîñòóïà ê äèðåêòèâå ýòîãî ôàéëà. Åñëè Âû ïðîâîäèëè îáíîâëåíèÿ, óáåäèòåñü, ÷òî íå çàáûëè îáíîâèòü 'admin.php'.";
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class ad_languages {
|
||||
|
||||
var $base_url;
|
||||
var $ipsclass;
|
||||
|
||||
/**
|
||||
* Section title name
|
||||
@@ -63,20 +54,11 @@ class ad_languages {
|
||||
{
|
||||
if ( TRIAL_VERSION )
|
||||
{
|
||||
print "Ýòà ôóíêöèÿ îòêëþ÷åíà â áåñïëàòíîé âåðñèè.";
|
||||
print "This feature is disabled in the trial version.";
|
||||
exit();
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Kill globals - globals bad, Homer good.
|
||||
//-----------------------------------------
|
||||
|
||||
$tmp_in = array_merge( $_GET, $_POST, $_COOKIE );
|
||||
|
||||
foreach ( $tmp_in as $k => $v )
|
||||
{
|
||||
unset($$k);
|
||||
}
|
||||
$this->ipsclass->admin->nav[] = array( $this->ipsclass->form_code, 'Manage Language Sets' );
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
@@ -158,6 +140,8 @@ class ad_languages {
|
||||
{
|
||||
$new_dir = "";
|
||||
$old_dir = "";
|
||||
$this->ipsclass->input['new'] = intval($this->ipsclass->input['new']);
|
||||
$this->ipsclass->input['old'] = intval($this->ipsclass->input['old']);
|
||||
|
||||
if ( $this->ipsclass->input['old'] and $this->ipsclass->input['new'] )
|
||||
{
|
||||
@@ -195,7 +179,7 @@ class ad_languages {
|
||||
}
|
||||
}
|
||||
|
||||
$this->ipsclass->main_msg = "Ó âñåõ ïîëüçîâàòåëåé ïåðåóñòàíîâëåí ÿçûê";
|
||||
$this->ipsclass->main_msg = "Member's language choice updated";
|
||||
$this->list_current();
|
||||
}
|
||||
|
||||
@@ -226,7 +210,7 @@ class ad_languages {
|
||||
|
||||
if ($new_dir == "")
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî îïðåäåëèòü ID ÿçûêà");
|
||||
$this->ipsclass->admin->error("Could not resolve the new ID for the default lang pack stuff thingy thanks");
|
||||
}
|
||||
|
||||
// Update conf file
|
||||
@@ -254,7 +238,7 @@ class ad_languages {
|
||||
|
||||
if ( ! $this->ipsclass->input['lang_name'] )
|
||||
{
|
||||
$this->ipsclass->admin->error("Âû äîëæíû ââåñòè íàçâàíèÿ äëÿ èìïîðòèðóåìîãî ÿçûêà!");
|
||||
$this->ipsclass->admin->error("You must enter a name for this language import!");
|
||||
}
|
||||
|
||||
if ( $_FILES['FILE_UPLOAD']['name'] == "" or ! $_FILES['FILE_UPLOAD']['name'] or ($_FILES['FILE_UPLOAD']['name'] == "none") )
|
||||
@@ -265,13 +249,13 @@ class ad_languages {
|
||||
|
||||
if ( ! $this->ipsclass->input['lang_location'] )
|
||||
{
|
||||
$this->ipsclass->main_msg = "Èìïîðòèðóåìûé ôàéë íå íàéäåí.";
|
||||
$this->ipsclass->main_msg = "No upload file was found and no filename was specified.";
|
||||
$this->import();
|
||||
}
|
||||
|
||||
if ( ! file_exists( ROOT_PATH . $this->ipsclass->input['lang_location'] ) )
|
||||
{
|
||||
$this->ipsclass->main_msg = "Íåâîçìîæíî íàéòè ôàéë: " . ROOT_PATH . $this->ipsclass->input['lang_location'];
|
||||
$this->ipsclass->main_msg = "Could not find the file to open at: " . ROOT_PATH . $this->ipsclass->input['lang_location'];
|
||||
$this->import();
|
||||
}
|
||||
|
||||
@@ -306,6 +290,12 @@ class ad_languages {
|
||||
$tmp_name = preg_replace( "#\.gz$#", "", $tmp_name );
|
||||
|
||||
$content = $this->ipsclass->admin->import_xml( $tmp_name );
|
||||
|
||||
if( !$content )
|
||||
{
|
||||
$this->ipsclass->main_msg = "There was an error processing the file.";
|
||||
$this->import();
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -321,7 +311,7 @@ class ad_languages {
|
||||
|
||||
if ( ! $content )
|
||||
{
|
||||
$this->ipsclass->main_msg = "XML-àðõèâ ïóñò, ïîæàëóéñòà, ïðîâåðüòå àðõèâ è ïîïðîáóéòå åùå ðàç";
|
||||
$this->ipsclass->main_msg = "The XML file appears to be empty - please check the form and try again";
|
||||
$this->import();
|
||||
}
|
||||
|
||||
@@ -329,7 +319,7 @@ class ad_languages {
|
||||
// Get xml mah-do-dah
|
||||
//-----------------------------------------
|
||||
|
||||
require( KERNEL_PATH.'class_xml.php' );
|
||||
require_once( KERNEL_PATH.'class_xml.php' );
|
||||
|
||||
$xml = new class_xml();
|
||||
|
||||
@@ -345,7 +335,7 @@ class ad_languages {
|
||||
|
||||
$lang_array = array();
|
||||
|
||||
foreach( $xml->xml_array['languageexport']['languagegroup']['langbit'] as $idx => $entry )
|
||||
foreach( $xml->xml_array['languageexport']['languagegroup']['langbit'] as $entry )
|
||||
{
|
||||
$key = $entry['key']['VALUE'];
|
||||
$value = $entry['value']['VALUE'];
|
||||
@@ -362,7 +352,7 @@ class ad_languages {
|
||||
|
||||
if ( ! count( $lang_array ) )
|
||||
{
|
||||
$this->ipsclass->main_msg = "XML-àðõèâ ïóñò, ïîæàëóéñòà, ïðîâåðüòå àðõèâ è ïîïðîáóéòå åùå ðàç";
|
||||
$this->ipsclass->main_msg = "The XML file appears to be empty - please check the form and try again";
|
||||
$this->import();
|
||||
}
|
||||
|
||||
@@ -372,7 +362,7 @@ class ad_languages {
|
||||
|
||||
if ( ! @mkdir( CACHE_PATH.'cache/lang_cache/'.$safename, 0777 ) )
|
||||
{
|
||||
$this->ipsclass->main_msg = "Íåâîçìîæíî ñîçäàòü ïàïêó '$safename' â ïàïêå './lang' - ïðîâåðüòå ïðàâà äîñòóïà (CHMOD) ó ïàïêè 'lang' è ïîïðîáóéòå åùå ðàç.";
|
||||
$this->ipsclass->main_msg = "Cannot create the directory '$safename' in the './lang' directory - please check directory permissions on 'lang' and try again.";
|
||||
$this->import();
|
||||
}
|
||||
else
|
||||
@@ -390,7 +380,7 @@ class ad_languages {
|
||||
{
|
||||
$new_file_array = array();
|
||||
|
||||
$real_name = 'lang_'.$file.'.php';
|
||||
$real_name = $file.'.php';
|
||||
|
||||
foreach( $lang_array[ $file ] as $k => $v )
|
||||
{
|
||||
@@ -401,31 +391,31 @@ class ad_languages {
|
||||
|
||||
if ( count( $new_file_array ) )
|
||||
{
|
||||
$file_contents = "<?php\n\n";;
|
||||
$file_contents = "<?php\n\n".'$lang = array('."\n";
|
||||
|
||||
foreach( $new_file_array as $k => $v )
|
||||
foreach( $new_file_array as $k => $v)
|
||||
{
|
||||
$file_contents .= "\n".'$lang['."'$k'".'] = "'.addslashes($v).'";';
|
||||
$file_contents .= "\n'".$k."' => \"".addslashes($v)."\",";
|
||||
}
|
||||
|
||||
$file_contents .= "\n?".">";
|
||||
$file_contents .= "\n\n);\n\n?".">";
|
||||
|
||||
if ( $FH = @fopen( CACHE_PATH.'cache/lang_cache/'.$safename.'/'.$real_name, 'w' ) )
|
||||
{
|
||||
@fwrite( $FH, $file_contents );
|
||||
@fclose( $FH );
|
||||
|
||||
$messages[] = "Ôàéë 'lang_{$file}.php' èìïîðòèðîâàí!";
|
||||
$messages[] = "'{$file}.php' imported correctly!";
|
||||
}
|
||||
else
|
||||
{
|
||||
$messages[] = "Íåâîçìîæíî ñîçäàòü ôàéë 'lang_{$file}.php', ôàéë ïðîïóùåí...";
|
||||
$messages[] = "Cannot create '{$file}.php' - skipping...";
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$messages[] = "Ôàéë 'lang_{$file}.php' ïóñò, ôàéë ïðîïóùåí...";
|
||||
$messages[] = "'{$file}.php' appears to be empty - skipping...";
|
||||
}
|
||||
|
||||
unset($new_file_array);
|
||||
@@ -445,7 +435,7 @@ class ad_languages {
|
||||
|
||||
$this->rebuild_cache();
|
||||
|
||||
$this->ipsclass->main_msg = "Èìïîðòèðîâàíèå óñïåøíî çàâåðøåíî<br />".implode( "\n<br />", $messages );
|
||||
$this->ipsclass->main_msg = "Import attempt completed<br />".implode( "\n<br />", $messages );
|
||||
$this->import();
|
||||
}
|
||||
|
||||
@@ -455,8 +445,9 @@ class ad_languages {
|
||||
|
||||
function import()
|
||||
{
|
||||
$this->ipsclass->admin->page_detail = "Ýòà ñåêöèÿ ïîçâîëÿåò âàì èìïîðòèðîâàòü XML-ôàéëû ñîäåðæàùèå ÿçûêîâûå íàñòðîéêè.";
|
||||
$this->ipsclass->admin->page_title = "Èìïîðò ÿçûêà";
|
||||
$this->ipsclass->admin->page_detail = "This section will allow you to import an XML file containing all the language data.";
|
||||
$this->ipsclass->admin->page_title = "Language Pack Import";
|
||||
$this->ipsclass->admin->nav[] = array( '', 'Import Language Pack' );
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
@@ -473,21 +464,21 @@ class ad_languages {
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Èìïîðòèðîâàíèå XML-ôàéëà" );
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Import an XML language file" );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Çàãðóçêà XML-àðõèâà ñ ÿçûêîâûìè íàñòðîéêàìè</b><div style='color:gray'>Âûáåðèòå ôàéë äëÿ çàãðóçêè ñ âàøåãî êîìïüþòåðà. Âûáðàííûé ôàéë äîëæåí íà÷èíàòüñÿ ñ 'ipb_language' è çàêàí÷èâàòüñÿ ëèáî '.xml', ëèáî '.xml.gz'.</div>" ,
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Upload XML language file from your computer</b><div style='color:gray'>The file must begin with 'ipb_language' and end with either '.xml' or '.xml.gz'</div>" ,
|
||||
$this->ipsclass->adskin->form_upload( )
|
||||
) );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b><u>ÈËÈ</u> ââåäèòå íàçâàíèå XML-àðõèâà</b><div style='color:gray'>Ýòîò ôàéë äîëæåí áûòü çàãðóæåí â îñíîâíóþ ïàïêó ôîðóìà.</div>" ,
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b><u>OR</u> enter the filename of the XML language file</b><div style='color:gray'>The file must be uploaded into the forum's root folder</div>" ,
|
||||
$this->ipsclass->adskin->form_input( 'lang_location', 'ipb_language.xml.gz' )
|
||||
) );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Ââåäèòå íàçâàíèå äëÿ íîâûõ ÿçûêîâûõ íàñòðîåê</b><div style='color:gray'>Íàïðèìåð: Ðóññêèé, RU, English, US...</div>" ,
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Enter the name for this new language set</b><div style='color:gray'>For example: English, US, German, DE...</div>" ,
|
||||
$this->ipsclass->adskin->form_input( 'lang_name', '' )
|
||||
) );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Èìïîðòèðîâàíèå XML-ôàéëà");
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Import XML Language Set");
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
|
||||
|
||||
@@ -509,7 +500,7 @@ class ad_languages {
|
||||
|
||||
if ($this->ipsclass->input['id'] == "")
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî îïðåäåëèòü ID ÿçûêà");
|
||||
$this->ipsclass->admin->error("You must specify an existing language set ID, go back and try again");
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -521,14 +512,14 @@ class ad_languages {
|
||||
|
||||
if ( ! $row = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî íàéòè ÿçûê ïî ââåäåííîìó ID");
|
||||
$this->ipsclass->admin->error("Could not query the information from the database");
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Get xml mah-do-dah
|
||||
//-----------------------------------------
|
||||
|
||||
require( KERNEL_PATH.'class_xml.php' );
|
||||
require_once( KERNEL_PATH.'class_xml.php' );
|
||||
|
||||
$xml = new class_xml();
|
||||
|
||||
@@ -546,12 +537,16 @@ class ad_languages {
|
||||
|
||||
if ( ! is_dir($lang_dir) )
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî íàéòè ïàïêó '$lang_dir', ïðîâåðüòå ñóùåñòâóåò ëè ýòà ïàïêà?");
|
||||
$this->ipsclass->admin->error("Could not locate $lang_dir, is the directory there?");
|
||||
}
|
||||
|
||||
$lang_files = array( 'boards','buddy','calendar','emails', 'email_content', 'error','forum','global','help','legends','login','mlist',
|
||||
'mod','msg','online','portal','post','printpage','profile','register','search','stats','subscriptions','topic','ucp',
|
||||
'chatpara' , 'editors'
|
||||
$lang_files = array( 'lang_boards', 'lang_buddy', 'lang_calendar', 'lang_emails', 'lang_email_content', 'lang_error',
|
||||
'lang_forum', 'lang_global', 'lang_help', 'lang_legends', 'lang_login', 'lang_mlist',
|
||||
'lang_mod', 'lang_msg', 'lang_online', 'lang_portal', 'lang_post', 'lang_ printpage',
|
||||
'lang_profile', 'lang_register', 'lang_search', 'lang_stats', 'lang_subscriptions',
|
||||
'lang_topic', 'lang_ucp', 'lang_chatpara' , 'lang_editors', 'lang_chatsigma',
|
||||
'acp_lang_acpperms', 'acp_lang_member', 'acp_lang_portal', 'lang_gallery', 'lang_gallery_location',
|
||||
'lang_blog', 'lang_blog_emails', 'lang_blog_location', 'lang_blog_portal', 'lang_blog_ucp', 'lang_downloads'
|
||||
);
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -568,11 +563,11 @@ class ad_languages {
|
||||
|
||||
foreach( $lang_files as $file )
|
||||
{
|
||||
if ( @is_file( $lang_dir.'/lang_'.$file.'.php' ) )
|
||||
if ( @is_file( $lang_dir.'/'.$file.'.php' ) )
|
||||
{
|
||||
$lang = array();
|
||||
|
||||
require( $lang_dir.'/lang_'.$file.'.php' );
|
||||
require( $lang_dir.'/'.$file.'.php' );
|
||||
|
||||
foreach( $lang as $k => $v )
|
||||
{
|
||||
@@ -600,13 +595,11 @@ class ad_languages {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function show_file()
|
||||
{
|
||||
if ($this->ipsclass->input['id'] == "")
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî îïðåäåëèòü ID ÿçûêà");
|
||||
$this->ipsclass->admin->error("You must specify an existing language set ID, go back and try again");
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -616,7 +609,7 @@ class ad_languages {
|
||||
|
||||
if ( ! $row = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî íàéòè ÿçûê ïî ââåäåííîìó ID.");
|
||||
$this->ipsclass->admin->error("Could not query the information from the database");
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -630,12 +623,12 @@ class ad_languages {
|
||||
|
||||
if ( ! is_writeable($lang_dir) )
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî çàïèñàòü â ïàïêó '$lang_dir', ïðîâåðüòå ïðàâà äîñòóïà (CHMOD) è, åñëè íåîáõîäèìî óñòàíîâèòü ïðàâà äîñòóïà 0777. IPB íå ìîæåò ñäåëàòü ýòî çà âàñ.");
|
||||
$this->ipsclass->admin->error("Cannot write into '$lang_dir', please check the CHMOD value, and if needed, CHMOD to 0777 via FTP. IBF cannot do this for you.");
|
||||
}
|
||||
|
||||
if (! file_exists($lang_file) )
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî íàéòè ôàéë {$ibforums->input['lang_file']} â ïàïêó '$lang_dir', âåðíèòåñü íàçàä è ïîïðîáóéòå åùå ðàç");
|
||||
$this->ipsclass->admin->error("Cannot locate {$this->ipsclass->input['lang_file']} in '$lang_dir', please go back and check the input");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -649,12 +642,13 @@ class ad_languages {
|
||||
|
||||
if ( ! is_writeable($lang_file) )
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî çàïèñàòü â ôàéë '$lang_file', ïðîâåðüòå ïðàâà äîñòóïà (CHMOD) è, åñëè íåîáõîäèìî óñòàíîâèòü ïðàâà äîñòóïà 0777. IPB íå ìîæåò ñäåëàòü ýòî çà âàñ.");
|
||||
$this->ipsclass->admin->error("Cannot write to '$lang_file', please check the CHMOD value, and if needed, CHMOD to 0777 via FTP. IBF cannot do this for you.");
|
||||
}
|
||||
|
||||
|
||||
$this->ipsclass->admin->page_detail = "Âû ìîæåòå èçìåíèòü ëþáóþ ôðàçó â ôîðìàõ íèæå.";
|
||||
$this->ipsclass->admin->page_title = "Èçìåíåíèå ÿçûêîâîãî ìîäóëÿ: ".$row['lname'];
|
||||
$this->ipsclass->admin->page_detail = "You may edit any of the language information below.";
|
||||
$this->ipsclass->admin->page_title = "Edit Language set: ".$row['lname'];
|
||||
$this->ipsclass->admin->nav[] = array( '', 'Editing Langage Set '.$row['lname'] );
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
@@ -667,12 +661,12 @@ class ad_languages {
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->adskin->td_header[] = array( "Íàçâàíèå ÿçûêîâîãî áëîêà" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Ñîäåðæèìîå ÿçûêîâîãî áëîêà" , "80%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Block Name" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Content" , "80%" );
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "ßçûêîâîé ôàéë: ".$this->ipsclass->input['lang_file'] );
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Language Text: ".$this->ipsclass->input['lang_file'] );
|
||||
|
||||
foreach($lang as $k => $v)
|
||||
{
|
||||
@@ -683,10 +677,10 @@ class ad_languages {
|
||||
|
||||
$v = stripslashes($v);
|
||||
|
||||
$v = preg_replace("/&/", "&", $v );
|
||||
$v = preg_replace("/</", "<", $v );
|
||||
$v = preg_replace("/>/", ">", $v );
|
||||
$v = preg_replace("/'/", "'", $v );
|
||||
$v = str_replace("&", "&", $v );
|
||||
$v = str_replace("<", "<", $v );
|
||||
$v = str_replace(">", ">", $v );
|
||||
$v = str_replace("'", "'", $v );
|
||||
|
||||
$rows = 5;
|
||||
|
||||
@@ -698,7 +692,7 @@ class ad_languages {
|
||||
) );
|
||||
}
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Èçìåíèòü ýòîò ôàéë");
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Edit this file");
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
|
||||
|
||||
@@ -718,7 +712,7 @@ class ad_languages {
|
||||
{
|
||||
if ($this->ipsclass->input['id'] == "")
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî îïðåäåëèòü ID ÿçûêà");
|
||||
$this->ipsclass->admin->error("You must specify an existing language set ID, go back and try again");
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -728,7 +722,7 @@ class ad_languages {
|
||||
|
||||
if ( ! $row = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî íàéòè ÿçûê ïî ââåäåííîìó ID");
|
||||
$this->ipsclass->admin->error("Could not query the information from the database");
|
||||
}
|
||||
|
||||
$final['lname'] = stripslashes($_POST['lname']);
|
||||
@@ -743,7 +737,7 @@ class ad_languages {
|
||||
|
||||
$this->rebuild_cache();
|
||||
|
||||
$this->ipsclass->admin->done_screen("ßçûêîâîé ìîäóëü îáíîâëåí", "Óïðàâëåíèå ÿçûêàìè", "{$this->ipsclass->form_code}" );
|
||||
$this->ipsclass->admin->done_screen("Language pack information updated", "Manage language sets", "{$this->ipsclass->form_code}" );
|
||||
|
||||
}
|
||||
|
||||
@@ -756,7 +750,7 @@ class ad_languages {
|
||||
{
|
||||
if ($this->ipsclass->input['id'] == "")
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî îïðåäåëèòü ID ÿçûêà");
|
||||
$this->ipsclass->admin->error("You must specify an existing language set ID, go back and try again");
|
||||
}
|
||||
|
||||
$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'languages', 'where' => "lid='".$this->ipsclass->input['id']."'" ) );
|
||||
@@ -766,7 +760,7 @@ class ad_languages {
|
||||
|
||||
if ( ! $row = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî íàéòè ÿçûê ïî ââåäåííîìó ID");
|
||||
$this->ipsclass->admin->error("Could not query that language set from the DB, so there");
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -775,14 +769,14 @@ class ad_languages {
|
||||
|
||||
if ( ! is_writeable(CACHE_PATH.'cache/lang_cache') )
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî çàïèñàòü â ïàïêó /cache/lang_cache/, ïðîâåðüòå ïðàâà äîñòóïà (CHMOD) è, åñëè íåîáõîäèìî óñòàíîâèòü ïðàâà äîñòóïà 0777. IPB íå ìîæåò ñäåëàòü ýòî çà âàñ");
|
||||
$this->ipsclass->admin->error("The directory 'lang' is not writeable by this script. Please check the permissions on that directory. CHMOD to 0777 if in doubt and try again");
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
if ( ! is_dir(CACHE_PATH.'cache/lang_cache/'.$row['ldir']) )
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî íàéòè îðèãèíàëüíûé ÿçûê äëÿ êîïèðîâàíèÿ, âåðíèòåñü íàçàä è ïîïðîáóéòå åùå ðàç");
|
||||
$this->ipsclass->admin->error("Could not locate the original language set to copy, please check and try again");
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -840,15 +834,14 @@ class ad_languages {
|
||||
{
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
if ($this->ipsclass->input['id'] == "")
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî îïðåäåëèòü ID ÿçûêà");
|
||||
$this->ipsclass->admin->error("You must specify an existing image set ID, go back and try again");
|
||||
}
|
||||
|
||||
if ($this->ipsclass->input['id'] == 1)
|
||||
{
|
||||
$this->ipsclass->admin->error("Âû íå ìîæåòå óäàëèòü ýòîò ÿçûê.");
|
||||
$this->ipsclass->admin->error("You cannot remove this language pack.");
|
||||
}
|
||||
|
||||
$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'languages', 'where' => "lid='".$this->ipsclass->input['id']."'" ) );
|
||||
@@ -856,19 +849,19 @@ class ad_languages {
|
||||
|
||||
if ( ! $row = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî íàéòè ÿçûê ïî ââåäåííîìó ID");
|
||||
$this->ipsclass->admin->error("Could not query the language information from the database");
|
||||
}
|
||||
|
||||
// Is it default??????????????? ok enuff
|
||||
|
||||
if ($this->ipsclass->vars['default_language'] == "")
|
||||
{
|
||||
$this->ipsclass->vars['default_language'] = 'ru';
|
||||
$this->ipsclass->vars['default_language'] = 'en';
|
||||
}
|
||||
|
||||
if ($row['ldir'] == $this->ipsclass->vars['default_language'])
|
||||
{
|
||||
$this->ipsclass->admin->error("Âû íå ìîæåòå óäàëèòü ýòîò ÿçûê, ïîêà îí óñòàíîâëåí, êàê ÿçûê ïî óìîë÷àíèþ. Âûáåðèòå äðóãîé ÿçûê è óñòàíîâèòå åãî ïî óìîë÷àíèþ, ïîñëå ýòîãî ïîïðîáóéòå åùå ðàç");
|
||||
$this->ipsclass->admin->error("You cannot remove this language pack while it is the default language directory. Please select another pack to be the default and try again");
|
||||
}
|
||||
|
||||
$this->ipsclass->DB->do_update( 'members', array( 'language' => $this->ipsclass->vars['default_language'] ), "language='{$row['ldir']}'" );
|
||||
@@ -884,7 +877,7 @@ class ad_languages {
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî óäàëèòü ÿçûêîâûå ìîäóëè, ïðîâåðüòå ïðàâà äîñòóïà (CHMOD) ê ôàéëàì ÿçûêà");
|
||||
$this->ipsclass->admin->error("Could not remove the language pack files, please check the CHMOD permissions to ensure that this script has the correct permissions to allow this");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -900,12 +893,12 @@ class ad_languages {
|
||||
|
||||
if ($this->ipsclass->input['id'] == "")
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî îïðåäåëèòü ID ÿçûêà");
|
||||
$this->ipsclass->admin->error("You must specify an existing language set ID, go back and try again");
|
||||
}
|
||||
|
||||
if ($this->ipsclass->input['lang_file'] == "")
|
||||
{
|
||||
$this->ipsclass->admin->error("Âû äîëæíû óêàçàòü èìÿ ÿçûêîâîãî ìîäóëÿ, âåðíèòåñü íàçàä è ïîïðîáóéòå åùå ðàç");
|
||||
$this->ipsclass->admin->error("You must specify an existing language filename, go back and try again");
|
||||
}
|
||||
|
||||
$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'languages', 'where' => "lid='".$this->ipsclass->input['id']."'" ) );
|
||||
@@ -913,19 +906,19 @@ class ad_languages {
|
||||
|
||||
if ( ! $row = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî íàéòè ÿçûê ïî ââåäåííîìó ID");
|
||||
$this->ipsclass->admin->error("Could not query the language information from the database");
|
||||
}
|
||||
|
||||
$lang_file = CACHE_PATH."cache/lang_cache/".$row['ldir']."/".$this->ipsclass->input['lang_file'];
|
||||
|
||||
if (! file_exists( $lang_file ) )
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî íàéòè ôàéë '$lang_file', ïðîâåðüòå åñòü ëè îí.");
|
||||
$this->ipsclass->admin->error("Could not locate $lang_file, is it there?");
|
||||
}
|
||||
|
||||
if (! is_writeable( $lang_file ) )
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî çàïèñàòü â ôàéë '$lang_file', ïðîâåðüòå ïðàâà äîñòóïà (CHMOD) è, åñëè íåîáõîäèìî óñòàíîâèòü ïðàâà äîñòóïà 0777. IPB íå ìîæåò ñäåëàòü ýòî çà âàñ");
|
||||
$this->ipsclass->admin->error("Cannot write to $lang_file, please chmod to 0666 or better and try again");
|
||||
}
|
||||
|
||||
$barney = array();
|
||||
@@ -936,11 +929,11 @@ class ad_languages {
|
||||
{
|
||||
if ( isset($this->ipsclass->input[ $match[0] ]) )
|
||||
{
|
||||
$v = preg_replace("/'/", "'", stripslashes($_POST[ $match[0] ]) );
|
||||
$v = preg_replace("/</", "<", $v );
|
||||
$v = preg_replace("/>/", ">", $v );
|
||||
$v = preg_replace("/&/", "&", $v );
|
||||
$v = preg_replace("/\r/", "", $v );
|
||||
$v = str_replace("'", "'", stripslashes($_POST[ $match[0] ]) );
|
||||
$v = str_replace("<", "<", $v );
|
||||
$v = str_replace(">", ">", $v );
|
||||
$v = str_replace("&", "&", $v );
|
||||
$v = str_replace("\r", "", $v );
|
||||
|
||||
$barney[ $match[1] ] = $v;
|
||||
}
|
||||
@@ -949,18 +942,18 @@ class ad_languages {
|
||||
|
||||
if ( count($barney) < 1 )
|
||||
{
|
||||
$this->ipsclass->admin->error("×òî-òî ñäåëàíî íå òàê, âåðíèòåñü íàçàä è ïîïðîáóéòå åùå ðàç");
|
||||
$this->ipsclass->admin->error("Oopsie, something has gone wrong - did you leave all the fields blank?");
|
||||
}
|
||||
|
||||
$start = "<?php\n\n";
|
||||
$start = "<?php\n\n".'$lang = array('."\n";
|
||||
|
||||
foreach($barney as $key => $text)
|
||||
{
|
||||
$text = preg_replace("/\n{1,}$/", "", $text);
|
||||
$start .= "\n".'$lang['."'$key'".'] = "'.addslashes($text).'";';
|
||||
$start .= "\n'".$key."' => \"".addslashes($text)."\",";
|
||||
}
|
||||
|
||||
$start .= "\n\n?".">";
|
||||
$start .= "\n\n);\n\n?".">";
|
||||
|
||||
if ($fh = fopen( $lang_file, 'w') )
|
||||
{
|
||||
@@ -969,16 +962,16 @@ class ad_languages {
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåëüçÿ ñäåëàòü çàïèñü â $lang_file");
|
||||
$this->ipsclass->admin->error("Could not write back to $lang_file");
|
||||
}
|
||||
|
||||
if ( $this->ipsclass->input['id'] )
|
||||
{
|
||||
$this->ipsclass->admin->done_screen("ßçûê îáíîâëåí", "Óïðàâëåíèå ÿçûêàìè", "{$this->ipsclass->form_code}&code=edit&id={$this->ipsclass->input['id']}", 'redirect' );
|
||||
$this->ipsclass->admin->done_screen("Set updated", "Manage Language Sets", "{$this->ipsclass->form_code}&code=edit&id={$this->ipsclass->input['id']}", 'redirect' );
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ipsclass->admin->done_screen("ßçûê îáíîâëåí", "Óïðàâëåíèå ÿçûêàìè", "{$this->ipsclass->form_code}", 'redirect' );
|
||||
$this->ipsclass->admin->done_screen("Set updated", "Manage Language Sets", "{$this->ipsclass->form_code}", 'redirect' );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -988,6 +981,8 @@ class ad_languages {
|
||||
|
||||
function do_form( $method='add', $id="" )
|
||||
{
|
||||
$author = "";
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
if ($id != "")
|
||||
@@ -999,7 +994,7 @@ class ad_languages {
|
||||
|
||||
if ($this->ipsclass->input['id'] == "")
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî îïðåäåëèòü ID ÿçûêà");
|
||||
$this->ipsclass->admin->error("You must specify an existing language set ID, go back and try again");
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -1009,7 +1004,7 @@ class ad_languages {
|
||||
|
||||
if ( ! $row = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî íàéòè ÿçûê ïî ââåäåííîìó ID");
|
||||
$this->ipsclass->admin->error("Could not query the information from the database");
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -1022,7 +1017,7 @@ class ad_languages {
|
||||
{
|
||||
if ( ! is_writeable($lang_dir) )
|
||||
{
|
||||
$this->ipsclass->admin->error("Íåâîçìîæíî çàïèñàòü â ïàïêó '$lang_dir', ïðîâåðüòå ïðàâà äîñòóïà (CHMOD) è, åñëè íåîáõîäèìî óñòàíîâèòü ïðàâà äîñòóïà 0777. IPB íå ìîæåò ñäåëàòü ýòî çà âàñ.");
|
||||
$this->ipsclass->admin->error("Cannot write into '$lang_dir', please check the CHMOD value, and if needed, CHMOD to 0777 via FTP. IBF cannot do this for you.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1053,17 +1048,18 @@ class ad_languages {
|
||||
|
||||
if ($row['lauthor'] and $row['lemail'])
|
||||
{
|
||||
$author = "<br><br>ßçûê <b>'{$row['lname']}'</b> áûë ñîçäàí <a href='mailto:{$row['lemail']}' target='_blank'>{$row['lauthor']}</a>";
|
||||
$author = "<br><br>This language set <b>'{$row['lname']}'</b> was created by <a href='mailto:{$row['lemail']}' target='_blank'>{$row['lauthor']}</a>";
|
||||
}
|
||||
else if ($row['lauthor'])
|
||||
{
|
||||
$author = "<br><br>ßçûê <b>'{$row['lname']}'</b> áûë ñîçäàí {$row['lauthor']}";
|
||||
$author = "<br><br>This language set <b>'{$row['lname']}'</b> was created by {$row['lauthor']}";
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->admin->page_detail = "Ýòà ñåêöèÿ ïîçâîëÿåò âàì èçìåíÿòü ÿçûêîâûå ìîäóëè âûáðàííîãî ÿçûêà.$author $url";
|
||||
$this->ipsclass->admin->page_title = "Èçìåíåíèå ÿçûêîâûõ ìîäóëåé";
|
||||
$this->ipsclass->admin->page_detail = "Please choose which language section you wish to edit below.$author";
|
||||
$this->ipsclass->admin->page_title = "Edit Language set";
|
||||
$this->ipsclass->admin->nav[] = array( '', 'Editing Langage Set '.$row['lname'] );
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
@@ -1082,11 +1078,11 @@ class ad_languages {
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Èçìåíåíèå èíôîðìàöèè î ÿçûêå" );
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Edit language set information" );
|
||||
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array(
|
||||
"<b>Íàçâàíèå ÿçûêà</b>",
|
||||
"<b>Language Set Name</b>",
|
||||
$this->ipsclass->adskin->form_input('lname', $row['lname']),
|
||||
) );
|
||||
|
||||
@@ -1094,18 +1090,18 @@ class ad_languages {
|
||||
{
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array(
|
||||
"<b>Àâòîð ÿçûêà:</b>",
|
||||
"<b>Language set author name:</b>",
|
||||
$this->ipsclass->adskin->form_input('lauthor', $row['lauthor']),
|
||||
) );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array(
|
||||
"<b>Àäðåñ email àâòîðà:</b>",
|
||||
"<b>Language set author email:</b>",
|
||||
$this->ipsclass->adskin->form_input('lemail', $row['lemail']),
|
||||
) );
|
||||
|
||||
}
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Èçìåíèòü óñòàíîâêè ÿçûêà");
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Edit language set details");
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
|
||||
|
||||
@@ -1125,14 +1121,14 @@ class ad_languages {
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Ðåäàêòèðîâàíèå ÿçûêîâûõ ìîäóëåé ÿçûêà '".$row['lname']."'" );
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Edit language files in set '".$row['lname']."'" );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array(
|
||||
"<b>Âûáåðåòå ÿçûêîâîé ôàéë äëÿ ðåäàêòèðîâàíèÿ</b>",
|
||||
"<b>Please select a language file to edit</b>",
|
||||
$this->ipsclass->adskin->form_dropdown('lang_file', $form_array),
|
||||
) );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Ðåäàêòèðîâàòü ýòîò ôàéë");
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Edit this language file");
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
|
||||
|
||||
@@ -1151,13 +1147,13 @@ class ad_languages {
|
||||
{
|
||||
if ($this->ipsclass->vars['default_language'] == "")
|
||||
{
|
||||
$this->ipsclass->vars['default_language'] = 'ru';
|
||||
$this->ipsclass->vars['default_language'] = 'en';
|
||||
}
|
||||
|
||||
$form_array = array();
|
||||
|
||||
$this->ipsclass->admin->page_detail = "Â ýòîé ñåêöèè âû ìîæåòå èçìåíÿòü, óäàëÿòü ñóùåñòâóþùèå ÿçûêè è äîáàâëÿòü íîâûå";
|
||||
$this->ipsclass->admin->page_title = "Óïðàâëåíèå ÿçûêàìè";
|
||||
$this->ipsclass->admin->page_detail = "You can edit, remove and create new language packs from this section";
|
||||
$this->ipsclass->admin->page_title = "Manage Language Sets";
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
@@ -1172,24 +1168,25 @@ class ad_languages {
|
||||
if ( $this->ipsclass->DB->get_num_rows() )
|
||||
{
|
||||
|
||||
$this->ipsclass->adskin->td_header[] = array( "Íàçâàíèå" , "40%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Ïîëüçîâàòåëåé èñïîëüçóþò" , "30%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Ýêñïîðò" , "10%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Èçìåíåíèå" , "10%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Óäàëåíèå" , "10%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Title" , "40%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Members" , "30%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Export" , "10%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Edit" , "10%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Remove" , "10%" );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Èñïîëüçóåìûå ÿçûêè" );
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Current Language Packs In Use" );
|
||||
|
||||
while ( $r = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
|
||||
$show_array[ $r['lid'] ] = isset($show_array[ $r['lid'] ]) ? $show_array[ $r['lid'] ] : '';
|
||||
|
||||
if ($this->ipsclass->vars['default_language'] == $r['ldir'])
|
||||
{
|
||||
$root = "<span style='color:red;font-weight:bold'> (èñïîëüçóåòñÿ ïî óìîë÷àíèþ)</span>";
|
||||
$root = "<span style='color:red;font-weight:bold'> (Default Language)</span>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$root = " ( <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=makedefault&id=".urlencode($r['ldir'])."'>Ñäåëàòü ÿçûêîì ïî óìîë÷àíèþ</a> )";
|
||||
$root = " ( <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=makedefault&id=".urlencode($r['ldir'])."'>Make Default Language</a> )";
|
||||
}
|
||||
|
||||
$show_array[ $r['lid'] ] .= stripslashes($r['lname'])."<br>";
|
||||
@@ -1201,9 +1198,9 @@ class ad_languages {
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>".stripslashes($r['lname'])."</b> $root",
|
||||
"<center>{$r['mcount']}</center>",
|
||||
"<center><a href='".$this->ipsclass->base_url."&{$this->ipsclass->form_code}&code=export&id={$r['lid']}'>Ýêñïîðòèðîâàòü</a></center>",
|
||||
"<center><a href='".$this->ipsclass->base_url."&{$this->ipsclass->form_code}&code=edit&id={$r['lid']}'>Èçìåíèòü</a></center>",
|
||||
"<center><a href='javascript:checkdelete(\"{$this->ipsclass->form_code_js}&code=remove&id={$r['lid']}\")'>Óäàëèòü</a></center>",
|
||||
"<center><a href='".$this->ipsclass->base_url."&{$this->ipsclass->form_code}&code=export&id={$r['lid']}'>Export</a></center>",
|
||||
"<center><a href='".$this->ipsclass->base_url."&{$this->ipsclass->form_code}&code=edit&id={$r['lid']}'>Edit</a></center>",
|
||||
"<center><a href='javascript:checkdelete(\"{$this->ipsclass->form_code_js}&code=remove&id={$r['lid']}\")'>Remove</a></center>",
|
||||
) );
|
||||
|
||||
$used_ids[] = $r['lid'];
|
||||
@@ -1226,12 +1223,12 @@ class ad_languages {
|
||||
if ( $this->ipsclass->DB->get_num_rows() )
|
||||
{
|
||||
|
||||
$this->ipsclass->adskin->td_header[] = array( "Íàçâàíèå" , "40%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Ýêñïîðò" , "10%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Èçìåíåíèå" , "30%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Óäàëåíèå" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Title" , "40%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Export" , "10%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Edit" , "30%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Remove" , "20%" );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Íåèñïîëüçóåìûå ÿçûêè" );
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Current Unallocated Language Packs" );
|
||||
|
||||
|
||||
|
||||
@@ -1240,17 +1237,17 @@ class ad_languages {
|
||||
|
||||
if ($this->ipsclass->vars['default_language'] == $r['ldir'])
|
||||
{
|
||||
$root = "<span style='color:red;font-weight:bold'> (èñïîëüçóåòñÿ ïî óìîë÷àíèþ)</span>";
|
||||
$root = "<span style='color:red;font-weight:bold'> (Default Language)</span>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$root = " ( <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=makedefault&id=".urlencode($r['ldir'])."'>Ñäåëàòü ÿçûêîì ïî óìîë÷àíèþ</a> )";
|
||||
$root = " ( <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=makedefault&id=".urlencode($r['ldir'])."'>Make Default Language</a> )";
|
||||
}
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>".stripslashes($r['lname'])."</b> $root",
|
||||
"<center><a href='".$this->ipsclass->base_url."&{$this->ipsclass->form_code}&code=export&id={$r['lid']}'>Ýêñïîðòèðîâàòü</a></center>",
|
||||
"<center><a href='".$this->ipsclass->base_url."&{$this->ipsclass->form_code}&code=edit&id={$r['lid']}'>Èçìåíèòü</a></center>",
|
||||
"<center><a href='javascript:checkdelete(\"{$this->ipsclass->form_code_js}&code=remove&id={$r['lid']}\")'>Óäàëèòü</a></center>",
|
||||
"<center><a href='".$this->ipsclass->base_url."&{$this->ipsclass->form_code}&code=export&id={$r['lid']}'>Export</a></center>",
|
||||
"<center><a href='".$this->ipsclass->base_url."&{$this->ipsclass->form_code}&code=edit&id={$r['lid']}'>Edit</a></center>",
|
||||
"<center><a href='javascript:checkdelete(\"{$this->ipsclass->form_code_js}&code=remove&id={$r['lid']}\")'>Remove</a></center>",
|
||||
) );
|
||||
|
||||
$form_array[] = array( $r['lid'], $r['lname'] );
|
||||
@@ -1272,13 +1269,13 @@ class ad_languages {
|
||||
$this->ipsclass->adskin->td_header[] = array( " " , "40%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( " " , "60%" );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Ñîçäàíèå ÿçûêà" );
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Create Language Set" );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Ñîçäàòü íîâûé ÿçûê èñïîëüçóÿ ñóùåñòâóþùèé...</b>" ,
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Base new language set on...</b>" ,
|
||||
$this->ipsclass->adskin->form_dropdown( "id", $form_array)
|
||||
) );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Ñîçäàòü íîâûé ÿçûê");
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Create new Language set");
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
|
||||
|
||||
@@ -1294,17 +1291,17 @@ class ad_languages {
|
||||
$this->ipsclass->adskin->td_header[] = array( " " , "40%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( " " , "60%" );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Ïåðåóñòàíîâêà ÿçûêà ó ïîëüçîâàòåëåé ôîðóìà" );
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Swap Member's Language Choice" );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Ïîëüçîâàòåëè èñïîëüçóþùèå ÿçûê...</b>" ,
|
||||
$this->ipsclass->adskin->form_dropdown( "old", array_merge( array( -1 => array( 'none', 'ïî óìîë÷àíèþ' ) ), $form_array ) )
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Member's that now use language set...</b>" ,
|
||||
$this->ipsclass->adskin->form_dropdown( "old", array_merge( array( -1 => array( 'none', 'No preference stored - using default' ) ), $form_array ) )
|
||||
) );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Èçìåíèòü ÿçûê íà...</b>" ,
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Update to use language set...</b>" ,
|
||||
$this->ipsclass->adskin->form_dropdown( "new", $form_array)
|
||||
) );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Ïåðåóñòàíîâèòü ÿçûê");
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Swap Member's Choice");
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
|
||||
|
||||
|
||||
Reference in new issue
Block a user