/*

name: Tongue
description: A really basic class for storing dropr translations

locale: en

package: dropr
copyright: All rights reserved

requires:
- core

provides: Tongue

...
*/

var Tongue = new Class({

	/////////////////////////////////////
	// Init
	/////////////////////////////////////

	initialize: function(){
		// nothing for now
	},




	/////////////////////////////////////
	// Translations
	/////////////////////////////////////

	// overall
	
	login: 'Login',

    upgrade : 'Upgrade',

    preparing : 'preparing',
	
	register: 'Sign up',
		
	loading: 'Loading...',

	checking: 'Checking...',
	
	save: 'Save',
	
	saving: 'Saving...',
	
	saved: 'Saved',
	
	send: 'Send',
	
	reply: 'Reply',
	
	sending: 'Sending...',
	
	jumping: 'Jumping...',
	
	word_delete: 'Delete',
	
	deleting: 'Deleting...',
	
	importing: 'Importing...',
	
	done: 'Done!',
	
	cancel: 'Cancel',
	
	close: 'Close',
	
	changed: 'Changed',
	
	try_again: 'Try again',
	
	no: 'Nope',
	
	remove: 'Remove',
	
	resume: 'Resume',
	
	next: 'Next',
	
	sure_q: 'Sure?',
	
	yes: 'Yes',
	
	yes_delete: 'Yes, Delete',
	
	yes_logout: 'Yes, Logout',
	
	member: 'Member',
	
	error: 'Error',
	
	follow: 'Follow',
	
	following: 'Following',
	
	later: 'Later',
	
	publish: 'Publish',
	
	publish_now: 'Publish now',
	
	published: 'Published',
	
	collect: 'Collect',
	
	uncollect: 'Uncollect',
	
	view_fullscreen: 'View Fullscreen',
	
	splash: 'Splash',
	
	save_to_continue: 'Enter and save the required details to continue!',
	
	hide_for_good: 'Hide for good.',
	
	join_info: 'New to Dropr? <br> Sign up or login below.',
	
	on: 'on',
	
	info_connection_error: '<strong>Connection error.</strong><br/>Check your cables and try again!',

	info_general_error: "<strong>Ooops.</strong><br/>Something went wrong, try again. If that doesn\'t help, let us know!",
	
	info_confirm_delete: "You can\'t undo these things. <strong>Sure?</strong>",
	
	info_piece_delete_uploads: "Deleting doesn\'t restore uploads",
	
	info_no_cookies_error: 'No cookies error. Enable cookies!<br/><br/>- Monster',
	
	editator_empty_text: 'Add...',
	
	set_no_color: 'No color, please.',
	
	open_splashup: 'Fullscreen Splash Up!',
	
	// dashboard

	cup_time_left_info: function(time){
		return ('Next Cup of Inspiration in {time} minutes!').replace('{time}', this.convertTime(time));
	},

	// network
	
	remove_member: 'Remove member',
	
	invites_sent: 'Invites Sent!',
	
	
	// manager
	
	info_delete_portfolio_q: '<strong>Delete Portfolio?</strong><br/>You will lose <strong>all</strong> the content inside. Really, definitely, absolutely sure?',
	
	
	
	// drop	
	info_delete_gallery_q: '<strong>Delete a Section?</strong><br/>You will lose <strong>all</strong> the content inside. Really, definitely, absolutely sure?',
	
	change_all_q: 'Change all existing?',
	
	
	
	warning_is_view_locked: 'It seems there are some unsaved changes.',
	
	info_abort_edit_q: 'It seems there is some stuff being uploaded or edited. <strong>Abort?</strong>',
	
	info_unpublished_q: 'Your project isn\'t public yet. <strong>Publish now?</strong>',
	
	info_publishedsortable: 'Only published projects are sortable',
	
	cancel_edit: 'Abort editing',
	
	info_delete_project_q: '<strong>Delete a Project?</strong><br/>You will lose all the stuff inside. Sure?',
	
	give_it_name: 'Give it a name',
	
	info_upload_item_error: 'Error. Click to check what went wrong.',
	
	info_file_too_big: function(var1, var2){
		return 'Hey, the file is around \'+ var1 +\' megabytes. That&#39;s bigger than the maximum \'+ var2 +\' MB.<br/>Try compressing it or something.'
	},
	
	info_abort_changes_q: "Seems like you\'ve edited some of your stuff. <strong>Do you want to discard changes?</strong>",
	
	
	// settings
	
	error_info_short: 'OOPS. Error. Try again',
	
	delete_cv_q: 'Delete the CV?', 	
	
	// connections

	connect_window_info: "A new tab (or window) will open. Connect there and come back to us. Easy!",
	connect_window_sketchfab_info: "A new tab (or window) will open. Copy your API key from Sketchfab Settings and come back to us. Easy!",
	connect_window_when_ready_info: "Job done? Click \'done\' below and you can upload and import videos!",

	ok_connect: "Ok, let\'s Connect!",
	
	remove_connection_q: '<strong>Remove the connection?</strong>',
	
	// imports
	import_fetching: "We\'re fetching data. It could take up to a few minutes if you have a lot of content on",
    importing_now : "We\'re importing your pieces. It can take a few moments!",
    import_not_all : "Import",
    pieces : "pieces",
    import_complete : "<h1>Import complete!</h1><p>You can now edit pieces settings, position and drag them between projects and galleries.</p><p>Number of imported files: ",
    import_with_errors : " pieces haven\'t imported due to errors. ",
    import_complete_and_error : "<h1>Import completed with errors</h1>",

    uploads_left    : "uploads left: ",
    to_upload       : "pieces to upload: ",

  //embed
  
	image_conversion_in_progress: 'Image conversion in progress. Try again later.',

	/////////////////////////////////////
	// Utils
	/////////////////////////////////////
	
	convertTime: function(secs) {
		var times = new Array(3600, 60); // new Array(3600, 60, 1); -> for seconds
		var time = '';
		var tmp;
		for(var i = 0; i < times.length; i++){ // skip hours if 00
			tmp = Math.floor(secs / times[i]);
			if(!(tmp < 1 && i==0)){
			  if(tmp < 1){
			     tmp = '00';
			  } else if(tmp < 10){
			     tmp = '0' + tmp;
			  }
			  time += tmp;
			  if(i < times.length-1){
			     time += ':';
			  }
			}
			secs = secs % times[i];
		}
		return time;
	}
	
});
