1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-20 12:29:46 +01:00

Merge pull request #2605 from yesszus/patch-2

Update plugin.php
This commit is contained in:
Cameron 2017-04-29 14:17:44 -07:00 committed by GitHub
commit c2f076a73f
4 changed files with 12 additions and 8 deletions

View File

@ -1317,16 +1317,16 @@ class lancheck
if($eng_line == $trans_line && !empty($eng_line))
{
$warning[] = "<span class='text-warning'>".$def. ": Identical string (warning only) </span>";
$warning[] = "<span class='text-warning'>".$def. ": ".LAN_CHECK_29."</span>";
}
if((strpos($eng_line,"[link=")!==FALSE && strpos($trans_line,"[link=")===FALSE) || (strpos($eng_line,"[b]")!==FALSE && strpos($trans_line,"[b]")===FALSE))
{
$error[] = $def. ": Missing bbcodes";
$error[] = $def. ": ".LAN_CHECK_30;
}
elseif((strpos($eng_line,"[")!==FALSE && strpos($trans_line,"[")===FALSE) || (strpos($eng_line,"]")!==FALSE && strpos($trans_line, "]")===FALSE))
{
$error[] = $def. ": Missing [ and/or ] character(s)";
$error[] = $def. ": ".LAN_CHECK_31;
}
if((strpos($eng_line,"--LINK--")!==false && strpos($trans_line,"--LINK--")===false))
@ -1351,7 +1351,7 @@ class lancheck
if(($stripped == $trans_line))
{
// echo "<br /><br />".$def. "<br />".$stripped."<br />".$trans_line;
$error[] = $def. ": Missing HTML tags" ;
$error[] = $def. ": ".LAN_CHECK_32;
}
}

View File

@ -322,7 +322,7 @@ class plugin_ui extends e_admin_ui
return array('caption'=>"Updates to be Installed", 'text'=>$text);
return array('caption'=>EPL_ADLAN_247, 'text'=>$text);
}

View File

@ -25,7 +25,10 @@ define("LAN_CHECK_26", "Front");
define("LAN_CHECK_PAGE_TITLE", "Languages");
define("LAN_CHECK_27", "Number of language-pack errors found");
define("LAN_CHECK_28", "Identical");
//define("LAN_CHECK_29", "Missing");
define("LAN_CHECK_29", "Identical string (warning only)");
define("LAN_CHECK_30", "Missing bbcodes");
define("LAN_CHECK_31", "Missing [ and/or ] character(s)");
define("LAN_CHECK_32", "Missing HTML tags");
define("LANG_LAN_23", "Create Language-Pack (zip)");
define("LANG_LAN_30", "Release Date");
@ -43,4 +46,4 @@ define("LANG_LAN_120", "Please make sure you are using default folder names in e
define("LANG_LAN_AGR", "Note: By using these tools you agree to share your language pack(s) with the e107 community.");
?>
?>

View File

@ -288,7 +288,8 @@ define ("EPL_ADLAN_244","Only 5 Media Categories are permitted during installati
define ("EPL_ADLAN_245","Adding Media Category: [x]");
define ("EPL_ADLAN_246","Deleting All Media Categories owned by : [x]");
define ("EPL_ADLAN_247","Updates to be Installed");
define ("EPL_ADLAN_249","Adding Extended Field: ");
define ("EPL_ADLAN_250","Removing Extended Field: ");
define ("EPL_ADLAN_251","Extended Field left in place: ");