home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ee.pdx.edu
/
2014.02.ftp.ee.pdx.edu.tar
/
ftp.ee.pdx.edu
/
oss
/
cvs-2004
/
bahasa
/
php
/
Indonesia.php,v
< prev
next >
Wrap
Text File
|
2003-08-19
|
5KB
|
193 lines
head 1.3;
access;
symbols
Initial:1.1.1.1 bule:1.1.1;
locks; strict;
comment @# @;
1.3
date 2003.08.19.06.08.57; author bule; state Exp;
branches;
next 1.2;
1.2
date 2003.08.14.19.38.49; author bule; state Exp;
branches;
next 1.1;
1.1
date 2003.08.12.19.18.23; author bule; state Exp;
branches
1.1.1.1;
next ;
1.1.1.1
date 2003.08.12.19.18.23; author bule; state Exp;
branches;
next ;
desc
@@
1.3
log
@*** empty log message ***
@
text
@<?
require_once("Dictionary.php");
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
// Project Name: Bahasa Indonesia Dictionary
// Directory: bahasa/php
// File Name: Indonesia.php
// Author(s): John L. Whiteman
// Created: June 23, 2003
// Modified: August 18, 2003
// Description: This PHP class file inherits from the parent
// Dictionary.php class file. It contains various
// methods that support data operations specific
// to Bahasa Indonesia. This file should reside
// under the same directory as Dictionary.php and
// both should reside under a directory outside of
// your web server's public virtual directories as
// a security precaution.
//
// Copyright (c) 2003 John L. Whiteman
//
// Permission is herby granted, free of charge, to any person obtaining a
// copy of this software, data, and associated documentation files
// (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
// ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHERE IN AN ACTION OF CONTRACT,
// TORT OR OTHERWISE, ARISING IN THE SOFTWARE.
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// Indonesia()
// get_english_date()
// get_indonesian_date()
///////////////////////////////////////////////////////////////////////////////
class Indonesia extends Dictionary {
///////////////////////////////////////////////////////////////////////
//CLASS GLOBAL VARIABLES.
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
//This is the class constructor.
///////////////////////////////////////////////////////////////////////
function Indonesia() {
//Call the Dictionary.pm constructor
$this->Dictionary();
return;
}
///////////////////////////////////////////////////////////////////////
//Returns English date string using Indonesian proper date format
///////////////////////////////////////////////////////////////////////
function get_english_date() {
$today = getdate();
$emonth = $today['month'];
$emday = $today['mday'];
$eyear = $today['year'];
$ewday = $today['wday'];
$eweekday = $today['weekday'];
return("${eweekday}, ${emday} ${emonth}, ${eyear}");
}
///////////////////////////////////////////////////////////////////////
//Returns Indonesian date string in Indonesian proper date format
///////////////////////////////////////////////////////////////////////
function get_indonesian_date() {
$ei_month = array();
$ei_day_of_week = array();
$ei_month["January"] = "Januari";
$ei_month["February"] = "Februari";
$ei_month["March"] = "Maret";
$ei_month["April"] = "April";
$ei_month["May"] = "Mei";
$ei_month["June"] = "Juni";
$ei_month["July"] = "Juli";
$ei_month["August"] = "Agustus";
$ei_month["September"] = "September";
$ei_month["October"] = "Oktober";
$ei_month["November"] = "November";
$ei_month["December"] = "Desember";
$ei_day_of_week["Sunday"] = "Minngu";
$ei_day_of_week["Monday"] = "Senin";
$ei_day_of_week["Tuesday"] = "Selasu";
$ei_day_of_week["Wednesday"] = "Rabu";
$ei_day_of_week["Thursday"] = "Kamis";
$ei_day_of_week["Friday"] = "Jumat";
$ei_day_of_week["Saturday"] = "Sabtu";
$today = getdate();
$emonth = $today['month'];
$emday = $today['mday'];
$eyear = $today['year'];
$ewday = $today['wday'];
$eweekday = $today['weekday'];
$imonth = $ei_month["$emonth"];
$iweekday = $ei_day_of_week["$eweekday"];
return("${iweekday}, ${emday} ${imonth}, ${eyear}");
}
}
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
?>
@
1.2
log
@*** empty log message ***
@
text
@d2 39
a40 1
require_once("/u/bule/bahasa_dev/php/Dictionary.php");
@
1.1
log
@Initial revision
@
text
@d2 1
a2 1
require_once("Dictionary.php");
@
1.1.1.1
log
@Bahasa Indonesia Dictionary
@
text
@@