Revision: 1217
http://mrbs.svn.sourceforge.net/mrbs/?rev=1217&view=rev
Author: cimorrison
Date: 2009-10-08 06:16:54 +0000 (Thu, 08 Oct 2009)
Log Message:
-----------
- Reverted Revision 1211 (ie put entities back in)
- entities are now replaced in the CSV report header row using
mrbs_entity_decode()
Revision Links:
--------------
http://mrbs.svn.sourceforge.net/mrbs/?rev=1211&view=rev
Modified Paths:
--------------
mrbs/trunk/web/lang.fr
mrbs/trunk/web/report.php
Modified: mrbs/trunk/web/lang.fr
===================================================================
--- mrbs/trunk/web/lang.fr 2009-10-07 15:20:21 UTC (rev 1216)
+++ mrbs/trunk/web/lang.fr 2009-10-08 06:16:54 UTC (rev 1217)
@@ -22,8 +22,8 @@
$vocab["report"] = "Rapport";
$vocab["admin"] = "Gestion";
$vocab["help"] = "Aide";
-$vocab["search"] = "Recherche ";
-$vocab["not_php3"] = "ATTENTION : Cette application peut ne pas
fonctionner correctement avec PHP3";
+$vocab["search"] = "Recherche ";
+$vocab["not_php3"] = "ATTENTION : Cette application peut ne pas
fonctionner correctement avec PHP3";
// Used in day.php
$vocab["bookingsfor"] = "Réservation pour<br>";
@@ -49,13 +49,13 @@
$vocab["editseries"] = "Éditer une périodicité";
$vocab["copyseries"] = "Copier une périodicité";
$vocab["namebooker"] = "Brève description";
-$vocab["fulldescription"] = "Description complète :<br> (Nombre
de personnes,<br> Interne/Externe etc)";
-$vocab["date"] = "Date ";
-$vocab["start_date"] = "Date de début ";
-$vocab["end_date"] = "Date de fin ";
-$vocab["time"] = "Heure ";
-$vocab["period"] = "Période ";
-$vocab["duration"] = "Durée ";
+$vocab["fulldescription"] = "Description
complète :<br> (Nombre de
personnes,<br> Interne/Externe etc)";
+$vocab["date"] = "Date ";
+$vocab["start_date"] = "Date de début ";
+$vocab["end_date"] = "Date de fin ";
+$vocab["time"] = "Heure ";
+$vocab["period"] = "Période ";
+$vocab["duration"] = "Durée ";
$vocab["seconds"] = "secondes";
$vocab["minutes"] = "minutes";
$vocab["hours"] = "heures";
@@ -64,11 +64,11 @@
$vocab["years"] = "années";
$vocab["periods"] = "periodes";
$vocab["all_day"] = "Journée entière";
-$vocab["type"] = "Type ";
+$vocab["type"] = "Type ";
$vocab["internal"] = "Interne";
$vocab["external"] = "Externe";
$vocab["save"] = "Enregistrer";
-$vocab["rep_type"] = "Type de périodicité ";
+$vocab["rep_type"] = "Type de périodicité ";
$vocab["rep_type_0"] = "Aucune";
$vocab["rep_type_1"] = "Jour";
$vocab["rep_type_2"] = "Semaine";
@@ -76,10 +76,10 @@
$vocab["rep_type_4"] = "Année";
$vocab["rep_type_5"] = "Mois, même jour semaine";
$vocab["rep_type_6"] = "tous les n semaines";
-$vocab["rep_end_date"] = "Date de fin de périodicité ";
-$vocab["rep_rep_day"] = "Jour ";
+$vocab["rep_end_date"] = "Date de fin de périodicité ";
+$vocab["rep_rep_day"] = "Jour ";
$vocab["rep_for_weekly"] = "(pour n-semaines)";
-$vocab["rep_freq"] = "Fréquence ";
+$vocab["rep_freq"] = "Fréquence ";
$vocab["rep_num_weeks"] = "Intervalle de semaines";
$vocab["rep_for_nweekly"] = "(pour n-semaines)";
$vocab["ctrl_click"] = "CTRL + clic souris pour sélectionner plusieurs
salles";
@@ -93,10 +93,10 @@
$vocab["useful_n-weekly_value"] = "un intervalle de semaines valide.";
// Used in view_entry.php
-$vocab["description"] = "Description ";
-$vocab["room"] = "Salle ";
-$vocab["createdby"] = "Créée par ";
-$vocab["lastupdate"] = "Dernière mise à jour ";
+$vocab["description"] = "Description ";
+$vocab["room"] = "Salle ";
+$vocab["createdby"] = "Créée par ";
+$vocab["lastupdate"] = "Dernière mise à jour ";
$vocab["deleteentry"] = "Effacer une réservation";
$vocab["deleteseries"] = "Effacer une périodicité";
$vocab["confirmdel"] = "Êtes-vous sûr\\nde vouloir effacer\\ncette
réservation ?\\n\\n";
@@ -107,8 +107,8 @@
// Used in edit_entry_handler.php
$vocab["error"] = "Erreur";
$vocab["sched_conflict"] = "Conflit entre réservations";
-$vocab["conflict"] = "La nouvelle réservation entre en conflit avec
la(les) réservation(s) suivante(s) ";
-$vocab["too_may_entrys"] = "Les options choisies créeront trop de
réservations.<br>Choisissez des options différentes !";
+$vocab["conflict"] = "La nouvelle réservation entre en conflit avec
la(les) réservation(s) suivante(s) ";
+$vocab["too_may_entrys"] = "Les options choisies créeront trop de
réservations.<br>Choisissez des options différentes !";
$vocab["returncal"] = "Retour au calendrier";
$vocab["failed_to_acquire"] = "Erreur, impossible d'obtenir l'accès exclusif
à la base de données";
$vocab["invalid_booking"] = "Réservation invalide";
@@ -139,7 +139,7 @@
//$vocab["user_password"] = Use the same as above, for consistency.
$vocab["user_email"] = "Adresse courriel";
$vocab["password_twice"] = "Pour modifier le mot de passe, tapez le
nouveau mot de passe ici deux fois";
-$vocab["passwords_not_eq"] = "Erreur : Les mots de passe ne sont pas
identiques.";
+$vocab["passwords_not_eq"] = "Erreur : Les mots de passe ne sont pas
identiques.";
$vocab["add_new_user"] = "Ajouter un nouvel utilisateur";
$vocab["action"] = "Action";
$vocab["user"] = "Utilisateur";
@@ -152,7 +152,7 @@
// Used in search.php
$vocab["invalid_search"] = "Recherche invalide.";
-$vocab["search_results"] = "Résultats de la recherche pour ";
+$vocab["search_results"] = "Résultats de la recherche pour ";
$vocab["nothing_found"] = "Aucune réservation n'a été trouvée.";
$vocab["records"] = "Enregistrements ";
$vocab["through"] = " à ";
@@ -167,20 +167,20 @@
$vocab["from"] = "À partir de";
// Used in report.php
-$vocab["report_on"] = "Rapport des réservations ";
-$vocab["report_start"] = "Date de début du rapport ";
-$vocab["report_end"] = "Date de fin du rapport ";
-$vocab["match_area"] = "Lieu ";
-$vocab["match_room"] = "Salle ";
-$vocab["match_type"] = "Type ";
+$vocab["report_on"] = "Rapport des réservations ";
+$vocab["report_start"] = "Date de début du rapport ";
+$vocab["report_end"] = "Date de fin du rapport ";
+$vocab["match_area"] = "Lieu ";
+$vocab["match_room"] = "Salle ";
+$vocab["match_type"] = "Type ";
$vocab["ctrl_click_type"] = "CTRL + clic souris pour sélectionner plusieurs
types";
-$vocab["match_entry"] = "Brève description ";
-$vocab["match_descr"] = "Description complète ";
-$vocab["include"] = "Inclure ";
+$vocab["match_entry"] = "Brève description ";
+$vocab["match_descr"] = "Description complète ";
+$vocab["include"] = "Inclure ";
$vocab["report_only"] = "le rappport seulement";
$vocab["summary_only"] = "le résumé seulement";
$vocab["report_and_summary"] = "le rapport et le résumé";
-$vocab["summarize_by"] = "Résumé par ";
+$vocab["summarize_by"] = "Résumé par ";
$vocab["sum_by_descrip"] = "Brève description";
$vocab["sum_by_creator"] = "Créateur";
$vocab["entry_found"] = "réservation trouvée";
@@ -189,9 +189,9 @@
$vocab["summary_header_per"] = "Décompte des Périodes Réservées";
$vocab["total"] = "Total";
$vocab["submitquery"] = "Afficher le rapport";
-$vocab["sort_rep"] = "Trier par ";
+$vocab["sort_rep"] = "Trier par ";
$vocab["sort_rep_time"] = "Date/Heure";
-$vocab["rep_dsp"] = "Afficher ";
+$vocab["rep_dsp"] = "Afficher ";
$vocab["rep_dsp_dur"] = "la durée";
$vocab["rep_dsp_end"] = "l'heure de fin";
@@ -212,7 +212,7 @@
$vocab["edit"] = "Modifier";
$vocab["delete"] = "Supprimer";
$vocab["rooms"] = "Salles";
-$vocab["in"] = "de :";
+$vocab["in"] = "de :";
$vocab["noareas"] = "Pas de lieux";
$vocab["addarea"] = "Ajouter un lieu";
$vocab["name"] = "Nom";
@@ -229,18 +229,18 @@
$vocab["backadmin"] = "Revenir à l'écran de gestion";
$vocab["editroomarea"] = "Modifiez la description d'un lieu ou d'une
salle";
$vocab["editroom"] = "Modifier la salle";
-$vocab["update_room_failed"] = "La mise à jour de la salle a échoué : ";
-$vocab["error_room"] = "Erreur : salle ";
+$vocab["update_room_failed"] = "La mise à jour de la salle a échoué : ";
+$vocab["error_room"] = "Erreur : salle ";
$vocab["not_found"] = " non trouvée";
-$vocab["update_area_failed"] = "La mise à jour du lieu a échoué : ";
-$vocab["error_area"] = "Erreur : lieu ";
-$vocab["room_admin_email"] = "Courriels des responsables ";
-$vocab["area_admin_email"] = "Courriels des responsables ";
-$vocab["invalid_email"] = "Adresse courriel invalide !";
+$vocab["update_area_failed"] = "La mise à jour du lieu a échoué : ";
+$vocab["error_area"] = "Erreur : lieu ";
+$vocab["room_admin_email"] = "Courriels des responsables ";
+$vocab["area_admin_email"] = "Courriels des responsables ";
+$vocab["invalid_email"] = "Adresse courriel invalide !";
// Used in del.php
$vocab["deletefollowing"] = "Vous allez supprimer les réservations
suivantes";
-$vocab["sure"] = "Êtes-vous certains ?";
+$vocab["sure"] = "Êtes-vous certains ?";
$vocab["YES"] = "OUI";
$vocab["NO"] = "NON";
$vocab["delarea"] = "Vous devez supprimer toutes les salles de ce
lieu avant de pouvoir le supprimer<p>";
@@ -254,6 +254,6 @@
$vocab["for_any_questions"] = "si vous avez une question qui n'est pas
traitée ici.";
// Used in mysql.inc AND pgsql.inc
-$vocab["failed_connect_db"] = "Erreur grave : échec de la connexion à la base
de données";
+$vocab["failed_connect_db"] = "Erreur grave : échec de la connexion à la
base de données";
?>
Modified: mrbs/trunk/web/report.php
===================================================================
--- mrbs/trunk/web/report.php 2009-10-07 15:20:21 UTC (rev 1216)
+++ mrbs/trunk/web/report.php 2009-10-08 06:16:54 UTC (rev 1217)
@@ -127,26 +127,46 @@
{
global $csv_row_sep;
- // initialise the row
- $line = "";
- // add values, one by one
- $line = csv_row_add_value($line, get_vocab("area") . ' - ' .
get_vocab("room"));
- $line = csv_row_add_value($line, get_vocab("namebooker"));
+ // Build an array of values to go into the header row
+ $values = array();
+ $values[] = get_vocab("area") . ' - ' . get_vocab("room");
+ $values[] = get_vocab("namebooker");
if ($display == "d")
{
- $line = csv_row_add_value($line, get_vocab("start_date") . ' - ' .
get_vocab("duration"));
+ $values[] = get_vocab("start_date") . ' - ' . get_vocab("duration");
}
else
{
- $line = csv_row_add_value($line, get_vocab("start_date") . ' - ' .
get_vocab("end_date"));
+ $values[] = get_vocab("start_date") . ' - ' . get_vocab("end_date");
}
- $line = csv_row_add_value($line, get_vocab("fulldescription_short"));
- $line = csv_row_add_value($line, get_vocab("type"));
- $line = csv_row_add_value($line, get_vocab("createdby"));
- $line = csv_row_add_value($line, get_vocab("lastupdate"));
- // terminate the row
- $line .= $csv_row_sep;
- // output the row
+ $values[] = get_vocab("fulldescription_short");
+ $values[] = get_vocab("type");
+ $values[] = get_vocab("createdby");
+ $values[] = get_vocab("lastupdate");
+
+ // Remove any HTML entities from the values
+ $n_values = count($values);
+ $charset = get_charset();
+ // Find out what the non-breaking space is in this character set
+ $nbsp = mrbs_entity_decode(' ', ENT_NOQUOTES, $charset);
+ for ($i=0; $i < $n_values; $i++)
+ {
+ $values[$i] = mrbs_entity_decode($values[$i], ENT_NOQUOTES, $charset);
+ // Trim non-breaking spaces from the string
+ $values[$i] = trim($values[$i], $nbsp);
+ // And do an ordinary trim
+ $values[$i] = trim($values[$i]);
+ }
+
+ // Now turn the array of values into a CSV row
+ $line = ""; // initialise the row
+ foreach ($values as $v)
+ {
+ $line = csv_row_add_value($line, $v);
+ }
+ $line .= $csv_row_sep; // terminate the row
+
+ // Output the row
echo $line;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits