Subversion Repositories ALCASAR

Rev

Rev 1160 | Rev 1277 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
508 richard 1
<?php
2
/*
3
Fichier de gestion des langues
4
Pour l'utilisation de ce fichier mettre une variable
5
$origine égal au nom du fichier php contenant l'include sans l'extension
6
avant l'include du fichier langues.php
7
*/
8
// Choix de la langue
9
$Language = 'en';
10
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
11
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
12
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
13
//-------------------
14
// En fonction de la langue et de la page d'appel remplissage des variables
15
switch ($Language){
16
	case 'fr':
17
	//Français
907 richard 18
		$l_monday="lundi"; $l_tuesday="mardi"; $l_wednesday="mercredi"; $l_thursday="jeudi"; $l_friday="vendredi"; $l_saturday="samedi"; $l_sunday="dimanche";
19
		$l_monthly="mensuelle";$l_weekly="hebdomadaire";$l_daily="journalière";$l_by_session="par session";
20
		$l_day = "Jour";
21
	       	$l_limit="limite";
22
	       	$l_daily_limit="limite journalière";
23
		$l_used_time = "Temps utilisé";
24
		$l_last7days_status = "&Eacute;tat sur les 7 derniers jours";
25
		$l_connections_number = "Nombre de connexions";
26
		$l_download = "Données téléchargées";
27
		$l_upload = "Données envoyées";
28
		$l_average = "moyenne";
901 richard 29
		$l_already_exist = "existe d&eacute;j&agrave;";
910 richard 30
		$l_search_filter = "Filtre de recherche";
31
		$l_search_criteria = "Critère de recherche";
32
		$l_search = "Lancer la recherche";
33
		$l_no_user_found = "Aucun usager trouvé";
34
		$l_special_attribute = "Attribut particulier";
35
		$l_attribute = "Attribut";
989 franck 36
		$l_value = "Valeur<br>(vide = tous)";
901 richard 37
		$l_user = "Usager";
38
		$l_users_managment = "Gestion des usagers";
39
		$l_groups_managment = "Gestion des groupes";
40
		$l_login = "Identifiant";
41
		$l_password = "Mot de passe";
907 richard 42
		$l_new_password = "Nouveau mot de passe";
43
		$l_passwd_gen = "générer";
911 richard 44
		$l_user_create = "Créer un usager";			
45
		$l_nb_users = "Nombre d'usagers";			
907 richard 46
		$l_group_create = "Créer un groupe";			
911 richard 47
		$l_group_select = "Selectionnez un groupe";			
901 richard 48
		$l_group = "Groupe";
49
		$l_created_groups = "Groupe(s) déjà créé(s)";
50
		$l_group_name = "Nom du groupe";
51
		$l_group_members = "Membres du groupe :<br>(séparé par un espace ou un 'retour chariot')";
911 richard 52
		$l_group_members_remove = "Supprimer tous les membres de ce groupe";
925 richard 53
		$l_group_members_to_remove = "<b>Membres à effacer :</b><br>Les membres sélectionnés seront effacés du groupe.<br>Utilisez 'shift' ou 'Ctrl' pour une sélection multiple.";
54
		$l_group_members_to_add = "<b>Membres à ajouter :</b><br>Separez les membres avec un 'espace' ou un 'retour chariot'.";
55
		$l_manage_selected_user= "Gérer l'usager sélectionné";
910 richard 56
		$l_group_member = "Membre du groupe";
901 richard 57
		$l_group_empty = "La liste des groupes est vide";
910 richard 58
		$l_main_group = "Le groupe principal est surligné";
912 richard 59
		$l_no_open_session = "Aucune session ouverte";
60
		$l_opened_sessions = "session(s) ouverte(s)";
61
		$l_active_accounting = "comptabilité(s) active(s)";
62
		$l_want_to_close ="Voulez-vous les fermer ?";
63
		$l_yes_close ="Oui, fermer";
64
		$l_status ="&Eacute;TAT";
901 richard 65
		$l_personal_info ="INFORMATIONS PERSONNELLES";
66
		$l_connections ="CONNEXIONS";
67
		$l_open_sessions ="SESSIONS OUVERTES";
68
		$l_members ="MEMBRES";
69
		$l_attributes ="ATTRIBUTS";
70
		$l_remove ="SUPPRIMER";
907 richard 71
		$l_locked_user ="Le compte usager est verrouillé";
72
		$l_user_remain_login ="L'usager peut se connecter pendant ";
73
		$l_user_expired ="Le compte usager a expiré";
74
		$l_connected ="Connecté depuis";
75
		$l_connection_time ="Durée de connexion";
76
		$l_total_connections_time ="Durée cumulée des connexions";
77
		$l_user_never_login ="Cet usager ne s'est jamais connecté";
78
		$l_user_not_login_yet ="Cet usager n'est pas connecté actuellement";
79
		$l_last_login ="Dernière connexion";
80
		$l_remain_time ="Temps de connexion restant";
901 richard 81
		$l_name = "Nom et pr&eacute;nom";
82
		$l_email = "Adresse de couriel";
910 richard 83
		$l_homephone = "Numéro de téléphone privé";
84
		$l_telephonenumber = "Numéro de téléphone de bureau";
85
		$l_mobile = "Numéro de téléphone portable";
901 richard 86
		$l_lang_ticket = "Langue du ticket";
87
		$l_simultaneous_use = "Nombre de session simultanée";
88
		$l_max_all_session = "Durée maximale de connexion<br>(en secondes)";
89
		$l_expiration = "Date d'expiration";
907 richard 90
		$l_session_timeout = "Durée maximale d'une session<br>(en secondes)";
91
		$l_daily_timeout = "Durée de connexion maximale journalière<br>(en secondes)";
92
		$l_monthly_timeout = "Durée de connexion maximale mensuelle<br>(en secondes)";
901 richard 93
		$l_login_time = "Période hebdomadaire";
94
		$l_max_input_octets = "Maximum de données émises<br>(en octets)";
95
		$l_max_output_octets = "Maximum de données reçues<br>(en octets)";
96
		$l_max_total_octets = "Maximum de données échangées<br>(en octets)";
97
		$l_max_bandwidth_up = "Limite de débit montant<br>(en kbits/seconde)";
98
		$l_max_bandwidth_down = "Limite de débit descendant<br>(en kbits/seconde)";
99
		$l_wispr_redirection = "URL de redirection";
100
		$l_click_for_help = "Cliquez pour afficher l'aide sur cet attribut";	
101
		$l_show_profile = "Afficher le profil";
964 franck 102
		$l_are_you_sure = "&Ecirc;tes-vous sûr de vouloir supprimer";
911 richard 103
		$l_yes_remove = "Oui, supprimer";
1091 stephane 104
		$l_create = "Créer";
910 richard 105
		$l_change = "Modifier";
1091 stephane 106
		$l_or = "Ou";
107
		$l_create_multiple = "Créer plusieurs tickets";
108
		$l_create_multiple_comment = "<br>Remarques : lors de la création plusieurs tickets simultanement :<br>
109
		- l'identifiant et le mot de passe sont générés aléatoirement,<br>
110
		- les champs \"Nom, prénom\" et \"Adresse de couriel\" ne sont pas pris en compte.<br> ";
1099 stephane 111
		$l_createTicketsMSG = "Saisissez le nombre d\'utilisateurs à créer";
1163 crox53 112
		$l_spoofing = "Adresse(s) MAC usurpée(s) (Watchdog)";
113
		$l_virus = "Virus bloqué(s) (HAVP)";
114
		$l_fail2ban = "Adresse(s) IP bloquée(s) (Fail2Ban)";
508 richard 115
	break;
116
	default :
117
	//English
907 richard 118
		$l_monday="monday"; $l_tuesday="tuesday"; $l_wednesday="wednesday"; $l_thursday="thursday"; $l_friday="friday"; $l_saturday="saturday"; $l_sunday="sunday";
119
		$l_monthly="monthly";$l_weekly="weekly";$l_daily="daily";$l_by_session="by session";
120
		$l_day = "Day";
121
		$l_limit = "limit";
122
	       	$l_daily_limit="daily limit";
123
		$l_used_time = "Used time";
124
		$l_last7days_status = "Last 7 days status";
901 richard 125
		$l_already_exist = "already exist";
907 richard 126
		$l_connections_number = "Connections number";
127
		$l_download = "Downloaded data";
128
		$l_upload = "Uploaded data";
129
		$l_average = "average";
901 richard 130
		$l_user = "User";
131
		$l_users_managment = "Users managment";
132
		$l_groups_managment = "Groups managment";
910 richard 133
		$l_search_filter = "Search filter";
134
		$l_search_criteria = "Search criteria";
135
		$l_search = "Start search";
136
		$l_no_user_found = "No user found";
137
		$l_special_attribute = "Special attribute";
138
		$l_attribute = "Attribute";
139
		$l_value = "Value<br>(empty = all)";
901 richard 140
		$l_login = "Login";
141
		$l_password = "Password";
907 richard 142
		$l_new_password = "New password";
901 richard 143
		$l_passwd_gen = "generate";
1160 stephane 144
		$l_user_create = "Create a user";
145
		$l_nb_users = "Number of users";
146
		$l_group_create = "Create a group";
147
		$l_group_select = "Select a group";
901 richard 148
		$l_group = "Group";
149
		$l_created_groups = "Already created group(s)";
150
		$l_group_name = "Group name";
151
		$l_group_members = "Members of group :<br>(separate by a 'space' or a 'carriage return')";
911 richard 152
		$l_group_members_remove = "Remove all members of this group";
925 richard 153
		$l_group_members_to_remove = "<b>Members to remove :</b><br>The selected members will be remove from the group.<br>Use 'shift' or 'Ctrl' for multiple selection.";
154
		$l_group_members_to_add = "<b>Members to add :</b><br>Separate the members with a 'space' or a 'carriage return'.";
155
		$l_manage_selected_user= "Manage the selected user";
910 richard 156
		$l_group_member = "Member of group";
901 richard 157
		$l_group_empty = "The group list is empty";
910 richard 158
		$l_main_group = "The main group is highlighted";
912 richard 159
		$l_no_open_session = "No open session";
160
		$l_opened_sessions = "opened session(s)";
161
		$l_active_accounting = "active accounting(s)";
162
		$l_want_to_close ="Do you want to close them ?";
163
		$l_yes_close ="Yes, close";
901 richard 164
		$l_status ="STATUS";
165
		$l_personal_info ="PERSONAL INFORMATIONS";
166
		$l_connections ="CONNECTIONS";
167
		$l_open_sessions ="OPEN SESSIONS";
168
		$l_members ="MEMBERS";
169
		$l_attributes ="ATTRIBUTES";
170
		$l_remove ="REMOVE";
907 richard 171
		$l_locked_user ="The user account is locked";
172
		$l_user_remain_login ="The user can log in during ";
173
		$l_user_expired ="The user account has expired";
174
		$l_connected ="Connected from";
175
		$l_connection_time ="Connection time";
176
		$l_total_connections_time ="Total connections time";
177
		$l_user_never_login ="This user has never logged in";
178
		$l_user_not_login_yet ="This user isn't connected yet";
179
		$l_last_login ="Last connection";
180
		$l_remain_time ="Remain connection time";
901 richard 181
		$l_name = "Surname and name";
182
		$l_email = "Email Address";	
910 richard 183
		$l_homephone = "Personal phone number";
184
		$l_telephonenumber = "Office phone number";
185
		$l_mobile = "Mobile phone number";
901 richard 186
		$l_lang_ticket = "Voucher language";	
187
		$l_simultaneous_use = "Number of concurent login";
188
		$l_max_all_session = "Maximum time of connection<br>(in seconds)";
189
		$l_expiration = "Expiration date";
190
		$l_session_timeout = "Maximum time for a session<br>(in seconds)";
191
		$l_daily_timeout = "Maximum time of connection per day<br>(in seconds)";
192
		$l_monthly_timeout = "Maximum time of connection per month<br>(in seconds)";
193
		$l_login_time = "Weekly period";
194
		$l_max_input_octets = "Maximum of data uploaded<br>(in octets)";
195
		$l_max_output_octets = "Maximum of data downloaded<br>(in octets)";
196
		$l_max_total_octets = "Maximum of data exchanged<br>(in octets)";
197
		$l_max_bandwidth_up = "Maximum upload bandwidth<br>(in kbits/second)";
198
		$l_max_bandwidth_down = "Maximum download bandwidth<br>(in kbits/second)";
199
		$l_wispr_redirection = "Redirection URL";
200
		$l_click_for_help = "Click to show help about this attribute";	
201
		$l_show_profile = "Show profile";
911 richard 202
		$l_are_you_sure = "Are you sure to remove";
203
		$l_yes_remove = "Yes, remove";
901 richard 204
		$l_create = "Create";
910 richard 205
		$l_change = "Change";
1091 stephane 206
		$l_or = "Or";
207
		$l_create_multiple = "Create several tickets";
208
		$l_create_multiple_comment = "<br>Note: when creating multiple tickets simultaneously :<br>
209
		- username and password are randomly generated,<br>
210
		- fields \"Surname and name\" and \"Email Address\" are not use.<br> ";
1097 stephane 211
		$l_createTicketsMSG = "Enter the number of users to create";
1163 crox53 212
		$l_spoofing = "MAC address spoofed (Watchdog)";
213
		$l_virus = "Virus blocked (HAVP)";
214
		$l_fail2ban = "IP address blocked (Fail2Ban)";
508 richard 215
	break;
1163 crox53 216
 
217
 
218
 
508 richard 219
	}
220
//Langue du Ticket d'impression en fonction de la liste déroulante
913 richard 221
//$langue_imp=$_POST["langue_imp"];
222
switch ($langue_imp){
223
	case 'fr':
224
		$l_title_imp = "TICKET ACC&Egrave;S INTERNET";
225
		$l_login_imp = "Utilisateur :";
226
		$l_password_imp = "Mot de passe :";
227
		$l_max_all_session_imp="Dur&eacute;e totale autoris&eacute;e :";
228
		$l_session_timeout_imp="Dur&eacute;e d'une session :";
229
		$l_max_daily_session_imp="Dur&eacute;e journali&egrave;re :";
230
		$l_max_monthly_session_imp ="Dur&eacute;e mensuelle :";
231
		$l_expiration_imp="Date d'expiration :";
232
		$v_illimit="Illimit&eacute;e";
233
		$v_without="Aucune";
234
	break;
235
	case 'de':
236
		$l_title_imp = "GUTSCHEIN SPRACHE";
237
		$l_login_imp = "Login :";
238
		$l_password_imp = "Passwort :";
239
		$l_max_all_session_imp="Maximale erlaubt Dauer :";
240
		$l_session_timeout_imp="Dauer der Sitzung :";
241
		$l_max_daily_session_imp="Stunden t&auml;glich :";
242
		$l_max_monthly_session_imp ="monatlich Dauer :";
243
		$l_expiration_imp="Verfallsdatum :";
244
		$v_illimit="Unbegrentz";
245
		$v_without="Ohne";
246
	break;
247
	case 'nl':
248
		$l_title_imp = "ONTVANGST INTERNET";
249
		$l_login_imp = "Gebruikers :";
250
		$l_password_imp = "Wachtwoord :";
251
		$l_max_all_session_imp="Maximun all session time :"; // a traduire
252
		$l_session_timeout_imp="Sessieduur :";
253
		$l_max_daily_session_imp="Dagelijkse uren :";
254
		$l_max_monthly_session_imp ="Maandelijkse duur :";
255
		$l_expiration_imp="Vervaldatum :";
256
		$v_illimit="Onbeperkte";
257
		$v_without="Ohne";
258
	break;
259
	case 'es':
260
		$l_title_imp = "BONO INTERNET";
261
		$l_login_imp = "Usuario :";
262
		$l_password_imp = "Contraseña :";
263
		$l_max_all_session_imp="Maximun all session time :"; // a traduire
264
		$l_session_timeout_imp="Duraci&oacute;n de Sesi&oacute;n :";
265
		$l_max_daily_session_imp="Horas diarias :";
266
		$l_max_monthly_session_imp ="Duraci&oacute;n mensual :";
267
		$l_expiration_imp="Fecha de caducidad :";
268
		$v_illimit="Ilimitado";
269
		$v_without="Sin";
270
	break;
271
	case 'it':
272
		$l_title_imp = "RICEVIMENTO INTERNET";
273
		$l_login_imp = "Utenti :";
274
		$l_password_imp = "Password :";
275
		$l_max_all_session_imp="Maximun all session time :"; // a traduire
276
		$l_session_timeout_imp="Durata della sessione :";
277
		$l_max_daily_session_imp="Ore giornaliere :";
278
		$l_max_monthly_session_imp ="Durata mensile :";
279
		$l_expiration_imp="Data di scadenza :";
280
		$v_illimit="Illimitato";
281
		$v_without="Senza";
282
	break;		
283
	default:
284
		$l_title_imp = "INTERNET VOUCHER";
285
		$l_login_imp = "Login :";
286
		$l_password_imp = "Password :";
287
		$l_max_all_session_imp="Maximun all session time :";
288
		$l_session_timeout_imp="Session timeout :";
289
		$l_max_daily_session_imp="Max daily session :";
290
		$l_max_monthly_session_imp ="Max monthly session :";
291
		$l_expiration_imp="Expiration date :";
292
		$v_illimit="Unlimited";
293
		$v_without="Without";
294
	break;
508 richard 295
	}
296
?>