var lang = {"choose_images":"Select pictures:","tos":"I agree to the %sTOS%s","no_file":"You didn't select any picture","didnt_agree_with_tos":"You didn't agree to TOS","unexpected_size":"Picture is larger than 10 MB","unexpected_format":"Wrong file format, allowed are gif, png, jpg","upload":"Upload","noauthkey":"No authkey has been sent","nofileid":"No fileid has been sent","noid":"Unable to get id","content_type":"Content type","content_nsfw":"Adult (XXX)","content_sfw":"Family safe","no_content_type":"You have to select a content type","connect_pictures":"Connect pictures","session_error":"Your browser doesn't support sessions","supported_files":"Supported formats: gif, png, jpg.
Maximum image size is 10 MB.","no_refferer":"No refferer!
Check your browser's settings and allow refferers.","no_flash":"You must have Flash Player installed and Javascript enabled in order to use Flash Upload.
Flash player is downloadble here<\/a>. You can use Classic Upload<\/a> if you do not wish to install Flash Player.","more":"More","choose_images_cover":"Select pictures (by Covers):","image_is_too_thin":"Picture must be higher than 350px.","404":"This page doesn't exist.","rules":"
TERMS OF SERVICE<\/center><\/b>
- No breaking of copyright law.
- No child porn.","uploaded":"Picture was uploaded:","show_friend":"Show to friend:","forum_thumbnail":"Forum thumbnail:","html_thumbnail":"HTML thumbmail:","direct_html":"Direct HTML link:","phorum_image":"Forum direct picture:","phorum_code":"Forum [code]:","image_doesnt_exist":"Picture doesn't exist","image_has_been_removed":"Picture was deleted","image_hasnt_been_specified":"Id or name wasn't specified","image_views":"Views:","wrong_path":"Picture doesn't exist on this url","enter_urls":"Enter url's:","enter_url":"Enter url:","error_occuried":"Error","img":"Picture","size":"Size","ip":"IP Address","views":"Views","remove":"Delete","id":"ID","preview":"Preview","delete":"Name:","del_submit":"Delete","deleted":"Picture was deleted.","not_found":"Picture doesn't exist.","traffic":"Traffic","del_reset":"Reset","total_rate":"Total rate","host":"Host","rate":"Rate","create_gallery":"Create gallery","gallery_name":"Gallery Name","gallery_missing_hash":"Gallery Hash wasn't provided","gallery_404":"Gallery doesn't exist","gallery_unable_to_find_in_uploads":"Gallery Upload Hash is not valid","gallery_unable_to_finalize":"Unable to finalize the gallery for next uploads","galery_without_images":"Gallery doesn't contain any image","gallery_url":"Gallery URL:","gallery_not_loaded":"Gallery ID is not loaded","gallery_data_not_loaded":"Gallery Data are not loaded","gallery_th_not_loaded":"Gallery Thumbnail is not loaded","gallery_is_being_uploaded":"The gallery is being uploaded","untitled_gallery":"Untitled Gallery","unable_to_create_zip_archive":"Unable to create .zip archive","unable_to_create_zip_archive_longer":"Unable to create .zip archive, try again later!","show_image_in_gallery":"%s from %s in gallery","show_gallery_desktop_tip":"%stip:%s Use arrows for navigation in gallery","image":"Image","images":"Images","images_2":"Images","count_views":"Count Views","image_no_upload_data":"Some necessary upload data are missing","image_no_data":"Image data are missing","image_not_uploaded":"Image is not uploaded","image_no_file":"Image to be uploaded wasn't provided","remote_unable_to_download_image":"Unable to download image","remote_urls_limit_exceeded":"Maximum limit of %s urls exceeded, the rest will be ignored.","upload_settings":"Settings","upload_settings_maximum_th_size":"Maximum Thumbnail Size","all_at_once":"All at Once","forum_links":"Forum links","html_links":"HTML links","one_line":"One line","link_per_line":"Link per line","lb_unable_to_convert_link":"Unable to convert link to LinkBucks","lb_wrong_credentials":"Invalid user name or api password","lb_unknown_error":"Unknown error","lb_user":"User","lb_apipassword":"API Password","press_x_to_copy":"Press %s to copy","copied":"Copied"}; function translate(word){ if( word in lang ) { return lang[word]; } else { return word; } } // Minimal sprintf implementation from: http://stackoverflow.com/a/4795914 function sprintf() { var args = arguments, string = args[0], i = 1; return string.replace(/%((%)|s|d)/g, function (m) { // m is the matched format, e.g. %s, %d var val = null; if (m[2]) { val = m[2]; } else { val = args[i]; // A switch statement so that the formatter can be extended. Default is %s switch (m) { case '%d': val = parseFloat(val); if (isNaN(val)) { val = 0; } break; } i++; } return val; }); }