[Mapbender-commits] r1639 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Aug 9 04:48:18 EDT 2007
Author: christoph
Date: 2007-08-09 04:48:18 -0400 (Thu, 09 Aug 2007)
New Revision: 1639
Added:
trunk/mapbender/http/php/mod_digitize_messages.php
trunk/mapbender/http/php/mod_wfsSpatialRequest_messages.php
Log:
i18n of digitize and wfs spatial request module
Added: trunk/mapbender/http/php/mod_digitize_messages.php
===================================================================
--- trunk/mapbender/http/php/mod_digitize_messages.php (rev 0)
+++ trunk/mapbender/http/php/mod_digitize_messages.php 2007-08-09 08:48:18 UTC (rev 1639)
@@ -0,0 +1,118 @@
+<?php
+#$Id: mod_insertWmcIntoDb.php 507 2006-11-20 10:55:57Z christoph $
+#$Header: /cvsroot/mapbender/mapbender/http/javascripts/mod_insertWmcIntoDb.php,v 1.19 2006/03/09 14:02:42 uli_rothstein Exp $
+# Copyright (C) 2002 CCGIS
+#
+# 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, 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."/../extensions/JSON.php");
+require_once(dirname(__FILE__)."/../classes/class_mb_exception.php");
+
+session_start();
+
+$e = new mb_notice("locale: " . $_SESSION["mb_locale"] . "; lang: " . $_SESSION["mb_lang"]);
+setlocale(LC_ALL, $_SESSION["mb_locale"]);
+
+//
+// Messages
+//
+$msg_obj = array();
+$msg_obj["messageDescriptionPolygon"] = _("polygon");
+$msg_obj["messageDescriptionLine"] = _("line");
+$msg_obj["messageDescriptionPoint"] = _("point");
+$msg_obj["messageErrorNotAnInteger"] = _("Not an integer value.");
+$msg_obj["messageErrorNotAFloat"] = _("Not a double value.");
+$msg_obj["messageErrorFieldIsEmpty"] = _("This field may not be empty.");
+$msg_obj["messageErrorFormEvaluation"] = _("Failure during form evaluation.");
+$msg_obj["messageErrorWfsWrite"] = _("An error occured.");
+$msg_obj["messageSuccessWfsWrite"] = _("Success.");
+$msg_obj["messageConfirmDeleteGeomFromDb"] = _("Delete geometry from database?");
+$msg_obj["messageConfirmDeleteAllGeomFromList"] = _("Clear list of geometries?");
+$msg_obj["messageSelectAnOption"] = _("Please select an entry.");
+$msg_obj["buttonLabelSaveGeometry"] = _("Save");
+$msg_obj["buttonLabelUpdateGeometry"] = _("Update");
+$msg_obj["buttonLabelDeleteGeometry"] = _("Delete");
+$msg_obj["buttonLabelAbort"] = _("Abort");
+$msg_obj["errorMessageEpsgMismatch"] = _("Fatal error: EPSG mismatch. ");
+$msg_obj["errorMessageNoGeometrySelected"] = _("No geometry selected!");
+$msg_obj["buttonLabelPointOff"] = _("add point");
+$msg_obj["buttonLabelPointOn"] = _("cancel editing");
+$msg_obj["buttonLabelLineOff"] = _("add line");
+$msg_obj["buttonLabelLineOn"] = _("finish line");
+$msg_obj["buttonLabelPolygonOff"] = _("add polygon");
+$msg_obj["buttonLabelPolygonOn"] = _("close polygon");
+$msg_obj["buttonLabelMoveBasepointOff"] = _("move basepoint");
+$msg_obj["buttonLabelMoveBasepointOn"] = _("move basepoint");
+$msg_obj["buttonLabelInsertBasepointOff"] = _("Insert basepoint");
+$msg_obj["buttonLabelInsertBasepointOn"] = _("Insert basepoint");
+$msg_obj["buttonLabelDeleteBasepointOff"] = _("Delete basepoint");
+$msg_obj["buttonLabelDeleteBasepointOn"] = _("Delete basepoint");
+$msg_obj["buttonLabelClearListOff"] = _("clear list of geometries");
+$msg_obj["buttonLabelClearListOn"] = _("clear list of geometries");
+$msg_obj["buttonDig_wfs_title"] = _("save / update / delete");
+$msg_obj["buttonDig_remove_title"] = _("remove from workspace");
+$msg_obj["buttonDig_removeDb_title"] = _("remove from database");
+$msg_obj["closePolygon_title"] = _("click the first basepoint to close the polygon");
+$msg_obj["measureTagLabelCurrent"] = _("Current: ");
+$msg_obj["measureTagLabelTotal"] = _("Total: ");
+$msg_obj["digitizeDefaultGeometryName"] = _("new");
+
+$json = new Services_JSON();
+$output = $json->encode($msg_obj);
+
+header("Content-type:text/plain; Charset='UTF-8'");
+echo $output;
+
+/*
+messageDescriptionPolygon[language.de] = _("Polygon");
+messageDescriptionLine[language.de] = _("Linie");
+messageDescriptionPoint[language.de] = _("Punkt");
+messageErrorNotAnInteger[language.de] = _("Kein Integer-Wert.");
+messageErrorNotAFloat[language.de] = _("Kein Double-Wert.");
+messageErrorFieldIsEmpty[language.de] = _("Das Feld darf nicht leer sein.");
+messageErrorFormEvaluation[language.de] = _("Fehler bei der Formularauswertung.");
+messageErrorWfsWrite[language.de] = _("Ein Fehler ist aufgetreten.");
+messageSuccessWfsWrite[language.de] = _("Aktion erfolgreich beendet.");
+messageConfirmDeleteGeomFromDb[language.de] = _("Geometrie in der Datenbank löschen?");
+messageConfirmDeleteAllGeomFromList[language.de] = _("Soll die Geometrieliste wirklich geleert werden?");
+messageSelectAnOption[language.de] = _("Bitte treffen Sie eine Auswahl.");
+buttonLabelSaveGeometry[language.de] = _("Speichern");
+buttonLabelUpdateGeometry[language.de] = _("Aktualisieren");
+buttonLabelDeleteGeometry[language.de] = _("Löschen");
+buttonLabelAbort[language.de] = _("Abbrechen");
+errorMessageEpsgMismatch[language.de] = _("Schwerwiegender Fehler: ungleiche EPSGs. ");
+errorMessageNoGeometrySelected[language.de] = _("Keine Geometrie ausgewählt!");
+buttonLabelPointOff[language.de] = _("Punkt hinzufügen");
+buttonLabelPointOn[language.de] = _("Editieren abbrechen");
+buttonLabelLineOff[language.de] = _("Linie hinzufügen");
+buttonLabelLineOn[language.de] = _("Linie abschliessen");
+buttonLabelPolygonOff[language.de] = _("Polygon hinzufügen");
+buttonLabelPolygonOn[language.de] = _("Polygon schliessen");
+buttonLabelMoveBasepointOff[language.de] = _("Stützpunkt verschieben");
+buttonLabelMoveBasepointOn[language.de] = _("Stützpunkt verschieben");
+buttonLabelInsertBasepointOff[language.de] = _("Stützpunkt einfügen");
+buttonLabelInsertBasepointOn[language.de] = _("Stützpunkt einfügen");
+buttonLabelDeleteBasepointOff[language.de] = _("Stützpunkt löschen");
+buttonLabelDeleteBasepointOn[language.de] = _("Stützpunkt löschen");
+buttonLabelClearListOff[language.de] = _("Geometrieliste leeren");
+buttonLabelClearListOn[language.de] = _("Geometrieliste leeren");
+buttonDig_wfs_title[language.de] = _("speichern / aktualisieren / löschen");
+buttonDig_remove_title[language.de] = _("aus der Liste entfernen");
+buttonDig_removeDb_title[language.de] = _("aus der Datenbank löschen");
+measureTagLabelCurrent[language.de] = _("Letztes Segment: ");
+measureTagLabelTotal[language.de] = _("Gesamtlänge: ");
+digitizeDefaultGeometryName[language.de] = _("neu");
+*/
Added: trunk/mapbender/http/php/mod_wfsSpatialRequest_messages.php
===================================================================
--- trunk/mapbender/http/php/mod_wfsSpatialRequest_messages.php (rev 0)
+++ trunk/mapbender/http/php/mod_wfsSpatialRequest_messages.php 2007-08-09 08:48:18 UTC (rev 1639)
@@ -0,0 +1,45 @@
+<?php
+#$Id: mod_insertWmcIntoDb.php 507 2006-11-20 10:55:57Z christoph $
+#$Header: /cvsroot/mapbender/mapbender/http/javascripts/mod_insertWmcIntoDb.php,v 1.19 2006/03/09 14:02:42 uli_rothstein Exp $
+# Copyright (C) 2002 CCGIS
+#
+# 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, 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."/../extensions/JSON.php");
+require_once(dirname(__FILE__)."/../classes/class_mb_exception.php");
+
+session_start();
+
+$e = new mb_notice("locale: " . $_SESSION["mb_locale"] . "; lang: " . $_SESSION["mb_lang"]);
+setlocale(LC_ALL, $_SESSION["mb_locale"]);
+
+//
+// Messages
+//
+$msg_obj = array();
+$msg_obj["buttonLabelRectangle"] = _("select by rectangle");
+$msg_obj["buttonLabelPolygon"] = _("select by polygon");
+$msg_obj["buttonLabelPoint"] = _("select by point");
+$msg_obj["buttonLabelExtent"] = _("select by extent");
+$msg_obj["buttonLabelDialogue"] = _("open dialogue form");
+$msg_obj["errorMessageInvalidExtent"] = _("Invalid box!");
+
+$json = new Services_JSON();
+$output = $json->encode($msg_obj);
+
+header("Content-type:text/plain; Charset='UTF-8'");
+echo $output;
+?>
\ No newline at end of file
More information about the Mapbender_commits
mailing list