
(function() {

  var dict = {
    "schließen": "close",
    "Kein Titel": "No title",
    "In den Normalmodus wechseln (für Bildschirmbreiten >= {0}px)": "Switch to normal mode (for screen resolutions >= {0}px)",
    "In den Kompaktmodus wechseln (für Bildschirmbreiten < {0}px)": "Switch to compact mode (for screen resolutions >= {0}px)",
    "Öffnet in neuem Fenster": "Opens in a new window",
    "zum nächsten Bild": "next picture",
    "inaktiv": "inactive",
    "": ""
  };

  String.prototype.t = function() {
    var tr = dict[this];
    if (!tr) {
      alert("key missing: " + this);
      return this;
    }        
    return arguments.length == 0 ? tr : tr.formatText.apply(tr, arguments);
  };
  
})();
