// aimsResource.js
/*
*  JavaScript resource file for ArcIMS HTML Viewer
*		arrays containing display text
* 		This file can be swapped out with appropriate language translation
*/

//**************************************
// Added by Andrew Couturier
// for French functionality
//**************************************

var webString = parent.document.location.search;
var mylang = "";


  if (webString.indexOf("_f") != -1) {
    mylang = "FR";
  } else {
      mylang = "EN";
    }

// (mylang == "EN" ? "English text to display" : "French text to display")
// (mylang == "EN" ? "" : "")
// can easily add code to support other languages
//**************************************


var msgList = new Array();
var unitList = new Array();
var sUnitList = new Array();
var modeList = new Array();
var titleList = new Array();
var buttonList = new Array();
	
	// ArcIMSparam.js - msgList
msgList[0] = "Unable to load one of the following Javascript Libraries:\naimsCommon.js\naimsXML.js\naimsMap.js";
	// aimsCommon.js - msgList
msgList[1] = "No request for Limit Extent";
msgList[2] = "Unable to start. Required HTML Form missing (jsForm.htm).";
msgList[3] = "Current Extent:\nLeft: ";
msgList[4] = "\nBottom: ";
msgList[5] = "\nRight: ";
msgList[6] = "\nTop: ";
msgList[7] = "\n\nRatio to Full Extent: ";
	// aimsXML.js - msgList
msgList[8] = "ServiceName: ";
msgList[9] = "\nArcXML Request:\n ";
msgList[10] = "Response from previous request(s) not received.";
msgList[11] = "Form for posting request not found. Unable to communicate with server.";
msgList[12] = "Sending:\n\n";
msgList[13] = "ArcXML Response:\n ";
msgList[14] = "Unable to display MapService\n";
msgList[15] = "Cannot send request";
msgList[16] = "Unable to display Overview Map MapService\n";
msgList[17] = "Unable to set parameters";
msgList[18] = "Unable to get image for click positions.";
msgList[19] = "\nUnable to execute response.";
	// aimsLayers.js - msgList
msgList[20] = (mylang == "EN" ? " is now the Active Layer" : " est maintenant le thème actif.");
msgList[21] = "Unable to obtain Field names.\nUnable to query layer.";
msgList[22] = "Name:";
msgList[23] = "Id:";
msgList[24] = "Type:";
msgList[25] = "Extent:";
msgList[26] = "Min Scale:";
msgList[27] = "Max Scale:";
msgList[28] = "Fields:";
msgList[29] = "Size:";
msgList[30] = "Precision:";
msgList[31] = "Unknown";
msgList[32] = "String";
msgList[33] = "Id";
msgList[34] = "Shape";
msgList[35] = "Integer";
msgList[36] = "Double";
msgList[37] = "Boolean";
msgList[38] = "Floating";
msgList[39] = "Small Integer";
msgList[40] = "BLOB";
msgList[41] = "Date";
msgList[42] = "None";
msgList[43] = "Address Match";
msgList[44] = "No";
	// aimsDHTML.js - msgList
msgList[45] = "A MapService must be loaded";
	// aimsClick.js - msgList
msgList[46] = "Cannot query MapService\nIdentify, Select, and Query functions are disabled.";
msgList[47] = (mylang == "EN" ? "This layer does not have any Hyperlinks." : "Ce thème n\'a pas de liens Internet");
msgList[48] = "No selected features to buffer.";
msgList[49] = "Buffer Mode disabled.";
msgList[50] = "Legend Library (aimsLegend.js) not loaded.";
msgList[51] = "Function not enabled.";
	// aimsNavigation.js - msgList
msgList[52] = (mylang == "EN" ? "Map: " : "Carte : ");
msgList[53] = (mylang == "EN" ? "Image: " : "Image : ");
msgList[54] = (mylang == "EN" ? "ScaleFactor: " : "Facteur d\'échelle : ");
	// aimsCustom.js - msgList
msgList[55] = "Unknown Mode:";
msgList[56] = "\nUnable to execute request.";
	// aimsGeocode.js - msgList
msgList[57] = "Locate Results";
msgList[58] = "Address";
msgList[59] = "Score";
msgList[60] = "Unable to locate address";
	// aimsIdentify.js - msgList
msgList[61] = (mylang == "EN" ? "Previous " : "Précédent ");
msgList[62] = (mylang == "EN" ? " Records" : " Objets");
msgList[63] = (mylang == "EN" ? "More Records" : "Suite");
msgList[64] = (mylang == "EN" ? "No Features found." : "Aucun objet trouvé");
msgList[65] = "Returned ArcXML Response:";
msgList[66] = "Server returned:";
msgList[67] = (mylang == "EN" ? "Hyperlink to " : "Allez à ");
msgList[68] = "Unable to hyperlink with submitted request.";
msgList[69] = "Unable to hyperlink.";
	// aimsSelect.js - msgList
msgList[70] = "Measure Totals cleared.";
msgList[71] = (mylang == "EN" ? "Selection cleared." : "Sélection annulée");
	// aimsQuery.js - msgList
msgList[72] = (mylang == "EN" ? "Field" : "Attribut");
msgList[73] = (mylang == "EN" ? "Operator" : "Opérateur");
msgList[74] = "Requesting sample values for the layer ";
msgList[75] = "The first ";
msgList[76] = " records are being accessed. There may be duplicate values.";
msgList[77] = ":\nThis layer does not have any StoredQueries.";
msgList[78] = "Search";
msgList[79] = "Search is Case-Sensitive";
msgList[80] = "Unable to build Query String.";
	// aimsBuffer.js - msgList
msgList[81] = "Distance must be at least zero.\\nStart all numbers less than one with a leading zero.";
msgList[82] = "Highlight features from ";
msgList[83] = " within a distance of&nbsp;";
msgList[84] = " around the selected features of ";
msgList[85] = "Display Attributes";
msgList[86] = "Rec";
	// addmatch.htm - msgList
msgList[87] = "No Layer";
msgList[88] = "Layer";
msgList[89] = "Please enter a string";
msgList[90] = "Enter String to Find in ";
msgList[91] = "Cancelled.";
msgList[92] = "Find String";
	// select.htm - msgList
msgList[93] = "A minimum of two points are required.";
msgList[94] = "A minimum of three points are required.";
msgList[95] = "Select with Line or Polygon";
	// printForm.htm
msgList[96] = (mylang == "EN" ? "Click on \"Create Print Page\" to open a new Browser window with the Map Image," : "Cliquer sur \"Créer la page d'impression\" pour ouvrir une nouvelle fenêtre avec la carte à imprimer,");
msgList[97] = (mylang == "EN" ? "Overview Map Image, and Legend displayed. You can then use the File/Print menu item" : "(inclut la carte de repérage et la légende). Sélectionner ensuite le menu Fichier/imprimer");
msgList[98] = (mylang == "EN" ? "to send the display to your printer." : "pour envoyer la carte vers l'imprimante sélectionnée.");
msgList[99] = "Please enter a string";
msgList[100] = "The modules available on this site make extensive use of JavaScript <br> and requires a 4.0 or newer Browser.<br>Internet Explorer is not supported on the Macintosh."; // default.htm
msgList[101] = (mylang == "EN" ? " is not visible due to scale and features cannot be selected.\n\nZoom to a scale where the layer is visible.\n\n" : " n\'est pas visible à cause d\'échelle. La sélection d\'objets est impossible.\n\nZoom à l\'échelle où le thème est visible.");
msgList[102] = (mylang == "EN" ? " is not visible and features cannot be selected.\n\nCheck Visible for " : " n\'est pas visible. La sélection d\'objets est impossible.\n\nRendre visible le thème ");
msgList[103] = (mylang == "EN" ? "Check Visible for the layer and click Refresh Map." : "Rendre visible le thème et cliquer sur <<actualiser>>");
msgList[104] = (mylang == "EN" ? "The Active Layer " : "Le thème actif ");
msgList[105] = "At least one point is required";
msgList[106] = "Buffer Shape";
msgList[107] = "Buffer Size:";
msgList[108] = (mylang == "EN" ? " and click Refresh Map." : " et cliquer sur <<actualiser>>");
msgList[109] = "No operator in query";
msgList[110] = (mylang == "EN" ? "Query expression is blank.\nNo features have been selected." : "Vous n\'avez pas inscrit une recherche complète.");
msgList[111] = (mylang == "EN" ? "No Layers visible." : "Pas de thèmes visible");
msgList[112] = "No features found at click location.";
msgList[113] = (mylang == "EN" ? "Loading Viewer. . ." : "Chargement...");
msgList[114] = "No hyperlinks defined for any of the visible layers.";
msgList[115] = "No Hyperlinks defined.";
msgList[116] = "No hyperlink defined for any layer at click location";
msgList[117] = "Retrieving Data. . .";
msgList[118] = "Retrieving Map. . .";
msgList[119] = "You are not authorized to make map requests to this MapService.";
msgList[120] = "Debug Mode On";
msgList[121] = "Debug Mode Off";
msgList[122] = " records are being accessed. Duplicate values will be sorted out, resulting in fewer samples.";
//*************************************
// Added by Andrew Couturier
// for French functionality
//*************************************
msgList[123] = (mylang == "EN" ? "Zoom to these records" : "Zoom sur les objets sélectionnés"); // added to displayAttributeData.htm
msgList[124] = (mylang == "EN" ? "Selected Features" : "Objets sélectionnés"); // added to aimsSelect.js
msgList[125] = "";
msgList[126] = "";
/*
msgList[1] = "";
msgList[2] = "";
msgList[3] = "";
msgList[4] = "";
msgList[5] = "";
msgList[6] = "";
msgList[7] = "";
msgList[8] = "";
msgList[9] = "";
msgList[0] = "";
*/
unitList[0] = "DEGREES";
unitList[1] = "FEET";
unitList[2] = "MILES";
unitList[3] = "METERS";
unitList[4] = "KILOMETERS";

sUnitList[0] = "DEGREES";
sUnitList[1] = "FEET";
sUnitList[2] = "MILES";
sUnitList[3] = "METERS";
sUnitList[4] = "KILOMETERS";

modeList[0] = (mylang == "EN" ? "Zoom In" : "Zoom avant");
modeList[1] = (mylang == "EN" ? "Zoom Out" : "Zoom arrière");
modeList[2] = (mylang == "EN" ? "Pan" : "Déplacement libre");
modeList[3] = (mylang == "EN" ? "Identify" : "Identifier");
modeList[4] = "Select Rectangle";
modeList[5] = "Select Point";
modeList[6] = "Select Line";
modeList[7] = "Select Polygon";
modeList[8] = "Select Line/Polygon";
modeList[9] = (mylang == "EN" ? "Hyperlink" : "Liens Internet");
modeList[10] = "Select Shape";
modeList[11] = "Buffer Shape";
modeList[12] = (mylang == "EN" ? "Measure" : "Mesurer");
modeList[13] = "Create Shape";
modeList[14] = "Locate Address";
modeList[15] = (mylang == "EN" ? "Query" : "Requête");
modeList[16] = "Search";
modeList[17] = "Find";
modeList[18] = "Buffer";
modeList[19] = "Identify All";
modeList[20] = "ID Visible Features";
modeList[21] = "Get Address";


titleList[0] = "ArcIMS HTML Viewer";
titleList[1] = "Current Active Layer";	// aimsLayers.js
titleList[2] = "Layer Information";	
titleList[3] = (mylang == "EN" ? "Legend" : "Légende");	// aimsLegend.js
titleList[4] = (mylang == "EN" ? "ArcIMS HTML Viewer Map" : "Ma carte"); // aimsPrint.js
titleList[5] = "Map Output";
titleList[6] = "Address Match Candidates";	// aimsGeocode.js
titleList[7] = "Query/Selection Results";	// aimsIdentify.js
titleList[8] = "Select Results";
titleList[9] = "Hyperlink Results";
titleList[10] = "Buffer Results";			// aimsBuffer.js
titleList[11] = "Address Matching";			// aimsGeocode.js
titleList[12] = "Toolbar";
titleList[13] = (mylang == "EN" ? "Layers" : "Thèmes");
titleList[14] = (mylang == "EN" ? " Visible " : " Visible ");
titleList[15] = (mylang == "EN" ? " Active " : " Activée ");
titleList[16] = "Display Units";			// setUnits.htm
titleList[17] = "Map Units";
titleList[18] = "PrintForm";				// printForm.htm
titleList[19] = (mylang == "EN" ? "Title to display on Map:<BR>" : "Titre de la carte :<BR>");
titleList[20] = (mylang == "EN" ? "Enter the title for your map" : "Entrer le titre ici");
titleList[21] = (mylang == "EN" ? "Print Map" : "Imprimer la carte");
titleList[22] = "";
titleList[23] = "";
/*
titleList[0] = "";
titleList[1] = "";
titleList[2] = "";;	
titleList[3] = "";
titleList[4] = "";
titleList[5] = "";
titleList[6] = "";
titleList[7] = "";
titleList[8] = "";
titleList[9] = "";
*/

buttonList[0] = "Hide Legend"; // aimsLegend.js
buttonList[1] = "Locate Another Address"; // aimsGeocode.js
buttonList[2] = (mylang == "EN" ? "Value" : "Valeur");	// aimsQuery.js
buttonList[3] = (mylang == "EN" ? "Sample Values" : "Échantillons");
buttonList[4] = (mylang == "EN" ? "Get Samples" : "Échantillons");
buttonList[5] = (mylang == "EN" ? "Add to Query String" : "Ajouter à la requête");
buttonList[6] = (mylang == "EN" ? "Execute" : "Exécuter");
buttonList[7] = (mylang == "EN" ? "Undo" : "Annuler");
buttonList[8] = (mylang == "EN" ? "Clear" : "Vider");
buttonList[9] = "Create Buffer";	// aimsBuffer.js
buttonList[10] = "Yes";
buttonList[11] = "No";
buttonList[12] = "Select Layer";	// addmatch.htm
buttonList[13] = "Locate";	
buttonList[14] = (mylang == "EN" ? "Toggle between Legend and LayerList" : "Afficher légende ou liste des thèmes");		// toolbar.htm
buttonList[15] = (mylang == "EN" ? "Toggle Overview Map" : "Carte de repérage");
buttonList[16] = (mylang == "EN" ? "Zoom In" : "Zoom avant");
buttonList[17] = (mylang == "EN" ? "Zoom Out" : "Zoom arrière");
buttonList[18] = (mylang == "EN" ? "Zoom to Full Extent" : "Carte à grand échelle");
buttonList[19] = (mylang == "EN" ? "Zoom to Active Layer" : "Zoom sur la thème active");
buttonList[20] = (mylang == "EN" ? "Back to Last Extent" : "Vue précédente");
buttonList[21] = (mylang == "EN" ? "Pan" : "Déplacement libre");
buttonList[22] = "Pan to North";	
buttonList[23] = "Pan to South";	
buttonList[24] = "Pan to West";		
buttonList[25] = "Pan to East";
buttonList[26] = (mylang == "EN" ? "HyperLink" : "Liens Internet");
buttonList[27] = (mylang == "EN" ? "Identify" : "Identifier");
buttonList[28] = (mylang == "EN" ? "Query" : "Requête");
buttonList[29] = "Search";
buttonList[30] = "Find";
buttonList[31] = (mylang == "EN" ? "Measure" : "Mesurer");
buttonList[32] = "Set Units";	
buttonList[33] = "Buffer";	
buttonList[34] = "Select by Rectangle";		
buttonList[35] = "Select by Line/Polygon";
buttonList[36] = "Clear Selection";
buttonList[37] = "Locate Address";
buttonList[38] = (mylang == "EN" ? "Print" : "Imprimer");
buttonList[39] = "Extract";
buttonList[40] = "Options";
buttonList[41] = "Load MapService";
buttonList[42] = "Hide LayerList";	// toc.htm
buttonList[43] = "Info";	
buttonList[44] = (mylang == "EN" ? "Refresh Map" : "Actualiser");		
buttonList[45] = "    Restart    "; // select.htm
buttonList[46] = " Delete Last Point ";
buttonList[47] = "  Complete Line & Select  ";
buttonList[48] = "Complete Polygon & Select";
buttonList[49] = "Cancel"; // setUnits.htm
buttonList[50] = (mylang == "EN" ? "Create Print Page" : "Créer la page d'impression");  // printForm.htm
buttonList[51] = "Buffer Point & Select";
buttonList[52] = "Buffer Line & Select";	
buttonList[53] = "Complete Polygon, Buffer, Select";	
buttonList[54] = "Use Point to Select";		
buttonList[55] = "Get Address @ Click";
buttonList[56] = "Find Route";
buttonList[57] = (mylang == "EN" ? "Get Help" : "Aide");
/*
buttonList[1] = "";
buttonList[2] = "";	
buttonList[3] = "";	
buttonList[4] = "";		
buttonList[5] = "";
buttonList[6] = "";
buttonList[7] = "";
buttonList[8] = "";
buttonList[9] = "";
buttonList[0] = "";
*/

