Beispiel #1
0
                save_translation($_GET['language']);
            } else {
                echo text('Internal_Error');
            }
            break;
        case 'add':
            if (isset($_POST['newlabel'])) {
                save_translation("en", $_POST['newlabel']);
            } else {
                echo text('Internal_Error');
            }
            break;
        case 'delete':
            if (isset($_GET['id'])) {
                $idlist = explode('**', $_GET['id']);
                save_translation($_GET['language'], '', $idlist);
            } else {
                echo text('Internal_Error');
            }
            break;
    }
    $topblock->headingForm_close();
    $topblock->block_close();
    echo "<BR>";
}
$block1 = new block();
$block1->headingForm(text('administration'));
// Language Selection Form
$block1->form = "langsel";
$block1->openForm("../administration/edit_language.php?offset=" . $offset);
$block1->openContent();
Beispiel #2
0
function get_translation($like_id, $term)
{
    $translation = wikilang($term);
    if ($translation != 'N/A') {
        save_translation($like_id, $translation);
    }
    return $translated;
}