1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 12:48:26 +02:00

Closes #3617 - LAN pack export message updated

Emails are no longer (unneccesarily) sent
This commit is contained in:
Tijn Kuyper
2019-01-27 14:57:10 +01:00
parent 600ebad5a4
commit 6f18c238bc
2 changed files with 24 additions and 27 deletions

View File

@@ -458,6 +458,8 @@ class lancheck
{ {
$mes = e107::getMessage(); $mes = e107::getMessage();
/* NO LONGER USED
$certVal = isset($_POST['contribute_pack']) ? 1 : 0; $certVal = isset($_POST['contribute_pack']) ? 1 : 0;
if(!varset($_COOKIE['e107_certified'])) if(!varset($_COOKIE['e107_certified']))
@@ -467,39 +469,44 @@ class lancheck
else else
{ {
$_COOKIE['e107_certified'] = $certVal; $_COOKIE['e107_certified'] = $certVal;
} }*/
// $_POST['language'] = key($_POST['ziplang']); // $_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') if(!isset($_SESSION['lancheck'][$language]['total']) || $_SESSION['lancheck'][$language]['total']!='0')
{ {
$this->check_all('norender', $language); $this->check_all('norender', $language);
} }
$status = $this->makeLanguagePack($language); $status = $this->makeLanguagePack($language);
//print_a($status);
if($status['error']==FALSE) if($status['error'] == FALSE)
{ {
$text = $status['message']."<br />"; $srch = array('[', ']');
$text .= $this->share($status['file']); $rpl = array("<a href='https://github.com/e107translations/Translator-Information' target='_blank'>", "</a>");
$mes->addSuccess($text);
//$ns->tablerender(LAN_CREATED, $text ); $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 else
{ {
$mes->addError($status['message']); $mes->addError($status['error']);
//$ns->tablerender(LAN_CREATED_FAILED, $status['message']);
} }
return array('text'=>$mes->render(), 'caption'=>''); return array('text'=> $mes->render(), 'caption'=>'');
} }
/** /**
* Share Language File * Share Language File
*
* DEPRECATED - NO LONGER USED AS TRANSLATIONS ARE NOW MANAGED THROUGH GITHUB REPOSITORIES (https://github.com/e107translations)
*
* @param object $newfile * @param object $newfile
* Usage of e107 is granted to you provided that this function is not modified or removed in any way. * Usage of e107 is granted to you provided that this function is not modified or removed in any way.
* @return * @return
@@ -2038,15 +2045,4 @@ class lancheck
} }
}
}

View File

@@ -31,8 +31,8 @@ define("LANG_LAN_21", "Language-Packs");
define("LANG_LAN_25", "Language-Pack Creation Status"); define("LANG_LAN_25", "Language-Pack Creation Status");
define("LANG_LAN_26", "Load language files only for current language"); 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_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_28", "Check this box if you're an [e107 certified translator].");
define("LANG_LAN_EML", "Please email your language pack to:"); //define("LANG_LAN_EML", "Please email your language pack to:");
define("LANG_LAN_32", "Installed Languages"); define("LANG_LAN_32", "Installed Languages");
define("LANG_LAN_33", "Display only errors during verification"); define("LANG_LAN_33", "Display only errors during verification");
define("LANG_LAN_50", "Admin-Area Interface Language"); 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_151", "Available");
define("LANG_LAN_152", "Courtesy of the [e107 translations team]"); define("LANG_LAN_152", "Courtesy of the [e107 translations team]");
define("LANG_LAN_153", "Pre-release"); 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].")