var _t = function(token, placeholders) { var messages = {"conversations.today":"Today","conversations.week.sun":"Sunday","conversations.week.mon":"Monday","conversations.week.tue":"Tuesday","conversations.week.wed":"Wednesday","conversations.week.thu":"Thursday","conversations.week.fri":"Friday","conversations.week.sat":"Saturday","conversations.month.jan":"January","conversations.month.feb":"February","conversations.month.mar":"March","conversations.month.apr":"April","conversations.month.may":"May","conversations.month.jun":"June","conversations.month.jul":"July","conversations.month.aug":"August","conversations.month.sep":"September","conversations.month.oct":"October","conversations.month.nov":"November","conversations.month.dec":"December","conversations.error.sending":"Error sending messages. Please try again or contact the site administration.","conversations.connected":"Connection established","anketa.edit.error.invalid_field":"Invalid field","anketa.edit.error.invalid_place":"This location cannot be selected. Please, drag the marker to another location.","anketa.edit.error.last_photo_delete":"The last photo cannot be deleted.","anketa.edit.remained_chars":"%count% chars left","anketa.edit.remained":"%count% char left","anketa.edit.photo.delete.confirm":"Delete this photo?","anketa.edit.video.error.cannot":"The file couldn't be loaded. Please, try again later.","anketa.edit.video.processing":"Processing the video...","anketa.edit.video.delete.confirm":"Delete this video?","footer.change_lang.label":"Language and currency","footer.change_lang.close":"Close","wishlist.added":"Added to wishlist","wishlist.add":"Add to wishlist","wishlist.created":"New wishlist created successfully","wishlist.delete.confirm":"Do you want to delete this listing from the wishlist?","topmenu.mark_as_read.error":"Error in processing your request. Please, try again."}; if (typeof(messages[token]) === "undefined") { console.log("Undefined translation token: ", token); return token; } var message = messages[token]; if (typeof(placeholders) !== "undefined") { for (i in placeholders) { message = message.replace(i, placeholders[i]); } } return message; }