<?php
	class systemLANG {
		public $mLangCollection = array();
		private $mPrefix = null;
		
		public function __construct() {
			$l = &$this->mLangCollection;
			
			// PAGE INDEX (index.php)
			$l["index"] = array();
			$l["index"]["title"] = "Welcome to our social network!";
			$l["index"]["maintitle"] = "Welcome to %s";
			$l["index"]["maindesc"] = "stay connected and share content with people";
			$l["index"]["signin"] = "Sign In";
			$l["index"]["email"] = "Email address";
			$l["index"]["password"] = "Password";
			$l["index"]["login"] = "Login";
			$l["index"]["registernew"] = "Register a new membership";
			$l["index"]["signup"] = "Sign Up";
			$l["index"]["firstname"] = "Firstname";
			$l["index"]["lastname"] = "Lastname";
			$l["index"]["result"] = "The result";
			$l["index"]["submit"] = "Submit";
			$l["index"]["backlogin"] = "Back to the login";
			$l["index"]["forgotpass"] = "Forgot your password?";
			$l["index"]["termsofuse"] = "Terms of use";
			$l["index"]["disclaimer"] = "Disclaimer";
			$l["index"]["privacypolicy"] = "Privacy Policy";
			$l["index"]["about"] = "About";
			$l["index"]["admin"] = "Admin Panel";
			$l["index"]["close"] = "Close";
			$l["index"]["emailquestion"] = "What is your email address?";
			$l["index"]["reset"] = "Reset";
			$l["index"]["checkinbox"] = "Check your inbox!";
			$l["index"]["loading"] = "Loading..";
			$l["index"]["captchawrong"] = "Your captcha result is wrong. Try it again!";
			
			// PAGE POLICY (page.policy.php)
			$l["page.policy"]["title"] = "Our privacy policy";
			$l["page.policy"]["policy"] = "Policy";
			$l["page.policy"]["termsofuse"] = "Terms of use";
			$l["page.policy"]["privacypolicy"] = "Privacy policy";
			$l["page.policy"]["disclaimer"] = "Disclaimer";
			$l["page.policy"]["about"] = "About";
			$l["page.policy"]["backtologin"] = "Back to the login";
			
			// PAGE TIMELINE (page.timeline.php)
			$l["page.timeline"]["title"] = "%s's timeline";
			$l["page.timeline"]["gotoprofile"] = "Profile";
			$l["page.timeline"]["adminpanel"] = "Admin";
			$l["page.timeline"]["lastsignin"] = "Your last sign in was";
			$l["page.timeline"]["mindquestion"] = "What is on your mind?";
			$l["page.timeline"]["locationquestion"] = "Are you somewhere?";
			$l["page.timeline"]["picturesquestion"] = "Have you got pictures?";
			$l["page.timeline"]["misc"] = "Hashtags, Mentions..";
			$l["page.timeline"]["done"] = "Done!";
			$l["page.timeline"]["selectimage"] = "Select an image";
			$l["page.timeline"]["addtoalbum"] = "Add to an existing album";
			$l["page.timeline"]["seequestion"] = "Who can see your entry?";
			$l["page.timeline"]["everyone"] = "Everyone";
			$l["page.timeline"]["friends"] = "Friends";
			$l["page.timeline"]["onlyme"] = "Only me";
			$l["page.timeline"]["hashtagsquestion"] = "What about some hashtags?";
			$l["page.timeline"]["mentionquestion"] = "What about mentions?";
			$l["page.timeline"]["onlyvalid"] = "Only valid friend names!";
			$l["page.timeline"]["sharepost"] = "Share this post!";
			
			// PAGE PROFILE (page.profile.php)
			$l["page.profile"]["loading"] = "Loading..";
			$l["page.profile"]["openchat"] = "Open chat";
			$l["page.profile"]["changepictures"] = "Change pictures";
			$l["page.profile"]["timeline"] = "Timeline";
			$l["page.profile"]["info"] = "Info";
			$l["page.profile"]["gallery"] = "Gallery";
			$l["page.profile"]["friends"] = "Friends";
			$l["page.profile"]["questionmind"] = "What is on your mind?";
			$l["page.profile"]["questionlocation"] = "Are you somewhere?";
			$l["page.profile"]["questionpictures"] = "Have you got pictures?";
			$l["page.profile"]["misc"] = "Hashtags, Mentions..";
			$l["page.profile"]["done"] = "Done!";
			$l["page.profile"]["selectimage"] = "Select an image";
			$l["page.profile"]["addtoalbum"] = "Add to an existing album";
			$l["page.profile"]["seequestion"] = "Who can see your entry?";
			$l["page.profile"]["everyone"] = "Everyone";
			$l["page.profile"]["friends"] = "Friends";
			$l["page.profile"]["onlyme"] = "Only me";
			$l["page.profile"]["questionhashtags"] = "What about some hashtags?";
			$l["page.profile"]["questionmentions"] = "What about mentions?";
			$l["page.profile"]["onlyvalid"] = "Only valid friend names!";
			$l["page.profile"]["sharepost"] = "Share this post!";
			$l["page.profile"]["pictures"] = "Pictures";
			$l["page.profile"]["createnewalbum"] = "Create new album";
			$l["page.profile"]["noalbums"] = "There are no albums.";
			$l["page.profile"]["workplace"] = "Workplace";
			$l["page.profile"]["placeresidence"] = "Place of residence";
			$l["page.profile"]["detailsabout"] = "Details about";
			$l["page.profile"]["email"] = "Email";
			$l["page.profile"]["password"] = "Password";
			$l["page.profile"]["onlyyou"] = "Only for you visible";
			$l["page.profile"]["clickchangepass"] = "Click here to change your password";
			$l["page.profile"]["close"] = "Close";
			$l["page.profile"]["changeprofilepicture"] = "Change profile images";
			$l["page.profile"]["profilepicture"] = "Profile picture";
			$l["page.profile"]["selectprofilepicture"] = "Select profile picture";
			$l["page.profile"]["coverpicture"] = "Cover picture";
			$l["page.profile"]["selectcoverpicture"] = "Select cover picture";
			$l["page.profile"]["upload"] = "Upload";
			$l["page.profile"]["modifyalbums"] = "Modify your albums";
			$l["page.profile"]["modify"] = "Modify";
			$l["page.profile"]["haventgotalbums"] = "You haven't got any albums.";
			
			// AJAX FILES (file names as keys just without .php)
			$l["ajax.handle.chat.list"]["nofriends"] = "No friends.";
			$l["ajax.handle.fetch.likes"]["currentlynolikes"] = "There are currently no likes.";
			$l["ajax.handle.fetch.mentions"]["nomentions"] = "There are no mentions.";
			$l["ajax.handle.load.gallery"]["currentlynopictures"] = "There are currently no pictures.";
			$l["ajax.handle.notifications.friends"]["accept"] = "Accept";
			$l["ajax.handle.notifications.friends"]["decline"] = "Decline";
			$l["ajax.handle.notifications.friends"]["nofriendrequests"] = "There are no friend requests.";
			$l["ajax.handle.notifications.global"]["likedyourentry"] = "liked your entry.";
			$l["ajax.handle.notifications.global"]["likedcomment"] = "liked your comment.";
			$l["ajax.handle.notifications.global"]["likedpicture"] = "liked your picture.";
			$l["ajax.handle.notifications.global"]["hascommentedyour"] = "commented your";
			$l["ajax.handle.notifications.global"]["nonotifications"] = "There are no notifications.";
			$l["ajax.handle.notifications.messages"]["nomessages"] = "There are no messages.";
			$l["ajax.handle.search.users"]["has"] = "has";
			$l["ajax.handle.search.users"]["friends"] = "friends";
			$l["ajax.handle.submit.signin"]["emailpasswrong"] = "Either your email or your password is wrong";
			$l["ajax.handle.submit.signin"]["filloutfields"] = "You have to fill out the fields";
			$l["ajax.handle.submit.signup"]["emailinuse"] = "This email is already in use";
			$l["ajax.handle.submit.signup"]["emailinvalid"] = "Your email is invalid";
			$l["ajax.handle.submit.signup"]["firstnamelastnamewrong"] = "Your first- or lastname lenght is invalid";
			$l["ajax.handle.timeline.commentload"]["display"] = "Display";
			$l["ajax.handle.timeline.commentload"]["morecomments"] = "more comments";
			$l["ajax.handle.timeline.commentload"]["unlikethis"] = "Unlike this";
			$l["ajax.handle.timeline.commentload"]["likethis"] = "Like this";
			$l["ajax.handle.timeline.commentload"]["displaymore"] = "Display more";
			$l["ajax.handle.timeline.commentload"]["report"] = "Report";
			$l["ajax.handle.timeline.fetch"]["showall"] = "Show all";
			$l["ajax.handle.timeline.fetch"]["like"] = "Like";
			$l["ajax.handle.timeline.fetch"]["unlike"] = "Unlike";
			$l["ajax.handle.timeline.fetch"]["sharedfrom"] = "has shared a post from";
			$l["ajax.handle.timeline.fetch"]["goprofile"] = "Go to profile";
			$l["ajax.handle.timeline.fetch"]["comment"] = "Comment";
			$l["ajax.handle.timeline.fetch"]["share"] = "Share";
			$l["ajax.handle.timeline.post"]["invalidalbum"] = "Your album id is invalid";
			$l["ajax.handle.timeline.post"]["fillout"] = "You should at least submit a location, text or image!";
			$l["ajax.handle.timeline.post"]["hashtagslimit"] = "You've got too much hashtags!";
			$l["ajax.handle.timeline.post"]["showall"] = "Show all";
			$l["ajax.handle.timeline.post"]["showall"] = "Show all";
			$l["time"]["ago"] = "ago";
			$l["time"]["second"] = "second";
			$l["time"]["minute"] = "minute";
			$l["time"]["hour"] = "hour";
			$l["time"]["day"] = "day";
			$l["time"]["week"] = "week";
			$l["time"]["month"] = "month";
			$l["time"]["year"] = "year";
			$l["time"]["decade"] = "decade";
			$l["time"]["time_addon"] = "s"; // month's', day's', year's'; minute'n', stunde'n',..
			$l["mail"]["yourregistrationat"] = "Your registration at";
			$l["mail"]["wassuccessful"] = "was successful";
			$l["mail"]["welcome"] = "Welcome";
			$l["mail"]["pwresetfor"] = "Password reset for";
			$l["mail"]["requestedpwreset"] = "Somebody has requested a password reset. If it wasn't you, just ignore this email.";
			$l["mail"]["toreset"] = "To reset your password click the following link";
			$l["mail"]["newpasswordfor"] = "New password for";
			$l["mail"]["resetpw"] = "We have resetted your password.";
			$l["mail"]["newpwis"] = "Your new password is";
			
			$l["chat"]["friendswindowtitle"] = "Chat";
			$l["chat"]["closechat"] = "Close chat";
			$l["chat"]["openchat"] = "Open chat";
			
			$l["global"]["areyousure"] = "Are you sure?";
			$l["global"]["aboutsignout"] = "You are about to sign out. Are you sure?";
			$l["global"]["yessignout"] = "Yes, sign me off!";
			$l["global"]["nosignout"] = "No, let me in!";
			$l["global"]["signedout"] = "You've been signed out!";
			$l["global"]["signedouttext"] = "You aren't anymore online. Good bye!";
			$l["global"]["goodbye"] = "Good bye!";
			$l["global"]["unlikethis"] = "Unlike this";
			$l["global"]["likethis"] = "Like this";
			$l["global"]["containertextdelete"] = "You can't undo this action after you've deleted your entry once!";
			$l["global"]["yesdelete"] = "Yes, delete it!";
			$l["global"]["deleted"] = "Deleted!";
			$l["global"]["entrydeleted"] = "Your entry has been deleted!";
			$l["global"]["postsubmitted"] = "Your post has been submitted!";
			$l["global"]["emptytimeline"] = "There are currently no timeline entries. What about creating the first one?";
			$l["global"]["timelineerror"] = "Oops! The timeline couldn't load. Refresh the page please. :)";
			$l["global"]["addfriend"] = "Add friend";
			$l["global"]["pending"] = "Pending";
			$l["global"]["remove"] = "Remove";
			$l["global"]["removefriendwarning"] = "You are about to remove a friend. Are you sure?";
			$l["global"]["yes"] = "Yes!";
			$l["global"]["cancel"] = "Cancel";
			$l["global"]["sunday"] = "Sunday";
			$l["global"]["monday"] = "Monday";
			$l["global"]["tuesday"] = "Tuesday";
			$l["global"]["wednesday"] = "Wednesday";
			$l["global"]["thursday"] = "Thursday";
			$l["global"]["friday"] = "Friday";
			$l["global"]["saturday"] = "Saturday";
			$l["global"]["nocomments"] = "There are no comments.";
			$l["global"]["albumdeletewarning"] = "All your images included in this album will get deleted. Are you really sure?";
			$l["global"]["nocancel"] = "Cancel!";
			$l["global"]["albumdeleted"] = "Your album has been deleted!";
			$l["global"]["goodjob"] = "Good job!";
			$l["global"]["addedcollection"] = "Your album has been added to the collection.";
			$l["global"]["oops"] = "Oops!";
			$l["global"]["albumnameinuse"] = "It looks like your album name is already in usage. What about using another name?";
			$l["global"]["albumnameempty"] = "You can't leave your album name empty!";
			$l["global"]["submitreport"] = "You are about to submit a report. Do you want to continue?";
			$l["global"]["reported"] = "Reported!";
			$l["global"]["reportsubmitted"] = "The report has been submitted to a operator!";
			$l["global"]["nofriends"] = "There are no friends!";
			$l["global"]["sharetext"] = "You are about to share this post. Do you want to share it?";
			$l["global"]["yesshare"] = "Yes, share it!";
			$l["global"]["shared"] = "Shared!";
			$l["global"]["sharedtext"] = "This post has been shared to your timeline!";
			
			$l["profile"]["unlike"] = "Unlike";
			$l["profile"]["like"] = "Like";
			$l["profile"]["likedsofar"] = "Who has liked so far?";
			$l["profile"]["areyousure"] = "Are you sure?";
			$l["profile"]["norecovercomment"] = "You can't recover your comment after you've deleted it once.";
			$l["profile"]["yesdelete"] = "Yes, delete it!";
			$l["profile"]["deleted"] = "Deleted!";
			$l["profile"]["deletedtextcomment"] = "Your comment has been deleted!";
			$l["profile"]["postsubmitted"] = "Your post has been submitted!";
			$l["profile"]["welldone"] = "Well done!";
			$l["profile"]["postappended"] = "Your post has been appended to the timeline!";
			$l["profile"]["error"] = "An error occured!";
			$l["profile"]["sharethis"] = "Share this post!";
			$l["profile"]["posthasbeenappended"] = "Your post has been appended to the timeline!";
			
			$l["timeline"]["unlike"] = "Unlike";
			$l["timeline"]["like"] = "Like";
			$l["timeline"]["areyousure"] = "Are you sure?";
			$l["timeline"]["norecovercomment"] = "You can't recover your comment after you've deleted it once.";
			$l["timeline"]["yesdelete"] = "Yes, delete it!";
			$l["timeline"]["deleted"] = "Deleted!";
			$l["timeline"]["commentdeleted"] = "Your comment has been deleted!";
			$l["timeline"]["welldone"] = "Well done!";
			$l["timeline"]["postappended"] = "Your post has been appended to the timeline!";
			$l["timeline"]["error"] = "An error occured!";
			$l["timeline"]["sharepost"] = "Share this post!";
			$l["timeline"]["hasbeenappended"] = "Your post has been appended to the timeline!";
			
			$l["tpl.header"]["friendrequests"] = "Friendrequests";
			$l["tpl.header"]["chatmessages"] = "Chat messages";
			$l["tpl.header"]["globalnotifications"] = "Global notifications";
		}
		
		public function setPrefix($mPrefix) {
			$this->mPrefix = $mPrefix;
		}
		
		public function getValue($mKey) {
			return array_key_exists($mKey, $this->mLangCollection[$this->mPrefix]) ? $this->mLangCollection[$this->mPrefix][$mKey] : "[keyNotFound: ".$this->mPrefix.':'.$mKey.']';
		}
	}
?>