/**
 * Resource Bundle Javascript file
 */
//Ext.namespace("Presto.ui");

if(!window.Presto){
    var Presto = {};
}

if(!Presto.ui){
    Presto.ui= {};
}
Presto.ui.Resources = {
	/*
	 * Convention:
	 * Use "btn_" for names of buttons
	 * Use "msg_" for messages raised in the UI
	 * 
	 */
    docTitle_wiresApp: 'Presto Wires - Visual Mashup Composer',
     
    btn_ok: 'OK',
    btn_cancel: 'Cancel',
    btn_close: 'Close',
    btn_save: "Save",
    btn_edit: "Edit",
    btn_saveas: 'Save As',
    btn_publish: 'Publish',
    btn_share: 'Share',
    btn_shareAsMashlet: 'Share as App',
    btn_shareAsLink: 'Share as Link',
    btn_shareAsRSS: 'Share as RSS',
    btn_exportAsCSV: 'Export as CSV file',
    btn_exportAsXLS: 'Export as XLS file',
    btn_new: 'New',
    btn_zoomout: 'Zoom out',
    btn_zoomin: 'Zoom in',
	btn_actualSize: 'Actual Size',
    btn_copy: 'Copy',
    btn_paste: 'Paste',
    btn_cut: 'Cut',
    btn_remove: 'Remove',
    btn_remove_blk: 'Remove selected block',
    btn_viewemml: 'View EMML',
    btn_undo: 'Undo',
    btn_redo: 'Redo',
    btn_more: 'More Actions',
    btn_activate: 'Status:', //'This Mashup is&nbsp;',
    cb_activate: 'ON',
    txt_undefined: 'Untitled',
    btn_apply: 'Apply',
    btn_view_service_details: 'View Mashup Properties',
	btn_run: 'Run',
	btn_clear: 'Clear',
    msg_noAuth: "Authentication Failed. Please try again.",
	btn_refresh: 'Refresh',
    btn_previous: 'Previous',
    btn_next: 'Next',
    btn_select_mode: 'Select Mode: Click and select a block or connection',
    btn_grab_mode: 'Drag Mode: Click and drag the canvas to move the mashup',

    tip_servicenode: 'Click to load the Operations of this Mashable',
    label_input: 'Input',
    tip_input: 'An Input to the Mashup',
    label_foreach: 'Loop',
    tip_foreach: 'Loop for each item',
    label_sort: 'Sort',
    tip_sort: 'Sort the results based on selected fields',
    label_merge: 'Merge',
    tip_merge: 'Combine similar results from several sources',
    label_mashupoutput: 'Mashup Output',
    tip_mashupoutput: 'Output of the Mashup',
    label_filter: 'Filter',
    label_filter_expression: 'Filter Expression',
    tip_filter: 'Filter results based on a condition',
    label_join: 'Join',
    label_join_expression: 'Join Condition',
    tip_join: 'Join results based on a condition',
    label_case_sensitive: 'Case Sensitive ?',
    label_directInvoke: 'Direct Invoke',
    tip_directInvoke: 'Invoke a web resource that is not registered in Presto',
    txt_Configuration: 'Configuration',
    wires_record_picker_info: 'Choose the Repeating element in the data. This is required to display the data in a Table/Grid',
    label_wires_save_mashupname: 'Enter a name for your Mashup',
    label_wires_save_desc: 'A brief description of your Mashup',
    label_wires_save_tags: 'Tags (Please select Tags from list below)',
    label_wires_save_applications: 'Applications (Please select Applications from list below)',
    txt_Tools: 'Tools',
    txt_Main: 'Main',
    label_extract: 'Extract',
    tip_extract: 'Extract a node or a leaf node\'s value from a source block',
    label_path_expression: 'Path',

    msg_saveBeforePublish: 'This Mashup has not been saved. Save your Mashup and try again.',
    msg_saveBeforeActivating: 'This Mashup has not been saved. Save your Mashup and try again.',
    msg_invalidBlockPresent: 'One or more blocks are invalid. Please correct the error and try again',
    msg_outputBlockNotConnected: 'The mashup output must be connected to a block.',
    msg_filterNeedsInput:'There is no block connected into the Filter block. You must connect a block to the Filter block to apply a filter on it\'s data',
    msg_filterNeedsValidInput:'The block connected into the Filter block does not seem to be configured properly. If it is already configured, please try running it.',
    msg_joinNeedsInput:'You need to connect two blocks into the Join block to perform a join',
    msg_joinNeedsValidInput:'At least one of the two blocks connected into the Join block does not seem to be configured properly. If they are already configured, please try running them.',
    msg_extractNeedsInput:'There is no block connected into the Extract block. You need to connect a block to extract data from it.',
    msg_extractNeedsValidInput:'The block connected into the Extract block does not seem to be configured properly. If it is already configured, please try running it.',
    msg_mergeNeedsInput:'There is no block connected into the Merge block. You need to connect a block to merge data from it.',
    msg_mergeNeedsValidInput:'The block connected into the Merge block does not seem to be configured properly. If it is already configured, please try running it.',
    msg_foreachNeedsInput:'There is no block connected into the Loop block.',
    msg_foreachNeedsValidInput:'The block connected into the Loop block does not seem to be configured properly. If it is already configured, please try running it.',
    msg_noData:'The selected block does not contain any data. Please run the block to fetch data.',
    msg_notConfiguredNoData:'The selected block had not been configured. Please configure and run to fetch data.',
    msg_counterNeedsInput:'There is no block connected into the Counter block. Please connect a block into the Counter block to get node count',
    msg_counterNeedsValidInput:'The block connected into the Counter block does not seem to be configured properly. If it is already configured, please try running it.',
    msg_sqlNeedsValidInput:'The block connected into the SQL block does not seem to be configured properly. If it is already configured, please try running it.',
    msg_selectNeedsInput:'There is no block connected into the Select block. Please connect a block to select the required output nodes',
    msg_selectNeedsValidInput:'The block connected into the Select block does not seem to be configured properly. If it is already configured, please try running it.',
    msg_grpNeedsInput:'There is no block connected into the Group block.Please connect an input to group data',
    msg_grpNeedsValidInput:'The block connected into the Group block does not seem to be configured properly. If it is already configured, please try running it.',
    msg_transformInput: 'There is no block connected into Transformer block. Please connect an input.',
    msg_transformValidInput: 'The block connected into Transformer block does not seem to be configured properly. If it is already configured, please try running it.',
    msg_csvInput: 'There is no block connected into the CSV Generator block.Please connect an input to flatten data',
    msg_csvValidIp: 'The block connected into the CSV Generator block does not seem to be configured properly. If it is already configured, please try running it.',
    msg_decoratorIp:'There is no block connected into the Data Decorator block.Please connect an input to decorate data',
    msg_decorateValidIP: 'The block connected into the Data Decorator block does not seem to be configured properly. If it is already configured, please try running it.',

    msg_xpathNoSelectablePath: '[No selectable paths] <br/>(Try running the input block. If you already did, the<br/>output might not have compatible paths)',
    msg_xpathExecuteBlock: '[Run Block]',
    
    msg_mapperSchemaLoadError: 'Error loading schema - Click here to retry',
    msg_mapperPickSchema: 'To begin mapping pick a document structure using the lookup below',
    tooltip_mapperLookupIcon: 'Lookup an output document structure',
    label_mapperLookupIcon: 'Lookup',
    
    msg_properties_empty: 'There are no configurable properties for this block',
    msg_adv_properties_empty: 'There are no advanced properties for this block',
    
    alert_msg_title: 'Error',
    label_xaxis: 'X Axis',
    label_yaxis: 'Y Axis',
    msg_mashupsaved: 'Mashup saved successfully',
    msg_mashupsaveerror: 'There were errors during the save',
    msg_mashupsave_wait: 'Please wait while we save your mashup ...',
    msg_mashupsave_ready: 'Ready',
    msg_block_drop_wait: 'Preparing the block. Please wait ...',
    msg_mashup_saved: 'Mashup saved successfully',
    msg_max_connections_exceeded: "You have exceeded the maximum number of connections into this block",
    msg_no_connections_allowed: "No connections are possible for this block",
    msg_no_block_inputs: "This block does not accept any inputs",
    msg_changes_not_saved: 'There are changes that have not been saved. Are you sure you want to continue?',
    msg_changes_not_saved_title: 'Information',
    msg_information: 'Information',
    msg_confirm: 'Confirmation',
    msg_confirm_deactivate: 'This Mashup is currently ON. Clicking OK will turn this OFF. <br/> Do you wish to continue?',
	
    emptytext_document_field: 'Pick a block',
    
	txt_properties_for: 'Properties for ',
    txt_block : 'Block : ',
	txt_properties: 'Properties',
	msg_repeatingitem_grid: 'Element with Row Data',
	msg_repeatingitem_chart: 'Element with the chart data',
	msg_repeatingitem_map: 'Element with Location data',
    msg_repeatingitem_select: 'Select Repeating Element',
	label_gmap_lat: 'Latitude',
	label_gmap_lon: 'Longitude',
	label_gmap_point: 'Point* <br/> <i>In some cases, a georss:point is provided instead of lat/lon</i>',
	label_service_name: 'Name',
	label_service_description: 'Description',
	label_service_url: 'Enter the URL for this Mashable',
	label_service_rss_url: 'Enter the URL for this RSS Feed',
	label_service_rest_url: 'Enter the URL for this REST Web Service',
	label_service_wsdl_url: 'Enter the URL for the WSDL of this Web Service',
	msg_service_published: 'Mashable item registered successfully',
	msg_service_publish_wait: 'Please wait while we register the Mashable item',
	msg_wires_mashup_published: 'This mashup is currently ON. To edit, set status to OFF.',
	
	msg_title_mashup_load_error: 'Error loading Mashup',
	msg_mashup_load_error: 'Mashup created outside Presto Wires cannot be loaded. Do you want to open the Mashup using Mashup Lite Editor?',
	
	msg_invalid_mashup_name: "Mashup name can only contain A-Z, a-z, 0-9, spaces and the following special characters: _ \~ \- \* \'\.",
	msg_wires_invalid_inputconnection: 'Invalid Connection: Inports can only receive a connection',
	msg_wires_invalid_outputconnection: 'Invalid Connection: Outports cannot receive a connection',
	msg_wires_invalid_connection: 'Invalid Connection',
	msg_remove_mashup: 'This will remove the mashable item from Presto permanently. <br> Do you wish to continue?',
	msg_service_removed: 'The mashable item or mashup has been removed from Presto',
	
	title_unconfigured_blocks: 'Remove unconfigured blocks?',
	msg_unconfigured_blocks: 'Mashup cannot be saved with unconfigured blocks.<br />Do you want to remove unconfigured blocks?',
	
	msg_invalid_inputparam_name: 'Name must start with an alphabet; shouldn\'t contain whitespace or any special character. Underscore is fine.',
	title_invalid_prop_value: 'Invalid Property Value',
	msg_invalid_prop_value: 'The provided property value is invalid',
	msg_add_as_input: '[Add as Input]',
    msg_user_vars_label:'User Attributes',
    msg_global_vars_label:'Global Attributes',
	
	msg_exit_wizard: 'You have not completed the Wizard. Do you wish to continue?',
	label_publish_feed_title: 'Register a Feed <a href="#" class="help {id: \'help.publish.rss\', type: \'window\'}">(?)</a>',
	label_publish_rest_title: 'Register a REST Web Service <a href="#" class="help {id: \'help.publish.rest\', type: \'window\'}">(?)</a>',
	label_publish_wsdl_title: 'Register a SOAP Web Service <a href="#" class="help {id: \'help.publish.wsdl\', type: \'window\'}">(?)</a>',
	label_publish_dbquery_title: 'Register a Database Query as a Service <a href="#" class="help {id: \'help.publish.db\', type: \'window\'}">(?)</a>',
	label_view_service_details_new_window: "view service in new window",
	label_publish_emml_title: 'Register a Mashup',
	label_publish_database_title: 'Register a Database Table/View/Procedure <a href="#" class="help {id: \'help.publish.db\', type: \'window\'}">(?)</a>',
	label_publish_xls_title: 'Register a Excel Spreadsheet <a href="#" class="help {id: \'help.publish.excel\', type: \'window\'}">(?)</a>',  
	label_publish_csv_title: 'Register a CSV File <a href="#" class="help {id: \'help.publish.csv\', type: \'window\'}">(?)</a>',  
	label_publish_xml_title: 'Register a XML File <a href="#" class="help {id: \'help.publish.xml\', type: \'window\'}">(?)</a>',
	
	label_view_service_details: 'view service',
	label_publish_another_service: 'register another',
	label_view_mashup_script: "view mashup script",
	label_activate: "Turn On",
	label_deactivate: 'Turn Off',
	label_saveas: "Save As",
	msg_service_loading: "Please wait while the Mashable is loaded",
	msg_service_activated: "The service is now turned ON",
	msg_service_deactivated: "The service has been turned OFF. Some of the actions will not be available until it is turned back ON.",
	msg_mashlet_activated: "The App is now turned ON",
	msg_mashlet_deactivated: "The App has been turned OFF. Some of the actions will not be available until it is turned back ON.",
	label_wrap_as_mashup: "wrap as mashup",
	
    msg_invalid_node_name:"Please enter a valid result name",
	msg_select_an_operation: "Choose an operation to Run",
	msg_activate_service_continue: "This Mashable/Mashup is not ON. Please turn it ON it to continue.",
	msg_service_name_validation: "Letters and numbers only. Name must start with a letter",
	msg_confirm_cancel_publish: "Changes are not saved. Are you sure you want to cancel?",
	msg_form_invalid: "There are errors in the form. Please correct them and try again",
	label_dbquery_add_input: "Add an input parameter",
	msg_confirm_deactivate: "Are you sure you want to turn OFF?",
	label_saveas_title: "Save As...",
	msg_confirm_remove: "Are you sure you want to remove this Mashable item?",
	label_add_comment: "Add Comment",
	msg_please_wait: "Please wait...",
	msg_create_mashlet: "Create App",
    msg_edit_mashlet: "Edit App",
	msg_wait_for_search: "Please wait ...",
	
	label_recently_added: "Recently Added",
	label_my_favorite: "My Favorite",
	label_top_rated: "Top Rated",
	label_add_new: "[Add new]",
	label_add_new_tag: "[Add a new tag]",
	label_add_new_provider: "[Add new provider]",
	label_add_new_description: "[Add description]",
	label_add_new_category: "[Add category]",
	label_operation: "Operation: ",
	label_operation_info: "Run the Operation and preview/share results",

    label_view_mashlet_details_new_window: "view App in new window",
	label_view_mashlet_details: 'view App',
    msg_confirm_mashlet_remove: "Are you sure you want to remove this App?",
	msg_mashlet_removed: "App removed",
    msg_confirm_mashlet_deactivate: 'This App is currently ON. Clicking OK will turn OFF this App. <br/> Do you wish to continue?',
    msg_mashlet_deactivated: "The App has been turned OFF. Some of the actions will not be available until it is turned back ON.",
    msg_mashlet_activated: "The App is now turned ON",
	label_most_recent: "Most Recently Added",
	label_top_rated: "Top Rated",
	label_featured: "Featured",
	label_search_results: "Search Results ",
	
	label_feed_url_title: "Feed URL (*)",
	label_feed_url_tip: "URL of the RSS / Atom feed you would like to register",
	label_feed_name_title: "Name",
	label_feed_name_tip: "Enter a name for this Feed",
	label_feed_desc_title: "Description",
	label_feed_desc_tip: "",
	label_feed_tags_title: "Tags",
	label_feed_tags_tip: "Tag this service with labels to make it easier to find it later",
	label_feed_provider_title: "Provider",
	label_feed_provider_tip: "Provider of this Mashable item",
	label_type_feed: "Feed",
	label_type_rest: "REST Web Service",
	label_type_wsdl: "WSDL Web Service",
	label_type_mashlet: "App",
	
	label_wsdl_url_title: "Web Service Descriptor (WSDL) URL (*)",
	label_wsdl_url_tip: "URL of the Web Service Descriptor (typically ends with ?wsdl)",
	label_wsdl_name_title: "Name",
	label_wsdl_name_tip: "Enter a name for this Mashable item",
	label_wsdl_desc_title: "Description",
	label_wsdl_desc_tip: "",
	label_wsdl_tags_title: "Tags",
	label_wsdl_tags_tip: "Tag this service with labels to make it easier to find it later",
	label_wsdl_provider_title: "Provider",
	label_wsdl_provider_tip: "Provider of this Mashable item",

	label_rest_url_title: "Web Service (REST) URL (*)",
	label_rest_url_tip: "URL of the Web Service",
	label_rest_name_title: "Name",
	label_rest_name_tip: "Enter a name for this Mashable item",
	label_rest_desc_title: "Description",
	label_rest_desc_tip: "",
	label_rest_tags_title: "Tags",
	label_rest_tags_tip: "Tag this service with labels to make it easier to find it later",
	label_rest_provider_title: "Provider",
	label_rest_provider_tip: "Provider of this Mashable item",

	label_emml_name_title: "Name",
	label_emml_name_tip: "Enter a name for this Mashable item",
	label_emml_desc_title: "Description",
	label_emml_desc_tip: "",
	label_emml_tags_title: "Tags",
	label_emml_tags_tip: "Tag this service with labels to make it easier to find it later",
	label_emml_provider_title: "Provider",
	label_emml_provider_tip: "Provider of this Mashable item",
	
	label_xls_url_title: "Location of the Excel File (*)",
	label_xls_url_tip: "The file maybe local or remote. If remote, the file must be accessible via a URL",
	label_xls_name_title: "Name",
	label_xls_name_tip: "Enter a name for this Mashable item",
	label_xls_desc_title: "Description",
	label_xls_desc_tip: "",
	label_xls_tags_title: "Tags",
	label_xls_tags_tip: "Tag this service with labels to make it easier to find it later",
	label_xls_provider_title: "Provider",
	label_xls_provider_tip: "Provider of this Mashable item",
	
	label_xml_url_title: "Location of the XML File (*)",
	label_xml_url_tip: "Select the XML file to upload.",
	label_xml_name_title: "Name",
	label_xml_name_tip: "Enter a name for this Mashable item",
	label_xml_desc_title: "Description",
	label_xml_desc_tip: "",
	label_xml_tags_title: "Tags",
	label_xml_tags_tip: "Tag this service with labels to make it easier to find it later",
	label_xml_provider_title: "Provider",
	label_xml_provider_tip: "Provider of this Mashable item",
	
	confirm_auth_scheme_title: "Authentication Scheme",
	confirm_auth_scheme_tip: " If your Web Service/Feed requires authentication, please select it from the options below",
	label_tag: "Tag",
	label_category: "Category",
	label_provider: "Provider",
	msg_click_to_edit: "Click to edit",
	msg_form_invalidfields: "There are invalid entries. Please review and submit again",
	msg_selectOperation: "Choose an operation to Run",
	
	label_tag_cloud: "Tags",
	msg_mashlet_props_editor_title: "Edit App Settings",
	msg_wait_servicedetails: "Loading information. Please wait ...",
	msg_mashletmaker_title: "Create an App",

    msg_column_required: "A column name must be provided.",
    msg_columns_required: "At least one column name must be provided.",
    msg_value_required: "A numeric value must be provided.",
    msg_series_required: "At least one series has to be defined and column names can't be empty.",
	msg_search_by_tag: "Search By Tag ",
	msg_search_by_provider: "Search By Provider ",
	msg_search_by_category: "Search By Category ",
	msg_search_by_type: "Search By Type ",
	msg_create_snapshot_title: "Create A Snapshot",
	msg_clear_errors: "Please resolve all errors and try again",
	msg_snapshot_created: "Snapshot created successfully",

    btn_switch_table_view: "Click here to change to Table View",
    btn_switch_property_view:"Click here to change to Property View",

    msg_view_name_required : "A name for this view is required",
	msg_request_timedout: "Request timed out",
	msg_add_atleast_one_view: "At least one View must be added to create an App. To create a View click 'Run' and then 'Add View'",
    msg_view_makedefault_success: "View is now made default",
	msg_view_removed:"View has been removed",
	msg_loading: "Loading...please wait",

    label_datapreview: "Data Preview",
	label_configureviewForTemplate: "Configure #{dataViewName} View",
    label_configurecolumnsForTemplate: "Configure #{dataViewName} Columns",
    label_configureview_default_title: "Configure View",
    label_configureview_createview_title: "Create View",
    label_configureview_editview_title: "Edit View",

    dataview_labelchart_title: ' Chart',
    dataview_grid_title: 'Grid',
    dataview_table_title: 'Table',
    dataview_propertysheet_title: 'Property Sheet',
    dataview_feed_title: 'Feed Reader',
    dataview_googlemap_title: 'Google Map',
    dataview_googlegeomap_title: 'Geo Map',
    dataview_googleintensitymap_title: 'Intensity Map',
    dataview_pie_title: 'Pie',
    dataview_column_title: 'Column',
    dataview_bar_title: 'Bar',
    dataview_doughnut_title: 'Doughnut',
    dataview_area_title: 'Area',
    dataview_line_title: 'Line',
    dataview_funnel_title: 'Funnel',
    dataview_pyramid_title: 'Pyramid',
    dataview_scatter_title: 'Scatter',
    dataview_bubble_title: 'Bubble',
    dataview_sparkline_title: 'Spark Line',
    dataview_sparkcolumn_title: 'Spark Column',
    dataview_sparkwinloss_title: 'Spark Win/Loss',
    dataview_gaugeset_title: 'Gauge Set',
    dataview_templateview_title: 'Template View',
    dataview_gantt_title: 'Gantt',
	
	msg_delete_snapshot: "Confirm delete?",
	msg_snapshot_deleted: "Snapshot has been deleted",
	label_snapshot_search_by_date: "Search Results",
	msg_no_description: "<i>No description available<i>",
    msg_no_data :"<i>No data available<i>",
    msg_no_records : "<i>No available records</i>",
	msg_provide_feedback: "Feedback on the App",
	msg_findapps_enter_new_name_duplicate: "This App already exists in your collection. To add it again, please enter a different name.", 
	msg_findapps_enter_new_name: "Enter a name for this App",
	msg_myapps_app_added: "App added to MyApps",
	
	msg_wf_cancelled: "Your AppStore submission has been cancelled.",
	msg_wf_submitted: "App has been submitted to the AppStore for approval. Please check again later for updates.",
	msg_wf_resubmitted: "App has been submitted to the AppStore. Please check again later for updates",
	msg_wf_updated: "The update to the App has been submitted to the AppStore for approval.",
	
	MSG_CONFIRM_REMOVE_APPROVED_APP: "Removing an App from the AppStore will remove this App from all users. Users will lose any customization they might have made. Are you sure?",
	MSG_CONFIRM_REMOVE_PENDING_APP: "Are you sure ? ",
	MSG_APP_REMOVED: "App removed from AppStore",
	
	msg_no_shared_in: "No one has shared anything with you at this time", 
	msg_no_shared_out: "You have not shared anything with others at this time",

    label_months_gantt_view: "JAN,FEB,MAR,APR,MAY,JUN,JUL,AUG,SEP,OCT,NOV,DEC",
    label_today_gantt_view: "Today",

    msg_confirm_overwrite_template:"Do you want to overwrite the current template?"
};

window["$messages"] = Presto.ui.Resources;

