[Mapbender-commits] r8059 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Aug 4 07:53:24 EDT 2011


Author: armin11
Date: 2011-08-04 04:53:23 -0700 (Thu, 04 Aug 2011)
New Revision: 8059

Modified:
   trunk/mapbender/http/php/mod_showMetadata.php
Log:
Rewind translation, cause there is a session problem.

Modified: trunk/mapbender/http/php/mod_showMetadata.php
===================================================================
--- trunk/mapbender/http/php/mod_showMetadata.php	2011-08-04 11:37:31 UTC (rev 8058)
+++ trunk/mapbender/http/php/mod_showMetadata.php	2011-08-04 11:53:23 UTC (rev 8059)
@@ -82,8 +82,6 @@
 		die(); 		
  	}
 	$languageCode = $testMatch;
-	//write languageCode into Session
-	$_SESSION['mb_lang'] = $languageCode;
 	$testMatch = NULL;
 }
 if (isset($_REQUEST["layout"]) & $_REQUEST["layout"] != "") {
@@ -123,83 +121,305 @@
 }
 
 
+//Array with translations:
+switch ($languageCode) {
+	case "de":
+		$translation['overview'] = 'Übersicht';
+		$translation['properties'] = 'Eigenschaften';
+		$translation['termsOfUse'] = 'Nutzungsbedingungen';
+		$translation['contact'] = 'Kontakt';
+		$translation['quality'] = 'Qualität';
+		$translation['interfaces'] = 'Schnittstellen';
+		$translation['metadata'] = 'Metadaten';
+		$translation['kindOfResource'] = 'Art der Ressource';
+		$translation['wms'] = 'Kartendienst';
+		$translation['wfs'] = 'Datendienst';
+		$translation['layer'] = 'Kartenebene';
+		$translation['featuretype'] = 'Objektart';
+		$translation['geomtype'] = 'Geometrietyp';
+		$translation['contentId'] = 'Ressourcenidentifikator';
+		$translation['contentName'] = 'Name der Ressource';
+		$translation['serviceId'] = 'Informationen zum Dienst';
+		$translation['preview'] = 'Voransicht';
+		$translation['extent'] = 'Ausdehnung';
+		$translation['resourceAbstract'] = 'Zusammenfassung';
+		$translation['resourceTitle'] = 'Titel';
+		$translation['metadataProvider'] = 'Inhaltlich verantwortliche Stelle';
+		$translation['serviceProvider'] = 'Technisch verantwortliche Stelle';
+		$translation['contactPerson'] = 'Ansprechpartner';
+		$translation['contactOrganization'] = 'Organisation';
+		$translation['contactAddress'] = 'Adresse';
+		$translation['email'] = 'Email';
+		$translation['city'] = 'Ort';
+		$translation['logo'] = 'Logo';
+		$translation['status'] = 'Status';
+		$translation['availability'] = 'Verfügbarkeit';
+		$translation['statusRed'] = 'Probleme beim letzten Monitoring!';
+		$translation['statusGreen'] = 'Letztes Monitoring OK';
+		$translation['statusYellow'] = 'Dienstebeschreibung hat sich geändert!';
+		$translation['queryableFalse'] = 'Ebene nicht abfragbar';
+		$translation['queryableTrue'] = 'Ebene abfragbar';
+		$translation['queryable'] = 'Abfragbarkeit';
+		$translation['restrictedScale'] = 'Sichtbarkeit';
+		$translation['minscale'] = 'Minimaler Maßstab';
+		$translation['maxscale'] = 'Maximaler Maßstab';
+		$translation['crs'] = 'Koordinatenreferenzsysteme (mit BBOX)';
+		$translation['wmccrs'] = 'Eingestelltes Koordinatenreferenzsystem';	
+		$translation['wgs84Bbox'] = 'Eckpunkte in geogr. Koordinaten';
+		$translation['wgs84BboxGraphic'] = 'Ausdehnung';
+		$translation['mapbenderCapabilities'] = 'Geoportal Capabilities';
+		$translation['originalCapabilities'] = 'Original Capabilities';
+		$translation['describeFeaturetype'] = 'Link zum Datenschema';
+		$translation['kml'] = 'KML';
+		$translation['inspireMetadata'] = 'INSPIRE Service Metadaten';
+		$translation['showInspireMetadata'] = 'Metadatendatei';
+		$translation['securedCapabilities'] = 'Secured Capabilities URL';
+		$translation['inspireCapabilities'] = 'INSPIRE Capabilities URL';
+		$translation['capabilities'] = 'Link zum Capabilities Dokument';
+		$translation['inspireMetadataValidation'] = 'Validierung gegen INSPIRE Geoportal';
+		$translation['showInspireMetadataValidation'] = 'Validierung starten';
+		$translation['statusOK'] = 'Stabil';
+		$translation['statusChanged'] = 'Beschreibung hat sich geändert - Aktualisierung nötig';
+		$translation['statusProblem'] = 'Problem bei letzter Kontrolle';
+		$translation['contactTelephone'] = 'Telefon';
+		$translation['wmc'] = 'Web Map Context Dokument';
+		$translation['graphicUnavailable'] = 'Graphische Übersicht nicht aktiviert';
+		$translation['notMonitored'] = 'Informationen über die Qualität sind nur verfügbar, wenn das Service Monitoring aktiv ist!';
+		$translation['wmcQualityText'] = 'Für Web Map Context Dokumente entfällt die Angabe zur Qualität!';
+		$translation['noTouInformation'] = 'Es sind keine Informationen über Nutzungsbedingungen verfügbar!';
+		$translation['loadWmc'] = 'Link um Anwendung mit WMC zu starten';
+		$translation['validate'] = "Validierung";
+		$translation['uploaded metadata'] = "Hochgeladene Metadaten";
+		$translation['linked metadata'] = "Verlinkte Metadaten";
+		$translation['metadata from capabilities'] = "Metadaten von Service Capabilities";
+		$translation['added from registry'] = "Metadaten über Registry angereichert";
+		$translation['Coupled Metadata'] = "Verknüpfte Metadaten";
+		$translation['addLayerToMap'] = "Karte im eigenen Viewer anzeigen";
+		$translation['showMap'] = "Karte anzeigen";
+		break;
+	case "en":
+		$translation['overview'] = 'Overview';
+		$translation['properties'] = 'Properties';
+		$translation['termsOfUse'] = 'Terms Of Use';
+		$translation['contact'] = 'Contact';
+		$translation['quality'] = 'Quality';
+		$translation['interfaces'] = 'Interfaces';
+		$translation['metadata'] = 'Metadata';
+		$translation['kindOfResource'] = 'Kind of resource';
+		$translation['wms'] = 'Map Service';
+		$translation['wfs'] = 'Data Service';
+		$translation['layer'] = 'Map Layer';
+		$translation['featuretype'] = 'Featuretype';
+		$translation['geomtype'] = 'Type of geometry';
+		$translation['contentId'] = 'Resourceidentifier';
+		$translation['contentName'] = 'Name of the resource';
+		$translation['serviceId'] = 'Information about the service';
+		$translation['preview'] = 'Preview';
+		$translation['extent'] = 'Extent';
+		$translation['resourceAbstract'] = 'Abstract';
+		$translation['resourceTitle'] = 'Title';
+		$translation['metadataProvider'] = 'Responsible party for content';
+		$translation['serviceProvider'] = 'Responsible party for service';
+		$translation['contactPerson'] = 'Contact person';
+		$translation['contactOrganization'] = 'Organization';
+		$translation['contactAddress'] = 'Address';
+		$translation['email'] = 'Email';
+		$translation['city'] = 'City';
+		$translation['logo'] = 'Logo';
+		$translation['status'] = 'Status';
+		$translation['availability'] = 'Availability';
+		$translation['statusRed'] = 'Problem with last monitoring!';
+		$translation['statusGreen'] = 'Last Monitoring: OK';
+		$translation['statusYellow'] = 'Servicedescription changed!';
+		$translation['queryableFalse'] = 'Layer not queryable';
+		$translation['queryableTrue'] = 'Layer queryable';
+		$translation['queryable'] = 'Query';
+		$translation['restrictedScale'] = 'Visibility';
+		$translation['minscale'] = 'Minimum scale';
+		$translation['maxscale'] = 'Maximum scale';
+		$translation['crs'] = 'Coordinate Reference System';
+		$translation['wmccrs'] = 'Used Coordinate Reference System';
+		$translation['wgs84Bbox'] = 'Corner in geographic Coordinates';
+		$translation['wgs84BboxGraphic'] = 'Spatial Extent';
+		$translation['mapbenderCapabilities'] = 'Geoportal Capabilities';
+		$translation['originalCapabilities'] = 'Original Capabilities';
+		$translation['inspireCapabilities'] = 'INSPIRE Capabilities URL';
+		$translation['describeFeaturetype'] = 'Dataschema';
+		$translation['kml'] = 'KML';
+		$translation['inspireMetadata'] = 'INSPIRE Service Metadata';
+		$translation['showInspireMetadata'] = 'Metadatendatei';
+		$translation['securedCapabilities'] = 'Secured Capabilities URL';
+		$translation['capabilities'] = 'Link zum Capabilities Dokument';
+		$translation['inspireMetadataValidation'] = 'Validation against INSPIRE Geoportal';
+		$translation['showInspireMetadataValidation'] = 'Start Validation';
+		$translation['statusOK'] = 'stable';
+		$translation['statusChanged'] = 'Description changed - update necessary';
+		$translation['statusProblem'] = 'Problem at last control';
+		$translation['contactTelephone'] = 'Telephon';
+		$translation['wmc'] = 'Web Map Context document';
+		$translation['graphicUnavailable'] = 'Graphical Overview not active';
+		$translation['notMonitored'] = 'Information about Quality is only available if the service monitoring is activated!';
+		$translation['wmcQualityText'] = 'In case of Web Map Context Documents the Quality part is not applicable!';
+		$translation['noTouInformation'] = 'No informations about terms of use are available!';
+		$translation['loadWmc'] = 'Link to start application with WMC';
+		$translation['validate'] = "validate";
+		$translation['uploaded metadata'] = "uploaded metadata";
+		$translation['linked metadata'] = "linked metadata";
+		$translation['metadata from capabilities'] = "metadata from capabilities";
+		$translation['added from registry'] = "added from registry";
+		$translation['Coupled Metadata'] = "Coupled Metadata";
+		$translation['addLayerToMap'] = "Show map in own viewer";
+		$translation['showMap'] = "Show map";
+		break;
+	case "fr":
+		$translation['overview'] = 'Vue générale';
+		$translation['properties'] = 'Propriétés';
+		$translation['termsOfUse'] = 'Conditions d\'utilisation';
+		$translation['contact'] = 'Contact';
+		$translation['quality'] = 'Qualité';
+		$translation['interfaces'] = 'Interfaces';
+		$translation['metadata'] = 'Metadonnées';
+		$translation['kindOfResource'] = 'Genre de ressource';
+		$translation['wms'] = 'Service des cartes';
+		$translation['wfs'] = 'Service des données';
+		$translation['layer'] = 'Couche de la carte';
+		$translation['featuretype'] = 'Données attributaires';
+		$translation['geomtype'] = 'Type de geometrie';
+		$translation['contentId'] = 'Identifiant de la ressource';
+		$translation['contentName'] = 'Nom de la ressource';
+		$translation['serviceId'] = 'Information a propos du service';
+		$translation['preview'] = 'Extrait';
+		$translation['extent'] = 'Zone géographique';
+		$translation['resourceAbstract'] = 'Résumé';
+		$translation['resourceTitle'] = 'Titre';
+		$translation['metadataProvider'] = 'Responsable du contenu';
+		$translation['serviceProvider'] = 'Responsable du service';
+		$translation['contactPerson'] = 'Personne de contact';
+		$translation['contactOrganization'] = 'Organisation';
+		$translation['contactAddress'] = 'Adresse';
+		$translation['email'] = 'Email';
+		$translation['city'] = 'Ville';
+		$translation['logo'] = 'Logo';
+		$translation['status'] = 'Statut';
+		$translation['availability'] = 'Accessibilité';
+		$translation['statusRed'] = 'Problème avec le dernier suivi!';
+		$translation['statusGreen'] = 'Dernier suivi: OK';
+		$translation['statusYellow'] = 'Description du service changée!';
+		$translation['queryableFalse'] = 'Couche non interrogeable';
+		$translation['queryableTrue'] = 'Couche non interrogeable';
+		$translation['queryable'] = 'Interroger';
+		$translation['restrictedScale'] = 'Visibilité';
+		$translation['minscale'] = 'Echelle minimum';
+		$translation['maxscale'] = 'Echelle maximum';
+		$translation['crs'] = 'Système de référence spatial';
+		$translation['wmccrs'] = 'Système de référence utilisé';
+		$translation['wgs84Bbox'] = 'Coin en coordonnées géographiques';
+		$translation['wgs84BboxGraphic'] = 'Etendue spatiale';
+		$translation['mapbenderCapabilities'] = 'Capabilities du Geoportail';
+		$translation['originalCapabilities'] = 'Capabilities originales';
+		$translation['inspireCapabilities'] = 'Capabilities INSPIRE';
+		$translation['describeFeaturetype'] = 'Schéma des données';
+		$translation['kml'] = 'KML';
+		$translation['inspireMetadata'] = 'Métadonnées INSPIRE ';
+		$translation['showInspireMetadata'] = 'Fichier des métadonnées';
+		$translation['securedCapabilities'] = 'Capabilities sécurisées';
+		$translation['capabilities'] = 'Liens sur les capabilities';
+		$translation['inspireMetadataValidation'] = 'Validation sur le géoportail INSPIRE';
+		$translation['showInspireMetadataValidation'] = 'Démarrer la validation';
+		$translation['statusOK'] = 'stable';
+		$translation['statusChanged'] = 'Description changée - mise à jour nécessaire';
+		$translation['statusProblem'] = 'Problème au dernier contrôle';
+		$translation['contactTelephone'] = 'Téléphone';
+		$translation['wmc'] = 'Web Map Context document';
+		$translation['graphicUnavailable'] = 'Vue générale non active';
+		$translation['notMonitored'] = 'L\'nformation relative à la qualité est consultable si et seuleument si le service de suivi est activé!';
+		$translation['wmcQualityText'] = 'Dans le cas d\'un document Web Map Context il n\'ya pas d\'information sur la qualité!';
+		$translation['noTouInformation'] = 'Aucune information sur les conditions d\'utilisation n\'est disponible!';
+		$translation['loadWmc'] = 'Lien pour débuter l\'application avec un WMC';
+		$translation['validate'] = "valider";
+		$translation['uploaded metadata'] = "métadonnées téléchargées";
+		$translation['linked metadata'] = "métadonnées liées";
+		$translation['metadata from capabilities'] = "metadonnées provenant des capabilities";
+		$translation['added from registry'] = "ajouté à partir de l'enregistrement";
+		$translation['Coupled Metadata'] = "Métadonnées couplées";
+		$translation['addLayerToMap'] = "Ouvrir la carte dans sa propre fenêtre";
+		$translation['showMap'] = "Ouvrir la carte";
+		break;
+	default: #to english
+		$translation['overview'] = 'Overview';
+		$translation['properties'] = 'Properties';
+		$translation['termsOfUse'] = 'Terms Of Use';
+		$translation['contact'] = 'Contact';
+		$translation['quality'] = 'Quality';
+		$translation['interfaces'] = 'Interfaces';
+		$translation['metadata'] = 'Metadata';
+		$translation['kindOfResource'] = 'Kind of resource';
+		$translation['wms'] = 'Map Service';
+		$translation['wfs'] = 'Data Service';
+		$translation['layer'] = 'Map Layer';
+		$translation['featuretype'] = 'Featuretype';
+		$translation['geomtype'] = 'Type of geometry';
+		$translation['contentId'] = 'Resourceidentifier';
+		$translation['contentName'] = 'Name of the resource';
+		$translation['serviceId'] = 'Information about the service';
+		$translation['preview'] = 'Preview';
+		$translation['extent'] = 'Extent';
+		$translation['resourceAbstract'] = 'Abstract';
+		$translation['resourceTitle'] = 'Title';
+		$translation['metadataProvider'] = 'Responsible party for content';
+		$translation['serviceProvider'] = 'Responsible party for service';
+		$translation['contactPerson'] = 'Contact person';
+		$translation['contactOrganization'] = 'Organization';
+		$translation['contactAddress'] = 'Address';
+		$translation['email'] = 'Email';
+		$translation['city'] = 'City';
+		$translation['logo'] = 'Logo';
+		$translation['status'] = 'Status';
+		$translation['availability'] = 'Availability';
+		$translation['statusRed'] = 'Problem with last monitoring!';
+		$translation['statusGreen'] = 'Last Monitoring: OK';
+		$translation['statusYellow'] = 'Servicedescription changed!';
+		$translation['queryableFalse'] = 'Layer not queryable';
+		$translation['queryableTrue'] = 'Layer queryable';
+		$translation['queryable'] = 'Query';
+		$translation['restrictedScale'] = 'Visibility';
+		$translation['minscale'] = 'Minimum scale';
+		$translation['maxscale'] = 'Maximum scale';
+		$translation['crs'] = 'Coordinate Reference System';
+		$translation['wmccrs'] = 'Used Coordinate Reference System';
+		$translation['wgs84Bbox'] = 'Corner in geographic Coordinates';
+		$translation['wgs84BboxGraphic'] = 'Spatial Extent';
+		$translation['mapbenderCapabilities'] = 'Geoportal Capabilities';
+		$translation['originalCapabilities'] = 'Original Capabilities';
+		$translation['describeFeaturetype'] = 'Dataschema';
+		$translation['kml'] = 'KML';
+		$translation['inspireMetadata'] = 'INSPIRE Service Metadata';
+		$translation['showInspireMetadata'] = 'Metadatendatei';
+		$translation['securedCapabilities'] = 'Secured Capabilities URL';
+		$translation['inspireCapabilities'] = 'INSPIRE Capabilities URL';
+		$translation['capabilities'] = 'Link zum Capabilities Dokument';
+		$translation['inspireMetadataValidation'] = 'Validation against INSPIRE Geoportal';
+		$translation['showInspireMetadataValidation'] = 'Start Validation';
+		$translation['statusOK'] = 'stable';
+		$translation['statusChanged'] = 'Description changed - update necessary';
+		$translation['statusProblem'] = 'Problem at last control';
+		$translation['contactTelephone'] = 'Telephon';
+		$translation['wmc'] = 'Web Map Context document';
+		$translation['graphicUnavailable'] = 'Graphical Overview not active';
+		$translation['notMonitored'] = 'Information about Quality is only available if the service monitoring is activated!';
+		$translation['wmcQualityText'] = 'In case of Web Map Context Documents the Quality part is not applicable!';
+		$translation['noTouInformation'] = 'No informations about terms of use are available!';
+		$translation['loadWmc'] = 'Link to start application with WMC';
+		$translation['validate'] = "validate";
+		$translation['uploaded metadata'] = "uploaded metadata";
+		$translation['linked metadata'] = "linked metadata";
+		$translation['metadata from capabilities'] = "metadata from capabilities";
+		$translation['added from registry'] = "added from registry";
+		$translation['Coupled Metadata'] = "Coupled Metadata";
+		$translation['addLayerToMap'] = "Show map in own viewer";
+		$translation['showMap'] = "Show map";
+}
 
-
-//Translation via gettext:
-
-$translation['overview'] = _mb('Overview');
-$translation['properties'] = _mb('Properties');
-$translation['termsOfUse'] = _mb('Terms Of Use');
-$translation['contact'] = _mb('Contact');
-$translation['quality'] = _mb('Quality');
-$translation['interfaces'] = _mb('Interfaces');
-$translation['metadata'] = _mb('Metadata');
-$translation['kindOfResource'] = _mb('Kind of resource');
-$translation['wms'] = _mb('Map Service');
-$translation['wfs'] = _mb('Data Service');
-$translation['layer'] = _mb('Map Layer');
-$translation['featuretype'] = _mb('Featuretype');
-$translation['geomtype'] = _mb('Type of geometry');
-$translation['contentId'] = _mb('Resourceidentifier');
-$translation['contentName'] = _mb('Name of the resource');
-$translation['serviceId'] = _mb('Information about the service');
-$translation['preview'] = _mb('Preview');
-$translation['extent'] = _mb('Extent');
-$translation['resourceAbstract'] = _mb('Abstract');
-$translation['resourceTitle'] = _mb('Title');
-$translation['metadataProvider'] = _mb('Responsible party for content');
-$translation['serviceProvider'] = _mb('Responsible party for service');
-$translation['contactPerson'] = _mb('Contact person');
-$translation['contactOrganization'] = _mb('Organization');
-$translation['contactAddress'] = _mb('Address');
-$translation['email'] = _mb('Email');
-$translation['city'] = _mb('City');
-$translation['logo'] = _mb('Logo');
-$translation['status'] = _mb('Status');
-$translation['availability'] = _mb('Availability');
-$translation['statusRed'] = _mb('Problem with last monitoring!');
-$translation['statusGreen'] = _mb('Last Monitoring: OK');
-$translation['statusYellow'] = _mb('Servicedescription changed!');
-$translation['queryableFalse'] = _mb('Layer not queryable');
-$translation['queryableTrue'] = _mb('Layer queryable');
-$translation['queryable'] = _mb('Query');
-$translation['restrictedScale'] = _mb('Visibility');
-$translation['minscale'] = _mb('Minimum scale');
-$translation['maxscale'] = _mb('Maximum scale');
-$translation['crs'] = _mb('Coordinate Reference System');
-$translation['wmccrs'] = _mb('Used Coordinate Reference System');
-$translation['wgs84Bbox'] = _mb('Corner in geographic Coordinates');
-$translation['wgs84BboxGraphic'] = _mb('Spatial Extent');
-$translation['mapbenderCapabilities'] = _mb('Geoportal Capabilities');
-$translation['originalCapabilities'] = _mb('Original Capabilities');
-$translation['describeFeaturetype'] = _mb('Dataschema');
-$translation['kml'] = _mb('KML');
-$translation['inspireMetadata'] = _mb('INSPIRE Service Metadata');
-$translation['showInspireMetadata'] = _mb('Metadatarecord');
-$translation['securedCapabilities'] = _mb('Secured Capabilities URL');
-$translation['inspireCapabilities'] = _mb('INSPIRE Capabilities URL');
-$translation['capabilities'] = _mb('Link to Capabilities document');
-$translation['inspireMetadataValidation'] = _mb('Validation against INSPIRE Geoportal');
-$translation['showInspireMetadataValidation'] = _mb('Start validation');
-$translation['statusOK'] = _mb('stable');
-$translation['statusChanged'] = _mb('Description changed - update necessary');
-$translation['statusProblem'] = _mb('Problem at last control');
-$translation['contactTelephone'] = _mb('Telephone');
-$translation['wmc'] = _mb('Web Map Context document');
-$translation['graphicUnavailable'] = _mb('Graphical Overview not active');
-$translation['notMonitored'] = _mb('Information about Quality is only available if the service monitoring is activated!');
-$translation['wmcQualityText'] = _mb('In case of Web Map Context Documents the Quality part is not applicable!');
-$translation['noTouInformation'] =_mb('No informations about terms of use are available!');
-$translation['loadWmc'] = _mb('Link to start application with WMC';
-$translation['validate'] = _mb("validate");
-$translation['uploaded metadata'] = _mb("uploaded metadata");
-$translation['linked metadata'] = _mb("linked metadata");
-$translation['metadata from capabilities'] = _mb("metadata from capabilities");
-$translation['added from registry'] = _mb("added from registry");
-$translation['Coupled Metadata'] = _mb("Coupled Metadata");
-$translation['addLayerToMap'] = _mb("Show map in own viewer");
-$translation['showMap'] = _mb("Show map");
-
 //Array with infos about the different elements which are shown in the tabs
 
 //Check if an id and a resource was given



More information about the Mapbender_commits mailing list