if (!$NPluralsErrorReported) { echo "<tr>\n"; echo '<td align="center" colspan="3">' . sprintf($PMF_LANG['msgTransToolLanguagePluralNotSet'], $translateLang) . "</td>\n"; echo "</tr>\n"; $NPluralsErrorReported = true; } continue; } /** * We print one box for English and one for other language * because other language will always have at least 1 form */ echo "<tr>\n"; echo "<td>" . $key . "</td>\n"; echo '<td><input style="width: 300px;" type="text" value="' . PMF_String::htmlspecialchars($line) . '" disabled="disabled" /></td>' . "\n"; if (array_key_exists($key, $rightVarsOnly) && ($line != $rightVarsOnly[$key] || $tt->isKeyIgnorable($key) || $tt->isValIgnorable($line))) { echo '<td><input style="width: 300px;" type="text" name="' . $key . '" value="' . PMF_String::htmlspecialchars($rightVarsOnly[$key]) . '" /></td>' . "\n"; } else { echo '<td><input style="width: 300px;border-color: red;" type="text" name="' . $key . '" value="' . PMF_String::htmlspecialchars($line) . '" /></td>' . "\n"; } echo "</tr>\n"; // Add second English form and translation $key2 = str_replace('[0]', '[1]', $key); echo "<tr>\n"; echo "<td>" . $key2 . "</td>\n"; echo '<td><input style="width: 300px;" type="text" value="' . PMF_String::htmlspecialchars($leftVarsOnly[$key2]) . '" disabled="disabled" /></td>' . "\n"; if ($rightNPlurals == 1) { // Other language has only one form echo '<td><input style="width: 300px;" type="text" value="' . $PMF_LANG['msgTransToolLanguageOnePlural'] . '" disabled="disabled" /></td>' . "\n"; } else { if (array_key_exists($key2, $rightVarsOnly)) {