﻿// English
var STR_EN = {
	
	/* BEGIN LOCALIZATION  */
	
	// messages
	// depreciated by backend errors
	// will be kept around until mid Oct for backwards compatibility
	status_save_success		: "Saved!",
	status_save_fail		: "Save Failed!",
	status_locked			: "Read-only",
	status_err_number		: "Invalid number value.",
	status_err_time			: "Invalid time value.",
	status_err_default		: "Invalid input value.",
	status_delete_success 	: "Record deleted.",
	status_err_delete		: "Error deleting record.",
	status_err_required		: "Fields in red are mandatory.",
	status_err_dup			: "Unique value required.",
	status_err_date			: "Wrong date value/format.",
	status_err_intLength	: "Integer field can not have more than 5 digits.",
	status_err_longIntLength: "Long Int field can not have more than 10 digits.",
	
	// generic messages
	loading					: "Loading...",
	none					: "None",
	search					: "Search",
	fields					: "Fields",
	
	//toolbar, generic, used by several objects
	button_create			: "Create",
	button_refresh			: "Refresh",
	button_delete			: "Delete",
	button_save				: "Save",
	button_cancel			: "Cancel",
	button_ddw1				: "DDW",
	button_close			: "Close",
	button_choose			: "Choose",
	button_advanced			: "Advanced", // update v11.1
	button_sidebar			: "Sidebar", // update v11.1
	button_tabs				: "Tabs", // update v11.1
	sidebar_queries			: "Queries", // update v11.1
	sidebar_saved			: "SAVED", // update v11.1
	sidebar_application		: "APPLICATION", // update v11.1
	
	// status bar
	statusbar_text1			: " record(s) total", // update v11.1
	statusbar_text2			: " selected.", // update v11.1
		
	// grid
	view_image				: "View Image",
	confirm_delete_records 	: "Delete these records?",
	all						: "All", //for All Records
	
	// data window tabs tooltips
	and						: "AND",
	starts_with				: "starts with",
	
	// calendar
	calendar_month			: ['January','February','March','April','May','June','July','August','September','October','November','December'],
	calendar_month_abr		: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
	calendar_weekday		: ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],
	
	// calendar view
	
	// toolbar, date range
	calendar_toolbar_range		: "Range",			// Range Field_X to Field_Y
	calendar_toolbar_to			: "to",
	calendar_toolbar_display	: "Display",		// Display Field_Z
	calendar_toolbar_none		: "None",			// don't use field for Field_y
	
	// taskbar
	taskbar_admin_label		: "Control Panel",		// Admin button
	taskbar_edit			: "Edit",			// Edit WindowX label
	taskbar_views			: "Portal",			// always displayed in DAX app
	taskbar_debug			: "Console",		// debugger
	image					: "Image",			// Image X
	
	// admin
	//
	
	// main tabs
	admin_about				: "About", // update v11.1
	admin_generalprefs		: "General Prefs",
	admin_accesscontroltab	: "Access Control",
	admin_ddwmanager		: "DDW Manager",
	admin_querymanager		: "Query Manager",

	// general prefs tab
	admin_taskbarlocation	: "Taskbar location:",
	admin_taskbartop		: "Top",
	admin_taskbarbottom		: "Bottom",
	admin_style				: "Style:",
	admin_preload			: "Number of preloaded selections:",

	// ddw tab
	adminDDW_list			: "DDWs",
	adminDDW_title			: "Title",
	adminDDW_content		: "Content",
	adminDDW_type			: "Type",
	adminDDW_newLink		: "New Window - Link",
	adminDDW_newHTML		: "New Window - HTML Method",
	adminDDW_newText		: "Status Message - Text Method",
	adminDDW_associatedTo	: "Associated to",
	adminDDW_portal			: "Portal",
	adminDDW_other			: "Other",
	adminDDW_create			: "Create",
	adminDDW_cancel			: "Cancel",
	adminDDW_noDDWs			: "You currently have no DDWs.",
	adminDDW_to				: "to",

	// query tab
	adminQuery_List			: "Preset Queries",
	
	adminQuery_name			: "Query Name",
	adminQuery_text			: "Query",
	adminQuery_Selection	: "Selection",
	
	adminQuery_create		: "Create",
	adminQuery_save			: "Save",
	adminQuery_cancel		: "Cancel",
	
	adminQuery_noQueries	: "You currently have no preset Queries.",
	adminQuery_filter		: "Filter:",
	adminQuery_allrecords	: "Display the All Records tab:",
	adminQuery_all			: "All",
	adminQuery_createtitle	: "Create a preset query for this selection:",	
	adminQuery_new			: "Create a new query:",	
	adminQuery_dynamic		: "Set dynamic queries:",	
	adminQuery_template		: "Use this template:",	
	adminQuery_template2	: " and apply it to this field:",	
	adminQuery_Next			: "Next",	
	adminQuery_NotAvailable	: "Not Available",	
	adminQuery_error1		: "Please choose a selection",	
	adminQuery_error2part1	: "A query ",	
	adminQuery_error2part2	: " already exist for this selection.",	
	adminQuery_error3		: "Please enter a name",
	adminQuery_Name			: "Name: ",	
	adminQuery_BoundTo		: " Bound To:",	
	adminQuery_SortField	: "Sorting: Field: ",	
	adminQuery_SortOrder	: " Order:",	
	adminQuery_MaxNb		: "Maximum number of records: ",	
	adminQuery_AddCondition	: "Add a condition:",	
	adminQuery_Field		: "Field:",	
	adminQuery_Operator		: "Operator:",	
	adminQuery_Value		: "Value:",	
	adminQuery_IsAMethod	: "is a method:",	
	adminQuery_Link			: "Link:",	
	adminQuery_Add			: "Add",	
	adminQuery_Conditions	: "Conditions:",	
	adminQuery_Asc			: "Asc",	
	adminQuery_Desc			: "Desc",
	adminQuery_Operator1	: "equal",
	adminQuery_Operator2	: "not equal",
	adminQuery_Operator3	: "less",
	adminQuery_Operator4	: "greater",
	adminQuery_Operator5	: "less or equal",
	adminQuery_Operator6	: "greater or equal",
	adminQuery_Operator7	: "starts with",
	adminQuery_Operator8	: "ends with",
	adminQuery_Link1		: "and",
	adminQuery_Link2		: "or",
	adminQuery_FieldTitle	: "Field",
	adminQuery_OperatorTitle: "Operator",
	adminQuery_ValueTitle	: "Value",
	adminQuery_LinkTitle	: "Link",
	adminQuery_DynamicQuery : "Dynamic Queries",
	adminQuery_DDTs			: "Data Driven Tabs based on ",
	adminQuery_dateTip		: "YYYY-MM-DD",
	adminQuery_error4		: "Please add at least one condition",
	adminQuery_error5		: "A dynamic query already exists for this field.",
			
	// access control tab
	admin_accesscontrol		: "Admin Access Control",
	admin_grouppopup		: "View privileges for:&nbsp;",
	admin_grouppopupforprefs: "View preferences for:&nbsp;",
	admin_selections		: "Portlets",
	admin_properties		: "Properties",
	admin_allowaccess		: "Allow access",
	admin_allowoutput		: "Allow Output", // update v11.1
	admin_allowinput		: "Allow Input", // update v11.1
	admin_allowsearch		: "Allow Search", // update v11.1
	admin_allusers			: "All Users",
	admin_toggleall			: "Toggle All: ",
	admin_none				: "None",
		
	admin_view_titles		: [ "Grid" , "Calendar" , "DataTree", "DataMatrix", "ImageMatrix", "iPhone" ],
	admin_grid_table_labels	: [ "Position", "Allow access", "Real Name", "DAX Alias", "Style", "Views" ],
	admin_grid_field_labels	: [ "Position", "Data Type", "Real Name", "DAX Alias", "Display in list", "Display in detail", "Formatting"	],
	
	
	// load page
	// login widget
	login_login				: "Login",
	login_username			: "Username",
	login_password			: "Password",

	// login and logout
	logoutsuccess			: "You are successfully logged out.",
	logoutfail				: "Logging out failed.",
	logoutconfirm			: "Proceed with logging out?",
	
	// admin, misc
	new_view				: "New View",
	delete_view				: "Delete View",
	no_relation_found		: "No relation found.",
	go						: "Go",
	
	top_columns				: [ "Position","&nbsp;&nbsp;V&nbsp;&nbsp;&nbsp;&nbsp;O&nbsp;&nbsp;Real Name","DAX Alias","Type","Style","DDW Buttons","Views"],		
	bottom_columns			: [ "Position","&nbsp;&nbsp;O&nbsp;&nbsp;&nbsp;&nbsp;I&nbsp;&nbsp;&nbsp;&nbsp;S&nbsp;&nbsp;Real Name","DAX Alias","Type","Formatting","Break level","OnLoad","OnChange","DDW Link"], // update v11.1
	
	// window titles
	image_viewer			: "Image Viewer",
	
	// data tree
	select_branch			: "Please select a tree branch where record will be created.",
	delete_records			: "Please select a record(s) to delete.",
	// full message is "Delete X record(s)?"
	delete_records1			: "Delete",
	delete_records2			: "record(s)?",
	// column where list is displayed
	hgrid_first_column		: "List",
	
	// editor
	record_not_in_database	: "Record not in the database yet",

	editor_error_int		: "Value must be between -32,768 and 32,767",
	editor_error_longint	: "Value must be between -2,147,483,648 and 2,147,483,647",
	editor_imageviewer		: "Image Viewer",	
	
	editor_selectionview	: "Nifty tip. It's supposed to be helpful.",

	/* 1.1 Addition */
	
	// editor choice list
	no_data_found			: "No data found.",

	/* 1.1 Addition ends*/
	
	// window titles
	image_viewer			: "Image Viewer",
	
	// data tree
	select_branch			: "Please select a tree branch where record will be created.",
	delete_records			: "Please select a record(s) to delete.",
	// full message is "Delete X record(s)?"
	delete_records1			: "Delete",
	delete_records2			: "record(s)?",
	// column where list is displayed
	hgrid_first_column		: "List",

	// boolean values
	
	yes		: "yes",
	no		: "no",
	
	male	: "male",
	female	: "female",
	
	ttrue	: "true",
	ffalse	: "false",

	// sidebar tooltips
	
	sidebar_logout		: "Logout",
	sidebar_console		: "Console",
	sidebar_settings	: "Control Panel",

	// window
	
	onbeforeunload		: "If you leave, your DAX sessions will not be preserved!",

	// query Engine
	
	qe_list				: "List",
	qe_report			: "Report",
	qe_chart			: "Chart",
	qe_arguments		: ['is equal to', 'is not equal to', 'starts with', 'ends with', 'is less than', 'is greater than', 'is less than or equal to', 'is greater than or equal to'],

	// Chart Engine
	
	ct_charttypes		: ['Column', 'Line', 'Pie'],

	// Report Engine
	
	rp_select			: "Select",
	rp_deselect			: "Deselect",

	// Browser support
	unsupportedbrowser	: "4D AJAX Framework doesn't support this browser. Please upgrade the browser to Internet Explorer 7, Firefox 2+, or Safari 2+.",

	// Image browser & data matrix
	ib_toolbar_display	: "Display",
	ib_toolbar_create	: "Create",
	ib_toolbar_delete	: "Delete",
	ib_toolbar_zoom		: "Zoom",
	ib_toolbar_flip		: "Flip over",
	ib_toolbar_more		: "More",
	ib_toolbar_less		: "Less",
	ib_toolbar_setup	: "Setup",
	ib_toolbar_image	: "Image",
	ib_toolbar_layout	: "Layout",
	ib_toolbar_header	: "Header",
	ib_toolbar_top		: "Top",
	ib_toolbar_bottom	: "Bottom",
	ib_toolbar_left		: "Left",
	ib_toolbar_right	: "Right",
	ib_toolbar_none		: "None",
	ib_toolbar_sort		: "Sort",

	/* 1.1 addition */
	save_column_width	: "Save column widths",
	/* 1.1 addition ends */
	
	/* 11.2 addition */
	Input_O	: "O",
	Input_I : "I",
	
	taskbar_online		: 'Online',
	taskbar_offline		: 'Offline',
	offline_purgecache	: 'Would you like to purge offline cache? All offline data will be lost.',
	offline_uploaderror	: 'One or more records failed to upload successfully. Please refer to the messages below for detailed information.',
	offline_confirmgoingtoofflinemode : "Connection to server has been lost. Would you like to go to Offline Mode?",
	/* 11.2 addition ends */

	/* END LOCALIZATION  */
	
	
	/* FORMATTING */

	admin_titles_integer	: [ "None" ,  "9,999,999", 		"$9,999.99",   		"9.999,99 EUR",  		"99.99 %"],
	admin_values_integer	: [ "i1"    , "i,cm,per,0,", 	"i$,cm,per,2,",		 "i,per,cm,2,EUR", 	    "i,,per,2,~"],
	
	admin_titles_longint	: [ "None" ,  "9,999,999",		"9.999,99 EUR",		"$9,999.99",     "99.99 %"],
	admin_values_longint	: [ "l1"   ,  "l,cm,per,0,",	"l,per,cm,2,EUR",	"l$,cm,per,2,",  "l,,per,2,~"],	
	
	admin_titles_real		: [ "None" ,  "9,999,999",		"99.99 %",		"$9,999.99",  	 "9.999,99 EUR"	],
	admin_values_real		: [ "r1"    , "r,cm,per,0,"	,	"r,,per,2,~",	"r$,cm,per,2,",  "r,per,cm,2,EUR"],	

	admin_titles_date		: [ "None" , "MM-DD-YYYY"  , "DD-MM-YYYY" ,	 "DD-Jan-YYYY", "None and blank if null", "MM-DD-YYYY and blank if null", "DD-MM-YYYY and blank if null" , "DD-Jan-YYYY and blank if null" ],
	admin_values_date		: [ "d1"   , "dMM-DD-YYYY" , "dDD-MM-YYYY",	 "dDD-MMM-YYYY", "d2", "dMM-DD-YYYY2", "dDD-MM-YYYY2",	"dDD-MMM-YYYY2"],
	
	admin_titles_time		: [ "None" ,  "HH:MM:SS",   "HH:MM:SS am/pm",		"HH:MM",	"HH:MM am/pm" ],
	admin_values_time		: [ "t1"    , "tHH:MM:SS",  "tHH:MM:SS am/pm",		"tHH:MM",	"tHH:MM am/pm"],
	
	admin_titles_alpha		: [ "None" ,  "UPPERCASE",   "lowercase"],
	admin_values_alpha		: [ "a1"    , "aUUUU",  	 "auuuu"],
	
	admin_titles_text		: [ "None" ,  "UPPERCASE",   "lowercase"],
	admin_values_text		: [ "x1"    ,  "xUUUU",  	 "xuuuu"],

	// note: these are admin boolean labels, actual boolen values are in the localization section of this file - best thing to do is to update both
	admin_titles_boolean	: [ "None",	"True/False",	"Yes/No",	"Male/Female",	"Checkbox"],
	admin_values_boolean	: [ "b1",	"bTrue",		"bYes",		"bMale",		"bCheckbox"],
	
	admin_titles_none		: ["None"],
	admin_values_none		: ["1"],
	
	
	// ***  Dashboard Manager and Editor ***

	// General Strings
	dash_tabtitle			: 'Dashboard Manager',
	dash_toplefttitle		: 'Dashboards',
	dash_create				: 'Create',
	dash_cancel				: 'Cancel',
	
	// Dashboards list Strings
	dash_list_name			: 'Name',
	dash_list_description	: 'Description',
	dash_list_selection		: 'Selection',
	
	// Create panel Strings
	dash_create_selection	: 'Create a Report for this selection:',
	dash_create_name		: 'Name:',
	dash_create_defaultname	: 'My Dashboard',
	dash_create_description : 'Description',
	dash_create_defaultdesc	: 'Created ',
	dash_create_platform	: 'Platform Option', // update v11.1
	// dash_create_desktopflag : 'For Desktop', // update v11.1
	dash_create_iphoneflag	: 'iPhone Support', // update v11.1
	dash_create_button		: 'Start Dashboard Editor',
	
	// Dashboard Editor Strings
	dash_de_info1			: 'Drag the objects to the report:',
	dash_de_info2			: 'Click on a field to add a group:',
	dash_de_info3			: 'Styles',
	dash_de_info4			: 'Show Alternate Cols',
	dash_de_info5			: 'Show Default Cols',
	dash_de_info6			: 'Show Inspector', // Update 2
	dash_de_info7			: 'Apply a preset query:', // update v11.1
	dash_de_title			: 'Dashboard Editor',
	dash_de_dbobjs			: 'Database Objects',
	dash_de_Formulas		: 'Formulas',
	dash_de_groups			: 'Add a group',
	dash_de_chart			: 'Use Chart',
	
	// Formulas
	dash_de_Formula1		: 'Sum',
	dash_de_Formula2		: 'Average',
	dash_de_Formula3		: 'Min',
	dash_de_Formula4		: 'Max',
	dash_de_Formula5		: 'Count',
	dash_de_Formula6		: 'Standard Deviation',
	dash_de_Formula7		: 'Method',

	// iPhone Styles
	dash_de_ip_style1		: 'Blue',
	dash_de_ip_style2		: 'Black',
	
	// Desktop Styles
	dash_de_dt_style1		: 'Default',
	dash_de_dt_style2		: 'Peach',
	dash_de_dt_style3		: 'Clay',
	dash_de_dt_style4		: 'Fog',
	dash_de_dt_style5		: 'Cocoa',
	dash_de_dt_style6		: 'Ocean',
	dash_de_dt_style7		: 'Mint',
	
	// Editor Zones
	dash_de_zone_dh			: 'Detail Header',
	dash_de_zone_gh			: 'Group Header #',
	dash_de_zone_d			: 'Detail',
	dash_de_zone_gf			: 'Group Footer #',
	dash_de_zone_df			: 'Detail Footer',
	
	// Editor Buttons
	dash_de_cancel			: 'Cancel',
	dash_de_save			: 'Save',
	
	// Property Inspector Tabs
	dash_pi_styletab		: 'Style',
	dash_pi_indicatorstab	: 'Indicators',
	dash_pi_formattingtab	: 'Formatting',
	dash_pi_linkappstab		: 'Link Apps',
	
	// Property Inspector Button
	dash_pi_close			: 'Close',
	
	// Style Tab
	dash_pi_style_info1		: 'Desktop Style',
	dash_pi_style_info2		: 'iPhone Style',
	
	dash_pi_style_width		: 'Column Width:',
	dash_pi_style_px		: 'px',
	dash_pi_halign			: 'Header Alignment:',
	dash_pi_htext			: 'Header Text:',
	dash_pi_dalign			: 'Detail Alignment:',
	dash_pi_falign			: 'Formula Alignment:',
	dash_pi_customformula	: 'Custom Formula:',
	dash_pi_ghalign			: 'GroupHeader Alignment:', // Update 1
	dash_pi_customgh		: 'Custom GroupHeader:', // Update 1
	
	// Alignment Options
	dash_pi_align_option1	: 'Left',
	dash_pi_align_option2	: 'Center',
	dash_pi_align_option3	: 'Right',
	
	// Indicator Tab
	dash_pi_ind_info1		: 'Add a filter:',
	dash_pi_ind_info2		: 'Filters list (Top to Bottom priority):',
	dash_pi_ind_info3		: 'None',
	
	// Operator Options
	dash_pi_ind_op1			: 'equal',
	dash_pi_ind_op2			: 'more',
	dash_pi_ind_op3			: 'less',
	
	// Indicator Styles
	dash_pi_ind_style1		: 'green',
	dash_pi_ind_style2		: 'yellow',
	dash_pi_ind_style3		: 'red',
	dash_pi_ind_style4		: 'green button',
	dash_pi_ind_style5		: 'yellow button',
	dash_pi_ind_style6		: 'red button',
	
	// Indicator button
	dash_pi_ind_addbutton	: 'Add',
	
	// Formatting Tab
	dash_pi_for_info1		: 'Select a boolean format:',
	dash_pi_for_info2		: 'Select a numeric format:',
	dash_pi_for_info3		: 'Select a date format:',
	dash_pi_for_info4		: 'Select a time format:',
	
	// Date Formats
	dash_pi_for_date1		: 'none',
	dash_pi_for_date2		: 'Short',
	dash_pi_for_date3		: 'Abbreviated',
	dash_pi_for_date4		: 'Long',
	dash_pi_for_date5		: 'MM/DD/YYYY',
	dash_pi_for_date6		: 'Month Date, Year',
	dash_pi_for_date7		: 'Abbr: Month Date, Year',
	dash_pi_for_date8		: 'MM/DD/YYYY Forced',
	dash_pi_for_date9		: 'ISO Date Time',	

	// Time Formats
	dash_pi_for_time1		: 'none',
	dash_pi_for_time2		: 'HH:MM:SS',
	dash_pi_for_time3		: 'HH:MM',
	dash_pi_for_time4		: 'hour min sec',
	dash_pi_for_time5		: 'hour min',
	dash_pi_for_time6		: 'H:MM AM/PM',
	
	// Link Apps Tab
	dash_pi_apps_info1		: 'Link the selected cell with:',
	
	// Apps Options
	dash_pi_app1			: 'none',
	dash_pi_app2			: 'Browser',
	dash_pi_app3			: 'Email',
	dash_pi_app4			: 'Maps',
	dash_pi_app5			: 'Phone',
	
	
	// Error Messages
	dash_error1				: 'Please choose a selection',
	dash_error2				: 'Your report has been saved.',
	dash_error3				: 'This dashboard does not have any column.',
	dash_error4				: 'You need to make this selection visible first.',
	dash_error5				: 'An error occured when trying to save the report.',
	dash_error6				: 'Indicators are not available for the selected cell(s).',
	dash_error7				: 'No Formatting option available for the selected cell(s).',
	dash_error8				: 'No option available for the selected cell(s).',
	dash_error9				: 'No style options available for the selected cell.',
	dash_error10			: 'There is already an existing report with this name for this selection.', // Update 1
	dash_error11			: 'iPhone support will enable the iPhone features in the editor.', // Update 1
	dash_error12			: 'You can add only one group to the dashboard', // Update 1
	dash_error13			: 'You are viewing the alternate columns accessible when the user clicks on the column.', // Update 1
	dash_error14			: 'Alternate column cannot be added to an empty default column.', // Update 1

	versionmismatch			: 'Web files do not match the component version. Please clear the browser cache to ensure that the latest files are sent to the browser', // Update 1

	
	/* DO NOT MODIFY STRINGS BELOW */
	
	// XML tags & attribute strings
	tableid 		: 'tableid',
	queryid 		: 'queryid',
	tablename 		: 'tablename',
	recordid		: 'recordid',
	selectioncount 	: 'recordsinselection',
	fieldid			: 'id',
	fieldname		: 'name',
	fieldtag		: 'field',
	rowtag			: 'row',
	size			: 'size',
	modify_success	: 'success',
	success_true	: 'true',
	success_false	: 'false',
	recordidtag		: 'recordid',
	
	// field types
	type_alpha		: 'alpha',
	type_text		: 'text',
	type_picture	: 'picture',
	type_real		: 'real',
	type_integer	: 'integer',
	type_longint	: 'longint',
	type_blob		: 'blob',
	type_boolean	: 'boolean',
	type_date		: 'date',
	type_time		: 'time'
	
};

// load english by default
var STR = STR_EN;

