mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Closes #3617 - LAN pack export message updated
Emails are no longer (unneccesarily) sent
This commit is contained in:
@@ -458,6 +458,8 @@ class lancheck
|
||||
{
|
||||
$mes = e107::getMessage();
|
||||
|
||||
/* NO LONGER USED
|
||||
|
||||
$certVal = isset($_POST['contribute_pack']) ? 1 : 0;
|
||||
|
||||
if(!varset($_COOKIE['e107_certified']))
|
||||
@@ -467,39 +469,44 @@ class lancheck
|
||||
else
|
||||
{
|
||||
$_COOKIE['e107_certified'] = $certVal;
|
||||
}
|
||||
}*/
|
||||
|
||||
// $_POST['language'] = key($_POST['ziplang']);
|
||||
|
||||
// If no session data, scan before zipping.
|
||||
// If no session data, scan before zipping.
|
||||
if(!isset($_SESSION['lancheck'][$language]['total']) || $_SESSION['lancheck'][$language]['total']!='0')
|
||||
{
|
||||
$this->check_all('norender', $language);
|
||||
}
|
||||
|
||||
$status = $this->makeLanguagePack($language);
|
||||
//print_a($status);
|
||||
|
||||
if($status['error']==FALSE)
|
||||
if($status['error'] == FALSE)
|
||||
{
|
||||
$text = $status['message']."<br />";
|
||||
$text .= $this->share($status['file']);
|
||||
$mes->addSuccess($text);
|
||||
//$ns->tablerender(LAN_CREATED, $text );
|
||||
$srch = array('[', ']');
|
||||
$rpl = array("<a href='https://github.com/e107translations/Translator-Information' target='_blank'>", "</a>");
|
||||
|
||||
$text = str_replace($srch, $rpl, LANG_LAN_154);
|
||||
$text .= "<br />";
|
||||
$text .= $status['message'];
|
||||
//$text .= $this->share($status['file']); // no longer notify by email, but only offer to download
|
||||
$mes->addSuccess($text);
|
||||
}
|
||||
else
|
||||
{
|
||||
$mes->addError($status['message']);
|
||||
//$ns->tablerender(LAN_CREATED_FAILED, $status['message']);
|
||||
$mes->addError($status['error']);
|
||||
}
|
||||
|
||||
return array('text'=>$mes->render(), 'caption'=>'');
|
||||
|
||||
return array('text'=> $mes->render(), 'caption'=>'');
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Share Language File
|
||||
*
|
||||
* DEPRECATED - NO LONGER USED AS TRANSLATIONS ARE NOW MANAGED THROUGH GITHUB REPOSITORIES (https://github.com/e107translations)
|
||||
*
|
||||
* @param object $newfile
|
||||
* Usage of e107 is granted to you provided that this function is not modified or removed in any way.
|
||||
* @return
|
||||
@@ -2038,15 +2045,4 @@ class lancheck
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@@ -31,8 +31,8 @@ define("LANG_LAN_21", "Language-Packs");
|
||||
define("LANG_LAN_25", "Language-Pack Creation Status");
|
||||
define("LANG_LAN_26", "Load language files only for current language");
|
||||
define("LANG_LAN_27", "If checked, and a required language cannot be found, there will be an error");
|
||||
define("LANG_LAN_28", "Check this box if you're an [e107 certified translator].");
|
||||
define("LANG_LAN_EML", "Please email your language pack to:");
|
||||
//define("LANG_LAN_28", "Check this box if you're an [e107 certified translator].");
|
||||
//define("LANG_LAN_EML", "Please email your language pack to:");
|
||||
define("LANG_LAN_32", "Installed Languages");
|
||||
define("LANG_LAN_33", "Display only errors during verification");
|
||||
define("LANG_LAN_50", "Admin-Area Interface Language");
|
||||
@@ -69,4 +69,5 @@ define("LANG_LAN_150", "[b]Search ENTIRE core before commenting out ANY LAN from
|
||||
define("LANG_LAN_151", "Available");
|
||||
define("LANG_LAN_152", "Courtesy of the [e107 translations team]");
|
||||
define("LANG_LAN_153", "Pre-release");
|
||||
?>
|
||||
|
||||
define("LANG_LAN_154", "The Language Pack has been created. You can now submit it to the Github repository as instructed [here].")
|
Reference in New Issue
Block a user