

(function(globals) {

  var django = globals.django || (globals.django = {});

  
  django.pluralidx = function(n) {
    var v=(n != 1);
    if (typeof(v) == 'boolean') {
      return v ? 1 : 0;
    } else {
      return v;
    }
  };
  

  /* gettext library */

  django.catalog = django.catalog || {};
  
  var newcatalog = {
    " You can now log in with your e-mail.": " You can now log in with your e-mail.",
    "(1944) | (1940.05)..1941.08.21)": "(1944) | (1940.05)..1941.08.21)",
    "1878 | 1902.02": "1878 | 1902.02",
    "1910-1920 | 1978.05.20..1978.06.27 | -1920 | 1935..": "1910-1920 | 1978.05.20..1978.06.27 | -1920 | 1935..",
    "Add feedback": "Add feedback",
    "Add name": "Add name",
    "Add new person": "Add new person",
    "Add person name": "Add person name",
    "Add this picture to album (not the whole set)": "Add this picture to album (not the whole set)",
    "Adult": "Adult",
    "Aerial": "Aerial",
    "After %(from)s": "After %(from)s",
    "After approximately %(from)s": "After approximately %(from)s",
    "Age": "Age",
    "Album details": "Album details",
    "Albums": "Albums",
    "All pictures": "All pictures",
    "All pictures are shown in the sidebar": "All pictures are shown in the sidebar",
    "An unknown error occurred.": "An unknown error occurred.",
    "Annotation type": "Annotation type",
    "Anonymous user": "Anonymous user",
    "Anonymous users": "Anonymous users",
    "Apply album filter": "Apply album filter",
    "Approximate": "Approximate",
    "Approximate address": "Approximate address",
    "Approximate date in brackets": "Approximate date in brackets",
    "Approximately %(date)s": "Approximately %(date)s",
    "Are you sure you want to create an album with less than 5 photos? We recommend to create albums with at least 10 or more pictures.": "Are you sure you want to create an album with less than 5 photos? We recommend to create albums with at least 10 or more pictures.",
    "Author": "Author",
    "Before %(to)s": "Before %(to)s",
    "Before approximately %(to)s": "Before approximately %(to)s",
    "Between %(from)s and %(to)s": "Between %(from)s and %(to)s",
    "Between %(from)s and approximately %(to)s": "Between %(from)s and approximately %(to)s",
    "Between approximately %(from)s and %(to)s": "Between approximately %(from)s and %(to)s",
    "Between approximately %(from)s and approximately %(to)s": "Between approximately %(from)s and approximately %(to)s",
    "By reverse timestamp": "By reverse timestamp",
    "By timestamp": "By timestamp",
    "Cancel": "Cancel",
    "Categorize scene": "Categorize scene",
    "Change age group": "Change age group",
    "Change gender": "Change gender",
    "Change object class": "Change object class",
    "Change person name": "Change person name",
    "Child": "Child",
    "Click (don't drag) to start drawing the annotation. Click again to finish drawing.": "Click (don't drag) to start drawing the annotation. Click again to finish drawing.",
    "Click on the map to lock the direction of the view or click yellow button to save only the location.": "Click on the map to lock the direction of the view or click yellow button to save only the location.",
    "Click the green button to save both the location and the direction of the view. Click on the map to unlock the direction, drag MARKER to correct the location.": "Click the green button to save both the location and the direction of the view. Click on the map to unlock the direction, drag MARKER to correct the location.",
    "Click the green button to save both the location and the direction of the view. Click on the map to unlock the direction, drag map to correct the location.": "Click the green button to save both the location and the direction of the view. Click on the map to unlock the direction, drag map to correct the location.",
    "Close": "Close",
    "Comment your dating": "Comment your dating",
    "Comments": "Comments",
    "Comments in album": "Comments in album",
    "Confirm": "Confirm",
    "Confirm correct location": "Confirm correct location",
    "Confirm dating": "Confirm dating",
    "Confirming a dating earned you %(points)s points.": "Confirming a dating earned you %(points)s points.",
    "Continue": "Continue",
    "Could not copy link to clipboard": "Could not copy link to clipboard",
    "Current location": "Current location",
    "Date": "Date",
    "Delete": "Delete",
    "Description": "Description",
    "Did you mean to search from:": "Did you mean to search from:",
    "Drag the map so that the circle covers the approximate location, click save when ready.": "Drag the map so that the circle covers the approximate location, click save when ready.",
    "Drag the map so that the marker is on top of the object you see on the picture, click save when ready.": "Drag the map so that the marker is on top of the object you see on the picture, click save when ready.",
    "Edit": "Edit",
    "Edit face annotation": "Edit face annotation",
    "Edit feedback": "Edit feedback",
    "Edit object annotation": "Edit object annotation",
    "Elderly": "Elderly",
    "Enter person name": "Enter person name",
    "Exterior": "Exterior",
    "Face": "Face",
    "Failed to add face annotation feedback": "Failed to add face annotation feedback",
    "Failed to add object annotation feedback": "Failed to add object annotation feedback",
    "Failed to load annotations": "Failed to load annotations",
    "Failed to load object annotation classes": "Failed to load object annotation classes",
    "Failed to remove face annotation": "Failed to remove face annotation",
    "Failed to save face annotation edit": "Failed to save face annotation edit",
    "Failed to send your feedback, sorry.": "Failed to send your feedback, sorry.",
    "Female": "Female",
    "Find existing person": "Find existing person",
    "Find object": "Find object",
    "Flip": "Flip",
    "Gender": "Gender",
    "Geotag pictures in album": "Geotag pictures in album",
    "Geotagged by this many users": "Geotagged by this many users",
    "Go to my location": "Go to my location",
    "Grab and drag the MAP so that the marker is where the photographer was standing.": "Grab and drag the MAP so that the marker is where the photographer was standing.",
    "Ground": "Ground",
    "Historic maps": "Historic maps",
    "How much has the depicted location changed?": "How much has the depicted location changed?",
    "Image has location and view direction info": "Image has location and view direction info",
    "Image has no location info": "Image has no location info",
    "Image has only location, no view direction": "Image has only location, no view direction",
    "Image has rephotos": "Image has rephotos",
    "Image has similar photos": "Image has similar photos",
    "Institution": "Institution",
    "Interior": "Interior",
    "Invalid input, see help text.": "Invalid input, see help text.",
    "Invert": "Invert",
    "Invert colors": "Invert colors",
    "Is this": "Is this",
    "Is this a": "Is this a",
    "Is this a face": "Is this a face",
    "Licence": "Licence",
    "Link copied to clipboard": "Link copied to clipboard",
    "Location information is unavailable.": "Location information is unavailable.",
    "Login": "Login",
    "MUIS": "MUIS",
    "Male": "Male",
    "Mark date ranges or before/after with either \"-\" or \"..\"": "Mark date ranges or before/after with either \"-\" or \"..\"",
    "Mark stereophoto": "Mark stereophoto",
    "Median suggestion": "Median suggestion",
    "My favorites": "My favorites",
    "My rephotos": "My rephotos",
    "Name": "Name",
    "Need 2 characters": "Need 2 characters",
    "No aerial pictures were found": "No aerial pictures were found",
    "No aerial pictures were found in this album": "No aerial pictures were found in this album",
    "No exterior views were found": "No exterior views were found",
    "No exterior views were found in this album": "No exterior views were found in this album",
    "No interior views were found": "No interior views were found",
    "No interior views were found in this album": "No interior views were found in this album",
    "No pictures from the ground level were found": "No pictures from the ground level were found",
    "No pictures from the ground level were found in this album": "No pictures from the ground level were found in this album",
    "No pictures were found": "No pictures were found",
    "No pictures were found in this album": "No pictures were found in this album",
    "No pictures were found with the selected filters": "No pictures were found with the selected filters",
    "No pictures were found with the selected filters in this album": "No pictures were found with the selected filters in this album",
    "No pictures which have 0 geotags were found": "No pictures which have 0 geotags were found",
    "No pictures which have 0 geotags were found in this album": "No pictures which have 0 geotags were found in this album",
    "No pictures with back sides were found": "No pictures with back sides were found",
    "No pictures with back sides were found in this album": "No pictures with back sides were found in this album",
    "No pictures with marked faces were found": "No pictures with marked faces were found",
    "No pictures with marked faces were found in this album": "No pictures with marked faces were found in this album",
    "No raised viewpoint pictures were found": "No raised viewpoint pictures were found",
    "No raised viewpoint pictures were found in this album": "No raised viewpoint pictures were found in this album",
    "No results found": "No results found",
    "No results found for: %(query)s": "No results found for: %(query)s",
    "No results found for: %(query)s\nYou could also try to edit filters applied to your search": "No results found for: %(query)s\nYou could also try to edit filters applied to your search",
    "No results found for: %(query)s in this album": "No results found for: %(query)s in this album",
    "No results found for: %(query)s in this album\nYou could also try to edit filters applied to your search": "No results found for: %(query)s in this album\nYou could also try to edit filters applied to your search",
    "Not selected": "Not selected",
    "Now you can drag the MARKER where the photographer was standing and the MAP separately.": "Now you can drag the MARKER where the photographer was standing and the MAP separately.",
    "Number": "Number",
    "Object": "Object",
    "Object is required": "Object is required",
    "Object type": "Object type",
    "Ordering": "Ordering",
    "Photo": "Photo",
    "Photo with selected rephoto": "Photo with selected rephoto",
    "Pick the shooting location!": "Pick the shooting location!",
    "Picture already in album(s)": "Picture already in album(s)",
    "Picture flip feedback": "Picture flip feedback",
    "Picture has location data attached": "Picture has location data attached",
    "Picture is already in Ajapaik. You can still add it to your album, no curation points awarded": "Picture is already in Ajapaik. You can still add it to your album, no curation points awarded",
    "Picture set has no annotations": "Picture set has no annotations",
    "Picture set has no comments": "Picture set has no comments",
    "Picture set has no datings": "Picture set has no datings",
    "Picture set has no geotags": "Picture set has no geotags",
    "Picture set has no likes": "Picture set has no likes",
    "Picture set has no rephotos": "Picture set has no rephotos",
    "Picture set has no transcriptions": "Picture set has no transcriptions",
    "Picture set has no views": "Picture set has no views",
    "Pictures closest to you": "Pictures closest to you",
    "Pictures from the map": "Pictures from the map",
    "Pictures furthest from you": "Pictures furthest from you",
    "Pictures geotagged": "Pictures geotagged",
    "Pictures in album": "Pictures in album",
    "Pictures only in album: %(albumName)s are shown in the sidebar": "Pictures only in album: %(albumName)s are shown in the sidebar",
    "Points": "Points",
    "Points awarded": "Points awarded",
    "Raised": "Raised",
    "Remove album filter": "Remove album filter",
    "Remove from selection": "Remove from selection",
    "Rephotos by %(user)s": "Rephotos by %(user)s",
    "Rephotos in album": "Rephotos in album",
    "Rotate": "Rotate",
    "Search box": "Search box",
    "Search for object": "Search for object",
    "Searching": "Searching",
    "Select age group": "Select age group",
    "Select gender": "Select gender",
    "Server received invalid data.": "Server received invalid data.",
    "Show pictures on map": "Show pictures on map",
    "Similar photos in album": "Similar photos in album",
    "Size": "Size",
    "Something went wrong, please check your connection. If the issue persists please contact us on Tawk.to": "Something went wrong, please check your connection. If the issue persists please contact us on Tawk.to",
    "Source": "Source",
    "Source ID": "Source ID",
    "Specify alternative age group": "Specify alternative age group",
    "Specify alternative gender": "Specify alternative gender",
    "Specify person name": "Specify person name",
    "Submit": "Submit",
    "Submit your own location": "Submit your own location",
    "Submitting a dating earned you %(points)s points.": "Submitting a dating earned you %(points)s points.",
    "Successfully added face annotation": "Successfully added face annotation",
    "Successfully added face annotation feedback": "Successfully added face annotation feedback",
    "Successfully added object annotation": "Successfully added object annotation",
    "Successfully added object annotation feedback": "Successfully added object annotation feedback",
    "Successfully edited face annotation": "Successfully edited face annotation",
    "Successfully removed face annotation": "Successfully removed face annotation",
    "Successfully removed object annotation": "Successfully removed object annotation",
    "Successfully updated object annotation": "Successfully updated object annotation",
    "System error": "System error",
    "Thank you!": "Thank you!",
    "Thank you! Bad rectangle deleted.": "Thank you! Bad rectangle deleted.",
    "Thanks!": "Thanks!",
    "The request to get user location timed out.": "The request to get user location timed out.",
    "This album contains a film": "This album contains a film",
    "This transcription is correct": "This transcription is correct",
    "Title": "Title",
    "Toggle map center lock": "Toggle map center lock",
    "Transcribed by:": "Transcribed by:",
    "URL": "URL",
    "Unable to remove object annotation": "Unable to remove object annotation",
    "Unable to save face annotation": "Unable to save face annotation",
    "Unable to save object annotation": "Unable to save object annotation",
    "Unable to update object annotation": "Unable to update object annotation",
    "Unknown": "Unknown",
    "Unknown author": "Unknown author",
    "Unsure": "Unsure",
    "Use YYYY.MM.DD format (MM.DD not obligatory)": "Use YYYY.MM.DD format (MM.DD not obligatory)",
    "User denied the request for Geolocation.": "User denied the request for Geolocation.",
    "Vantage point": "Vantage point",
    "What is displayed": "What is displayed",
    "What is written on the image?": "What is written on the image?",
    "YYYY.MM.DD": "YYYY.MM.DD",
    "You": "You",
    "You have gained %s point": [
      "You have gained %s point",
      "You have gained %s points"
    ],
    "You have opened the map with the album filter off, to turn it on, please tick the box next to album name": "You have opened the map with the album filter off, to turn it on, please tick the box next to album name",
    "You have opened the map with the album filter on, to turn it off, please untick the box next to album name": "You have opened the map with the album filter on, to turn it off, please untick the box next to album name",
    "You have seen all the pictures from this album.": "You have seen all the pictures from this album.",
    "You're anonymous": "You're anonymous",
    "You're anonymous, please login to add transcriptions": "You're anonymous, please login to add transcriptions",
    "You're anonymous.": "You're anonymous.",
    "You've seen all the pictures in this album, we are now showing you random photos.": "You've seen all the pictures in this album, we are now showing you random photos.",
    "Your annotation info": "Your annotation info",
    "Your suggestion": "Your suggestion",
    "Your suggestion has been changed": "Your suggestion has been changed",
    "a little": "a little",
    "a lot": "a lot",
    "added": "added",
    "all pictures": "all pictures",
    "annotated": "annotated",
    "categorized": "categorized",
    "commented": "commented",
    "dated": "dated",
    "earliest": "earliest",
    "geotagged": "geotagged",
    "latest": "latest",
    "least": "least",
    "liked": "liked",
    "most": "most",
    "optional": "optional",
    "photos": "photos",
    "pictures": "pictures",
    "rephotographed": "rephotographed",
    "transcribed": "transcribed",
    "viewed": "viewed"
  };
  for (var key in newcatalog) {
    django.catalog[key] = newcatalog[key];
  }
  

  if (!django.jsi18n_initialized) {
    django.gettext = function(msgid) {
      var value = django.catalog[msgid];
      if (typeof(value) == 'undefined') {
        return msgid;
      } else {
        return (typeof(value) == 'string') ? value : value[0];
      }
    };

    django.ngettext = function(singular, plural, count) {
      var value = django.catalog[singular];
      if (typeof(value) == 'undefined') {
        return (count == 1) ? singular : plural;
      } else {
        return value.constructor === Array ? value[django.pluralidx(count)] : value;
      }
    };

    django.gettext_noop = function(msgid) { return msgid; };

    django.pgettext = function(context, msgid) {
      var value = django.gettext(context + '\x04' + msgid);
      if (value.indexOf('\x04') != -1) {
        value = msgid;
      }
      return value;
    };

    django.npgettext = function(context, singular, plural, count) {
      var value = django.ngettext(context + '\x04' + singular, context + '\x04' + plural, count);
      if (value.indexOf('\x04') != -1) {
        value = django.ngettext(singular, plural, count);
      }
      return value;
    };

    django.interpolate = function(fmt, obj, named) {
      if (named) {
        return fmt.replace(/%\(\w+\)s/g, function(match){return String(obj[match.slice(2,-2)])});
      } else {
        return fmt.replace(/%s/g, function(match){return String(obj.shift())});
      }
    };


    /* formatting library */

    django.formats = {
    "DATETIME_FORMAT": "N j, Y, P",
    "DATETIME_INPUT_FORMATS": [
      "%Y-%m-%d %H:%M:%S",
      "%Y-%m-%d %H:%M:%S.%f",
      "%Y-%m-%d %H:%M",
      "%Y-%m-%d",
      "%m/%d/%Y %H:%M:%S",
      "%m/%d/%Y %H:%M:%S.%f",
      "%m/%d/%Y %H:%M",
      "%m/%d/%Y",
      "%m/%d/%y %H:%M:%S",
      "%m/%d/%y %H:%M:%S.%f",
      "%m/%d/%y %H:%M",
      "%m/%d/%y"
    ],
    "DATE_FORMAT": "N j, Y",
    "DATE_INPUT_FORMATS": [
      "%Y-%m-%d",
      "%m/%d/%Y",
      "%m/%d/%y",
      "%b %d %Y",
      "%b %d, %Y",
      "%d %b %Y",
      "%d %b, %Y",
      "%B %d %Y",
      "%B %d, %Y",
      "%d %B %Y",
      "%d %B, %Y"
    ],
    "DECIMAL_SEPARATOR": ".",
    "FIRST_DAY_OF_WEEK": 0,
    "MONTH_DAY_FORMAT": "F j",
    "NUMBER_GROUPING": 0,
    "SHORT_DATETIME_FORMAT": "m/d/Y P",
    "SHORT_DATE_FORMAT": "m/d/Y",
    "THOUSAND_SEPARATOR": ",",
    "TIME_FORMAT": "P",
    "TIME_INPUT_FORMATS": [
      "%H:%M:%S",
      "%H:%M:%S.%f",
      "%H:%M"
    ],
    "YEAR_MONTH_FORMAT": "F Y"
  };

    django.get_format = function(format_type) {
      var value = django.formats[format_type];
      if (typeof(value) == 'undefined') {
        return format_type;
      } else {
        return value;
      }
    };

    /* add to global namespace */
    globals.pluralidx = django.pluralidx;
    globals.gettext = django.gettext;
    globals.ngettext = django.ngettext;
    globals.gettext_noop = django.gettext_noop;
    globals.pgettext = django.pgettext;
    globals.npgettext = django.npgettext;
    globals.interpolate = django.interpolate;
    globals.get_format = django.get_format;

    django.jsi18n_initialized = true;
  }

}(this));

