Login   Register  
PHP Classes
elePHPant
Icontem

File: datemanager-lang.inc.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of djwo  >  DateManager  >  datemanager-lang.inc.php  >  Download  
File: datemanager-lang.inc.php
Role: Auxiliary script
Content type: text/plain
Description: Fichier des langues
Class: DateManager
Class to manipulate dates
Author: By
Last change:
Date: 11 years ago
Size: 2,441 bytes
 

Contents

Class file image Download
<?php
// Gestion des langues
switch (strtolower(($this-> langage))) {
    
    
// Français
    
case "fr" :
            
// Les jours
            
$this-> s_day[0] = "dimanche";
            
$this-> s_day[1] = "lundi";
            
$this-> s_day[2] = "mardi";
            
$this-> s_day[3] = "mercredi";
            
$this-> s_day[4] = "jeudi";
            
$this-> s_day[5] = "vendredi";
            
$this-> s_day[6] = "samedi";
            
            
// Les mois
            
$this-> s_mon[1]  = "Janvier";
            
$this-> s_mon[2]  = "Février";
            
$this-> s_mon[3]  = "Mars";
            
$this-> s_mon[4]  = "Avril";
            
$this-> s_mon[5]  = "Mai";
            
$this-> s_mon[6]  = "Juin";
            
$this-> s_mon[7]  = "Juillet";
            
$this-> s_mon[8]  = "Août";
            
$this-> s_mon[9]  = "Septembre";
            
$this-> s_mon[10] = "Octobre";
            
$this-> s_mon[11] = "Novembre";
            
$this-> s_mon[12] = "Décembre";
            break;
    
    
// Anglais - Us
    
case "us" :
    case 
"en" :
            
// Les jours
            
$this-> s_day[0] = "sunday";
            
$this-> s_day[1] = "monday";
            
$this-> s_day[2] = "tuesday";
            
$this-> s_day[3] = "wednesday";
            
$this-> s_day[4] = "thursday";
            
$this-> s_day[5] = "friday";
            
$this-> s_day[6] = "saturday";
            
            
// Les mois
            
$this-> s_mon[1]  = "January";
            
$this-> s_mon[2]  = "February";
            
$this-> s_mon[3]  = "March";
            
$this-> s_mon[4]  = "April";
            
$this-> s_mon[5]  = "May";
            
$this-> s_mon[6]  = "June";
            
$this-> s_mon[7]  = "July";
            
$this-> s_mon[8]  = "August";
            
$this-> s_mon[9]  = "September";
            
$this-> s_mon[10] = "October";
            
$this-> s_mon[11] = "November";
            
$this-> s_mon[12] = "December";
            break;
    
    
// Espagnol
    
case "es" :
            
// Les jours
            
$this-> s_day[0] = "domingo";
            
$this-> s_day[1] = "lunes";
            
$this-> s_day[2] = "martes";
            
$this-> s_day[3] = "miércoles";
            
$this-> s_day[4] = "jueves";
            
$this-> s_day[5] = "viernes";
            
$this-> s_day[6] = "sábado";
            
            
// Les mois
            
$this-> s_mon[1]  = "Enero";
            
$this-> s_mon[2]  = "Febrero";
            
$this-> s_mon[3]  = "Marzo";
            
$this-> s_mon[4]  = "Abril";
            
$this-> s_mon[5]  = "Mayo";
            
$this-> s_mon[6]  = "Junio";
            
$this-> s_mon[7]  = "Julio";
            
$this-> s_mon[8]  = "Agosto";
            
$this-> s_mon[9]  = "Septiembre";
            
$this-> s_mon[10] = "Octubre";
            
$this-> s_mon[11] = "Noviembre";
            
$this-> s_mon[12] = "Diciembre";
            break;
    
    
// Erreur
    
default :
            echo 
"La langue que vous avez spécifié n'existe pas. Vous pouvez la rajouter dans le fichier " basename(__FILE__)  . ".";
            exit;
}
?>