mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-01 05:44:41 +03:00
Do not check formatting at operator/translate.php page
This commit is contained in:
parent
ff5c620a29
commit
0720df1a2e
@ -104,22 +104,6 @@ function save_message($locale, $key, $value)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_auxiliary($s)
|
|
||||||
{
|
|
||||||
$res = "";
|
|
||||||
if (preg_match_all("/<[^>]+?>|[:]|\{\d+\}|[Mm]ibew|[Ww]ebim/", $s, $matches, PREG_PATTERN_ORDER)) {
|
|
||||||
foreach ($matches[0] as $val) {
|
|
||||||
if ($val != "<br/>") {
|
|
||||||
$res .= $val;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (substr(trim($s), -1) == "." || substr(trim($s), -1) == "?") {
|
|
||||||
$res .= ".";
|
|
||||||
}
|
|
||||||
return $res;
|
|
||||||
}
|
|
||||||
|
|
||||||
$operator = check_login();
|
$operator = check_login();
|
||||||
force_password($operator);
|
force_password($operator);
|
||||||
csrfchecktoken();
|
csrfchecktoken();
|
||||||
@ -207,9 +191,6 @@ foreach ($allkeys as $key) {
|
|||||||
$tsource = htmlspecialchars($lang1[$key]);
|
$tsource = htmlspecialchars($lang1[$key]);
|
||||||
if (isset($lang2[$key])) {
|
if (isset($lang2[$key])) {
|
||||||
$value = htmlspecialchars($lang2[$key]);
|
$value = htmlspecialchars($lang2[$key]);
|
||||||
if (get_auxiliary($lang2[$key]) != get_auxiliary($lang1[$key])) {
|
|
||||||
$value = "<font color=\"#6030c1\"><b>$value</b></font> <strong>(wrong formatting)</strong>";
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
$value = "<font color=\"#c13030\"><b>absent</b></font>";
|
$value = "<font color=\"#c13030\"><b>absent</b></font>";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user