Пример #1
0
<?php

/**
 * $Id: loka.php 9 2009-03-03 22:37:27Z NaDiN $
 *
 * Program Loka Tarjamah Otomatis Basa Indonésia - Basa Sunda
 *
 * Copyright (C) 2007 Dian Tresna Nugraha <*****@*****.**>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the
 * Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
define('TARJ_DIR', 'inc/');
global $_START;
$_START = microtime(true);
require_once TARJ_DIR . 'NL_Translator_ID2SU.class.inc';
$tarjamah = new NL_Translator_ID2SU();
print "<!-- Kamus loaded in " . (microtime(true) - $_START) . " usec -->\n";
$tarjamah->HandleRequestSite();
Пример #2
0
<?php

/**
 * $Id: teks.php 3 2009-02-22 22:57:27Z NaDiN $
 * 
 * Program Loka Tarjamah Otomatis Basa Indonésia - Basa Sunda
 * 
 * Copyright (C) 2007 Dian Tresna Nugraha <*****@*****.**>
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the 
 * Free Software Foundation, Inc., 
 * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
define('TARJ_DIR', 'inc/');
require_once TARJ_DIR . 'NL_Translator_ID2SU.class.inc';
$tarjamah = new NL_Translator_ID2SU();
$tarjamah->HandleRequestText();
Пример #3
0
<?php

define('TARJ_DIR', '../inc/');
require_once TARJ_DIR . 'NL_Translator_ID2SU.class.inc';
$kalimahs = array();
$kalimahs[] = array('Darmawati tertangkap tangan bersama anggota Komisi V Dewan Perwakilan Rakyat dari Fraksi Partai Amanat Nasional, Abdul Hadi Jamal.');
$kalimahs[] = array('Ketiga proyek itu telah ditender dan dimenangkan perusahaan yang terkait dengan Hontjo Kurniawan.');
$kalimahs[] = array('Sebagai jalan keluar, saat ini Ikapi tengah mendorong pemerintah untuk berani memborong semua buku sekolah dan membagikannya ke seluruh siswa secara gratis.');
$kalimahs[] = array('Dia menjabat sebagai Kepala Sekolah Menengah Atas Negeri Tiga Bandung.');
$kalimahs[] = array('Saya dapat pepaya.');
$kalimahs[] = array('Saya dapat menghitung.');
$nl = new NL_Translator_ID2SU();
print "<table>\n";
foreach ($kalimahs as $kalimah) {
    $trans = $nl->TranslateText($kalimah[0]);
    print "<tr><td>{$kalimah['0']}</td><td>{$trans}</td></tr>\n";
}
print "</table>\n";