[Mapbender-commits] r1608 - trunk/mapbender/http/print
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Aug 6 05:39:33 EDT 2007
Author: christoph
Date: 2007-08-06 05:39:33 -0400 (Mon, 06 Aug 2007)
New Revision: 1608
Modified:
trunk/mapbender/http/print/mod_printPDF.php
trunk/mapbender/http/print/printPDF.conf
Log:
i18nized
Modified: trunk/mapbender/http/print/mod_printPDF.php
===================================================================
--- trunk/mapbender/http/print/mod_printPDF.php 2007-08-06 09:04:42 UTC (rev 1607)
+++ trunk/mapbender/http/print/mod_printPDF.php 2007-08-06 09:39:33 UTC (rev 1608)
@@ -51,6 +51,8 @@
</style>
<?php
+//FIXME:
+//setlocale(LC_ALL, "de_DE.utf8");
require_once(dirname(__FILE__)."/../print/".$_REQUEST["conf"]);
echo "<script type='text/javascript'>";
@@ -261,7 +263,7 @@
//overview_url
var ind_overview = pt.getMapObjIndexByName('overview');
- //alert ("länge: " + length+ " - " + ind_overview + name + pt.mb_mapObj[ind_overview].wms.length);
+ //alert ("l�nge: " + length+ " - " + ind_overview + name + pt.mb_mapObj[ind_overview].wms.length);
if(pt.mb_mapObj[ind_overview].mapURL != false ){
document.forms[0].overview_url.value = pt.mb_mapObj[ind_overview].mapURL;
}
@@ -324,7 +326,7 @@
document.form1.submit();
}
else{
- alert("Das Format ist noch nicht ausgewählt.");
+ alert("<?php echo _("No format selected.")?>");
}
}
function valCom(obj){
Modified: trunk/mapbender/http/print/printPDF.conf
===================================================================
--- trunk/mapbender/http/print/printPDF.conf 2007-08-06 09:04:42 UTC (rev 1607)
+++ trunk/mapbender/http/print/printPDF.conf 2007-08-06 09:39:33 UTC (rev 1608)
@@ -9,7 +9,7 @@
*/
$download = true;
$downloadFile = TMPDIR."/map_".substr(md5(uniqid(rand())),0,7).".pdf";
-$downloadText = "Download: Karte als PDF...";
+$downloadText = _("Download: Map as PDF...");
/*
*run print as iframe or window
@@ -22,11 +22,11 @@
* Legend
*/
$legend=true;
-$label_legend = 'print legend';
+$label_legend = _('print legend');
$legendFilename = TMPDIR."/legend_".substr(md5(uniqid(rand())),0,7).".png";
$legendFilenameUserPolygon = TMPDIR."/legend_".substr(md5(uniqid(rand())),0,7).".png";
-$legendText = "Legende";
-$legendFooter = "powered by Mapbender";
+$legendText = _("Legend");
+$legendFooter = _("powered by Mapbender");
$legendImage = "./img/mapbender_logo.png";
$legendImage_width = 90;
$legendImage_height = 13;
@@ -48,50 +48,50 @@
$new_comment2 = $_REQUEST["comment2"];
}
-$text1 = "Druckansicht";
+$text1 = _("Print preview");
$text2 = "- Mapbender -";
$text3 = "";
-$text4 = "Maßstab 1 : " . $_REQUEST["map_scale"];
-$text5 = "Datum: " . date("d.m.Y",strtotime("now"));;
+$text4 = _("Scale 1:"). " ".$_REQUEST["map_scale"];
+$text5 = _("Date:") . " ".date("d.m.Y",strtotime("now"));
-$text6 = "Notizen:";
+$text6 = _("Notes:");
$text7 = "";
$text8 = $new_comment1;
$text9 = $new_comment2;
$text10 = "";
-$text11 = "Der Auszug ist maschinell erzeugt, er ist ohne Unterschrift gültig.";
-$text12 = "Dieser Auszug ist gesetzlich geschützt (§ 3 Abs. 1 VermKatG NW). Vervielfältigungen, Umarbeitungen, Veröffentlichungen oder die Weitergabe an Dritte nur mit Zustimmung des";
-$text13 = "Herausgebers, ausgenommen Vervielfältigungen und Umarbeitungen zur innerdienstlichen Verwendung bei Behörden oder zum eigenen Gebrauch.";
+$text11 = _("This copy has been automatically generated and is thus not valid without signature.");
+$text12 = _("This copy is protected by law (Par. 3 Abs. 1 VermKatG NW). It can be duplicaedted, modified, published or be passed to third parties only in agreement with");
+$text13 = _("the publisher, except duplicates and modifications aimed at internal use of government agencies or private use.");
-$text14 = "Dieser Auszug ist gesetzlich geschützt (§ 3 Abs. 1 VermKatG NW). Vervielfältigungen,";
-$text15 = "Umarbeitungen, Veröffentlichungen oder die Weitergabe an Dritte nur mit Zustimmung";
-$text16 = "des Herausgebers, ausgenommen Vervielfältigungen und Umarbeitungen zur inner-";
-$text17 = "dienstlichen Verwendung bei Behörden oder zum eigenen Gebrauch.";
+$text14 = _("This copy is protected,");
+$text15 = _("ask me!!!!");
+$text16 = _("or the publisher");
+$text17 = _("or use is internally.");
/*
* Labeling for buttons, textfields ...
*/
-$label_format = "Format:";
+$label_format = _("Format:");
$label_format_a4 = "A4";
$label_format_a3 = "A3";
$label_format_a2 = "A2";
$label_format_a1 = "A1";
$label_format_a0 = "A0";
-$label_orientation = "Orientation: ";
-$label_portrait = "portrait";
-$label_landscape = "landscape";
+$label_orientation = _("Orientation:");
+$label_portrait = _("portrait");
+$label_landscape = _("landscape");
-$label_72dpi = "Quality: 72 dpi";
-$label_288dpi = "Quality: 288 dpi";
+$label_72dpi = sprintf(_("Quality: %d dpi"), 72);
+$label_288dpi = sprintf(_("Quality: %d dpi"), 288);
-$label_comment = "Comment (max. 30)";
+$label_comment = _("Comment (max. 30)");
$comment_length = 30;
-$label_button = 'print';
+$label_button = _('print');
/*
* default
More information about the Mapbender_commits
mailing list