[Mapbender-commits] r2615 - branches/2.5/http/print

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jul 8 10:33:58 EDT 2008


Author: christoph
Date: 2008-07-08 10:33:57 -0400 (Tue, 08 Jul 2008)
New Revision: 2615

Modified:
   branches/2.5/http/print/printPDF.conf
Log:
print i18n

Modified: branches/2.5/http/print/printPDF.conf
===================================================================
--- branches/2.5/http/print/printPDF.conf	2008-07-08 14:31:47 UTC (rev 2614)
+++ branches/2.5/http/print/printPDF.conf	2008-07-08 14:33:57 UTC (rev 2615)
@@ -1,6 +1,6 @@
 <?php
 
-include_once(dirname(__FILE__)."/../../conf/mapbender.conf");
+include_once(dirname(__FILE__)."/../../core/globalSettings.php");
 # filename for temporary imagefiles
 $filename = TMPDIR."/map_".substr(md5(uniqid(rand())),0,7).".png";
 
@@ -9,7 +9,7 @@
 */
 $download = true;
 $downloadFile = TMPDIR."/map_".substr(md5(uniqid(rand())),0,7).".pdf";
-$downloadText = _("Download: Map as PDF...");
+$downloadText = _mb("Download: Map as PDF...");
 
 /*
 *run print as iframe or window
@@ -22,11 +22,11 @@
 * Legend
 */
 $legend=true;
-$label_legend = _('print legend');
+$label_legend = _mb('print legend');
 $legendFilename = TMPDIR."/legend_".substr(md5(uniqid(rand())),0,7).".png";
 $legendFilenameUserPolygon = TMPDIR."/legend_".substr(md5(uniqid(rand())),0,7).".png";
-$legendText = _("Legend");
-$legendFooter = _("powered by Mapbender");
+$legendText = _mb("Legend");
+$legendFooter = _mb("powered by Mapbender");
 $legendImage = "./img/mapbender_logo.png";
 $legendImage_width = 90;
 $legendImage_height = 13;
@@ -48,50 +48,50 @@
 	$new_comment2 = $_REQUEST["comment2"];
 }
 
-$text1 = _("Print preview");
+$text1 = _mb("Print preview");
 $text2 = "- Mapbender -";
 $text3 = "";
-$text4 = _("Scale 1:"). " ".$_REQUEST["map_scale"];
-$text5 = _("Date:") . " ".date("d.m.Y",strtotime("now"));
+$text4 = _mb("Scale 1:"). " ".$_REQUEST["map_scale"];
+$text5 = _mb("Date:") . " ".date("d.m.Y",strtotime("now"));
 
-$text6 = _("Notes:");
+$text6 = _mb("Notes:");
 $text7 = "";
 $text8 = $new_comment1;
 $text9 = $new_comment2;
 $text10 = "";
 
 
-$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.");
+$text11 = _mb("This copy has been automatically generated and is thus not valid without signature.");
+$text12 = _mb("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 = _mb("the publisher, except duplicates and modifications aimed at internal use of government agencies or private use.");
 
-$text14 = _("This copy is protected,");
-$text15 = _("ask me!!!!");
-$text16 = _("or the publisher");
-$text17 = _("or use is internally.");
+$text14 = _mb("This copy is protected,");
+$text15 = _mb("ask me!!!!");
+$text16 = _mb("or the publisher");
+$text17 = _mb("or use is internally.");
 
 /*
 * Labeling for buttons, textfields ...
 */
 
-$label_format = _("Format:");
+$label_format = _mb("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 = _mb("Orientation:");
+$label_portrait = _mb("portrait");
+$label_landscape = _mb("landscape");
 
-$label_72dpi = sprintf(_("Quality: %d dpi"), 72);
-$label_288dpi = sprintf(_("Quality: %d dpi"), 288);
+$label_72dpi = sprintf(_mb("Quality: %d dpi"), 72);
+$label_288dpi = sprintf(_mb("Quality: %d dpi"), 288);
 
-$label_comment = _("Comment (max. 30)");
+$label_comment = _mb("Comment (max. 30)");
 $comment_length = 30;
 
-$label_button = _('print');
+$label_button = _mb('print');
 
 /*
 * default



More information about the Mapbender_commits mailing list