From 47cfcd7b122464fa8d895295b193e1bff3983a91 Mon Sep 17 00:00:00 2001 From: Salandora Date: Mon, 26 May 2014 10:45:55 +0200 Subject: [PATCH 01/50] Event Progress bugfix --- src/octoprint/events.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/octoprint/events.py b/src/octoprint/events.py index 6b3324545..638713dcd 100644 --- a/src/octoprint/events.py +++ b/src/octoprint/events.py @@ -330,8 +330,8 @@ class CommandTrigger(GenericEventListener): if "job" in currentData.keys() and currentData["job"] is not None: params["__filename"] = currentData["job"]["file"]["name"] if "progress" in currentData.keys() and currentData["progress"] is not None \ - and "progress" in currentData["progress"].keys() and currentData["progress"]["progress"] is not None: - params["__progress"] = str(round(currentData["progress"]["progress"] * 100)) + and "completion" in currentData["progress"].keys() and currentData["progress"]["completion"] is not None: + params["__progress"] = str(round(currentData["progress"]["completion"] * 100)) # now add the payload keys as well if isinstance(payload, dict): From 3d6cb623f0c5f0f94068f3272992aba7a8912b55 Mon Sep 17 00:00:00 2001 From: Salandora Date: Mon, 26 May 2014 10:46:47 +0200 Subject: [PATCH 02/50] Autodetect Baudrate bugfix --- src/octoprint/util/comm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index 1c0f49d99..237061718 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -944,7 +944,7 @@ class MachineCom(object): try: self._log("Connecting to: %s" % self._port) if self._baudrate == 0: - self._serial = serial.Serial(str(self._port), 115200, timeout=0.1, writeTimeout=10000) + self._serial = serial.Serial(str(self._port), 115200, timeout=settings().getFloat(["serial", "timeout", "connection"]), writeTimeout=10000) else: self._serial = serial.Serial(str(self._port), self._baudrate, timeout=settings().getFloat(["serial", "timeout", "connection"]), writeTimeout=10000) except: From f6e2a5900859bb96592a24e356a7546a98e196ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 17 Jul 2014 13:02:00 +0200 Subject: [PATCH 03/50] Correctly handle GET requests on /api/printer/{tool|bed} when printer is not operational Closes #515 --- src/octoprint/server/api/printer.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/octoprint/server/api/printer.py b/src/octoprint/server/api/printer.py index a42297296..391898701 100644 --- a/src/octoprint/server/api/printer.py +++ b/src/octoprint/server/api/printer.py @@ -125,6 +125,9 @@ def printerToolCommand(): @api.route("/printer/tool", methods=["GET"]) def printerToolState(): + if not printer.isOperational(): + return make_response("Printer is not operational", 409) + def deleteBed(x): data = dict(x) @@ -181,6 +184,9 @@ def printerBedCommand(): @api.route("/printer/bed", methods=["GET"]) def printerBedState(): + if not printer.isOperational(): + return make_response("Printer is not operational", 409) + def deleteTools(x): data = dict(x) @@ -189,7 +195,11 @@ def printerBedState(): del data[k] return data - return jsonify(_getTemperatureData(deleteTools)) + data = _getTemperatureData(deleteTools) + if isinstance(data, Response): + return data + else: + return jsonify(data) ##~~ Print head From be99c597255ede9b2e9f17239b911b8452cdd382 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 17 Jul 2014 15:34:00 +0200 Subject: [PATCH 04/50] Properly handle exceptions other than a non-zero return code for slicing and timelapse rendering Closes #508 --- src/octoprint/slicers/cura/__init__.py | 19 +++++++++++++------ src/octoprint/timelapse.py | 20 ++++++++++++-------- 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/src/octoprint/slicers/cura/__init__.py b/src/octoprint/slicers/cura/__init__.py index 3467b208b..083a3f036 100644 --- a/src/octoprint/slicers/cura/__init__.py +++ b/src/octoprint/slicers/cura/__init__.py @@ -1,3 +1,5 @@ +import sarge + __author__ = "Ross Hendrickson savorywatt" __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' @@ -49,14 +51,19 @@ class Cura(object): import threading def start_thread(call_back, call_back_args, call_args, cwd): - import subprocess self._logger.info("Running %r in %s" % (call_args, cwd)) + command = " ".join(call_args) try: - subprocess.check_call(call_args, cwd=cwd) - call_back(*call_back_args) - except subprocess.CalledProcessError as (e): - self._logger.warn("Could not slice via Cura, got return code %r" % e.returncode) - call_back_args.append("Got returncode %r" % e.returncode) + p = sarge.run(command, cwd=cwd) + if p.returncode == 0: + call_back(*call_back_args) + else: + self._logger.warn("Could not slice via Cura, got return code %r" % p.returncode) + call_back_args.append("Got returncode %r" % p.returncode) + call_back(*call_back_args) + except: + self._logger.exception("Could not slice via Cura, got an unknown error") + call_back_args.append("Unknown error, please consult the log file") call_back(*call_back_args) executable = self.cura_path diff --git a/src/octoprint/timelapse.py b/src/octoprint/timelapse.py index 0c4f45402..0e35a2917 100644 --- a/src/octoprint/timelapse.py +++ b/src/octoprint/timelapse.py @@ -305,14 +305,18 @@ class Timelapse(object): command_str = " ".join(command) self._logger.debug("Executing command: %s" % command_str) - p = sarge.run(command_str, stderr=sarge.Capture()) - if p.returncode == 0: - eventManager().fire(Events.MOVIE_DONE, {"gcode": self._gcodeFile, "movie": output, "movie_basename": os.path.basename(output)}) - else: - returncode = p.returncode - stderr_text = p.stderr.text - self._logger.warn("Could not render movie, got return code %r: %s" % (returncode, stderr_text)) - eventManager().fire(Events.MOVIE_FAILED, {"gcode": self._gcodeFile, "movie": output, "movie_basename": os.path.basename(output), "returncode": returncode, "error": stderr_text}) + try: + p = sarge.run(command_str, stderr=sarge.Capture()) + if p.returncode == 0: + eventManager().fire(Events.MOVIE_DONE, {"gcode": self._gcodeFile, "movie": output, "movie_basename": os.path.basename(output)}) + else: + returncode = p.returncode + stderr_text = p.stderr.text + self._logger.warn("Could not render movie, got return code %r: %s" % (returncode, stderr_text)) + eventManager().fire(Events.MOVIE_FAILED, {"gcode": self._gcodeFile, "movie": output, "movie_basename": os.path.basename(output), "returncode": returncode, "error": stderr_text}) + except: + self._logger.exception("Could not render movie due to unknown error") + eventManager().fire(Events.MOVIE_FAILED, {"gcode": self._gcodeFile, "movie": output, "movie_basename": os.path.basename(output), "returncode": 255, "error": "Unknown error"}) def cleanCaptureDir(self): if not os.path.isdir(self._captureDir): From f9d10860623692b792871e8f075f227e75c21139 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 31 Jul 2014 18:16:53 +0200 Subject: [PATCH 05/50] UI now displays last print time as approx. total print time if available, otherwise uses estimated print time if available Closes #523 --- docs/api/datamodel.rst | 4 ++++ src/octoprint/printer.py | 16 +++++++++++----- src/octoprint/static/js/app/viewmodels/files.js | 6 +++--- .../static/js/app/viewmodels/printerstate.js | 10 +++++++--- src/octoprint/templates/index.jinja2 | 9 ++++----- 5 files changed, 29 insertions(+), 16 deletions(-) diff --git a/docs/api/datamodel.rst b/docs/api/datamodel.rst index 76fc003c4..7511332d1 100644 --- a/docs/api/datamodel.rst +++ b/docs/api/datamodel.rst @@ -164,6 +164,10 @@ Job information - 0..1 - Integer - The estimated print time for the file, in seconds. + * - ``lastPrintTime`` + - 0..1 + - Integer + - The print time of the last print of the file, in seconds. * - ``filament`` - 0..1 - Object diff --git a/src/octoprint/printer.py b/src/octoprint/printer.py index ee96fc947..875af19c4 100644 --- a/src/octoprint/printer.py +++ b/src/octoprint/printer.py @@ -95,6 +95,7 @@ class Printer(): "date": None }, "estimatedPrintTime": None, + "lastPrintTime": None, "filament": { "length": None, "volume": None @@ -389,6 +390,7 @@ class Printer(): self._selectedFile = None estimatedPrintTime = None + lastPrintTime = None date = None filament = None if filename: @@ -398,11 +400,14 @@ class Printer(): date = int(os.stat(filename).st_ctime) fileData = self._gcodeManager.getFileData(filename) - if fileData is not None and "gcodeAnalysis" in fileData.keys(): - if "estimatedPrintTime" in fileData["gcodeAnalysis"].keys(): - estimatedPrintTime = fileData["gcodeAnalysis"]["estimatedPrintTime"] - if "filament" in fileData["gcodeAnalysis"].keys(): - filament = fileData["gcodeAnalysis"]["filament"] + if fileData is not None: + if "gcodeAnalysis" in fileData: + if estimatedPrintTime is None and "estimatedPrintTime" in fileData["gcodeAnalysis"]: + estimatedPrintTime = fileData["gcodeAnalysis"]["estimatedPrintTime"] + if "filament" in fileData["gcodeAnalysis"].keys(): + filament = fileData["gcodeAnalysis"]["filament"] + if "prints" in fileData and "last" in fileData["prints"] and "lastPrintTime" in fileData["prints"]["last"]: + lastPrintTime = fileData["prints"]["last"]["lastPrintTime"] self._stateMonitor.setJobData({ "file": { @@ -412,6 +417,7 @@ class Printer(): "date": date }, "estimatedPrintTime": estimatedPrintTime, + "lastPrintTime": lastPrintTime, "filament": filament, }) diff --git a/src/octoprint/static/js/app/viewmodels/files.js b/src/octoprint/static/js/app/viewmodels/files.js index 115ea6183..e9bc301f1 100644 --- a/src/octoprint/static/js/app/viewmodels/files.js +++ b/src/octoprint/static/js/app/viewmodels/files.js @@ -274,12 +274,12 @@ function GcodeFilesViewModel(printerStateViewModel, loginStateViewModel) { } while (filament.hasOwnProperty("tool" + i)); } } - output += "Estimated Print Time: " + formatDuration(data["gcodeAnalysis"]["estimatedPrintTime"]); + output += "Estimated Print Time: " + formatDuration(data["gcodeAnalysis"]["estimatedPrintTime"]) + "
"; } if (data["prints"] && data["prints"]["last"]) { - output += "
Last Printed: " + formatTimeAgo(data["prints"]["last"]["date"]); + output += "Last Printed: " + formatTimeAgo(data["prints"]["last"]["date"]) + "
"; if (data["prints"]["last"]["lastPrintTime"]) { - output += "
Last Print Time: " + formatDuration(data["prints"]["last"]["lastPrintTime"]); + output += "Last Print Time: " + formatDuration(data["prints"]["last"]["lastPrintTime"]); } } return output; diff --git a/src/octoprint/static/js/app/viewmodels/printerstate.js b/src/octoprint/static/js/app/viewmodels/printerstate.js index 2865c3871..7dfad2971 100644 --- a/src/octoprint/static/js/app/viewmodels/printerstate.js +++ b/src/octoprint/static/js/app/viewmodels/printerstate.js @@ -24,13 +24,16 @@ function PrinterStateViewModel(loginStateViewModel) { self.filament = ko.observableArray([]); self.estimatedPrintTime = ko.observable(undefined); + self.lastPrintTime = ko.observable(undefined); self.currentHeight = ko.observable(undefined); self.estimatedPrintTimeString = ko.computed(function() { - if (!self.estimatedPrintTime()) - return "-"; - return formatDuration(self.estimatedPrintTime()); + if (self.lastPrintTime()) + return formatDuration(self.lastPrintTime()); + if (self.estimatedPrintTime()) + return formatDuration(self.estimatedPrintTime()); + return "-"; }); self.byteString = ko.computed(function() { if (!self.filesize()) @@ -123,6 +126,7 @@ function PrinterStateViewModel(loginStateViewModel) { } self.estimatedPrintTime(data.estimatedPrintTime); + self.lastPrintTime(data.lastPrintTime); var result = []; if (data.filament && typeof(data.filament) == "object" && _.keys(data.filament).length > 0) { diff --git a/src/octoprint/templates/index.jinja2 b/src/octoprint/templates/index.jinja2 index 505655f28..17255f91e 100644 --- a/src/octoprint/templates/index.jinja2 +++ b/src/octoprint/templates/index.jinja2 @@ -125,12 +125,11 @@
Machine State:
File:  (SD)
- -
- - Estimated Print Time:
Timelapse:
- Height:
+ +
+ + Approx. Total Print Time:
Print Time:
Print Time Left:
Printed:
From 8aab0ee318664c2ae014ac882f66075e291e72bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 1 Aug 2014 14:20:11 +0200 Subject: [PATCH 06/50] Should fix #529 --- src/octoprint/printer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/printer.py b/src/octoprint/printer.py index 875af19c4..44d9afffe 100644 --- a/src/octoprint/printer.py +++ b/src/octoprint/printer.py @@ -406,7 +406,7 @@ class Printer(): estimatedPrintTime = fileData["gcodeAnalysis"]["estimatedPrintTime"] if "filament" in fileData["gcodeAnalysis"].keys(): filament = fileData["gcodeAnalysis"]["filament"] - if "prints" in fileData and "last" in fileData["prints"] and "lastPrintTime" in fileData["prints"]["last"]: + if "prints" in fileData and fileData["prints"] and "last" in fileData["prints"] and fileData["prints"]["last"] and "lastPrintTime" in fileData["prints"]["last"]: lastPrintTime = fileData["prints"]["last"]["lastPrintTime"] self._stateMonitor.setJobData({ From 1ef9c617b3a819de3f14c15d4f5c95d1610e72de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Sat, 2 Aug 2014 10:24:41 +0200 Subject: [PATCH 07/50] Trying to get large file uploads to work --- requirements.txt | 2 +- src/octoprint/server/__init__.py | 39 +--- src/octoprint/server/api/files.py | 3 +- src/octoprint/server/util.py | 318 +++++++++++++++++++++++++++++- 4 files changed, 328 insertions(+), 34 deletions(-) diff --git a/requirements.txt b/requirements.txt index a069eb3b9..f52c102ba 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ flask==0.9 werkzeug==0.8.3 -tornado==3.0.2 +tornado>=4.0 sockjs-tornado>=1.0.0 PyYAML==3.10 Flask-Login==0.2.2 diff --git a/src/octoprint/server/__init__.py b/src/octoprint/server/__init__.py index 18f2fa480..08f141f84 100644 --- a/src/octoprint/server/__init__.py +++ b/src/octoprint/server/__init__.py @@ -34,7 +34,8 @@ user_permission = Permission(RoleNeed("user")) # only import the octoprint stuff down here, as it might depend on things defined above to be initialized already from octoprint.server.util import LargeResponseHandler, ReverseProxied, restricted_access, PrinterStateConnection, admin_validator, \ - UrlForwardHandler, user_validator, GcodeWatchdogHandler, UploadCleanupWatchdogHandler + UrlForwardHandler, user_validator, GcodeWatchdogHandler, UploadCleanupWatchdogHandler, LargeUploadHandler, \ + access_validation_factory, StreamedWsgiContainer, StreamingFallbackHandler from octoprint.printer import Printer, getConnectionOptions from octoprint.settings import settings import octoprint.gcodefiles as gcodefiles @@ -106,8 +107,8 @@ class Server(): self._debug = debug self._allowRoot = allowRoot self._logConf = logConf + self._server = None - def run(self): if not self._allowRoot: self._checkForRoot() @@ -180,35 +181,15 @@ class Server(): self._router = SockJSRouter(self._createSocketConnection, "/sockjs") - def access_validation_factory(validator): - """ - Creates an access validation wrapper using the supplied validator. - - :param validator: the access validator to use inside the validation wrapper - :return: an access validation wrapper taking a request as parameter and performing the request validation - """ - def f(request): - """ - Creates a custom wsgi and Flask request context in order to be able to process user information - stored in the current session. - - :param request: The Tornado request for which to create the environment and context - """ - wsgi_environ = tornado.wsgi.WSGIContainer.environ(request) - with app.request_context(wsgi_environ): - app.session_interface.open_session(app, flask.request) - loginManager.reload_user() - validator(flask.request) - return f - self._tornado_app = Application(self._router.urls + [ - (r"/downloads/timelapse/([^/]*\.mpg)", LargeResponseHandler, {"path": settings().getBaseFolder("timelapse"), "as_attachment": True}), - (r"/downloads/files/local/([^/]*\.(gco|gcode))", LargeResponseHandler, {"path": settings().getBaseFolder("uploads"), "as_attachment": True}), - (r"/downloads/logs/([^/]*)", LargeResponseHandler, {"path": settings().getBaseFolder("logs"), "as_attachment": True, "access_validation": access_validation_factory(admin_validator)}), - (r"/downloads/camera/current", UrlForwardHandler, {"url": settings().get(["webcam", "snapshot"]), "as_attachment": True, "access_validation": access_validation_factory(user_validator)}), - (r".*", FallbackHandler, {"fallback": WSGIContainer(app.wsgi_app)}) + (r"/downloads/timelapse/([^/]*\.mpg)", LargeResponseHandler, dict(path=settings().getBaseFolder("timelapse"), as_attachment=True)), + (r"/downloads/files/local/([^/]*\.(gco|gcode))", LargeResponseHandler, dict(path=settings().getBaseFolder("uploads"), as_attachment=True)), + (r"/downloads/logs/([^/]*)", LargeResponseHandler, dict(path=settings().getBaseFolder("logs"), as_attachment=True, access_validation=access_validation_factory(app, loginManager, admin_validator))), + (r"/downloads/camera/current", UrlForwardHandler, dict(url=settings().get(["webcam", "snapshot"]), as_attachment=True, access_validation=access_validation_factory(app, loginManager, user_validator))), + (r"/uploads/files/([^/]*)", LargeUploadHandler, dict(access_validation=access_validation_factory(app, loginManager, user_validator))), + (r".*", StreamingFallbackHandler, dict(fallback=StreamedWsgiContainer(app.wsgi_app))) ]) - self._server = HTTPServer(self._tornado_app) + self._server = HTTPServer(self._tornado_app, max_body_size=1*1024*1024*1024) self._server.listen(self._port, address=self._host) eventManager.fire(events.Events.STARTUP) diff --git a/src/octoprint/server/api/files.py b/src/octoprint/server/api/files.py index 258ff9505..1d17da2bc 100644 --- a/src/octoprint/server/api/files.py +++ b/src/octoprint/server/api/files.py @@ -4,7 +4,7 @@ from octoprint.events import Events __author__ = "Gina Häußge " __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' -from flask import request, jsonify, make_response, url_for +from flask import request, jsonify, make_response, url_for, redirect import octoprint.gcodefiles as gcodefiles import octoprint.util as util @@ -188,6 +188,7 @@ def uploadGcodeFile(target): r = make_response(jsonify(files=files, done=done), 201) r.headers["Location"] = location + #return redirect(url_for("index", _external=True) + "uploads/files/" + target, code=307) return r diff --git a/src/octoprint/server/util.py b/src/octoprint/server/util.py index 434a8d3bf..b6a57be8f 100644 --- a/src/octoprint/server/util.py +++ b/src/octoprint/server/util.py @@ -1,11 +1,16 @@ # coding=utf-8 +from io import FileIO +from tempfile import NamedTemporaryFile, TemporaryFile +from tornado.httputil import HTTPHeaders +from tornado.wsgi import WSGIContainer from octoprint.filemanager.destinations import FileDestinations __author__ = "Gina Häußge " __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' from flask.ext.principal import identity_changed, Identity -from tornado.web import StaticFileHandler, HTTPError, RequestHandler, asynchronous +from tornado.web import StaticFileHandler, HTTPError, RequestHandler, asynchronous, stream_request_body, FallbackHandler +import tornado.escape, tornado.httputil from tornado.httpclient import AsyncHTTPClient, HTTPRequest from flask import url_for, make_response, request, current_app from flask.ext.login import login_required, login_user, current_user @@ -232,6 +237,313 @@ class PrinterStateConnection(SockJSConnection): self.send({type: payload}) +@stream_request_body +class StreamingFallbackHandler(FallbackHandler): + """A `RequestHandler` that wraps another HTTP server callback. + + The fallback is a callable object that accepts an + `~.httputil.HTTPServerRequest`, such as an `Application` or + `tornado.wsgi.WSGIContainer`. This is most useful to use both + Tornado ``RequestHandlers`` and WSGI in the same server. Typical + usage:: + + wsgi_app = tornado.wsgi.WSGIContainer( + django.core.handlers.wsgi.WSGIHandler()) + application = tornado.web.Application([ + (r"/foo", FooHandler), + (r".*", FallbackHandler, dict(fallback=wsgi_app), + ]) + """ + def initialize(self, fallback): + self.fallback = fallback + + self._length_left = int(self.request.headers.get("Content-Length", 0)) + self._tmpfile = TemporaryFile() + + def data_received(self, chunk): + self._tmpfile.write(chunk) + self._length_left -= len(chunk) + if self._length_left <= 0: + self.finished_body() + + def finished_body(self): + self._tmpfile.seek(0) + try: + body_stream = self._tmpfile + self.fallback(self.request, body_stream) + finally: + self._tmpfile.close() + + def prepare(self): + pass + + def __getattribute__(self, name): + if name in ("get", "post", "put", "patch"): + return lambda *args, **kwargs: None + return object.__getattribute__(self, name) + + +class StreamedWsgiContainer(object): + + def __init__(self, wsgi_application): + self.wsgi_application = wsgi_application + + def __call__(self, request, body_stream): + data = {} + response = [] + + def start_response(status, response_headers, exc_info=None): + data["status"] = status + data["headers"] = response_headers + return response.append + app_response = self.wsgi_application( + StreamedWsgiContainer.environ(request, body_stream), start_response) + try: + response.extend(app_response) + body = b"".join(response) + finally: + if hasattr(app_response, "close"): + app_response.close() + if not data: + raise Exception("WSGI app did not call start_response") + + status_code = int(data["status"].split()[0]) + headers = data["headers"] + header_set = set(k.lower() for (k, v) in headers) + body = tornado.escape.utf8(body) + if status_code != 304: + if "content-length" not in header_set: + headers.append(("Content-Length", str(len(body)))) + if "content-type" not in header_set: + headers.append(("Content-Type", "text/html; charset=UTF-8")) + if "server" not in header_set: + headers.append(("Server", "TornadoServer/%s" % tornado.version)) + + parts = [tornado.escape.utf8("HTTP/1.1 " + data["status"] + "\r\n")] + for key, value in headers: + parts.append(tornado.escape.utf8(key) + b": " + tornado.escape.utf8(value) + b"\r\n") + parts.append(b"\r\n") + parts.append(body) + request.write(b"".join(parts)) + request.finish() + self._log(status_code, request) + + @staticmethod + def environ(request, body_stream): + """Converts a `tornado.httputil.HTTPServerRequest` to a WSGI environment. + """ + from tornado.wsgi import to_wsgi_str + import sys + import io + + hostport = request.host.split(":") + if len(hostport) == 2: + host = hostport[0] + port = int(hostport[1]) + else: + host = request.host + port = 443 if request.protocol == "https" else 80 + environ = { + "REQUEST_METHOD": request.method, + "SCRIPT_NAME": "", + "PATH_INFO": to_wsgi_str(tornado.escape.url_unescape( + request.path, encoding=None, plus=False)), + "QUERY_STRING": request.query, + "REMOTE_ADDR": request.remote_ip, + "SERVER_NAME": host, + "SERVER_PORT": str(port), + "SERVER_PROTOCOL": request.version, + "wsgi.version": (1, 0), + "wsgi.url_scheme": request.protocol, + "wsgi.input": body_stream, + "wsgi.errors": sys.stderr, + "wsgi.multithread": False, + "wsgi.multiprocess": True, + "wsgi.run_once": False, + } + if "Content-Type" in request.headers: + environ["CONTENT_TYPE"] = request.headers.pop("Content-Type") + if "Content-Length" in request.headers: + environ["CONTENT_LENGTH"] = request.headers.pop("Content-Length") + for key, value in request.headers.items(): + environ["HTTP_" + key.replace("-", "_").upper()] = value + return environ + + def _log(self, status_code, request): + access_log = logging.getLogger("tornado.access") + + if status_code < 400: + log_method = access_log.info + elif status_code < 500: + log_method = access_log.warning + else: + log_method = access_log.error + request_time = 1000.0 * request.request_time() + summary = request.method + " " + request.uri + " (" + \ + request.remote_ip + ")" + log_method("%d %s %.2fms", status_code, summary, request_time) + + +def access_validation_factory(app, login_manager, validator): + """ + Creates an access validation wrapper using the supplied validator. + + :param validator: the access validator to use inside the validation wrapper + :return: an access validation wrapper taking a request as parameter and performing the request validation + """ + def f(request): + """ + Creates a custom wsgi and Flask request context in order to be able to process user information + stored in the current session. + + :param request: The Tornado request for which to create the environment and context + """ + import flask + import io + + wsgi_environ = StreamedWsgiContainer.environ(request, io.BytesIO("")) + with app.request_context(wsgi_environ): + app.session_interface.open_session(app, flask.request) + login_manager.reload_user() + validator(flask.request) + return f + + +@stream_request_body +class LargeUploadHandler(RequestHandler): + + def initialize(self, files_only=False, access_validation=None): + self.files_only = files_only + self._access_validation = access_validation + + # Parts information will be stored here + self.parts = dict() + + # Part currently being processed + self._current_part = None + # bytes left to process in the stream + self._bytes_left = int(self.request.headers.get("Content-Length", 0)) + # buffer needed for identifying form data parts + self._buffer = "" + + # we only support multipart/form-data content, so check for that + content_type = self.request.headers.get("Content-Type", "") + if not self._bytes_left or not content_type.startswith("multipart"): + raise HTTPError(405) + + # extract the multipart boundary + fields = content_type.split(";") + for field in fields: + k, sep, v = field.strip().partition("=") + if k == "boundary" and v: + if v.startswith(b'"') and v.endswith(b'"'): + self.boundary = tornado.escape.utf8(v[1:-1]) + else: + self.boundary = tornado.escape.utf8(v) + break + else: + raise HTTPError(400) + + def data_received(self, chunk): + self._bytes_left -= len(chunk) + data = self._buffer + chunk + + # check for boundary + delimiter = b"--%s" % self.boundary + delimiter_loc = data.find(delimiter) + delimiter_len = len(delimiter) + end_of_header = None + if delimiter_loc != -1: + # found the delimiter in the currently available data + data, self._buffer = data[0:delimiter], data[delimiter:] + end_of_header = self._buffer.find("\r\n\r\n") + else: + # make sure any boundary (with single or double ==) contained at the end of chunk does not get + # truncated by this processing round => save it to the buffer for next round + endlen = len(self.boundary) + 4 + data, self._buffer = data[0:-endlen], data[-endlen:] + + # stream data to part handler + if data: + if self._current_part: + self.ondata(self._current_part, data) + + if end_of_header >= 0: + self._header(self._buffer[delimiter_len+2:end_of_header]) + self._buffer = self._buffer[end_of_header + 4] + + if delimiter_loc != -1 and self._buffer[delimiter_len:delimiter_len+2] == "--": + # we saw the last boundary and are at the end of our request + if self._current_part: + self.onclose(self._current_part) + self._current_part = None + return self.onfinish() + + def _header(self, header): + # close any open parts + if self._current_part: + self.onclose(self._current_part) + self._current_part = None + + header_check = header.find(self.boundary) + if header_check != -1: + # TODO log warning + header = header[header_check:] + + # convert to dict + header = HTTPHeaders.parse(header.decode("utf-8")) + disp_header = header.get("Content-Disposition", "") + disposition, disp_params = tornado.httputil._parse_header(disp_header) + + next = False + if disposition != "form-data": + # TODO log warning + return + if not disp_params.get("name"): + # TODO log warning + return + + if self.files_only and "filename" not in disp_params: + # TODO log warning + return + else: + self._current_part = self.onpart(disp_params["name"], header.get("Content-Type", None), filename=disp_params["filename"] if self._files_only else None) + + def onpart(self, name, content_type, filename=None): + if content_type is None: + # we got a key-value-pair + return dict(name=name, value=b"") + elif content_type == "application/octet-stream": + # this is a file + tmpfile = NamedTemporaryFile() + return dict(name=name, filename=filename, file=tmpfile) + else: + return dict() + + def ondata(self, part, data): + if "value" in part: + part["value"] += data + elif "file" in part: + part["file"].write(data) + + def onclose(self, part): + for part in self.parts: + if "value" in part: + self._get_argument() + self.parts[part["name"]] = part + + def onfinish(self): + pass + + def post(self, *args, **kwargs): + if self._access_validation is not None: + self._access_validation(self.request) + + + + raise HTTPError(550, "Yay") + + #~~ customized large response handler @@ -479,7 +791,7 @@ class ReverseProxied(object): return self.app(environ, start_response) -def redirectToTornado(request, target): +def redirectToTornado(request, target, code=302): requestUrl = request.url appBaseUrl = requestUrl[:requestUrl.find(url_for("index") + "api")] @@ -487,7 +799,7 @@ def redirectToTornado(request, target): if "?" in requestUrl: fragment = requestUrl[requestUrl.rfind("?"):] redirectUrl += fragment - return redirect(redirectUrl) + return redirect(redirectUrl, code=code) class UploadCleanupWatchdogHandler(PatternMatchingEventHandler): From d770c20b5abb1c4454f8ab52251cd7ccf83b4ac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Sun, 3 Aug 2014 18:53:10 +0200 Subject: [PATCH 08/50] Working streaming file upload for now --- src/octoprint/server/__init__.py | 8 +- src/octoprint/server/api/files.py | 105 +---------- src/octoprint/server/util.py | 280 +++++++++++++++++++++++++----- 3 files changed, 244 insertions(+), 149 deletions(-) diff --git a/src/octoprint/server/__init__.py b/src/octoprint/server/__init__.py index 08f141f84..07e6a04e7 100644 --- a/src/octoprint/server/__init__.py +++ b/src/octoprint/server/__init__.py @@ -34,8 +34,8 @@ user_permission = Permission(RoleNeed("user")) # only import the octoprint stuff down here, as it might depend on things defined above to be initialized already from octoprint.server.util import LargeResponseHandler, ReverseProxied, restricted_access, PrinterStateConnection, admin_validator, \ - UrlForwardHandler, user_validator, GcodeWatchdogHandler, UploadCleanupWatchdogHandler, LargeUploadHandler, \ - access_validation_factory, StreamedWsgiContainer, StreamingFallbackHandler + UrlForwardHandler, user_validator, GcodeWatchdogHandler, UploadCleanupWatchdogHandler, \ + access_validation_factory, StreamedWsgiContainer, StreamingFallbackHandler, PrintableFilesUploadHandler from octoprint.printer import Printer, getConnectionOptions from octoprint.settings import settings import octoprint.gcodefiles as gcodefiles @@ -186,8 +186,8 @@ class Server(): (r"/downloads/files/local/([^/]*\.(gco|gcode))", LargeResponseHandler, dict(path=settings().getBaseFolder("uploads"), as_attachment=True)), (r"/downloads/logs/([^/]*)", LargeResponseHandler, dict(path=settings().getBaseFolder("logs"), as_attachment=True, access_validation=access_validation_factory(app, loginManager, admin_validator))), (r"/downloads/camera/current", UrlForwardHandler, dict(url=settings().get(["webcam", "snapshot"]), as_attachment=True, access_validation=access_validation_factory(app, loginManager, user_validator))), - (r"/uploads/files/([^/]*)", LargeUploadHandler, dict(access_validation=access_validation_factory(app, loginManager, user_validator))), - (r".*", StreamingFallbackHandler, dict(fallback=StreamedWsgiContainer(app.wsgi_app))) + (r"/api/files/([^/]*)", PrintableFilesUploadHandler, dict(path=settings().getBaseFolder("uploads"), access_validation=access_validation_factory(app, loginManager, user_validator))), + (r".*", FallbackHandler, dict(fallback=WSGIContainer(app.wsgi_app))) ]) self._server = HTTPServer(self._tornado_app, max_body_size=1*1024*1024*1024) self._server.listen(self._port, address=self._host) diff --git a/src/octoprint/server/api/files.py b/src/octoprint/server/api/files.py index 1d17da2bc..555e730a4 100644 --- a/src/octoprint/server/api/files.py +++ b/src/octoprint/server/api/files.py @@ -86,110 +86,7 @@ def _verifyFileExists(origin, filename): @api.route("/files/", methods=["POST"]) @restricted_access def uploadGcodeFile(target): - if not target in [FileDestinations.LOCAL, FileDestinations.SDCARD]: - return make_response("Unknown target: %s" % target, 404) - - if not "file" in request.files.keys(): - return make_response("No file included", 400) - - if target == FileDestinations.SDCARD and not settings().getBoolean(["feature", "sdSupport"]): - return make_response("SD card support is disabled", 404) - - file = request.files["file"] - sd = target == FileDestinations.SDCARD - selectAfterUpload = "select" in request.values.keys() and request.values["select"] in valid_boolean_trues - printAfterSelect = "print" in request.values.keys() and request.values["print"] in valid_boolean_trues - - if sd: - # validate that all preconditions for SD upload are met before attempting it - if not (printer.isOperational() and not (printer.isPrinting() or printer.isPaused())): - return make_response("Can not upload to SD card, printer is either not operational or already busy", 409) - if not printer.isSdReady(): - return make_response("Can not upload to SD card, not yet initialized", 409) - - # determine current job - currentFilename = None - currentOrigin = None - currentJob = printer.getCurrentJob() - if currentJob is not None and "file" in currentJob.keys(): - currentJobFile = currentJob["file"] - if "name" in currentJobFile.keys() and "origin" in currentJobFile.keys(): - currentFilename = currentJobFile["name"] - currentOrigin = currentJobFile["origin"] - - # determine future filename of file to be uploaded, abort if it can't be uploaded - futureFilename = gcodeManager.getFutureFilename(file) - if futureFilename is None or (not settings().getBoolean(["cura", "enabled"]) and not gcodefiles.isGcodeFileName(futureFilename)): - return make_response("Can not upload file %s, wrong format?" % file.filename, 415) - - # prohibit overwriting currently selected file while it's being printed - if futureFilename == currentFilename and target == currentOrigin and printer.isPrinting() or printer.isPaused(): - return make_response("Trying to overwrite file that is currently being printed: %s" % currentFilename, 409) - - def fileProcessingFinished(filename, absFilename, destination): - """ - Callback for when the file processing (upload, optional slicing, addition to analysis queue) has - finished. - - Depending on the file's destination triggers either streaming to SD card or directly calls selectAndOrPrint. - """ - if destination == FileDestinations.SDCARD: - return filename, printer.addSdFile(filename, absFilename, selectAndOrPrint) - else: - selectAndOrPrint(filename, absFilename, destination) - return filename - - def selectAndOrPrint(filename, absFilename, destination): - """ - Callback for when the file is ready to be selected and optionally printed. For SD file uploads this is only - the case after they have finished streaming to the printer, which is why this callback is also used - for the corresponding call to addSdFile. - - Selects the just uploaded file if either selectAfterUpload or printAfterSelect are True, or if the - exact file is already selected, such reloading it. - """ - if selectAfterUpload or printAfterSelect or (currentFilename == filename and currentOrigin == destination): - printer.selectFile(absFilename, destination == FileDestinations.SDCARD, printAfterSelect) - - filename, done = gcodeManager.addFile(file, target, fileProcessingFinished) - if filename is None: - return make_response("Could not upload the file %s" % file.filename, 500) - - sdFilename = None - if isinstance(filename, tuple): - filename, sdFilename = filename - - eventManager.fire(Events.UPLOAD, {"file": filename, "target": target}) - - files = {} - location = url_for(".readGcodeFile", target=FileDestinations.LOCAL, filename=filename, _external=True) - files.update({ - FileDestinations.LOCAL: { - "name": filename, - "origin": FileDestinations.LOCAL, - "refs": { - "resource": location, - "download": url_for("index", _external=True) + "downloads/files/" + FileDestinations.LOCAL + "/" + filename - } - } - }) - - if sd and sdFilename: - location = url_for(".readGcodeFile", target=FileDestinations.SDCARD, filename=sdFilename, _external=True) - files.update({ - FileDestinations.SDCARD: { - "name": sdFilename, - "origin": FileDestinations.SDCARD, - "refs": { - "resource": location - } - } - }) - - r = make_response(jsonify(files=files, done=done), 201) - r.headers["Location"] = location - #return redirect(url_for("index", _external=True) + "uploads/files/" + target, code=307) - return r + return redirect(url_for("index", _external=True) + "uploads/files/" + target, code=307) @api.route("/files//", methods=["GET"]) diff --git a/src/octoprint/server/util.py b/src/octoprint/server/util.py index b6a57be8f..ca9ee2417 100644 --- a/src/octoprint/server/util.py +++ b/src/octoprint/server/util.py @@ -1,8 +1,6 @@ # coding=utf-8 -from io import FileIO -from tempfile import NamedTemporaryFile, TemporaryFile +from tempfile import TemporaryFile from tornado.httputil import HTTPHeaders -from tornado.wsgi import WSGIContainer from octoprint.filemanager.destinations import FileDestinations __author__ = "Gina Häußge " @@ -28,7 +26,7 @@ import logging from functools import wraps from watchdog.events import PatternMatchingEventHandler -from octoprint.settings import settings +from octoprint.settings import settings, valid_boolean_trues import octoprint.timelapse import octoprint.server from octoprint.users import ApiUser @@ -237,29 +235,68 @@ class PrinterStateConnection(SockJSConnection): self.send({type: payload}) +@stream_request_body +class UploadStorageFallbackHandler(RequestHandler): + + def initialize(self, delegate, folder): + self.delegate = delegate + self.folder = folder + + # Parts information will be stored here + self.parts = dict() + + # files will be stored here + self.files = dict() + + # values will be stored here + self.values = dict() + + # Part currently being processed + self._current_part = None + # buffer needed for identifying form data parts + self._buffer = b"" + + # we only support multipart/form-data content, so check for that + self._bytes_left = self.request.headers.get("Content-Length", 0) + content_type = self.request.headers.get("Content-Type", "") + if not self._bytes_left or not content_type.startswith("multipart"): + raise HTTPError(405) + + # extract the multipart boundary + fields = content_type.split(";") + for field in fields: + k, sep, v = field.strip().partition("=") + if k == "boundary" and v: + if v.startswith(b'"') and v.endswith(b'"'): + self.boundary = tornado.escape.utf8(v[1:-1]) + else: + self.boundary = tornado.escape.utf8(v) + break + else: + raise HTTPError(400) + + + @stream_request_body class StreamingFallbackHandler(FallbackHandler): """A `RequestHandler` that wraps another HTTP server callback. The fallback is a callable object that accepts an `~.httputil.HTTPServerRequest`, such as an `Application` or - `tornado.wsgi.WSGIContainer`. This is most useful to use both + `octoprint.server.util.StreamedWSGIContainer`. This is most useful to use both Tornado ``RequestHandlers`` and WSGI in the same server. Typical usage:: - wsgi_app = tornado.wsgi.WSGIContainer( + wsgi_app = octoprint.server.util.StreamedWSGIContainer( django.core.handlers.wsgi.WSGIHandler()) application = tornado.web.Application([ (r"/foo", FooHandler), - (r".*", FallbackHandler, dict(fallback=wsgi_app), + (r".*", StreamingFallbackHandler, dict(fallback=wsgi_app), ]) """ def initialize(self, fallback): self.fallback = fallback - self._length_left = int(self.request.headers.get("Content-Length", 0)) - self._tmpfile = TemporaryFile() - def data_received(self, chunk): self._tmpfile.write(chunk) self._length_left -= len(chunk) @@ -268,17 +305,18 @@ class StreamingFallbackHandler(FallbackHandler): def finished_body(self): self._tmpfile.seek(0) - try: - body_stream = self._tmpfile - self.fallback(self.request, body_stream) - finally: - self._tmpfile.close() def prepare(self): - pass + self._length_left = int(self.request.headers.get("Content-Length", 0)) + self._tmpfile = TemporaryFile() def __getattribute__(self, name): if name in ("get", "post", "put", "patch"): + try: + body_stream = self._tmpfile + self.fallback(self.request, body_stream) + finally: + self._tmpfile.close() return lambda *args, **kwargs: None return object.__getattribute__(self, name) @@ -399,9 +437,9 @@ def access_validation_factory(app, login_manager, validator): :param request: The Tornado request for which to create the environment and context """ import flask - import io + import tornado.wsgi - wsgi_environ = StreamedWsgiContainer.environ(request, io.BytesIO("")) + wsgi_environ = tornado.wsgi.WSGIContainer.environ(request) with app.request_context(wsgi_environ): app.session_interface.open_session(app, flask.request) login_manager.reload_user() @@ -410,25 +448,32 @@ def access_validation_factory(app, login_manager, validator): @stream_request_body -class LargeUploadHandler(RequestHandler): +class PrintableFilesUploadHandler(RequestHandler): - def initialize(self, files_only=False, access_validation=None): - self.files_only = files_only + def initialize(self, path, postfix=".tmp", files_only=False, access_validation=None): + self._path = path + self._postfix = postfix + self._files_only = files_only self._access_validation = access_validation # Parts information will be stored here self.parts = dict() + # files will be stored here + self.files = dict() + + # values will be stored here + self.values = dict() + # Part currently being processed self._current_part = None - # bytes left to process in the stream - self._bytes_left = int(self.request.headers.get("Content-Length", 0)) # buffer needed for identifying form data parts - self._buffer = "" + self._buffer = b"" # we only support multipart/form-data content, so check for that + bytes_left = self.request.headers.get("Content-Length", 0) content_type = self.request.headers.get("Content-Type", "") - if not self._bytes_left or not content_type.startswith("multipart"): + if not bytes_left or not content_type.startswith("multipart"): raise HTTPError(405) # extract the multipart boundary @@ -445,9 +490,10 @@ class LargeUploadHandler(RequestHandler): raise HTTPError(400) def data_received(self, chunk): - self._bytes_left -= len(chunk) data = self._buffer + chunk + self.process_data(data) + def process_data(self, data): # check for boundary delimiter = b"--%s" % self.boundary delimiter_loc = data.find(delimiter) @@ -455,7 +501,7 @@ class LargeUploadHandler(RequestHandler): end_of_header = None if delimiter_loc != -1: # found the delimiter in the currently available data - data, self._buffer = data[0:delimiter], data[delimiter:] + data, self._buffer = data[0:delimiter_loc], data[delimiter_loc:] end_of_header = self._buffer.find("\r\n\r\n") else: # make sure any boundary (with single or double ==) contained at the end of chunk does not get @@ -470,14 +516,15 @@ class LargeUploadHandler(RequestHandler): if end_of_header >= 0: self._header(self._buffer[delimiter_len+2:end_of_header]) - self._buffer = self._buffer[end_of_header + 4] + self._buffer = self._buffer[end_of_header + 4:] if delimiter_loc != -1 and self._buffer[delimiter_len:delimiter_len+2] == "--": # we saw the last boundary and are at the end of our request if self._current_part: self.onclose(self._current_part) self._current_part = None - return self.onfinish() + self._buffer = b"" + self.onfinish() def _header(self, header): # close any open parts @@ -495,7 +542,6 @@ class LargeUploadHandler(RequestHandler): disp_header = header.get("Content-Disposition", "") disposition, disp_params = tornado.httputil._parse_header(disp_header) - next = False if disposition != "form-data": # TODO log warning return @@ -503,20 +549,30 @@ class LargeUploadHandler(RequestHandler): # TODO log warning return - if self.files_only and "filename" not in disp_params: + if self._files_only and "filename" not in disp_params: # TODO log warning return else: - self._current_part = self.onpart(disp_params["name"], header.get("Content-Type", None), filename=disp_params["filename"] if self._files_only else None) + self._current_part = self.onpart(disp_params["name"], header.get("Content-Type", None), filename=disp_params["filename"] if "filename" in disp_params else None) def onpart(self, name, content_type, filename=None): + from octoprint.server import gcodeManager + if content_type is None: # we got a key-value-pair return dict(name=name, value=b"") - elif content_type == "application/octet-stream": + elif filename is not None: # this is a file - tmpfile = NamedTemporaryFile() - return dict(name=name, filename=filename, file=tmpfile) + upload = Object() + upload.filename = filename + + sane_filename = gcodeManager.getFutureFilename(upload) + if sane_filename is None: + return dict() + + local_path = os.path.join(self._path, sane_filename + self._postfix) + handle = open(local_path, "wb") + return dict(name=name, filename=filename, sane_filename=sane_filename, content_type=content_type, local_path=local_path, file=handle) else: return dict() @@ -527,21 +583,161 @@ class LargeUploadHandler(RequestHandler): part["file"].write(data) def onclose(self, part): - for part in self.parts: - if "value" in part: - self._get_argument() - self.parts[part["name"]] = part + escaped_name = tornado.escape.utf8(part["name"]) + + self.parts[escaped_name] = part + if "file" in part: + part["file"].close() + del part["file"] + self.files[escaped_name] = part + elif "value" in part: + escaped_value = tornado.escape.utf8(part["value"]) + self.values[escaped_name] = escaped_value + self.request.body_arguments.setdefault(escaped_name, []).append(escaped_value) def onfinish(self): - pass + # we now do something horrible and replace the body by a version stripped of all files. Yes, I feel bad for this + import io + new_body = b"" + for name, value in self.values.iteritems(): + new_body += b"--%s\r\n" % self.boundary + new_body += b"Content-Disposition: form-data; name=\"%s\"\r\n\r\n" % name + new_body += value + new_body += b"--%s--\r\n" % self.boundary + self.request.body = new_body + self.request.headers["Content-Length"] = len(new_body) def post(self, *args, **kwargs): + while len(self._buffer): + self.process_data(self._buffer) + + from octoprint.server import gcodeManager, printer, eventManager + if self._access_validation is not None: self._access_validation(self.request) + target = self.request.path.split("/")[-1] + if not target in [FileDestinations.LOCAL, FileDestinations.SDCARD]: + self.set_status(404, reason="Unknown target: %s" % target) + return - raise HTTPError(550, "Yay") + if not "file" in self.files: + self.set_status(400, reason="No file included") + return + + if target == FileDestinations.SDCARD and not settings().getBoolean(["feature", "sdSupport"]): + self.set_status(404, reason="SD card support is disabled") + return + + import octoprint.util + + upload = Object() + upload.filename = self.files["file"]["filename"] + upload.sane_filename = self.files["file"]["sane_filename"] + upload.save = lambda new_name: octoprint.util.safeRename(self.files["file"]["local_path"], new_name) + + sd = target == FileDestinations.SDCARD + selectAfterUpload = "select" in self.values and self.values["select"] in valid_boolean_trues + printAfterSelect = "print" in self.values and self.values["print"] in valid_boolean_trues + + if sd: + # validate that all preconditions for SD upload are met before attempting it + if not (printer.isOperational() and not (printer.isPrinting() or printer.isPaused())): + self.set_status(409, reason="Can not upload to SD card, printer is either not operational or already busy") + return + if not printer.isSdReady(): + self.set_status(409, "Can not upload to SD card, not yet initialized") + return + + # determine current job + currentFilename = None + currentOrigin = None + currentJob = printer.getCurrentJob() + if currentJob is not None and "file" in currentJob.keys(): + currentJobFile = currentJob["file"] + if "name" in currentJobFile.keys() and "origin" in currentJobFile.keys(): + currentFilename = currentJobFile["name"] + currentOrigin = currentJobFile["origin"] + + # determine future filename of file to be uploaded, abort if it can't be uploaded + futureFilename = upload.sane_filename + if futureFilename is None or (not settings().getBoolean(["cura", "enabled"]) and not gcodefiles.isGcodeFileName(futureFilename)): + self.set_status(415, reason="Can not upload file %s, wrong format?" % upload.filename) + return + + # prohibit overwriting currently selected file while it's being printed + if futureFilename == currentFilename and target == currentOrigin and printer.isPrinting() or printer.isPaused(): + self.set_status(409, reason="Trying to overwrite file that is currently being printed: %s" % currentFilename) + return + + def fileProcessingFinished(filename, absFilename, destination): + """ + Callback for when the file processing (upload, optional slicing, addition to analysis queue) has + finished. + + Depending on the file's destination triggers either streaming to SD card or directly calls selectAndOrPrint. + """ + if destination == FileDestinations.SDCARD: + return filename, printer.addSdFile(filename, absFilename, selectAndOrPrint) + else: + selectAndOrPrint(filename, absFilename, destination) + return filename + + def selectAndOrPrint(filename, absFilename, destination): + """ + Callback for when the file is ready to be selected and optionally printed. For SD file uploads this is only + the case after they have finished streaming to the printer, which is why this callback is also used + for the corresponding call to addSdFile. + + Selects the just uploaded file if either selectAfterUpload or printAfterSelect are True, or if the + exact file is already selected, such reloading it. + """ + if selectAfterUpload or printAfterSelect or (currentFilename == filename and currentOrigin == destination): + printer.selectFile(absFilename, destination == FileDestinations.SDCARD, printAfterSelect) + + filename, done = gcodeManager.addFile(upload, target, fileProcessingFinished) + if filename is None: + return make_response("Could not upload the file %s" % upload.filename, 500) + + sdFilename = None + if isinstance(filename, tuple): + filename, sdFilename = filename + + eventManager.fire(Events.UPLOAD, {"file": filename, "target": target}) + + """ + files = {} + location = url_for(".readGcodeFile", target=FileDestinations.LOCAL, filename=filename, _external=True) + files.update({ + FileDestinations.LOCAL: { + "name": filename, + "origin": FileDestinations.LOCAL, + "refs": { + "resource": location, + "download": url_for("index", _external=True) + "downloads/files/" + FileDestinations.LOCAL + "/" + filename + } + } + }) + + if sd and sdFilename: + location = url_for(".readGcodeFile", target=FileDestinations.SDCARD, filename=sdFilename, _external=True) + files.update({ + FileDestinations.SDCARD: { + "name": sdFilename, + "origin": FileDestinations.SDCARD, + "refs": { + "resource": location + } + } + }) + """ + + import tornado.escape + + self.set_status(201) + #self.set_header("Location", location) + self.finish(tornado.escape.json_encode(dict(files={}, done=done))) #~~ customized large response handler @@ -875,3 +1071,5 @@ class GcodeWatchdogHandler(PatternMatchingEventHandler): self._upload(event.src_path) +class Object(object): + pass \ No newline at end of file From e9ca09da876d227e6017fb15fb39d3f215e0e55f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 4 Aug 2014 14:45:46 +0200 Subject: [PATCH 09/50] Introduced UploadStorageFallbackHandler which rewrites multipart file upload forms to store the contained files in temporary files (like nginx-upload), made the file upload API in OctoPrint utilize this --- src/octoprint/server/__init__.py | 6 +- src/octoprint/server/api/files.py | 113 ++++++- src/octoprint/server/util.py | 475 ++++++++++++++++++++++++++---- 3 files changed, 540 insertions(+), 54 deletions(-) diff --git a/src/octoprint/server/__init__.py b/src/octoprint/server/__init__.py index 07e6a04e7..8f29dd53b 100644 --- a/src/octoprint/server/__init__.py +++ b/src/octoprint/server/__init__.py @@ -35,7 +35,8 @@ user_permission = Permission(RoleNeed("user")) # only import the octoprint stuff down here, as it might depend on things defined above to be initialized already from octoprint.server.util import LargeResponseHandler, ReverseProxied, restricted_access, PrinterStateConnection, admin_validator, \ UrlForwardHandler, user_validator, GcodeWatchdogHandler, UploadCleanupWatchdogHandler, \ - access_validation_factory, StreamedWsgiContainer, StreamingFallbackHandler, PrintableFilesUploadHandler + access_validation_factory, WsgiInputContainer, StreamingFallbackHandler, PrintableFilesUploadHandler, \ + UploadStorageFallbackHandler from octoprint.printer import Printer, getConnectionOptions from octoprint.settings import settings import octoprint.gcodefiles as gcodefiles @@ -186,8 +187,7 @@ class Server(): (r"/downloads/files/local/([^/]*\.(gco|gcode))", LargeResponseHandler, dict(path=settings().getBaseFolder("uploads"), as_attachment=True)), (r"/downloads/logs/([^/]*)", LargeResponseHandler, dict(path=settings().getBaseFolder("logs"), as_attachment=True, access_validation=access_validation_factory(app, loginManager, admin_validator))), (r"/downloads/camera/current", UrlForwardHandler, dict(url=settings().get(["webcam", "snapshot"]), as_attachment=True, access_validation=access_validation_factory(app, loginManager, user_validator))), - (r"/api/files/([^/]*)", PrintableFilesUploadHandler, dict(path=settings().getBaseFolder("uploads"), access_validation=access_validation_factory(app, loginManager, user_validator))), - (r".*", FallbackHandler, dict(fallback=WSGIContainer(app.wsgi_app))) + (r".*", UploadStorageFallbackHandler, dict(fallback=WsgiInputContainer(app.wsgi_app), file_prefix="octoprint-file-upload-", file_suffix=".tmp")) ]) self._server = HTTPServer(self._tornado_app, max_body_size=1*1024*1024*1024) self._server.listen(self._port, address=self._host) diff --git a/src/octoprint/server/api/files.py b/src/octoprint/server/api/files.py index 555e730a4..eb71c14cf 100644 --- a/src/octoprint/server/api/files.py +++ b/src/octoprint/server/api/files.py @@ -86,7 +86,115 @@ def _verifyFileExists(origin, filename): @api.route("/files/", methods=["POST"]) @restricted_access def uploadGcodeFile(target): - return redirect(url_for("index", _external=True) + "uploads/files/" + target, code=307) + if not target in [FileDestinations.LOCAL, FileDestinations.SDCARD]: + return make_response("Unknown target: %s" % target, 404) + + if "file.name" in request.values and "file.path" in request.values: + import shutil + upload = Object() + upload.filename = request.values["file.name"] + upload.save = lambda new_path: shutil.move(request.values["file.path"], new_path) + elif "file" in request.files: + upload = request.files["file"] + else: + return make_response("No file included", 400) + + if target == FileDestinations.SDCARD and not settings().getBoolean(["feature", "sdSupport"]): + return make_response("SD card support is disabled", 404) + + sd = target == FileDestinations.SDCARD + selectAfterUpload = "select" in request.values.keys() and request.values["select"] in valid_boolean_trues + printAfterSelect = "print" in request.values.keys() and request.values["print"] in valid_boolean_trues + + if sd: + # validate that all preconditions for SD upload are met before attempting it + if not (printer.isOperational() and not (printer.isPrinting() or printer.isPaused())): + return make_response("Can not upload to SD card, printer is either not operational or already busy", 409) + if not printer.isSdReady(): + return make_response("Can not upload to SD card, not yet initialized", 409) + + # determine current job + currentFilename = None + currentOrigin = None + currentJob = printer.getCurrentJob() + if currentJob is not None and "file" in currentJob.keys(): + currentJobFile = currentJob["file"] + if "name" in currentJobFile.keys() and "origin" in currentJobFile.keys(): + currentFilename = currentJobFile["name"] + currentOrigin = currentJobFile["origin"] + + # determine future filename of file to be uploaded, abort if it can't be uploaded + futureFilename = gcodeManager.getFutureFilename(upload) + if futureFilename is None or (not settings().getBoolean(["cura", "enabled"]) and not gcodefiles.isGcodeFileName(futureFilename)): + return make_response("Can not upload file %s, wrong format?" % upload.filename, 415) + + # prohibit overwriting currently selected file while it's being printed + if futureFilename == currentFilename and target == currentOrigin and printer.isPrinting() or printer.isPaused(): + return make_response("Trying to overwrite file that is currently being printed: %s" % currentFilename, 409) + + def fileProcessingFinished(filename, absFilename, destination): + """ + Callback for when the file processing (upload, optional slicing, addition to analysis queue) has + finished. + + Depending on the file's destination triggers either streaming to SD card or directly calls selectAndOrPrint. + """ + if destination == FileDestinations.SDCARD: + return filename, printer.addSdFile(filename, absFilename, selectAndOrPrint) + else: + selectAndOrPrint(filename, absFilename, destination) + return filename + + def selectAndOrPrint(filename, absFilename, destination): + """ + Callback for when the file is ready to be selected and optionally printed. For SD file uploads this is only + the case after they have finished streaming to the printer, which is why this callback is also used + for the corresponding call to addSdFile. + + Selects the just uploaded file if either selectAfterUpload or printAfterSelect are True, or if the + exact file is already selected, such reloading it. + """ + if selectAfterUpload or printAfterSelect or (currentFilename == filename and currentOrigin == destination): + printer.selectFile(absFilename, destination == FileDestinations.SDCARD, printAfterSelect) + + filename, done = gcodeManager.addFile(upload, target, fileProcessingFinished) + if filename is None: + return make_response("Could not upload the file %s" % upload.filename, 500) + + sdFilename = None + if isinstance(filename, tuple): + filename, sdFilename = filename + + eventManager.fire(Events.UPLOAD, {"file": filename, "target": target}) + + files = {} + location = url_for(".readGcodeFile", target=FileDestinations.LOCAL, filename=filename, _external=True) + files.update({ + FileDestinations.LOCAL: { + "name": filename, + "origin": FileDestinations.LOCAL, + "refs": { + "resource": location, + "download": url_for("index", _external=True) + "downloads/files/" + FileDestinations.LOCAL + "/" + filename + } + } + }) + + if sd and sdFilename: + location = url_for(".readGcodeFile", target=FileDestinations.SDCARD, filename=sdFilename, _external=True) + files.update({ + FileDestinations.SDCARD: { + "name": sdFilename, + "origin": FileDestinations.SDCARD, + "refs": { + "resource": location + } + } + }) + + r = make_response(jsonify(files=files, done=done), 201) + r.headers["Location"] = location + return r @api.route("/files//", methods=["GET"]) @@ -172,3 +280,6 @@ def deleteGcodeFile(filename, target): return NO_CONTENT + +class Object(object): + pass diff --git a/src/octoprint/server/util.py b/src/octoprint/server/util.py index ca9ee2417..f4e6f4aba 100644 --- a/src/octoprint/server/util.py +++ b/src/octoprint/server/util.py @@ -237,44 +237,354 @@ class PrinterStateConnection(SockJSConnection): @stream_request_body class UploadStorageFallbackHandler(RequestHandler): + """ + A `RequestHandler` similar to `tornado.web.FallbackHandler` which fetches any files contained in the request bodies + of content type `multipart`, stores them in temporary files and supplies the `fallback` with the file's `name`, + `content_type`, `path` and `size` instead via a rewritten body. - def initialize(self, delegate, folder): - self.delegate = delegate - self.folder = folder + Basically similar to what the nginx upload module does. - # Parts information will be stored here - self.parts = dict() + Basic request body example: - # files will be stored here - self.files = dict() + ------WebKitFormBoundarypYiSUx63abAmhT5C + Content-Disposition: form-data; name="file"; filename="test.gcode" + Content-Type: application/octet-stream - # values will be stored here - self.values = dict() + ... + ------WebKitFormBoundarypYiSUx63abAmhT5C + Content-Disposition: form-data; name="apikey" + + my_funny_apikey + ------WebKitFormBoundarypYiSUx63abAmhT5C + Content-Disposition: form-data; name="select" + + true + ------WebKitFormBoundarypYiSUx63abAmhT5C-- + + That would get turned into: + + ------WebKitFormBoundarypYiSUx63abAmhT5C + Content-Disposition: form-data; name="apikey" + + my_funny_apikey + ------WebKitFormBoundarypYiSUx63abAmhT5C + Content-Disposition: form-data; name="select" + + true + ------WebKitFormBoundarypYiSUx63abAmhT5C + Content-Disposition: form-data; name="file.path" + + /tmp/tmpzupkro + ------WebKitFormBoundarypYiSUx63abAmhT5C + Content-Disposition: form-data; name="file.name" + + test.gcode + ------WebKitFormBoundarypYiSUx63abAmhT5C + Content-Disposition: form-data; name="file.content_type" + + application/octet-stream + ------WebKitFormBoundarypYiSUx63abAmhT5C + Content-Disposition: form-data; name="file.size" + + 349182 + ------WebKitFormBoundarypYiSUx63abAmhT5C-- + + The underlying application can then access the contained files via their respective paths and just move them + where necessary. + """ + + # the request methods that may contain a request body + BODY_METHODS = ("POST", "PATCH", "PUT") + + def initialize(self, fallback, file_prefix="tmp", file_suffix="", path=None, suffixes=None): + if not suffixes: + suffixes = dict() + + self._fallback = fallback + self._file_prefix = file_prefix + self._file_suffix = file_suffix + self._path = path + + self._suffixes = dict((key, key) for key in ("name", "path", "content_type", "size")) + for suffix_type, suffix in suffixes.iteritems(): + if suffix_type in self._suffixes and suffix is not None: + self._suffixes[suffix_type] = suffix + + # Parts, files and values will be stored here + self._parts = dict() + self._files = [] # Part currently being processed self._current_part = None + + # content type of request body + self._content_type = None + + # bytes left to read according to content_length of request body + self._bytes_left = 0 + # buffer needed for identifying form data parts self._buffer = b"" - # we only support multipart/form-data content, so check for that - self._bytes_left = self.request.headers.get("Content-Length", 0) - content_type = self.request.headers.get("Content-Type", "") - if not self._bytes_left or not content_type.startswith("multipart"): - raise HTTPError(405) + # buffer for new body + self._new_body = b"" - # extract the multipart boundary - fields = content_type.split(";") - for field in fields: - k, sep, v = field.strip().partition("=") - if k == "boundary" and v: - if v.startswith(b'"') and v.endswith(b'"'): - self.boundary = tornado.escape.utf8(v[1:-1]) + # logger + self._logger = logging.getLogger(__name__) + + def prepare(self): + """ + Prepares the processing of the request. If it's a request that may contain a request body (as defined in + `UploadStorageFallbackHandler.BODY_METHODS) prepares the multipart parsing if content type fits. If it's a + body-less request, just calls the `fallback` with an empty body and finishes the request. + """ + if self.request.method in UploadStorageFallbackHandler.BODY_METHODS: + self._bytes_left = self.request.headers.get("Content-Length", 0) + self._content_type = self.request.headers.get("Content-Type", None) + + # request might contain a body + if self.is_multipart(): + if not self._bytes_left: + # we don't support requests without a content-length + raise HTTPError(400, reason="No Content-Length supplied") + + # extract the multipart boundary + fields = self._content_type.split(";") + for field in fields: + k, sep, v = field.strip().partition("=") + if k == "boundary" and v: + if v.startswith(b'"') and v.endswith(b'"'): + self._multipart_boundary = tornado.escape.utf8(v[1:-1]) + else: + self._multipart_boundary = tornado.escape.utf8(v) + break else: - self.boundary = tornado.escape.utf8(v) - break + self._multipart_boundary = None else: - raise HTTPError(400) + self._fallback(self.request, b"") + self._finished = True + def data_received(self, chunk): + """ + Called by Tornado on receiving a chunk of the request body. If request is a multipart request, takes care of + processing the multipart data structure via `self._process_multipart_data`. If not, just adds the chunk to + internal in-memory buffer. + + :param chunk: chunk of data received from Tornado + """ + + data = self._buffer + chunk + if self.is_multipart(): + self._process_multipart_data(data) + else: + self._buffer = data + + def is_multipart(self): + """Checks whether this request is a `multipart` request""" + return self._content_type is not None and self._content_type.startswith("multipart") + + def _process_multipart_data(self, data): + """ + Processes the given data, parsing it for multipart definitions and calling the appropriate methods. + + :param data: the data to process as a string + """ + + # check for boundary + delimiter = b"--%s" % self._multipart_boundary + delimiter_loc = data.find(delimiter) + delimiter_len = len(delimiter) + end_of_header = None + if delimiter_loc != -1: + # found the delimiter in the currently available data + data, self._buffer = data[0:delimiter_loc], data[delimiter_loc:] + end_of_header = self._buffer.find("\r\n\r\n") + else: + # make sure any boundary (with single or double ==) contained at the end of chunk does not get + # truncated by this processing round => save it to the buffer for next round + endlen = len(self._multipart_boundary) + 4 + data, self._buffer = data[0:-endlen], data[-endlen:] + + # stream data to part handler + if data: + if self._current_part: + self._on_data(self._current_part, data) + + if end_of_header >= 0: + self._on_header(self._buffer[delimiter_len+2:end_of_header]) + self._buffer = self._buffer[end_of_header + 4:] + + if delimiter_loc != -1 and self._buffer[delimiter_len:delimiter_len+2] == "--": + # we saw the last boundary and are at the end of our request + if self._current_part: + self._on_close(self._current_part) + self._current_part = None + self._buffer = b"" + self._on_finish() + + def _on_header(self, header): + """ + Called for a new multipart header, takes care of parsing the header and calling `self._on_part` with the + relevant data, setting the current part in the process. + + :param header: header to parse + """ + + # close any open parts + if self._current_part: + self._on_close(self._current_part) + self._current_part = None + + header_check = header.find(self._multipart_boundary) + if header_check != -1: + self._logger.warn("Header still contained multipart boundary, stripping it...") + header = header[header_check:] + + # convert to dict + header = HTTPHeaders.parse(header.decode("utf-8")) + disp_header = header.get("Content-Disposition", "") + disposition, disp_params = tornado.httputil._parse_header(disp_header) + + if disposition != "form-data": + self._logger.warn("Got a multipart header without form-data content disposition, ignoring that one") + return + if not disp_params.get("name"): + self._logger.warn("Got a multipart header without name, ignoring that one") + return + + self._current_part = self._on_part(disp_params["name"], header.get("Content-Type", None), filename=disp_params["filename"] if "filename" in disp_params else None) + + def _on_part(self, name, content_type, filename=None): + """ + Called for new parts in the multipart stream. If `filename` is given creates new `file` part (which leads + to storage of the data as temporary file on disk), if not creates a new `data` part (which stores + incoming data in memory). + + Structure of `file` parts: + + * `name`: name of the part + * `filename`: filename associated with the part + * `path`: path to the temporary file storing the file's data + * `content_type`: content type of the part + * `file`: file handle for the temporary file (mode "wb", not deleted on close!) + + Structure of `data` parts: + + * `name`: name of the part + * `content_type`: content type of the part + * `data`: bytes of the part (initialized to "") + + :param name: name of the part + :param content_type: content type of the part + :param filename: filename associated with the part. + :return: dict describing the new part + """ + if filename is not None: + # this is a file + import tempfile + handle = tempfile.NamedTemporaryFile(mode="wb", prefix=self._file_prefix, suffix=self._file_suffix, dir=self._path, delete=False) + return dict(name=tornado.escape.utf8(name), + filename=tornado.escape.utf8(filename), + path=tornado.escape.utf8(handle.name), + content_type=tornado.escape.utf8(content_type), + file=handle) + + else: + return dict(name=tornado.escape.utf8(name), content_type=content_type, data=b"") + + def _on_data(self, part, data): + """ + Called when new bytes are received for the given `part`, takes care of writing them to their storage. + + :param part: part for which data was received + :param data: data chunk which was received + """ + if "file" in part: + part["file"].write(data) + else: + part["data"] += data + + def _on_close(self, part): + """ + Called when a part gets closed, takes care of storing the finished part in the internal parts storage and for + `file` parts closing the temporary file and storing the part in the internal files storage. + + :param part: part which was closed + """ + name = part["name"] + self._parts[name] = part + if "file" in part: + self._files.append(part["path"]) + part["file"].close() + del part["file"] + + def _on_finish(self): + """ + Called when the request body has been read completely. Takes care of creating the replacement body out of the + logged parts, turning `file` parts into new + :return: + """ + + self._new_body = b"" + for name, part in self._parts.iteritems(): + if "filename" in part: + # add form fields for filename, path, size and content_type for all files contained in the request + fields = dict((self._suffixes[key], value) for (key, value) in dict(name=part["filename"], path=part["path"], size=str(os.stat(part["path"]).st_size), content_type=part["content_type"]).iteritems()) + for n, p in fields.iteritems(): + key = name + "." + n + self._new_body += b"--%s\r\n" % self._multipart_boundary + self._new_body += b"Content-Disposition: form-data; name=\"%s\"\r\n" % key + self._new_body += b"\r\n" + self._new_body += p + b"\r\n" + elif "data" in part: + self._new_body += b"--%s\r\n" % self._multipart_boundary + value = part["data"] + self._new_body += b"Content-Disposition: form-data; name=\"%s\"\r\n" % name + if "content_type" in part and part["content_type"] is not None: + self._new_body += b"Content-Type: %s\r\n" % part["content_type"] + self._new_body += b"\r\n" + self._new_body += value + self._new_body += b"--%s--\r\n" % self._multipart_boundary + + def _handle_method(self, *args, **kwargs): + """ + Handler for any request method, takes care of defining the new request body if necessary and forwarding + the current request and changed body to the `fallback`. + """ + + # determine which body to supply + body = b"" + if self.is_multipart(): + # make sure we really processed all data in the buffer + while len(self._buffer): + self._process_multipart_data(self._buffer) + + # use rewritten body + body = self._new_body + + elif self.request.method in UploadStorageFallbackHandler.BODY_METHODS: + # directly use data from buffer + body = self._buffer + + # rewrite content length + self.request.headers["Content-Length"] = len(body) + + try: + # call the configured fallback with request and body to use + self._fallback(self.request, body) + finally: + # make sure the temporary files are removed again + for f in self._files: + util.silentRemove(f) + + # make all http methods trigger _handle_method + get = _handle_method + post = _handle_method + put = _handle_method + patch = _handle_method + delete = _handle_method + head = _handle_method + options = _handle_method @stream_request_body @@ -294,39 +604,88 @@ class StreamingFallbackHandler(FallbackHandler): (r".*", StreamingFallbackHandler, dict(fallback=wsgi_app), ]) """ - def initialize(self, fallback): - self.fallback = fallback - def data_received(self, chunk): - self._tmpfile.write(chunk) - self._length_left -= len(chunk) - if self._length_left <= 0: - self.finished_body() + NO_BODY_METHODS = ("GET", "HEAD", "OPTIONS") - def finished_body(self): - self._tmpfile.seek(0) + def initialize(self, fallback, max_size=50*1024*1024*1024, file_prefix="tmp"): + self._fallback = fallback + self._max_size = max_size + self._file_prefix = file_prefix def prepare(self): - self._length_left = int(self.request.headers.get("Content-Length", 0)) - self._tmpfile = TemporaryFile() + if self.request.method not in StreamingFallbackHandler.NO_BODY_METHODS: + import tempfile + self._length_left = int(self.request.headers.get("Content-Length", 0)) + self._tempfile = tempfile.TemporaryFile(prefix=self._file_prefix) + else: + import io + self._fallback(self.request, io.BytesIO()) + self._finished = True - def __getattribute__(self, name): - if name in ("get", "post", "put", "patch"): - try: - body_stream = self._tmpfile - self.fallback(self.request, body_stream) - finally: - self._tmpfile.close() - return lambda *args, **kwargs: None - return object.__getattribute__(self, name) + def data_received(self, chunk): + if self.request.method not in StreamingFallbackHandler.NO_BODY_METHODS: + self._tempfile.write(chunk) + self._length_left -= len(chunk) + if self._length_left <= 0: + self.finished_body() + + def finished_body(self): + self._tempfile.seek(0) + + def get(self, *args, **kwargs): + return self._handle_method() + + def post(self, *args, **kwargs): + return self._handle_method() + + def put(self, *args, **kwargs): + return self._handle_method() + + def delete(self, *args, **kwargs): + return self._handle_method() + + def head(self, *args, **kwargs): + return self._handle_method() + + def options(self, *args, **kwargs): + return self._handle_method() + + def _handle_method(self): + try: + self._fallback(self.request, self._tempfile) + finally: + self._tempfile.close() -class StreamedWsgiContainer(object): +class WsgiInputContainer(object): + """ + A WSGI container for use with Tornado that allows supplying the request body to be used for `wsgi.input` in the + generated WSGI environment upon call. + + A `RequestHandler` can thus provide the WSGI application with a stream for the request body, or a modified body. + + Example usage: + + wsgi_app = octoprint.server.util.WsgiInputContainer(octoprint_app) + application = tornado.web.Application([ + (r".*", UploadStorageFallbackHandler, dict(fallback=wsgi_app), + ]) + + The implementation logic is basically the same as `tornado.wsgi.WSGIContainer` but the `__call__` and `environ` + + """ def __init__(self, wsgi_application): self.wsgi_application = wsgi_application - def __call__(self, request, body_stream): + def __call__(self, request, body=None): + """ + Wraps the call against the WSGI app, deriving the WSGI environment from the supplied Tornado `HTTPServerRequest`. + + :param request: the `tornado.httpserver.HTTPServerRequest` to derive the WSGI environment from + :param body: an optional body to use as `wsgi.input` instead of `request.body`, can be a string or a stream + """ + data = {} response = [] @@ -335,7 +694,7 @@ class StreamedWsgiContainer(object): data["headers"] = response_headers return response.append app_response = self.wsgi_application( - StreamedWsgiContainer.environ(request, body_stream), start_response) + WsgiInputContainer.environ(request, body), start_response) try: response.extend(app_response) body = b"".join(response) @@ -367,13 +726,29 @@ class StreamedWsgiContainer(object): self._log(status_code, request) @staticmethod - def environ(request, body_stream): - """Converts a `tornado.httputil.HTTPServerRequest` to a WSGI environment. + def environ(request, body=None): + """ + Converts a `tornado.httputil.HTTPServerRequest` to a WSGI environment. + + An optional `body` to be used for populating `wsgi.input` can be supplied (either a string or a stream). If not + supplied, `request.body` will be wrapped into a `io.BytesIO` stream and used instead. + + :param request: the `tornado.httpserver.HTTPServerRequest` to derive the WSGI environment from + :param body: an optional body to use as `wsgi.input` instead of `request.body`, can be a string or a stream """ from tornado.wsgi import to_wsgi_str import sys import io + # determine the request_body to supply as wsgi.input + if body is not None: + if isinstance(body, (bytes, str)): + request_body = io.BytesIO(tornado.escape.utf8(body)) + else: + request_body = body + else: + request_body = io.BytesIO(tornado.escape.utf8(request.body)) + hostport = request.host.split(":") if len(hostport) == 2: host = hostport[0] @@ -393,7 +768,7 @@ class StreamedWsgiContainer(object): "SERVER_PROTOCOL": request.version, "wsgi.version": (1, 0), "wsgi.url_scheme": request.protocol, - "wsgi.input": body_stream, + "wsgi.input": request_body, "wsgi.errors": sys.stderr, "wsgi.multithread": False, "wsgi.multiprocess": True, From b4af85f405a1a0bd90814f6f65bb6dabf1e272ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 5 Aug 2014 11:26:13 +0200 Subject: [PATCH 10/50] Finalizing upload streaming support Major refactoring of octoprint.server.util (divided into smaller submodules), extended Tornado to allow for request-specific max content lengths, introduced settings parameters to configure maximum upload size, maximum request body size and file suffixes See #455 --- src/octoprint/server/__init__.py | 52 +- src/octoprint/server/api/__init__.py | 14 +- src/octoprint/server/api/connection.py | 6 +- src/octoprint/server/api/files.py | 27 +- src/octoprint/server/api/job.py | 6 +- src/octoprint/server/api/log.py | 9 +- src/octoprint/server/api/printer.py | 8 +- src/octoprint/server/api/settings.py | 6 +- src/octoprint/server/api/timelapse.py | 9 +- src/octoprint/server/api/users.py | 6 +- src/octoprint/server/util.py | 1450 ------------------------ src/octoprint/server/util/__init__.py | 100 ++ src/octoprint/server/util/flask.py | 154 +++ src/octoprint/server/util/sockjs.py | 124 ++ src/octoprint/server/util/tornado.py | 853 ++++++++++++++ src/octoprint/server/util/watchdog.py | 87 ++ src/octoprint/settings.py | 14 +- src/octoprint/util/__init__.py | 4 + 18 files changed, 1422 insertions(+), 1507 deletions(-) delete mode 100644 src/octoprint/server/util.py create mode 100644 src/octoprint/server/util/__init__.py create mode 100644 src/octoprint/server/util/flask.py create mode 100644 src/octoprint/server/util/sockjs.py create mode 100644 src/octoprint/server/util/tornado.py create mode 100644 src/octoprint/server/util/watchdog.py diff --git a/src/octoprint/server/__init__.py b/src/octoprint/server/__init__.py index 8f29dd53b..96890a401 100644 --- a/src/octoprint/server/__init__.py +++ b/src/octoprint/server/__init__.py @@ -1,13 +1,13 @@ # coding=utf-8 -import uuid +from __future__ import absolute_import __author__ = "Gina Häußge " __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' +__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License" -import flask -import tornado.wsgi +import uuid from sockjs.tornado import SockJSRouter -from flask import Flask, render_template, send_from_directory, make_response +from flask import Flask, render_template, send_from_directory from flask.ext.login import LoginManager from flask.ext.principal import Principal, Permission, RoleNeed, identity_loaded, UserNeed from watchdog.observers import Observer @@ -33,18 +33,16 @@ admin_permission = Permission(RoleNeed("admin")) user_permission = Permission(RoleNeed("user")) # only import the octoprint stuff down here, as it might depend on things defined above to be initialized already -from octoprint.server.util import LargeResponseHandler, ReverseProxied, restricted_access, PrinterStateConnection, admin_validator, \ - UrlForwardHandler, user_validator, GcodeWatchdogHandler, UploadCleanupWatchdogHandler, \ - access_validation_factory, WsgiInputContainer, StreamingFallbackHandler, PrintableFilesUploadHandler, \ - UploadStorageFallbackHandler from octoprint.printer import Printer, getConnectionOptions from octoprint.settings import settings import octoprint.gcodefiles as gcodefiles -import octoprint.util as util import octoprint.users as users import octoprint.events as events import octoprint.timelapse import octoprint._version +import octoprint.util + +from . import util UI_API_KEY = ''.join('%02X' % ord(z) for z in uuid.uuid4().bytes) @@ -121,10 +119,8 @@ class Server(): global loginManager global debug - from tornado.wsgi import WSGIContainer - from tornado.httpserver import HTTPServer from tornado.ioloop import IOLoop - from tornado.web import Application, FallbackHandler + from tornado.web import Application debug = self._debug @@ -152,12 +148,12 @@ class Server(): if settings().getBoolean(["accessControl", "enabled"]): userManagerName = settings().get(["accessControl", "userManager"]) try: - clazz = util.getClass(userManagerName) + clazz = octoprint.util.getClass(userManagerName) userManager = clazz() except AttributeError, e: logger.exception("Could not instantiate user manager %s, will run with accessControl disabled!" % userManagerName) - app.wsgi_app = ReverseProxied(app.wsgi_app) + app.wsgi_app = util.ReverseProxied(app.wsgi_app) app.secret_key = "k3PuVYgtxNm8DXKKTw2nWmFQQun9qceV" loginManager = LoginManager() @@ -182,14 +178,18 @@ class Server(): self._router = SockJSRouter(self._createSocketConnection, "/sockjs") + upload_suffixes = dict(name=settings().get(["server", "uploads", "nameSuffix"]), path=settings().get(["server", "uploads", "pathSuffix"])) self._tornado_app = Application(self._router.urls + [ - (r"/downloads/timelapse/([^/]*\.mpg)", LargeResponseHandler, dict(path=settings().getBaseFolder("timelapse"), as_attachment=True)), - (r"/downloads/files/local/([^/]*\.(gco|gcode))", LargeResponseHandler, dict(path=settings().getBaseFolder("uploads"), as_attachment=True)), - (r"/downloads/logs/([^/]*)", LargeResponseHandler, dict(path=settings().getBaseFolder("logs"), as_attachment=True, access_validation=access_validation_factory(app, loginManager, admin_validator))), - (r"/downloads/camera/current", UrlForwardHandler, dict(url=settings().get(["webcam", "snapshot"]), as_attachment=True, access_validation=access_validation_factory(app, loginManager, user_validator))), - (r".*", UploadStorageFallbackHandler, dict(fallback=WsgiInputContainer(app.wsgi_app), file_prefix="octoprint-file-upload-", file_suffix=".tmp")) + (r"/downloads/timelapse/([^/]*\.mpg)", util.tornado.LargeResponseHandler, dict(path=settings().getBaseFolder("timelapse"), as_attachment=True)), + (r"/downloads/files/local/([^/]*\.(gco|gcode))", util.tornado.LargeResponseHandler, dict(path=settings().getBaseFolder("uploads"), as_attachment=True)), + (r"/downloads/logs/([^/]*)", util.tornado.LargeResponseHandler, dict(path=settings().getBaseFolder("logs"), as_attachment=True, access_validation=util.tornado.access_validation_factory(app, loginManager, util.flask.admin_validator))), + (r"/downloads/camera/current", util.tornado.UrlForwardHandler, dict(url=settings().get(["webcam", "snapshot"]), as_attachment=True, access_validation=util.tornado.access_validation_factory(app, loginManager, util.flask.user_validator))), + (r".*", util.tornado.UploadStorageFallbackHandler, dict(fallback=util.tornado.WsgiInputContainer(app.wsgi_app), file_prefix="octoprint-file-upload-", file_suffix=".tmp", suffixes=upload_suffixes)) ]) - self._server = HTTPServer(self._tornado_app, max_body_size=1*1024*1024*1024) + max_body_sizes = [ + ("POST", r"/api/files/([^/]*)", settings().getInt(["server", "uploads", "maxSize"])) + ] + self._server = util.tornado.CustomHTTPServer(self._tornado_app, max_body_sizes=max_body_sizes, default_max_body_size=10*1024) self._server.listen(self._port, address=self._host) eventManager.fire(events.Events.STARTUP) @@ -201,8 +201,8 @@ class Server(): # start up watchdogs observer = Observer() - observer.schedule(GcodeWatchdogHandler(gcodeManager, printer), settings().getBaseFolder("watched")) - observer.schedule(UploadCleanupWatchdogHandler(gcodeManager), settings().getBaseFolder("uploads")) + observer.schedule(util.watchdog.GcodeWatchdogHandler(gcodeManager, printer), settings().getBaseFolder("watched")) + observer.schedule(util.watchdog.UploadCleanupWatchdogHandler(gcodeManager), settings().getBaseFolder("uploads")) observer.start() try: @@ -218,7 +218,7 @@ class Server(): def _createSocketConnection(self, session): global printer, gcodeManager, userManager, eventManager - return PrinterStateConnection(printer, gcodeManager, userManager, eventManager, session) + return util.sockjs.PrinterStateConnection(printer, gcodeManager, userManager, eventManager, session) def _checkForRoot(self): if "geteuid" in dir(os) and os.geteuid() == 0: @@ -283,7 +283,7 @@ class Server(): with open(logConf, "r") as f: configFromFile = yaml.safe_load(f) - config = util.dict_merge(defaultConfig, configFromFile) + config = octoprint.util.dict_merge(defaultConfig, configFromFile) logging.config.dictConfig(config) if settings().getBoolean(["serial", "log"]): @@ -292,5 +292,5 @@ class Server(): logging.getLogger("SERIAL").debug("Enabling serial logging") if __name__ == "__main__": - octoprint = Server() - octoprint.run() + server = Server() + server.run() diff --git a/src/octoprint/server/api/__init__.py b/src/octoprint/server/api/__init__.py index 2af447263..5e021ac1c 100644 --- a/src/octoprint/server/api/__init__.py +++ b/src/octoprint/server/api/__init__.py @@ -1,8 +1,9 @@ # coding=utf-8 -from octoprint.server.util import getApiKey, getUserForApiKey +from __future__ import absolute_import __author__ = "Gina Häußge " __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' +__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License" import logging import netaddr @@ -15,8 +16,11 @@ from flask.ext.principal import Identity, identity_changed, AnonymousIdentity import octoprint.util as util import octoprint.users import octoprint.server -from octoprint.server import restricted_access, admin_permission, NO_CONTENT, UI_API_KEY +from octoprint.server import admin_permission, NO_CONTENT, UI_API_KEY from octoprint.settings import settings as s, valid_boolean_trues +from octoprint.server.util import get_api_key, get_user_for_apikey +from octoprint.server.util.flask import restricted_access + #~~ init api blueprint, including sub modules @@ -67,7 +71,7 @@ def beforeApiRequests(): if request.method == 'OPTIONS' and s().getBoolean(["api", "allowCrossOrigin"]): return optionsAllowOrigin(request) - apikey = getApiKey(request) + apikey = get_api_key(request) if apikey is None: # no api key => 401 return make_response("No API key provided", 401) @@ -84,7 +88,7 @@ def beforeApiRequests(): # global api key => continue regular request processing return - user = getUserForApiKey(apikey) + user = get_user_for_apikey(apikey) if user is not None: # user specific api key => continue regular request processing return @@ -143,7 +147,7 @@ def apiPrinterState(): def apiVersion(): return jsonify({ "server": octoprint.server.VERSION, - "api": octoprint.server.api.VERSION + "api": VERSION }) #~~ system control diff --git a/src/octoprint/server/api/connection.py b/src/octoprint/server/api/connection.py index 683c4e9de..f947e8601 100644 --- a/src/octoprint/server/api/connection.py +++ b/src/octoprint/server/api/connection.py @@ -1,13 +1,17 @@ # coding=utf-8 +from __future__ import absolute_import + __author__ = "Gina Häußge " __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' +__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License" from flask import request, jsonify, make_response from octoprint.settings import settings from octoprint.printer import getConnectionOptions -from octoprint.server import printer, restricted_access, NO_CONTENT +from octoprint.server import printer, NO_CONTENT from octoprint.server.api import api +from octoprint.server.util.flask import restricted_access import octoprint.util as util diff --git a/src/octoprint/server/api/files.py b/src/octoprint/server/api/files.py index eb71c14cf..8f0dd0622 100644 --- a/src/octoprint/server/api/files.py +++ b/src/octoprint/server/api/files.py @@ -1,17 +1,20 @@ # coding=utf-8 -from octoprint.events import Events +from __future__ import absolute_import __author__ = "Gina Häußge " __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' +__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License" -from flask import request, jsonify, make_response, url_for, redirect +from flask import request, jsonify, make_response, url_for import octoprint.gcodefiles as gcodefiles import octoprint.util as util from octoprint.filemanager.destinations import FileDestinations from octoprint.settings import settings, valid_boolean_trues -from octoprint.server import printer, gcodeManager, eventManager, restricted_access, NO_CONTENT +from octoprint.server import printer, gcodeManager, eventManager, NO_CONTENT +from octoprint.server.util.flask import restricted_access from octoprint.server.api import api +from octoprint.events import Events #~~ GCODE file handling @@ -89,13 +92,16 @@ def uploadGcodeFile(target): if not target in [FileDestinations.LOCAL, FileDestinations.SDCARD]: return make_response("Unknown target: %s" % target, 404) - if "file.name" in request.values and "file.path" in request.values: + input_name = "file" + input_upload_name = input_name + "." + settings().get(["server", "uploads", "nameSuffix"]) + input_upload_path = input_name + "." + settings().get(["server", "uploads", "pathSuffix"]) + if input_upload_name in request.values and input_upload_path in request.values: import shutil - upload = Object() - upload.filename = request.values["file.name"] - upload.save = lambda new_path: shutil.move(request.values["file.path"], new_path) - elif "file" in request.files: - upload = request.files["file"] + upload = util.Object() + upload.filename = request.values[input_upload_name] + upload.save = lambda new_path: shutil.move(request.values[input_upload_path], new_path) + elif input_name in request.files: + upload = request.files[input_name] else: return make_response("No file included", 400) @@ -280,6 +286,3 @@ def deleteGcodeFile(filename, target): return NO_CONTENT - -class Object(object): - pass diff --git a/src/octoprint/server/api/job.py b/src/octoprint/server/api/job.py index 3ee86a1a3..84eacd8a9 100644 --- a/src/octoprint/server/api/job.py +++ b/src/octoprint/server/api/job.py @@ -1,10 +1,14 @@ # coding=utf-8 +from __future__ import absolute_import + __author__ = "Gina Häußge " __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' +__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License" from flask import request, make_response, jsonify -from octoprint.server import printer, restricted_access, NO_CONTENT +from octoprint.server import printer, NO_CONTENT +from octoprint.server.util.flask import restricted_access from octoprint.server.api import api import octoprint.util as util diff --git a/src/octoprint/server/api/log.py b/src/octoprint/server/api/log.py index 44159d27d..b1131b320 100644 --- a/src/octoprint/server/api/log.py +++ b/src/octoprint/server/api/log.py @@ -1,6 +1,9 @@ # coding=utf-8 +from __future__ import absolute_import + __author__ = "Marc Hannappel Salandora" __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' +__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License" import os @@ -9,8 +12,8 @@ from werkzeug.utils import secure_filename from octoprint.settings import settings -from octoprint.server import restricted_access, NO_CONTENT, admin_permission -from octoprint.server.util import redirectToTornado +from octoprint.server import NO_CONTENT, admin_permission +from octoprint.server.util.flask import redirect_to_tornado, restricted_access from octoprint.server.api import api from octoprint.util import getFreeBytes @@ -27,7 +30,7 @@ def getLogFiles(): @restricted_access @admin_permission.require(403) def downloadLog(filename): - return redirectToTornado(request, url_for("index") + "downloads/logs/" + filename) + return redirect_to_tornado(request, url_for("index") + "downloads/logs/" + filename) @api.route("/logs/", methods=["DELETE"]) diff --git a/src/octoprint/server/api/printer.py b/src/octoprint/server/api/printer.py index 391898701..55ae6d3b1 100644 --- a/src/octoprint/server/api/printer.py +++ b/src/octoprint/server/api/printer.py @@ -1,13 +1,17 @@ # coding=utf-8 +from __future__ import absolute_import + __author__ = "Gina Häußge " __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' +__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License" -from flask import request, jsonify, make_response +from flask import request, jsonify, make_response, Response import re from octoprint.settings import settings, valid_boolean_trues -from octoprint.server import printer, restricted_access, NO_CONTENT +from octoprint.server import printer, NO_CONTENT from octoprint.server.api import api +from octoprint.server.util.flask import restricted_access import octoprint.util as util #~~ Printer diff --git a/src/octoprint/server/api/settings.py b/src/octoprint/server/api/settings.py index b2306d9e2..8c7a5c565 100644 --- a/src/octoprint/server/api/settings.py +++ b/src/octoprint/server/api/settings.py @@ -1,6 +1,9 @@ # coding=utf-8 +from __future__ import absolute_import + __author__ = "Gina Häußge " __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' +__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License" import logging @@ -9,8 +12,9 @@ from flask import request, jsonify from octoprint.settings import settings from octoprint.printer import getConnectionOptions -from octoprint.server import restricted_access, admin_permission +from octoprint.server import admin_permission from octoprint.server.api import api +from octoprint.server.util.flask import restricted_access #~~ settings diff --git a/src/octoprint/server/api/timelapse.py b/src/octoprint/server/api/timelapse.py index 91898e180..11f27e5b3 100644 --- a/src/octoprint/server/api/timelapse.py +++ b/src/octoprint/server/api/timelapse.py @@ -1,6 +1,9 @@ # coding=utf-8 +from __future__ import absolute_import + __author__ = "Gina Häußge " __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' +__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License" import os @@ -11,8 +14,8 @@ import octoprint.timelapse import octoprint.util as util from octoprint.settings import settings, valid_boolean_trues -from octoprint.server import restricted_access, admin_permission -from octoprint.server.util import redirectToTornado +from octoprint.server import admin_permission +from octoprint.server.util.flask import redirect_to_tornado, restricted_access from octoprint.server.api import api @@ -46,7 +49,7 @@ def getTimelapseData(): @api.route("/timelapse/", methods=["GET"]) def downloadTimelapse(filename): - return redirectToTornado(request, url_for("index") + "downloads/timelapse/" + filename) + return redirect_to_tornado(request, url_for("index") + "downloads/timelapse/" + filename) @api.route("/timelapse/", methods=["DELETE"]) diff --git a/src/octoprint/server/api/users.py b/src/octoprint/server/api/users.py index 9228acc98..2b6f4022d 100644 --- a/src/octoprint/server/api/users.py +++ b/src/octoprint/server/api/users.py @@ -1,14 +1,18 @@ # coding=utf-8 +from __future__ import absolute_import + __author__ = "Gina Häußge " __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' +__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License" from flask import request, jsonify, abort, make_response from flask.ext.login import current_user import octoprint.users as users -from octoprint.server import restricted_access, SUCCESS, admin_permission, userManager +from octoprint.server import SUCCESS, admin_permission, userManager from octoprint.server.api import api +from octoprint.server.util.flask import restricted_access #~~ user settings diff --git a/src/octoprint/server/util.py b/src/octoprint/server/util.py deleted file mode 100644 index f4e6f4aba..000000000 --- a/src/octoprint/server/util.py +++ /dev/null @@ -1,1450 +0,0 @@ -# coding=utf-8 -from tempfile import TemporaryFile -from tornado.httputil import HTTPHeaders -from octoprint.filemanager.destinations import FileDestinations - -__author__ = "Gina Häußge " -__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' - -from flask.ext.principal import identity_changed, Identity -from tornado.web import StaticFileHandler, HTTPError, RequestHandler, asynchronous, stream_request_body, FallbackHandler -import tornado.escape, tornado.httputil -from tornado.httpclient import AsyncHTTPClient, HTTPRequest -from flask import url_for, make_response, request, current_app -from flask.ext.login import login_required, login_user, current_user -from werkzeug.utils import redirect -from sockjs.tornado import SockJSConnection - -import datetime -import stat -import mimetypes -import email -import time -import os -import threading -import logging -from functools import wraps -from watchdog.events import PatternMatchingEventHandler - -from octoprint.settings import settings, valid_boolean_trues -import octoprint.timelapse -import octoprint.server -from octoprint.users import ApiUser -from octoprint.events import Events -from octoprint import gcodefiles -import octoprint.util as util - -def restricted_access(func, apiEnabled=True): - """ - If you decorate a view with this, it will ensure that first setup has been - done for OctoPrint's Access Control plus that any conditions of the - login_required decorator are met. It also allows to login using the masterkey or any - of the user's apikeys if API access is enabled globally and for the decorated view. - - If OctoPrint's Access Control has not been setup yet (indicated by the "firstRun" - flag from the settings being set to True and the userManager not indicating - that it's user database has been customized from default), the decorator - will cause a HTTP 403 status code to be returned by the decorated resource. - - If an API key is provided and it matches a known key, the user will be logged in and - the view will be called directly. If the provided key doesn't match any known key, - a HTTP 403 status code will be returned by the decorated resource. - - Otherwise the result of calling login_required will be returned. - """ - @wraps(func) - def decorated_view(*args, **kwargs): - # if OctoPrint hasn't been set up yet, abort - if settings().getBoolean(["server", "firstRun"]) and (octoprint.server.userManager is None or not octoprint.server.userManager.hasBeenCustomized()): - return make_response("OctoPrint isn't setup yet", 403) - - # if API is globally enabled, enabled for this request and an api key is provided that is not the current UI API key, try to use that - apikey = getApiKey(request) - if settings().get(["api", "enabled"]) and apiEnabled and apikey is not None and apikey != octoprint.server.UI_API_KEY: - if apikey == settings().get(["api", "key"]): - # master key was used - user = ApiUser() - else: - # user key might have been used - user = octoprint.server.userManager.findUser(apikey=apikey) - - if user is None: - return make_response("Invalid API key", 401) - if login_user(user, remember=False): - identity_changed.send(current_app._get_current_object(), identity=Identity(user.get_id())) - return func(*args, **kwargs) - - # call regular login_required decorator - return login_required(func)(*args, **kwargs) - return decorated_view - - -def api_access(func): - @wraps(func) - def decorated_view(*args, **kwargs): - if not settings().get(["api", "enabled"]): - make_response("API disabled", 401) - apikey = getApiKey(request) - if apikey is None: - make_response("No API key provided", 401) - if apikey != settings().get(["api", "key"]): - make_response("Invalid API key", 403) - return func(*args, **kwargs) - return decorated_view - - -def getUserForApiKey(apikey): - if settings().get(["api", "enabled"]) and apikey is not None: - if apikey == settings().get(["api", "key"]): - # master key was used - return ApiUser() - else: - # user key might have been used - return octoprint.server.userManager.findUser(apikey=apikey) - else: - return None - - -def getApiKey(request): - # Check Flask GET/POST arguments - if hasattr(request, "values") and "apikey" in request.values: - return request.values["apikey"] - - # Check Tornado GET/POST arguments - if hasattr(request, "arguments") and "apikey" in request.arguments \ - and len(request.arguments["apikey"]) > 0 and len(request.arguments["apikey"].strip()) > 0: - return request.arguments["apikey"] - - # Check Tornado and Flask headers - if "X-Api-Key" in request.headers.keys(): - return request.headers.get("X-Api-Key") - - return None - - -#~~ Printer state - - -class PrinterStateConnection(SockJSConnection): - EVENTS = [Events.UPDATED_FILES, Events.METADATA_ANALYSIS_FINISHED, Events.MOVIE_RENDERING, Events.MOVIE_DONE, - Events.MOVIE_FAILED, Events.SLICING_STARTED, Events.SLICING_DONE, Events.SLICING_FAILED, - Events.TRANSFER_STARTED, Events.TRANSFER_DONE] - - def __init__(self, printer, gcodeManager, userManager, eventManager, session): - SockJSConnection.__init__(self, session) - - self._logger = logging.getLogger(__name__) - - self._temperatureBacklog = [] - self._temperatureBacklogMutex = threading.Lock() - self._logBacklog = [] - self._logBacklogMutex = threading.Lock() - self._messageBacklog = [] - self._messageBacklogMutex = threading.Lock() - - self._printer = printer - self._gcodeManager = gcodeManager - self._userManager = userManager - self._eventManager = eventManager - - def _getRemoteAddress(self, info): - forwardedFor = info.headers.get("X-Forwarded-For") - if forwardedFor is not None: - return forwardedFor.split(",")[0] - return info.ip - - def on_open(self, info): - remoteAddress = self._getRemoteAddress(info) - self._logger.info("New connection from client: %s" % remoteAddress) - - # connected => update the API key, might be necessary if the client was left open while the server restarted - self._emit("connected", {"apikey": octoprint.server.UI_API_KEY, "version": octoprint.server.VERSION}) - - self._printer.registerCallback(self) - self._gcodeManager.registerCallback(self) - octoprint.timelapse.registerCallback(self) - - self._eventManager.fire(Events.CLIENT_OPENED, {"remoteAddress": remoteAddress}) - for event in PrinterStateConnection.EVENTS: - self._eventManager.subscribe(event, self._onEvent) - - octoprint.timelapse.notifyCallbacks(octoprint.timelapse.current) - - def on_close(self): - self._logger.info("Client connection closed") - self._printer.unregisterCallback(self) - self._gcodeManager.unregisterCallback(self) - octoprint.timelapse.unregisterCallback(self) - - self._eventManager.fire(Events.CLIENT_CLOSED) - for event in PrinterStateConnection.EVENTS: - self._eventManager.unsubscribe(event, self._onEvent) - - def on_message(self, message): - pass - - def sendCurrentData(self, data): - # add current temperature, log and message backlogs to sent data - with self._temperatureBacklogMutex: - temperatures = self._temperatureBacklog - self._temperatureBacklog = [] - - with self._logBacklogMutex: - logs = self._logBacklog - self._logBacklog = [] - - with self._messageBacklogMutex: - messages = self._messageBacklog - self._messageBacklog = [] - - data.update({ - "temps": temperatures, - "logs": logs, - "messages": messages - }) - self._emit("current", data) - - def sendHistoryData(self, data): - self._emit("history", data) - - def sendEvent(self, type, payload=None): - self._emit("event", {"type": type, "payload": payload}) - - def sendFeedbackCommandOutput(self, name, output): - self._emit("feedbackCommandOutput", {"name": name, "output": output}) - - def sendTimelapseConfig(self, timelapseConfig): - self._emit("timelapse", timelapseConfig) - - def addLog(self, data): - with self._logBacklogMutex: - self._logBacklog.append(data) - - def addMessage(self, data): - with self._messageBacklogMutex: - self._messageBacklog.append(data) - - def addTemperature(self, data): - with self._temperatureBacklogMutex: - self._temperatureBacklog.append(data) - - def _onEvent(self, event, payload): - self.sendEvent(event, payload) - - def _emit(self, type, payload): - self.send({type: payload}) - - -@stream_request_body -class UploadStorageFallbackHandler(RequestHandler): - """ - A `RequestHandler` similar to `tornado.web.FallbackHandler` which fetches any files contained in the request bodies - of content type `multipart`, stores them in temporary files and supplies the `fallback` with the file's `name`, - `content_type`, `path` and `size` instead via a rewritten body. - - Basically similar to what the nginx upload module does. - - Basic request body example: - - ------WebKitFormBoundarypYiSUx63abAmhT5C - Content-Disposition: form-data; name="file"; filename="test.gcode" - Content-Type: application/octet-stream - - ... - ------WebKitFormBoundarypYiSUx63abAmhT5C - Content-Disposition: form-data; name="apikey" - - my_funny_apikey - ------WebKitFormBoundarypYiSUx63abAmhT5C - Content-Disposition: form-data; name="select" - - true - ------WebKitFormBoundarypYiSUx63abAmhT5C-- - - That would get turned into: - - ------WebKitFormBoundarypYiSUx63abAmhT5C - Content-Disposition: form-data; name="apikey" - - my_funny_apikey - ------WebKitFormBoundarypYiSUx63abAmhT5C - Content-Disposition: form-data; name="select" - - true - ------WebKitFormBoundarypYiSUx63abAmhT5C - Content-Disposition: form-data; name="file.path" - - /tmp/tmpzupkro - ------WebKitFormBoundarypYiSUx63abAmhT5C - Content-Disposition: form-data; name="file.name" - - test.gcode - ------WebKitFormBoundarypYiSUx63abAmhT5C - Content-Disposition: form-data; name="file.content_type" - - application/octet-stream - ------WebKitFormBoundarypYiSUx63abAmhT5C - Content-Disposition: form-data; name="file.size" - - 349182 - ------WebKitFormBoundarypYiSUx63abAmhT5C-- - - The underlying application can then access the contained files via their respective paths and just move them - where necessary. - """ - - # the request methods that may contain a request body - BODY_METHODS = ("POST", "PATCH", "PUT") - - def initialize(self, fallback, file_prefix="tmp", file_suffix="", path=None, suffixes=None): - if not suffixes: - suffixes = dict() - - self._fallback = fallback - self._file_prefix = file_prefix - self._file_suffix = file_suffix - self._path = path - - self._suffixes = dict((key, key) for key in ("name", "path", "content_type", "size")) - for suffix_type, suffix in suffixes.iteritems(): - if suffix_type in self._suffixes and suffix is not None: - self._suffixes[suffix_type] = suffix - - # Parts, files and values will be stored here - self._parts = dict() - self._files = [] - - # Part currently being processed - self._current_part = None - - # content type of request body - self._content_type = None - - # bytes left to read according to content_length of request body - self._bytes_left = 0 - - # buffer needed for identifying form data parts - self._buffer = b"" - - # buffer for new body - self._new_body = b"" - - # logger - self._logger = logging.getLogger(__name__) - - def prepare(self): - """ - Prepares the processing of the request. If it's a request that may contain a request body (as defined in - `UploadStorageFallbackHandler.BODY_METHODS) prepares the multipart parsing if content type fits. If it's a - body-less request, just calls the `fallback` with an empty body and finishes the request. - """ - if self.request.method in UploadStorageFallbackHandler.BODY_METHODS: - self._bytes_left = self.request.headers.get("Content-Length", 0) - self._content_type = self.request.headers.get("Content-Type", None) - - # request might contain a body - if self.is_multipart(): - if not self._bytes_left: - # we don't support requests without a content-length - raise HTTPError(400, reason="No Content-Length supplied") - - # extract the multipart boundary - fields = self._content_type.split(";") - for field in fields: - k, sep, v = field.strip().partition("=") - if k == "boundary" and v: - if v.startswith(b'"') and v.endswith(b'"'): - self._multipart_boundary = tornado.escape.utf8(v[1:-1]) - else: - self._multipart_boundary = tornado.escape.utf8(v) - break - else: - self._multipart_boundary = None - else: - self._fallback(self.request, b"") - self._finished = True - - def data_received(self, chunk): - """ - Called by Tornado on receiving a chunk of the request body. If request is a multipart request, takes care of - processing the multipart data structure via `self._process_multipart_data`. If not, just adds the chunk to - internal in-memory buffer. - - :param chunk: chunk of data received from Tornado - """ - - data = self._buffer + chunk - if self.is_multipart(): - self._process_multipart_data(data) - else: - self._buffer = data - - def is_multipart(self): - """Checks whether this request is a `multipart` request""" - return self._content_type is not None and self._content_type.startswith("multipart") - - def _process_multipart_data(self, data): - """ - Processes the given data, parsing it for multipart definitions and calling the appropriate methods. - - :param data: the data to process as a string - """ - - # check for boundary - delimiter = b"--%s" % self._multipart_boundary - delimiter_loc = data.find(delimiter) - delimiter_len = len(delimiter) - end_of_header = None - if delimiter_loc != -1: - # found the delimiter in the currently available data - data, self._buffer = data[0:delimiter_loc], data[delimiter_loc:] - end_of_header = self._buffer.find("\r\n\r\n") - else: - # make sure any boundary (with single or double ==) contained at the end of chunk does not get - # truncated by this processing round => save it to the buffer for next round - endlen = len(self._multipart_boundary) + 4 - data, self._buffer = data[0:-endlen], data[-endlen:] - - # stream data to part handler - if data: - if self._current_part: - self._on_data(self._current_part, data) - - if end_of_header >= 0: - self._on_header(self._buffer[delimiter_len+2:end_of_header]) - self._buffer = self._buffer[end_of_header + 4:] - - if delimiter_loc != -1 and self._buffer[delimiter_len:delimiter_len+2] == "--": - # we saw the last boundary and are at the end of our request - if self._current_part: - self._on_close(self._current_part) - self._current_part = None - self._buffer = b"" - self._on_finish() - - def _on_header(self, header): - """ - Called for a new multipart header, takes care of parsing the header and calling `self._on_part` with the - relevant data, setting the current part in the process. - - :param header: header to parse - """ - - # close any open parts - if self._current_part: - self._on_close(self._current_part) - self._current_part = None - - header_check = header.find(self._multipart_boundary) - if header_check != -1: - self._logger.warn("Header still contained multipart boundary, stripping it...") - header = header[header_check:] - - # convert to dict - header = HTTPHeaders.parse(header.decode("utf-8")) - disp_header = header.get("Content-Disposition", "") - disposition, disp_params = tornado.httputil._parse_header(disp_header) - - if disposition != "form-data": - self._logger.warn("Got a multipart header without form-data content disposition, ignoring that one") - return - if not disp_params.get("name"): - self._logger.warn("Got a multipart header without name, ignoring that one") - return - - self._current_part = self._on_part(disp_params["name"], header.get("Content-Type", None), filename=disp_params["filename"] if "filename" in disp_params else None) - - def _on_part(self, name, content_type, filename=None): - """ - Called for new parts in the multipart stream. If `filename` is given creates new `file` part (which leads - to storage of the data as temporary file on disk), if not creates a new `data` part (which stores - incoming data in memory). - - Structure of `file` parts: - - * `name`: name of the part - * `filename`: filename associated with the part - * `path`: path to the temporary file storing the file's data - * `content_type`: content type of the part - * `file`: file handle for the temporary file (mode "wb", not deleted on close!) - - Structure of `data` parts: - - * `name`: name of the part - * `content_type`: content type of the part - * `data`: bytes of the part (initialized to "") - - :param name: name of the part - :param content_type: content type of the part - :param filename: filename associated with the part. - :return: dict describing the new part - """ - if filename is not None: - # this is a file - import tempfile - handle = tempfile.NamedTemporaryFile(mode="wb", prefix=self._file_prefix, suffix=self._file_suffix, dir=self._path, delete=False) - return dict(name=tornado.escape.utf8(name), - filename=tornado.escape.utf8(filename), - path=tornado.escape.utf8(handle.name), - content_type=tornado.escape.utf8(content_type), - file=handle) - - else: - return dict(name=tornado.escape.utf8(name), content_type=content_type, data=b"") - - def _on_data(self, part, data): - """ - Called when new bytes are received for the given `part`, takes care of writing them to their storage. - - :param part: part for which data was received - :param data: data chunk which was received - """ - if "file" in part: - part["file"].write(data) - else: - part["data"] += data - - def _on_close(self, part): - """ - Called when a part gets closed, takes care of storing the finished part in the internal parts storage and for - `file` parts closing the temporary file and storing the part in the internal files storage. - - :param part: part which was closed - """ - name = part["name"] - self._parts[name] = part - if "file" in part: - self._files.append(part["path"]) - part["file"].close() - del part["file"] - - def _on_finish(self): - """ - Called when the request body has been read completely. Takes care of creating the replacement body out of the - logged parts, turning `file` parts into new - :return: - """ - - self._new_body = b"" - for name, part in self._parts.iteritems(): - if "filename" in part: - # add form fields for filename, path, size and content_type for all files contained in the request - fields = dict((self._suffixes[key], value) for (key, value) in dict(name=part["filename"], path=part["path"], size=str(os.stat(part["path"]).st_size), content_type=part["content_type"]).iteritems()) - for n, p in fields.iteritems(): - key = name + "." + n - self._new_body += b"--%s\r\n" % self._multipart_boundary - self._new_body += b"Content-Disposition: form-data; name=\"%s\"\r\n" % key - self._new_body += b"\r\n" - self._new_body += p + b"\r\n" - elif "data" in part: - self._new_body += b"--%s\r\n" % self._multipart_boundary - value = part["data"] - self._new_body += b"Content-Disposition: form-data; name=\"%s\"\r\n" % name - if "content_type" in part and part["content_type"] is not None: - self._new_body += b"Content-Type: %s\r\n" % part["content_type"] - self._new_body += b"\r\n" - self._new_body += value - self._new_body += b"--%s--\r\n" % self._multipart_boundary - - def _handle_method(self, *args, **kwargs): - """ - Handler for any request method, takes care of defining the new request body if necessary and forwarding - the current request and changed body to the `fallback`. - """ - - # determine which body to supply - body = b"" - if self.is_multipart(): - # make sure we really processed all data in the buffer - while len(self._buffer): - self._process_multipart_data(self._buffer) - - # use rewritten body - body = self._new_body - - elif self.request.method in UploadStorageFallbackHandler.BODY_METHODS: - # directly use data from buffer - body = self._buffer - - # rewrite content length - self.request.headers["Content-Length"] = len(body) - - try: - # call the configured fallback with request and body to use - self._fallback(self.request, body) - finally: - # make sure the temporary files are removed again - for f in self._files: - util.silentRemove(f) - - # make all http methods trigger _handle_method - get = _handle_method - post = _handle_method - put = _handle_method - patch = _handle_method - delete = _handle_method - head = _handle_method - options = _handle_method - - -@stream_request_body -class StreamingFallbackHandler(FallbackHandler): - """A `RequestHandler` that wraps another HTTP server callback. - - The fallback is a callable object that accepts an - `~.httputil.HTTPServerRequest`, such as an `Application` or - `octoprint.server.util.StreamedWSGIContainer`. This is most useful to use both - Tornado ``RequestHandlers`` and WSGI in the same server. Typical - usage:: - - wsgi_app = octoprint.server.util.StreamedWSGIContainer( - django.core.handlers.wsgi.WSGIHandler()) - application = tornado.web.Application([ - (r"/foo", FooHandler), - (r".*", StreamingFallbackHandler, dict(fallback=wsgi_app), - ]) - """ - - NO_BODY_METHODS = ("GET", "HEAD", "OPTIONS") - - def initialize(self, fallback, max_size=50*1024*1024*1024, file_prefix="tmp"): - self._fallback = fallback - self._max_size = max_size - self._file_prefix = file_prefix - - def prepare(self): - if self.request.method not in StreamingFallbackHandler.NO_BODY_METHODS: - import tempfile - self._length_left = int(self.request.headers.get("Content-Length", 0)) - self._tempfile = tempfile.TemporaryFile(prefix=self._file_prefix) - else: - import io - self._fallback(self.request, io.BytesIO()) - self._finished = True - - def data_received(self, chunk): - if self.request.method not in StreamingFallbackHandler.NO_BODY_METHODS: - self._tempfile.write(chunk) - self._length_left -= len(chunk) - if self._length_left <= 0: - self.finished_body() - - def finished_body(self): - self._tempfile.seek(0) - - def get(self, *args, **kwargs): - return self._handle_method() - - def post(self, *args, **kwargs): - return self._handle_method() - - def put(self, *args, **kwargs): - return self._handle_method() - - def delete(self, *args, **kwargs): - return self._handle_method() - - def head(self, *args, **kwargs): - return self._handle_method() - - def options(self, *args, **kwargs): - return self._handle_method() - - def _handle_method(self): - try: - self._fallback(self.request, self._tempfile) - finally: - self._tempfile.close() - - -class WsgiInputContainer(object): - """ - A WSGI container for use with Tornado that allows supplying the request body to be used for `wsgi.input` in the - generated WSGI environment upon call. - - A `RequestHandler` can thus provide the WSGI application with a stream for the request body, or a modified body. - - Example usage: - - wsgi_app = octoprint.server.util.WsgiInputContainer(octoprint_app) - application = tornado.web.Application([ - (r".*", UploadStorageFallbackHandler, dict(fallback=wsgi_app), - ]) - - The implementation logic is basically the same as `tornado.wsgi.WSGIContainer` but the `__call__` and `environ` - - """ - - def __init__(self, wsgi_application): - self.wsgi_application = wsgi_application - - def __call__(self, request, body=None): - """ - Wraps the call against the WSGI app, deriving the WSGI environment from the supplied Tornado `HTTPServerRequest`. - - :param request: the `tornado.httpserver.HTTPServerRequest` to derive the WSGI environment from - :param body: an optional body to use as `wsgi.input` instead of `request.body`, can be a string or a stream - """ - - data = {} - response = [] - - def start_response(status, response_headers, exc_info=None): - data["status"] = status - data["headers"] = response_headers - return response.append - app_response = self.wsgi_application( - WsgiInputContainer.environ(request, body), start_response) - try: - response.extend(app_response) - body = b"".join(response) - finally: - if hasattr(app_response, "close"): - app_response.close() - if not data: - raise Exception("WSGI app did not call start_response") - - status_code = int(data["status"].split()[0]) - headers = data["headers"] - header_set = set(k.lower() for (k, v) in headers) - body = tornado.escape.utf8(body) - if status_code != 304: - if "content-length" not in header_set: - headers.append(("Content-Length", str(len(body)))) - if "content-type" not in header_set: - headers.append(("Content-Type", "text/html; charset=UTF-8")) - if "server" not in header_set: - headers.append(("Server", "TornadoServer/%s" % tornado.version)) - - parts = [tornado.escape.utf8("HTTP/1.1 " + data["status"] + "\r\n")] - for key, value in headers: - parts.append(tornado.escape.utf8(key) + b": " + tornado.escape.utf8(value) + b"\r\n") - parts.append(b"\r\n") - parts.append(body) - request.write(b"".join(parts)) - request.finish() - self._log(status_code, request) - - @staticmethod - def environ(request, body=None): - """ - Converts a `tornado.httputil.HTTPServerRequest` to a WSGI environment. - - An optional `body` to be used for populating `wsgi.input` can be supplied (either a string or a stream). If not - supplied, `request.body` will be wrapped into a `io.BytesIO` stream and used instead. - - :param request: the `tornado.httpserver.HTTPServerRequest` to derive the WSGI environment from - :param body: an optional body to use as `wsgi.input` instead of `request.body`, can be a string or a stream - """ - from tornado.wsgi import to_wsgi_str - import sys - import io - - # determine the request_body to supply as wsgi.input - if body is not None: - if isinstance(body, (bytes, str)): - request_body = io.BytesIO(tornado.escape.utf8(body)) - else: - request_body = body - else: - request_body = io.BytesIO(tornado.escape.utf8(request.body)) - - hostport = request.host.split(":") - if len(hostport) == 2: - host = hostport[0] - port = int(hostport[1]) - else: - host = request.host - port = 443 if request.protocol == "https" else 80 - environ = { - "REQUEST_METHOD": request.method, - "SCRIPT_NAME": "", - "PATH_INFO": to_wsgi_str(tornado.escape.url_unescape( - request.path, encoding=None, plus=False)), - "QUERY_STRING": request.query, - "REMOTE_ADDR": request.remote_ip, - "SERVER_NAME": host, - "SERVER_PORT": str(port), - "SERVER_PROTOCOL": request.version, - "wsgi.version": (1, 0), - "wsgi.url_scheme": request.protocol, - "wsgi.input": request_body, - "wsgi.errors": sys.stderr, - "wsgi.multithread": False, - "wsgi.multiprocess": True, - "wsgi.run_once": False, - } - if "Content-Type" in request.headers: - environ["CONTENT_TYPE"] = request.headers.pop("Content-Type") - if "Content-Length" in request.headers: - environ["CONTENT_LENGTH"] = request.headers.pop("Content-Length") - for key, value in request.headers.items(): - environ["HTTP_" + key.replace("-", "_").upper()] = value - return environ - - def _log(self, status_code, request): - access_log = logging.getLogger("tornado.access") - - if status_code < 400: - log_method = access_log.info - elif status_code < 500: - log_method = access_log.warning - else: - log_method = access_log.error - request_time = 1000.0 * request.request_time() - summary = request.method + " " + request.uri + " (" + \ - request.remote_ip + ")" - log_method("%d %s %.2fms", status_code, summary, request_time) - - -def access_validation_factory(app, login_manager, validator): - """ - Creates an access validation wrapper using the supplied validator. - - :param validator: the access validator to use inside the validation wrapper - :return: an access validation wrapper taking a request as parameter and performing the request validation - """ - def f(request): - """ - Creates a custom wsgi and Flask request context in order to be able to process user information - stored in the current session. - - :param request: The Tornado request for which to create the environment and context - """ - import flask - import tornado.wsgi - - wsgi_environ = tornado.wsgi.WSGIContainer.environ(request) - with app.request_context(wsgi_environ): - app.session_interface.open_session(app, flask.request) - login_manager.reload_user() - validator(flask.request) - return f - - -@stream_request_body -class PrintableFilesUploadHandler(RequestHandler): - - def initialize(self, path, postfix=".tmp", files_only=False, access_validation=None): - self._path = path - self._postfix = postfix - self._files_only = files_only - self._access_validation = access_validation - - # Parts information will be stored here - self.parts = dict() - - # files will be stored here - self.files = dict() - - # values will be stored here - self.values = dict() - - # Part currently being processed - self._current_part = None - # buffer needed for identifying form data parts - self._buffer = b"" - - # we only support multipart/form-data content, so check for that - bytes_left = self.request.headers.get("Content-Length", 0) - content_type = self.request.headers.get("Content-Type", "") - if not bytes_left or not content_type.startswith("multipart"): - raise HTTPError(405) - - # extract the multipart boundary - fields = content_type.split(";") - for field in fields: - k, sep, v = field.strip().partition("=") - if k == "boundary" and v: - if v.startswith(b'"') and v.endswith(b'"'): - self.boundary = tornado.escape.utf8(v[1:-1]) - else: - self.boundary = tornado.escape.utf8(v) - break - else: - raise HTTPError(400) - - def data_received(self, chunk): - data = self._buffer + chunk - self.process_data(data) - - def process_data(self, data): - # check for boundary - delimiter = b"--%s" % self.boundary - delimiter_loc = data.find(delimiter) - delimiter_len = len(delimiter) - end_of_header = None - if delimiter_loc != -1: - # found the delimiter in the currently available data - data, self._buffer = data[0:delimiter_loc], data[delimiter_loc:] - end_of_header = self._buffer.find("\r\n\r\n") - else: - # make sure any boundary (with single or double ==) contained at the end of chunk does not get - # truncated by this processing round => save it to the buffer for next round - endlen = len(self.boundary) + 4 - data, self._buffer = data[0:-endlen], data[-endlen:] - - # stream data to part handler - if data: - if self._current_part: - self.ondata(self._current_part, data) - - if end_of_header >= 0: - self._header(self._buffer[delimiter_len+2:end_of_header]) - self._buffer = self._buffer[end_of_header + 4:] - - if delimiter_loc != -1 and self._buffer[delimiter_len:delimiter_len+2] == "--": - # we saw the last boundary and are at the end of our request - if self._current_part: - self.onclose(self._current_part) - self._current_part = None - self._buffer = b"" - self.onfinish() - - def _header(self, header): - # close any open parts - if self._current_part: - self.onclose(self._current_part) - self._current_part = None - - header_check = header.find(self.boundary) - if header_check != -1: - # TODO log warning - header = header[header_check:] - - # convert to dict - header = HTTPHeaders.parse(header.decode("utf-8")) - disp_header = header.get("Content-Disposition", "") - disposition, disp_params = tornado.httputil._parse_header(disp_header) - - if disposition != "form-data": - # TODO log warning - return - if not disp_params.get("name"): - # TODO log warning - return - - if self._files_only and "filename" not in disp_params: - # TODO log warning - return - else: - self._current_part = self.onpart(disp_params["name"], header.get("Content-Type", None), filename=disp_params["filename"] if "filename" in disp_params else None) - - def onpart(self, name, content_type, filename=None): - from octoprint.server import gcodeManager - - if content_type is None: - # we got a key-value-pair - return dict(name=name, value=b"") - elif filename is not None: - # this is a file - upload = Object() - upload.filename = filename - - sane_filename = gcodeManager.getFutureFilename(upload) - if sane_filename is None: - return dict() - - local_path = os.path.join(self._path, sane_filename + self._postfix) - handle = open(local_path, "wb") - return dict(name=name, filename=filename, sane_filename=sane_filename, content_type=content_type, local_path=local_path, file=handle) - else: - return dict() - - def ondata(self, part, data): - if "value" in part: - part["value"] += data - elif "file" in part: - part["file"].write(data) - - def onclose(self, part): - escaped_name = tornado.escape.utf8(part["name"]) - - self.parts[escaped_name] = part - if "file" in part: - part["file"].close() - del part["file"] - self.files[escaped_name] = part - elif "value" in part: - escaped_value = tornado.escape.utf8(part["value"]) - self.values[escaped_name] = escaped_value - self.request.body_arguments.setdefault(escaped_name, []).append(escaped_value) - - def onfinish(self): - # we now do something horrible and replace the body by a version stripped of all files. Yes, I feel bad for this - import io - new_body = b"" - for name, value in self.values.iteritems(): - new_body += b"--%s\r\n" % self.boundary - new_body += b"Content-Disposition: form-data; name=\"%s\"\r\n\r\n" % name - new_body += value - new_body += b"--%s--\r\n" % self.boundary - self.request.body = new_body - self.request.headers["Content-Length"] = len(new_body) - - def post(self, *args, **kwargs): - while len(self._buffer): - self.process_data(self._buffer) - - from octoprint.server import gcodeManager, printer, eventManager - - if self._access_validation is not None: - self._access_validation(self.request) - - target = self.request.path.split("/")[-1] - - if not target in [FileDestinations.LOCAL, FileDestinations.SDCARD]: - self.set_status(404, reason="Unknown target: %s" % target) - return - - if not "file" in self.files: - self.set_status(400, reason="No file included") - return - - if target == FileDestinations.SDCARD and not settings().getBoolean(["feature", "sdSupport"]): - self.set_status(404, reason="SD card support is disabled") - return - - import octoprint.util - - upload = Object() - upload.filename = self.files["file"]["filename"] - upload.sane_filename = self.files["file"]["sane_filename"] - upload.save = lambda new_name: octoprint.util.safeRename(self.files["file"]["local_path"], new_name) - - sd = target == FileDestinations.SDCARD - selectAfterUpload = "select" in self.values and self.values["select"] in valid_boolean_trues - printAfterSelect = "print" in self.values and self.values["print"] in valid_boolean_trues - - if sd: - # validate that all preconditions for SD upload are met before attempting it - if not (printer.isOperational() and not (printer.isPrinting() or printer.isPaused())): - self.set_status(409, reason="Can not upload to SD card, printer is either not operational or already busy") - return - if not printer.isSdReady(): - self.set_status(409, "Can not upload to SD card, not yet initialized") - return - - # determine current job - currentFilename = None - currentOrigin = None - currentJob = printer.getCurrentJob() - if currentJob is not None and "file" in currentJob.keys(): - currentJobFile = currentJob["file"] - if "name" in currentJobFile.keys() and "origin" in currentJobFile.keys(): - currentFilename = currentJobFile["name"] - currentOrigin = currentJobFile["origin"] - - # determine future filename of file to be uploaded, abort if it can't be uploaded - futureFilename = upload.sane_filename - if futureFilename is None or (not settings().getBoolean(["cura", "enabled"]) and not gcodefiles.isGcodeFileName(futureFilename)): - self.set_status(415, reason="Can not upload file %s, wrong format?" % upload.filename) - return - - # prohibit overwriting currently selected file while it's being printed - if futureFilename == currentFilename and target == currentOrigin and printer.isPrinting() or printer.isPaused(): - self.set_status(409, reason="Trying to overwrite file that is currently being printed: %s" % currentFilename) - return - - def fileProcessingFinished(filename, absFilename, destination): - """ - Callback for when the file processing (upload, optional slicing, addition to analysis queue) has - finished. - - Depending on the file's destination triggers either streaming to SD card or directly calls selectAndOrPrint. - """ - if destination == FileDestinations.SDCARD: - return filename, printer.addSdFile(filename, absFilename, selectAndOrPrint) - else: - selectAndOrPrint(filename, absFilename, destination) - return filename - - def selectAndOrPrint(filename, absFilename, destination): - """ - Callback for when the file is ready to be selected and optionally printed. For SD file uploads this is only - the case after they have finished streaming to the printer, which is why this callback is also used - for the corresponding call to addSdFile. - - Selects the just uploaded file if either selectAfterUpload or printAfterSelect are True, or if the - exact file is already selected, such reloading it. - """ - if selectAfterUpload or printAfterSelect or (currentFilename == filename and currentOrigin == destination): - printer.selectFile(absFilename, destination == FileDestinations.SDCARD, printAfterSelect) - - filename, done = gcodeManager.addFile(upload, target, fileProcessingFinished) - if filename is None: - return make_response("Could not upload the file %s" % upload.filename, 500) - - sdFilename = None - if isinstance(filename, tuple): - filename, sdFilename = filename - - eventManager.fire(Events.UPLOAD, {"file": filename, "target": target}) - - """ - files = {} - location = url_for(".readGcodeFile", target=FileDestinations.LOCAL, filename=filename, _external=True) - files.update({ - FileDestinations.LOCAL: { - "name": filename, - "origin": FileDestinations.LOCAL, - "refs": { - "resource": location, - "download": url_for("index", _external=True) + "downloads/files/" + FileDestinations.LOCAL + "/" + filename - } - } - }) - - if sd and sdFilename: - location = url_for(".readGcodeFile", target=FileDestinations.SDCARD, filename=sdFilename, _external=True) - files.update({ - FileDestinations.SDCARD: { - "name": sdFilename, - "origin": FileDestinations.SDCARD, - "refs": { - "resource": location - } - } - }) - """ - - import tornado.escape - - self.set_status(201) - #self.set_header("Location", location) - self.finish(tornado.escape.json_encode(dict(files={}, done=done))) - - -#~~ customized large response handler - - -class LargeResponseHandler(StaticFileHandler): - - CHUNK_SIZE = 16 * 1024 - - def initialize(self, path, default_filename=None, as_attachment=False, access_validation=None): - StaticFileHandler.initialize(self, path, default_filename) - self._as_attachment = as_attachment - self._access_validation = access_validation - - def get(self, path, include_body=True): - if self._access_validation is not None: - self._access_validation(self.request) - - path = self.parse_url_path(path) - abspath = os.path.abspath(os.path.join(self.root, path)) - # os.path.abspath strips a trailing / - # it needs to be temporarily added back for requests to root/ - if not (abspath + os.path.sep).startswith(self.root): - raise HTTPError(403, "%s is not in root static directory", path) - if os.path.isdir(abspath) and self.default_filename is not None: - # need to look at the request.path here for when path is empty - # but there is some prefix to the path that was already - # trimmed by the routing - if not self.request.path.endswith("/"): - self.redirect(self.request.path + "/") - return - abspath = os.path.join(abspath, self.default_filename) - if not os.path.exists(abspath): - raise HTTPError(404) - if not os.path.isfile(abspath): - raise HTTPError(403, "%s is not a file", path) - - stat_result = os.stat(abspath) - modified = datetime.datetime.fromtimestamp(stat_result[stat.ST_MTIME]) - - self.set_header("Last-Modified", modified) - - mime_type, encoding = mimetypes.guess_type(abspath) - if mime_type: - self.set_header("Content-Type", mime_type) - - cache_time = self.get_cache_time(path, modified, mime_type) - - if cache_time > 0: - self.set_header("Expires", datetime.datetime.utcnow() + - datetime.timedelta(seconds=cache_time)) - self.set_header("Cache-Control", "max-age=" + str(cache_time)) - - self.set_extra_headers(path) - - # Check the If-Modified-Since, and don't send the result if the - # content has not been modified - ims_value = self.request.headers.get("If-Modified-Since") - if ims_value is not None: - date_tuple = email.utils.parsedate(ims_value) - if_since = datetime.datetime.fromtimestamp(time.mktime(date_tuple)) - if if_since >= modified: - self.set_status(304) - return - - if not include_body: - assert self.request.method == "HEAD" - self.set_header("Content-Length", stat_result[stat.ST_SIZE]) - else: - with open(abspath, "rb") as file: - while True: - data = file.read(LargeResponseHandler.CHUNK_SIZE) - if not data: - break - self.write(data) - self.flush() - - def set_extra_headers(self, path): - if self._as_attachment: - self.set_header("Content-Disposition", "attachment") - - -##~~ URL Forward Handler for forwarding requests to a preconfigured static URL - - -class UrlForwardHandler(RequestHandler): - - def initialize(self, url=None, as_attachment=False, basename=None, access_validation=None): - RequestHandler.initialize(self) - self._url = url - self._as_attachment = as_attachment - self._basename = basename - self._access_validation = access_validation - - @asynchronous - def get(self, *args, **kwargs): - if self._access_validation is not None: - self._access_validation(self.request) - - if self._url is None: - raise HTTPError(404) - - client = AsyncHTTPClient() - r = HTTPRequest(url=self._url, method=self.request.method, body=self.request.body, headers=self.request.headers, follow_redirects=False, allow_nonstandard_methods=True) - - try: - return client.fetch(r, self.handle_response) - except HTTPError as e: - if hasattr(e, "response") and e.response: - self.handle_response(e.response) - else: - raise HTTPError(500) - - def handle_response(self, response): - if response.error and not isinstance(response.error, HTTPError): - raise HTTPError(500) - - filename = None - - self.set_status(response.code) - for name in ("Date", "Cache-Control", "Server", "Content-Type", "Location"): - value = response.headers.get(name) - if value: - self.set_header(name, value) - - if name == "Content-Type": - filename = self.get_filename(value) - - if self._as_attachment: - if filename is not None: - self.set_header("Content-Disposition", "attachment; filename=%s" % filename) - else: - self.set_header("Content-Disposition", "attachment") - - if response.body: - self.write(response.body) - self.finish() - - def get_filename(self, content_type): - if not self._basename: - return None - - typeValue = map(str.strip, content_type.split(";")) - if len(typeValue) == 0: - return None - - extension = mimetypes.guess_extension(typeValue[0]) - if not extension: - return None - - return "%s%s" % (self._basename, extension) - - -#~~ admin access validator for use with tornado - - -def admin_validator(request): - """ - Validates that the given request is made by an admin user, identified either by API key or existing Flask - session. - - Must be executed in an existing Flask request context! - - :param request: The Flask request object - """ - - apikey = getApiKey(request) - if settings().get(["api", "enabled"]) and apikey is not None: - user = getUserForApiKey(apikey) - else: - user = current_user - - if user is None or not user.is_authenticated() or not user.is_admin(): - raise HTTPError(403) - - -#~~ user access validator for use with tornado - - -def user_validator(request): - """ - Validates that the given request is made by an authenticated user, identified either by API key or existing Flask - session. - - Must be executed in an existing Flask request context! - - :param request: The Flask request object - """ - - apikey = getApiKey(request) - if settings().get(["api", "enabled"]) and apikey is not None: - user = getUserForApiKey(apikey) - else: - user = current_user - - if user is None or not user.is_authenticated(): - raise HTTPError(403) - - -#~~ reverse proxy compatible wsgi middleware - - -class ReverseProxied(object): - """ - Wrap the application in this middleware and configure the - front-end server to add these headers, to let you quietly bind - this to a URL other than / and to an HTTP scheme that is - different than what is used locally. - - In nginx: - location /myprefix { - proxy_pass http://192.168.0.1:5001; - proxy_set_header Host $host; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Scheme $scheme; - proxy_set_header X-Script-Name /myprefix; - } - - Alternatively define prefix and scheme via config.yaml: - server: - baseUrl: /myprefix - scheme: http - - :param app: the WSGI application - """ - - def __init__(self, app): - self.app = app - - def __call__(self, environ, start_response): - script_name = environ.get('HTTP_X_SCRIPT_NAME', '') - if not script_name: - script_name = settings().get(["server", "baseUrl"]) - - if script_name: - environ['SCRIPT_NAME'] = script_name - path_info = environ['PATH_INFO'] - if path_info.startswith(script_name): - environ['PATH_INFO'] = path_info[len(script_name):] - - scheme = environ.get('HTTP_X_SCHEME', '') - if not scheme: - scheme = settings().get(["server", "scheme"]) - - if scheme: - environ['wsgi.url_scheme'] = scheme - return self.app(environ, start_response) - - -def redirectToTornado(request, target, code=302): - requestUrl = request.url - appBaseUrl = requestUrl[:requestUrl.find(url_for("index") + "api")] - - redirectUrl = appBaseUrl + target - if "?" in requestUrl: - fragment = requestUrl[requestUrl.rfind("?"):] - redirectUrl += fragment - return redirect(redirectUrl, code=code) - - -class UploadCleanupWatchdogHandler(PatternMatchingEventHandler): - """ - Takes care of automatically deleting metadata entries for files that get deleted from the uploads folder - """ - - patterns = map(lambda x: "*.%s" % x, gcodefiles.GCODE_EXTENSIONS) - - def __init__(self, gcode_manager): - PatternMatchingEventHandler.__init__(self) - self._gcode_manager = gcode_manager - - def on_deleted(self, event): - filename = self._gcode_manager._getBasicFilename(event.src_path) - if not filename: - return - - self._gcode_manager.removeFileFromMetadata(filename) - - -class GcodeWatchdogHandler(PatternMatchingEventHandler): - """ - Takes care of automatically "uploading" files that get added to the watched folder. - """ - - patterns = map(lambda x: "*.%s" % x, gcodefiles.SUPPORTED_EXTENSIONS) - - def __init__(self, gcodeManager, printer): - PatternMatchingEventHandler.__init__(self) - - self._logger = logging.getLogger(__name__) - - self._gcodeManager = gcodeManager - self._printer = printer - - def _upload(self, path): - class WatchdogFileWrapper(object): - - def __init__(self, path): - self._path = path - self.filename = os.path.basename(self._path) - - def save(self, target): - util.safeRename(self._path, target) - - fileWrapper = WatchdogFileWrapper(path) - - # determine current job - currentFilename = None - currentOrigin = None - currentJob = self._printer.getCurrentJob() - if currentJob is not None and "file" in currentJob.keys(): - currentJobFile = currentJob["file"] - if "name" in currentJobFile.keys() and "origin" in currentJobFile.keys(): - currentFilename = currentJobFile["name"] - currentOrigin = currentJobFile["origin"] - - # determine future filename of file to be uploaded, abort if it can't be uploaded - futureFilename = self._gcodeManager.getFutureFilename(fileWrapper) - if futureFilename is None or (not settings().getBoolean(["cura", "enabled"]) and not gcodefiles.isGcodeFileName(futureFilename)): - self._logger.warn("Could not add %s: Invalid file" % fileWrapper.filename) - return - - # prohibit overwriting currently selected file while it's being printed - if futureFilename == currentFilename and not currentOrigin == FileDestinations.SDCARD and self._printer.isPrinting() or self._printer.isPaused(): - self._logger.warn("Could not add %s: Trying to overwrite file that is currently being printed" % fileWrapper.filename) - return - - self._gcodeManager.addFile(fileWrapper, FileDestinations.LOCAL) - - def on_created(self, event): - self._upload(event.src_path) - - -class Object(object): - pass \ No newline at end of file diff --git a/src/octoprint/server/util/__init__.py b/src/octoprint/server/util/__init__.py new file mode 100644 index 000000000..66e673015 --- /dev/null +++ b/src/octoprint/server/util/__init__.py @@ -0,0 +1,100 @@ +# coding=utf-8 +from __future__ import absolute_import + +__author__ = "Gina Häußge " +__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' +__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License" + +from octoprint.settings import settings +import octoprint.timelapse +import octoprint.server +from octoprint.users import ApiUser + +from . import flask +from . import sockjs +from . import tornado +from . import watchdog + + +def get_user_for_apikey(apikey): + if settings().get(["api", "enabled"]) and apikey is not None: + if apikey == settings().get(["api", "key"]): + # master key was used + return ApiUser() + else: + # user key might have been used + return octoprint.server.userManager.findUser(apikey=apikey) + else: + return None + + +def get_api_key(request): + # Check Flask GET/POST arguments + if hasattr(request, "values") and "apikey" in request.values: + return request.values["apikey"] + + # Check Tornado GET/POST arguments + if hasattr(request, "arguments") and "apikey" in request.arguments \ + and len(request.arguments["apikey"]) > 0 and len(request.arguments["apikey"].strip()) > 0: + return request.arguments["apikey"] + + # Check Tornado and Flask headers + if "X-Api-Key" in request.headers.keys(): + return request.headers.get("X-Api-Key") + + return None + + +#~~ reverse proxy compatible WSGI middleware + + +class ReverseProxied(object): + """ + Wrap the application in this middleware and configure the + front-end server to add these headers, to let you quietly bind + this to a URL other than / and to an HTTP scheme that is + different than what is used locally. + + In nginx: + location /myprefix { + proxy_pass http://192.168.0.1:5001; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Scheme $scheme; + proxy_set_header X-Script-Name /myprefix; + } + + Alternatively define prefix and scheme via config.yaml: + server: + baseUrl: /myprefix + scheme: http + + :param app: the WSGI application + :param header_script_name: the HTTP header in the wsgi environment from which to determine the prefix + :param header_scheme: the HTTP header in the wsgi environment from which to determine the scheme + """ + + def __init__(self, app, header_script_name="HTTP_X_SCRIPT_NAME", header_scheme="HTTP_X_SCHEME"): + self.app = app + self._header_script_name = header_script_name + self._header_scheme = header_scheme + + def __call__(self, environ, start_response): + script_name = environ.get(self._header_script_name, '') + if not script_name: + script_name = settings().get(["server", "baseUrl"]) + + if script_name: + environ['SCRIPT_NAME'] = script_name + path_info = environ['PATH_INFO'] + if path_info.startswith(script_name): + environ['PATH_INFO'] = path_info[len(script_name):] + + scheme = environ.get(self._header_scheme, '') + if not scheme: + scheme = settings().get(["server", "scheme"]) + + if scheme: + environ['wsgi.url_scheme'] = scheme + return self.app(environ, start_response) + diff --git a/src/octoprint/server/util/flask.py b/src/octoprint/server/util/flask.py new file mode 100644 index 000000000..414f5be51 --- /dev/null +++ b/src/octoprint/server/util/flask.py @@ -0,0 +1,154 @@ +# coding=utf-8 +from __future__ import absolute_import + +__author__ = "Gina Häußge " +__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' +__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License" + +import tornado.web +import flask +import flask.ext.login +import flask.ext.principal +import functools + +from octoprint.settings import settings +import octoprint.server +import octoprint.users + + +#~~ access validators for use with tornado + + +def admin_validator(request): + """ + Validates that the given request is made by an admin user, identified either by API key or existing Flask + session. + + Must be executed in an existing Flask request context! + + :param request: The Flask request object + """ + + user = _get_flask_user_from_request(request) + if user is None or not user.is_authenticated() or not user.is_admin(): + raise tornado.web.HTTPError(403) + + +def user_validator(request): + """ + Validates that the given request is made by an authenticated user, identified either by API key or existing Flask + session. + + Must be executed in an existing Flask request context! + + :param request: The Flask request object + """ + + user = _get_flask_user_from_request(request) + if user is None or not user.is_authenticated(): + raise tornado.web.HTTPError(403) + + +def _get_flask_user_from_request(request): + """ + Retrieves the current flask user from the request context. Uses API key if available, otherwise the current + user session if available. + + :param request: flask request from which to retrieve the current user + :return: the user or None if no user could be determined + """ + import octoprint.server.util + import flask.ext.login + from octoprint.settings import settings + + apikey = octoprint.server.util.get_api_key(request) + if settings().get(["api", "enabled"]) and apikey is not None: + user = octoprint.server.util.get_user_for_apikey(apikey) + else: + user = flask.ext.login.current_user + + return user + + +def redirect_to_tornado(request, target, code=302): + """ + Redirects from flask to tornado, flask request context must exist. + + :param request: + :param target: + :param code: + :return: + """ + + import flask + + requestUrl = request.url + appBaseUrl = requestUrl[:requestUrl.find(flask.url_for("index") + "api")] + + redirectUrl = appBaseUrl + target + if "?" in requestUrl: + fragment = requestUrl[requestUrl.rfind("?"):] + redirectUrl += fragment + return flask.redirect(redirectUrl, code=code) + + +def restricted_access(func, api_enabled=True): + """ + If you decorate a view with this, it will ensure that first setup has been + done for OctoPrint's Access Control plus that any conditions of the + login_required decorator are met. It also allows to login using the masterkey or any + of the user's apikeys if API access is enabled globally and for the decorated view. + + If OctoPrint's Access Control has not been setup yet (indicated by the "firstRun" + flag from the settings being set to True and the userManager not indicating + that it's user database has been customized from default), the decorator + will cause a HTTP 403 status code to be returned by the decorated resource. + + If an API key is provided and it matches a known key, the user will be logged in and + the view will be called directly. If the provided key doesn't match any known key, + a HTTP 403 status code will be returned by the decorated resource. + + Otherwise the result of calling login_required will be returned. + """ + @functools.wraps(func) + def decorated_view(*args, **kwargs): + # if OctoPrint hasn't been set up yet, abort + if settings().getBoolean(["server", "firstRun"]) and (octoprint.server.userManager is None or not octoprint.server.userManager.hasBeenCustomized()): + return flask.make_response("OctoPrint isn't setup yet", 403) + + # if API is globally enabled, enabled for this request and an api key is provided that is not the current UI API key, try to use that + apikey = octoprint.server.util.get_api_key(flask.request) + if settings().get(["api", "enabled"]) and api_enabled and apikey is not None and apikey != octoprint.server.UI_API_KEY: + if apikey == settings().get(["api", "key"]): + # master key was used + user = octoprint.users.ApiUser() + else: + # user key might have been used + user = octoprint.server.userManager.findUser(apikey=apikey) + + if user is None: + return flask.make_response("Invalid API key", 401) + if flask.ext.login.login_user(user, remember=False): + flask.ext.principal.identity_changed.send(flask.current_app._get_current_object(), identity=flask.ext.principal.Identity(user.get_id())) + return func(*args, **kwargs) + + # call regular login_required decorator + return flask.ext.login.login_required(func)(*args, **kwargs) + return decorated_view + + +def api_access(func): + @functools.wraps(func) + def decorated_view(*args, **kwargs): + if not settings().get(["api", "enabled"]): + flask.make_response("API disabled", 401) + apikey = octoprint.server.util.get_api_key(flask.request) + if apikey is None: + flask.make_response("No API key provided", 401) + if apikey != settings().get(["api", "key"]): + flask.make_response("Invalid API key", 403) + return func(*args, **kwargs) + return decorated_view + + + diff --git a/src/octoprint/server/util/sockjs.py b/src/octoprint/server/util/sockjs.py new file mode 100644 index 000000000..bbd96863c --- /dev/null +++ b/src/octoprint/server/util/sockjs.py @@ -0,0 +1,124 @@ +# coding=utf-8 +from __future__ import absolute_import + +__author__ = "Gina Häußge " +__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' +__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License" + +import logging +import threading +import sockjs.tornado + +import octoprint.timelapse +import octoprint.server +from octoprint.events import Events + + +class PrinterStateConnection(sockjs.tornado.SockJSConnection): + EVENTS = [Events.UPDATED_FILES, Events.METADATA_ANALYSIS_FINISHED, Events.MOVIE_RENDERING, Events.MOVIE_DONE, + Events.MOVIE_FAILED, Events.SLICING_STARTED, Events.SLICING_DONE, Events.SLICING_FAILED, + Events.TRANSFER_STARTED, Events.TRANSFER_DONE] + + def __init__(self, printer, gcodeManager, userManager, eventManager, session): + sockjs.tornado.SockJSConnection.__init__(self, session) + + self._logger = logging.getLogger(__name__) + + self._temperatureBacklog = [] + self._temperatureBacklogMutex = threading.Lock() + self._logBacklog = [] + self._logBacklogMutex = threading.Lock() + self._messageBacklog = [] + self._messageBacklogMutex = threading.Lock() + + self._printer = printer + self._gcodeManager = gcodeManager + self._userManager = userManager + self._eventManager = eventManager + + def _getRemoteAddress(self, info): + forwardedFor = info.headers.get("X-Forwarded-For") + if forwardedFor is not None: + return forwardedFor.split(",")[0] + return info.ip + + def on_open(self, info): + remoteAddress = self._getRemoteAddress(info) + self._logger.info("New connection from client: %s" % remoteAddress) + + # connected => update the API key, might be necessary if the client was left open while the server restarted + self._emit("connected", {"apikey": octoprint.server.UI_API_KEY, "version": octoprint.server.VERSION}) + + self._printer.registerCallback(self) + self._gcodeManager.registerCallback(self) + octoprint.timelapse.registerCallback(self) + + self._eventManager.fire(Events.CLIENT_OPENED, {"remoteAddress": remoteAddress}) + for event in PrinterStateConnection.EVENTS: + self._eventManager.subscribe(event, self._onEvent) + + octoprint.timelapse.notifyCallbacks(octoprint.timelapse.current) + + def on_close(self): + self._logger.info("Client connection closed") + self._printer.unregisterCallback(self) + self._gcodeManager.unregisterCallback(self) + octoprint.timelapse.unregisterCallback(self) + + self._eventManager.fire(Events.CLIENT_CLOSED) + for event in PrinterStateConnection.EVENTS: + self._eventManager.unsubscribe(event, self._onEvent) + + def on_message(self, message): + pass + + def sendCurrentData(self, data): + # add current temperature, log and message backlogs to sent data + with self._temperatureBacklogMutex: + temperatures = self._temperatureBacklog + self._temperatureBacklog = [] + + with self._logBacklogMutex: + logs = self._logBacklog + self._logBacklog = [] + + with self._messageBacklogMutex: + messages = self._messageBacklog + self._messageBacklog = [] + + data.update({ + "temps": temperatures, + "logs": logs, + "messages": messages + }) + self._emit("current", data) + + def sendHistoryData(self, data): + self._emit("history", data) + + def sendEvent(self, type, payload=None): + self._emit("event", {"type": type, "payload": payload}) + + def sendFeedbackCommandOutput(self, name, output): + self._emit("feedbackCommandOutput", {"name": name, "output": output}) + + def sendTimelapseConfig(self, timelapseConfig): + self._emit("timelapse", timelapseConfig) + + def addLog(self, data): + with self._logBacklogMutex: + self._logBacklog.append(data) + + def addMessage(self, data): + with self._messageBacklogMutex: + self._messageBacklog.append(data) + + def addTemperature(self, data): + with self._temperatureBacklogMutex: + self._temperatureBacklog.append(data) + + def _onEvent(self, event, payload): + self.sendEvent(event, payload) + + def _emit(self, type, payload): + self.send({type: payload}) diff --git a/src/octoprint/server/util/tornado.py b/src/octoprint/server/util/tornado.py new file mode 100644 index 000000000..38a5252e2 --- /dev/null +++ b/src/octoprint/server/util/tornado.py @@ -0,0 +1,853 @@ +# coding=utf-8 +from __future__ import absolute_import + +__author__ = "Gina Häußge " +__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' +__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License" + +import logging +import os +import datetime +import stat +import mimetypes +import email +import time + +import tornado +import tornado.web +import tornado.gen +import tornado.escape +import tornado.httputil +import tornado.httpserver +import tornado.httpclient +import tornado.http1connection +import tornado.iostream +import tornado.tcpserver + +import octoprint.util + + +#~~ WSGI middleware + + +@tornado.web.stream_request_body +class UploadStorageFallbackHandler(tornado.web.RequestHandler): + """ + A `RequestHandler` similar to `tornado.web.FallbackHandler` which fetches any files contained in the request bodies + of content type `multipart`, stores them in temporary files and supplies the `fallback` with the file's `name`, + `content_type`, `path` and `size` instead via a rewritten body. + + Basically similar to what the nginx upload module does. + + Basic request body example: + + ------WebKitFormBoundarypYiSUx63abAmhT5C + Content-Disposition: form-data; name="file"; filename="test.gcode" + Content-Type: application/octet-stream + + ... + ------WebKitFormBoundarypYiSUx63abAmhT5C + Content-Disposition: form-data; name="apikey" + + my_funny_apikey + ------WebKitFormBoundarypYiSUx63abAmhT5C + Content-Disposition: form-data; name="select" + + true + ------WebKitFormBoundarypYiSUx63abAmhT5C-- + + That would get turned into: + + ------WebKitFormBoundarypYiSUx63abAmhT5C + Content-Disposition: form-data; name="apikey" + + my_funny_apikey + ------WebKitFormBoundarypYiSUx63abAmhT5C + Content-Disposition: form-data; name="select" + + true + ------WebKitFormBoundarypYiSUx63abAmhT5C + Content-Disposition: form-data; name="file.path" + + /tmp/tmpzupkro + ------WebKitFormBoundarypYiSUx63abAmhT5C + Content-Disposition: form-data; name="file.name" + + test.gcode + ------WebKitFormBoundarypYiSUx63abAmhT5C + Content-Disposition: form-data; name="file.content_type" + + application/octet-stream + ------WebKitFormBoundarypYiSUx63abAmhT5C + Content-Disposition: form-data; name="file.size" + + 349182 + ------WebKitFormBoundarypYiSUx63abAmhT5C-- + + The underlying application can then access the contained files via their respective paths and just move them + where necessary. + """ + + # the request methods that may contain a request body + BODY_METHODS = ("POST", "PATCH", "PUT") + + def initialize(self, fallback, file_prefix="tmp", file_suffix="", path=None, suffixes=None): + if not suffixes: + suffixes = dict() + + self._fallback = fallback + self._file_prefix = file_prefix + self._file_suffix = file_suffix + self._path = path + + self._suffixes = dict((key, key) for key in ("name", "path", "content_type", "size")) + for suffix_type, suffix in suffixes.iteritems(): + if suffix_type in self._suffixes and suffix is not None: + self._suffixes[suffix_type] = suffix + + # Parts, files and values will be stored here + self._parts = dict() + self._files = [] + + # Part currently being processed + self._current_part = None + + # content type of request body + self._content_type = None + + # bytes left to read according to content_length of request body + self._bytes_left = 0 + + # buffer needed for identifying form data parts + self._buffer = b"" + + # buffer for new body + self._new_body = b"" + + # logger + self._logger = logging.getLogger(__name__) + + def prepare(self): + """ + Prepares the processing of the request. If it's a request that may contain a request body (as defined in + `UploadStorageFallbackHandler.BODY_METHODS) prepares the multipart parsing if content type fits. If it's a + body-less request, just calls the `fallback` with an empty body and finishes the request. + """ + if self.request.method in UploadStorageFallbackHandler.BODY_METHODS: + self._bytes_left = self.request.headers.get("Content-Length", 0) + self._content_type = self.request.headers.get("Content-Type", None) + + # request might contain a body + if self.is_multipart(): + if not self._bytes_left: + # we don't support requests without a content-length + raise tornado.web.HTTPError(400, reason="No Content-Length supplied") + + # extract the multipart boundary + fields = self._content_type.split(";") + for field in fields: + k, sep, v = field.strip().partition("=") + if k == "boundary" and v: + if v.startswith(b'"') and v.endswith(b'"'): + self._multipart_boundary = tornado.escape.utf8(v[1:-1]) + else: + self._multipart_boundary = tornado.escape.utf8(v) + break + else: + self._multipart_boundary = None + else: + self._fallback(self.request, b"") + self._finished = True + + def data_received(self, chunk): + """ + Called by Tornado on receiving a chunk of the request body. If request is a multipart request, takes care of + processing the multipart data structure via `self._process_multipart_data`. If not, just adds the chunk to + internal in-memory buffer. + + :param chunk: chunk of data received from Tornado + """ + + data = self._buffer + chunk + if self.is_multipart(): + self._process_multipart_data(data) + else: + self._buffer = data + + def is_multipart(self): + """Checks whether this request is a `multipart` request""" + return self._content_type is not None and self._content_type.startswith("multipart") + + def _process_multipart_data(self, data): + """ + Processes the given data, parsing it for multipart definitions and calling the appropriate methods. + + :param data: the data to process as a string + """ + + # check for boundary + delimiter = b"--%s" % self._multipart_boundary + delimiter_loc = data.find(delimiter) + delimiter_len = len(delimiter) + end_of_header = None + if delimiter_loc != -1: + # found the delimiter in the currently available data + data, self._buffer = data[0:delimiter_loc], data[delimiter_loc:] + end_of_header = self._buffer.find("\r\n\r\n") + else: + # make sure any boundary (with single or double ==) contained at the end of chunk does not get + # truncated by this processing round => save it to the buffer for next round + endlen = len(self._multipart_boundary) + 4 + data, self._buffer = data[0:-endlen], data[-endlen:] + + # stream data to part handler + if data: + if self._current_part: + self._on_data(self._current_part, data) + + if end_of_header >= 0: + self._on_header(self._buffer[delimiter_len+2:end_of_header]) + self._buffer = self._buffer[end_of_header + 4:] + + if delimiter_loc != -1 and self._buffer[delimiter_len:delimiter_len+2] == "--": + # we saw the last boundary and are at the end of our request + if self._current_part: + self._on_close(self._current_part) + self._current_part = None + self._buffer = b"" + self._on_finish() + + def _on_header(self, header): + """ + Called for a new multipart header, takes care of parsing the header and calling `self._on_part` with the + relevant data, setting the current part in the process. + + :param header: header to parse + """ + + # close any open parts + if self._current_part: + self._on_close(self._current_part) + self._current_part = None + + header_check = header.find(self._multipart_boundary) + if header_check != -1: + self._logger.warn("Header still contained multipart boundary, stripping it...") + header = header[header_check:] + + # convert to dict + header = tornado.httputil.HTTPHeaders.parse(header.decode("utf-8")) + disp_header = header.get("Content-Disposition", "") + disposition, disp_params = tornado.httputil._parse_header(disp_header) + + if disposition != "form-data": + self._logger.warn("Got a multipart header without form-data content disposition, ignoring that one") + return + if not disp_params.get("name"): + self._logger.warn("Got a multipart header without name, ignoring that one") + return + + self._current_part = self._on_part(disp_params["name"], header.get("Content-Type", None), filename=disp_params["filename"] if "filename" in disp_params else None) + + def _on_part(self, name, content_type, filename=None): + """ + Called for new parts in the multipart stream. If `filename` is given creates new `file` part (which leads + to storage of the data as temporary file on disk), if not creates a new `data` part (which stores + incoming data in memory). + + Structure of `file` parts: + + * `name`: name of the part + * `filename`: filename associated with the part + * `path`: path to the temporary file storing the file's data + * `content_type`: content type of the part + * `file`: file handle for the temporary file (mode "wb", not deleted on close!) + + Structure of `data` parts: + + * `name`: name of the part + * `content_type`: content type of the part + * `data`: bytes of the part (initialized to "") + + :param name: name of the part + :param content_type: content type of the part + :param filename: filename associated with the part. + :return: dict describing the new part + """ + if filename is not None: + # this is a file + import tempfile + handle = tempfile.NamedTemporaryFile(mode="wb", prefix=self._file_prefix, suffix=self._file_suffix, dir=self._path, delete=False) + return dict(name=tornado.escape.utf8(name), + filename=tornado.escape.utf8(filename), + path=tornado.escape.utf8(handle.name), + content_type=tornado.escape.utf8(content_type), + file=handle) + + else: + return dict(name=tornado.escape.utf8(name), content_type=content_type, data=b"") + + def _on_data(self, part, data): + """ + Called when new bytes are received for the given `part`, takes care of writing them to their storage. + + :param part: part for which data was received + :param data: data chunk which was received + """ + if "file" in part: + part["file"].write(data) + else: + part["data"] += data + + def _on_close(self, part): + """ + Called when a part gets closed, takes care of storing the finished part in the internal parts storage and for + `file` parts closing the temporary file and storing the part in the internal files storage. + + :param part: part which was closed + """ + name = part["name"] + self._parts[name] = part + if "file" in part: + self._files.append(part["path"]) + part["file"].close() + del part["file"] + + def _on_finish(self): + """ + Called when the request body has been read completely. Takes care of creating the replacement body out of the + logged parts, turning `file` parts into new + :return: + """ + + self._new_body = b"" + for name, part in self._parts.iteritems(): + if "filename" in part: + # add form fields for filename, path, size and content_type for all files contained in the request + fields = dict((self._suffixes[key], value) for (key, value) in dict(name=part["filename"], path=part["path"], size=str(os.stat(part["path"]).st_size), content_type=part["content_type"]).iteritems()) + for n, p in fields.iteritems(): + key = name + "." + n + self._new_body += b"--%s\r\n" % self._multipart_boundary + self._new_body += b"Content-Disposition: form-data; name=\"%s\"\r\n" % key + self._new_body += b"\r\n" + self._new_body += p + b"\r\n" + elif "data" in part: + self._new_body += b"--%s\r\n" % self._multipart_boundary + value = part["data"] + self._new_body += b"Content-Disposition: form-data; name=\"%s\"\r\n" % name + if "content_type" in part and part["content_type"] is not None: + self._new_body += b"Content-Type: %s\r\n" % part["content_type"] + self._new_body += b"\r\n" + self._new_body += value + self._new_body += b"--%s--\r\n" % self._multipart_boundary + + def _handle_method(self, *args, **kwargs): + """ + Handler for any request method, takes care of defining the new request body if necessary and forwarding + the current request and changed body to the `fallback`. + """ + + # determine which body to supply + body = b"" + if self.is_multipart(): + # make sure we really processed all data in the buffer + while len(self._buffer): + self._process_multipart_data(self._buffer) + + # use rewritten body + body = self._new_body + + elif self.request.method in UploadStorageFallbackHandler.BODY_METHODS: + # directly use data from buffer + body = self._buffer + + # rewrite content length + self.request.headers["Content-Length"] = len(body) + + try: + # call the configured fallback with request and body to use + self._fallback(self.request, body) + finally: + # make sure the temporary files are removed again + for f in self._files: + octoprint.util.silentRemove(f) + + # make all http methods trigger _handle_method + get = _handle_method + post = _handle_method + put = _handle_method + patch = _handle_method + delete = _handle_method + head = _handle_method + options = _handle_method + + +class WsgiInputContainer(object): + """ + A WSGI container for use with Tornado that allows supplying the request body to be used for `wsgi.input` in the + generated WSGI environment upon call. + + A `RequestHandler` can thus provide the WSGI application with a stream for the request body, or a modified body. + + Example usage: + + wsgi_app = octoprint.server.util.WsgiInputContainer(octoprint_app) + application = tornado.web.Application([ + (r".*", UploadStorageFallbackHandler, dict(fallback=wsgi_app), + ]) + + The implementation logic is basically the same as `tornado.wsgi.WSGIContainer` but the `__call__` and `environ` + methods have been adjusted to for an optionally supplied `body` argument which is then used for `wsgi.input`. + """ + + def __init__(self, wsgi_application): + self.wsgi_application = wsgi_application + + def __call__(self, request, body=None): + """ + Wraps the call against the WSGI app, deriving the WSGI environment from the supplied Tornado `HTTPServerRequest`. + + :param request: the `tornado.httpserver.HTTPServerRequest` to derive the WSGI environment from + :param body: an optional body to use as `wsgi.input` instead of `request.body`, can be a string or a stream + """ + + data = {} + response = [] + + def start_response(status, response_headers, exc_info=None): + data["status"] = status + data["headers"] = response_headers + return response.append + app_response = self.wsgi_application( + WsgiInputContainer.environ(request, body), start_response) + try: + response.extend(app_response) + body = b"".join(response) + finally: + if hasattr(app_response, "close"): + app_response.close() + if not data: + raise Exception("WSGI app did not call start_response") + + status_code = int(data["status"].split()[0]) + headers = data["headers"] + header_set = set(k.lower() for (k, v) in headers) + body = tornado.escape.utf8(body) + if status_code != 304: + if "content-length" not in header_set: + headers.append(("Content-Length", str(len(body)))) + if "content-type" not in header_set: + headers.append(("Content-Type", "text/html; charset=UTF-8")) + if "server" not in header_set: + headers.append(("Server", "TornadoServer/%s" % tornado.version)) + + parts = [tornado.escape.utf8("HTTP/1.1 " + data["status"] + "\r\n")] + for key, value in headers: + parts.append(tornado.escape.utf8(key) + b": " + tornado.escape.utf8(value) + b"\r\n") + parts.append(b"\r\n") + parts.append(body) + request.write(b"".join(parts)) + request.finish() + self._log(status_code, request) + + @staticmethod + def environ(request, body=None): + """ + Converts a `tornado.httputil.HTTPServerRequest` to a WSGI environment. + + An optional `body` to be used for populating `wsgi.input` can be supplied (either a string or a stream). If not + supplied, `request.body` will be wrapped into a `io.BytesIO` stream and used instead. + + :param request: the `tornado.httpserver.HTTPServerRequest` to derive the WSGI environment from + :param body: an optional body to use as `wsgi.input` instead of `request.body`, can be a string or a stream + """ + from tornado.wsgi import to_wsgi_str + import sys + import io + + # determine the request_body to supply as wsgi.input + if body is not None: + if isinstance(body, (bytes, str)): + request_body = io.BytesIO(tornado.escape.utf8(body)) + else: + request_body = body + else: + request_body = io.BytesIO(tornado.escape.utf8(request.body)) + + hostport = request.host.split(":") + if len(hostport) == 2: + host = hostport[0] + port = int(hostport[1]) + else: + host = request.host + port = 443 if request.protocol == "https" else 80 + environ = { + "REQUEST_METHOD": request.method, + "SCRIPT_NAME": "", + "PATH_INFO": to_wsgi_str(tornado.escape.url_unescape( + request.path, encoding=None, plus=False)), + "QUERY_STRING": request.query, + "REMOTE_ADDR": request.remote_ip, + "SERVER_NAME": host, + "SERVER_PORT": str(port), + "SERVER_PROTOCOL": request.version, + "wsgi.version": (1, 0), + "wsgi.url_scheme": request.protocol, + "wsgi.input": request_body, + "wsgi.errors": sys.stderr, + "wsgi.multithread": False, + "wsgi.multiprocess": True, + "wsgi.run_once": False, + } + if "Content-Type" in request.headers: + environ["CONTENT_TYPE"] = request.headers.pop("Content-Type") + if "Content-Length" in request.headers: + environ["CONTENT_LENGTH"] = request.headers.pop("Content-Length") + for key, value in request.headers.items(): + environ["HTTP_" + key.replace("-", "_").upper()] = value + return environ + + def _log(self, status_code, request): + access_log = logging.getLogger("tornado.access") + + if status_code < 400: + log_method = access_log.info + elif status_code < 500: + log_method = access_log.warning + else: + log_method = access_log.error + request_time = 1000.0 * request.request_time() + summary = request.method + " " + request.uri + " (" + \ + request.remote_ip + ")" + log_method("%d %s %.2fms", status_code, summary, request_time) + + +#~~ customized HTTP1Connection implementation + + +class CustomHTTPServer(tornado.httpserver.HTTPServer): + """ + Custom implementation of `tornado.httpserver.HTTPServer` that allows defining max body sizes depending on path and + method. + + The implementation is mostly taken from `tornado.httpserver.HTTPServer`, the only difference is the creation + of a `CustomHTTP1ConnectionParameters` instance instead of `tornado.http1connection.HTTP1ConnectionParameters` + which is supplied with the two new constructor arguments `max_body_sizes` and `max_default_body_size` and the + creation of a `CustomHTTP1ServerConnection` instead of a `tornado.http1connection.HTTP1ServerConnection` upon + connection by a client. + + `max_body_sizes` is expected to be an iterable containing tuples of the form (method, path regex, maximum body size), + with method and path regex having to match in order for maximum body size to take affect. + + `default_max_body_size` is the default maximum body size to apply if no specific one from `max_body_sizes` matches. + """ + + def __init__(self, request_callback, no_keep_alive=False, io_loop=None, + xheaders=False, ssl_options=None, protocol=None, + decompress_request=False, + chunk_size=None, max_header_size=None, + idle_connection_timeout=None, body_timeout=None, + max_body_sizes=None, default_max_body_size=None, max_buffer_size=None): + self.request_callback = request_callback + self.no_keep_alive = no_keep_alive + self.xheaders = xheaders + self.protocol = protocol + self.conn_params = CustomHTTP1ConnectionParameters( + decompress=decompress_request, + chunk_size=chunk_size, + max_header_size=max_header_size, + header_timeout=idle_connection_timeout or 3600, + max_body_sizes=max_body_sizes, + default_max_body_size=default_max_body_size, + body_timeout=body_timeout) + tornado.tcpserver.TCPServer.__init__(self, io_loop=io_loop, ssl_options=ssl_options, + max_buffer_size=max_buffer_size, + read_chunk_size=chunk_size) + self._connections = set() + + + def handle_stream(self, stream, address): + context = tornado.httpserver._HTTPRequestContext(stream, address, + self.protocol) + conn = CustomHTTP1ServerConnection( + stream, self.conn_params, context) + self._connections.add(conn) + conn.start_serving(self) + + +class CustomHTTP1ServerConnection(tornado.http1connection.HTTP1ServerConnection): + """ + A custom implementation of `tornado.http1connection.HTTP1ServerConnection` which utilizes a `CustomHTTP1Connection` + instead of a `tornado.http1connection.HTTP1Connection` in `_server_request_loop`. The implementation logic is + otherwise the same as `tornado.http1connection.HTTP1ServerConnection`. + """ + + @tornado.gen.coroutine + def _server_request_loop(self, delegate): + try: + while True: + conn = CustomHTTP1Connection(self.stream, False, + self.params, self.context) + request_delegate = delegate.start_request(self, conn) + try: + ret = yield conn.read_response(request_delegate) + except (tornado.iostream.StreamClosedError, + tornado.iostream.UnsatisfiableReadError): + return + except tornado.http1connection._QuietException: + # This exception was already logged. + conn.close() + return + except Exception: + tornado.http1connection.gen_log.error("Uncaught exception", exc_info=True) + conn.close() + return + if not ret: + return + yield tornado.gen.moment + finally: + delegate.on_close(self) + + +class CustomHTTP1Connection(tornado.http1connection.HTTP1Connection): + """ + A custom implementation of `tornado.http1connection.HTTP1Connection` which upon checking the `Content-Length` of + the request against the configured maximum utilizes `max_body_sizes` and `default_max_body_size` as a fallback. + """ + + def __init__(self, stream, is_client, params=None, context=None): + tornado.http1connection.HTTP1Connection.__init__(self, stream, is_client, params=params, context=context) + + import re + self._max_body_sizes = map(lambda x: (x[0], re.compile(x[1]), x[2]), self.params.max_body_sizes or dict()) + self._default_max_body_size = self.params.default_max_body_size or self.stream.max_buffer_size + + def _read_body(self, headers, delegate): + """ + Basically the same as `tornado.http1connection.HTTP1Connection._read_body`, but determines the maximum + content length individually for the request (utilizing `._get_max_content_length`). + + If the individual max content length is 0 or smaller no content length is checked. If the content length of the + current request exceeds the individual max content length, the request processing is aborted and an + `HTTPInputError` is raised. + """ + content_length = headers.get("Content-Length") + if content_length: + content_length = int(content_length) + max_content_length = self._get_max_content_length(self._request_start_line.method, self._request_start_line.path) + if 0 <= max_content_length < content_length: + raise tornado.httputil.HTTPInputError("Content-Length too long") + return self._read_fixed_body(content_length, delegate) + if headers.get("Transfer-Encoding") == "chunked": + return self._read_chunked_body(delegate) + if self.is_client: + return self._read_body_until_close(delegate) + return None + + def _get_max_content_length(self, method, path): + """ + Gets the max content length for the given method and path. Checks whether method and path match against any + of the specific maximum content lengths supplied in `max_body_sizes` and returns that as the maximum content + length if available, otherwise returns `default_max_body_size`. + + :param method: method of the request to match against + :param path: path od the request to match against + :return: determine maximum content length to apply to this request, max return 0 for unlimited allowed content + length + """ + + for m, p, s in self._max_body_sizes: + if method == m and p.match(path): + return s + return self._default_max_body_size + + +class CustomHTTP1ConnectionParameters(tornado.http1connection.HTTP1ConnectionParameters): + """ + An implementation of `tornado.http1connection.HTTP1ConnectionParameters` that adds to new parameters + `max_body_sizes` and `default_max_body_size`. + + For a description of these please see the documentation of `CustomHTTPServer` above. + """ + + def __init__(self, *args, **kwargs): + tornado.http1connection.HTTP1ConnectionParameters.__init__(self, args, kwargs) + self.max_body_sizes = kwargs["max_body_sizes"] if "max_body_sizes" in kwargs else dict() + self.default_max_body_size = kwargs["default_max_body_size"] if "default_max_body_size" in kwargs else dict() + +#~~ customized large response handler + + +class LargeResponseHandler(tornado.web.StaticFileHandler): + + CHUNK_SIZE = 16 * 1024 + + def initialize(self, path, default_filename=None, as_attachment=False, access_validation=None): + tornado.web.StaticFileHandler.initialize(self, path, default_filename) + self._as_attachment = as_attachment + self._access_validation = access_validation + + def get(self, path, include_body=True): + if self._access_validation is not None: + self._access_validation(self.request) + + path = self.parse_url_path(path) + abspath = os.path.abspath(os.path.join(self.root, path)) + # os.path.abspath strips a trailing / + # it needs to be temporarily added back for requests to root/ + if not (abspath + os.path.sep).startswith(self.root): + raise tornado.web.HTTPError(403, "%s is not in root static directory", path) + if os.path.isdir(abspath) and self.default_filename is not None: + # need to look at the request.path here for when path is empty + # but there is some prefix to the path that was already + # trimmed by the routing + if not self.request.path.endswith("/"): + self.redirect(self.request.path + "/") + return + abspath = os.path.join(abspath, self.default_filename) + if not os.path.exists(abspath): + raise tornado.web.HTTPError(404) + if not os.path.isfile(abspath): + raise tornado.web.HTTPError(403, "%s is not a file", path) + + stat_result = os.stat(abspath) + modified = datetime.datetime.fromtimestamp(stat_result[stat.ST_MTIME]) + + self.set_header("Last-Modified", modified) + + mime_type, encoding = mimetypes.guess_type(abspath) + if mime_type: + self.set_header("Content-Type", mime_type) + + cache_time = self.get_cache_time(path, modified, mime_type) + + if cache_time > 0: + self.set_header("Expires", datetime.datetime.utcnow() + + datetime.timedelta(seconds=cache_time)) + self.set_header("Cache-Control", "max-age=" + str(cache_time)) + + self.set_extra_headers(path) + + # Check the If-Modified-Since, and don't send the result if the + # content has not been modified + ims_value = self.request.headers.get("If-Modified-Since") + if ims_value is not None: + date_tuple = email.utils.parsedate(ims_value) + if_since = datetime.datetime.fromtimestamp(time.mktime(date_tuple)) + if if_since >= modified: + self.set_status(304) + return + + if not include_body: + assert self.request.method == "HEAD" + self.set_header("Content-Length", stat_result[stat.ST_SIZE]) + else: + with open(abspath, "rb") as file: + while True: + data = file.read(LargeResponseHandler.CHUNK_SIZE) + if not data: + break + self.write(data) + self.flush() + + def set_extra_headers(self, path): + if self._as_attachment: + self.set_header("Content-Disposition", "attachment") + + +##~~ URL Forward Handler for forwarding requests to a preconfigured static URL + + +class UrlForwardHandler(tornado.web.RequestHandler): + + def initialize(self, url=None, as_attachment=False, basename=None, access_validation=None): + tornado.web.RequestHandler.initialize(self) + self._url = url + self._as_attachment = as_attachment + self._basename = basename + self._access_validation = access_validation + + @tornado.web.asynchronous + def get(self, *args, **kwargs): + if self._access_validation is not None: + self._access_validation(self.request) + + if self._url is None: + raise tornado.web.HTTPError(404) + + client = tornado.httpclient.AsyncHTTPClient() + r = tornado.httpclient.HTTPRequest(url=self._url, method=self.request.method, body=self.request.body, headers=self.request.headers, follow_redirects=False, allow_nonstandard_methods=True) + + try: + return client.fetch(r, self.handle_response) + except tornado.web.HTTPError as e: + if hasattr(e, "response") and e.response: + self.handle_response(e.response) + else: + raise tornado.web.HTTPError(500) + + def handle_response(self, response): + if response.error and not isinstance(response.error, tornado.web.HTTPError): + raise tornado.web.HTTPError(500) + + filename = None + + self.set_status(response.code) + for name in ("Date", "Cache-Control", "Server", "Content-Type", "Location"): + value = response.headers.get(name) + if value: + self.set_header(name, value) + + if name == "Content-Type": + filename = self.get_filename(value) + + if self._as_attachment: + if filename is not None: + self.set_header("Content-Disposition", "attachment; filename=%s" % filename) + else: + self.set_header("Content-Disposition", "attachment") + + if response.body: + self.write(response.body) + self.finish() + + def get_filename(self, content_type): + if not self._basename: + return None + + typeValue = map(str.strip, content_type.split(";")) + if len(typeValue) == 0: + return None + + extension = mimetypes.guess_extension(typeValue[0]) + if not extension: + return None + + return "%s%s" % (self._basename, extension) + + +#~~ Factory method for creating Flask access validation wrappers from the Tornado request context + + +def access_validation_factory(app, login_manager, validator): + """ + Creates an access validation wrapper using the supplied validator. + + :param validator: the access validator to use inside the validation wrapper + :return: an access validation wrapper taking a request as parameter and performing the request validation + """ + def f(request): + """ + Creates a custom wsgi and Flask request context in order to be able to process user information + stored in the current session. + + :param request: The Tornado request for which to create the environment and context + """ + import flask + + wsgi_environ = WsgiInputContainer.environ(request) + with app.request_context(wsgi_environ): + app.session_interface.open_session(app, flask.request) + login_manager.reload_user() + validator(flask.request) + return f diff --git a/src/octoprint/server/util/watchdog.py b/src/octoprint/server/util/watchdog.py new file mode 100644 index 000000000..e6ced528e --- /dev/null +++ b/src/octoprint/server/util/watchdog.py @@ -0,0 +1,87 @@ +# coding=utf-8 +from __future__ import absolute_import + +__author__ = "Gina Häußge " +__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' +__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License" + +import logging +import os +import watchdog.events + +import octoprint.gcodefiles +import octoprint.util +from octoprint.settings import settings + + +class UploadCleanupWatchdogHandler(watchdog.events.PatternMatchingEventHandler): + """ + Takes care of automatically deleting metadata entries for files that get deleted from the uploads folder + """ + + patterns = map(lambda x: "*.%s" % x, octoprint.gcodefiles.GCODE_EXTENSIONS) + + def __init__(self, gcode_manager): + watchdog.events.PatternMatchingEventHandler.__init__(self) + self._gcode_manager = gcode_manager + + def on_deleted(self, event): + filename = self._gcode_manager._getBasicFilename(event.src_path) + if not filename: + return + + self._gcode_manager.removeFileFromMetadata(filename) + + +class GcodeWatchdogHandler(watchdog.events.PatternMatchingEventHandler): + """ + Takes care of automatically "uploading" files that get added to the watched folder. + """ + + patterns = map(lambda x: "*.%s" % x, octoprint.gcodefiles.SUPPORTED_EXTENSIONS) + + def __init__(self, gcodeManager, printer): + watchdog.events.PatternMatchingEventHandler.__init__(self) + + self._logger = logging.getLogger(__name__) + + self._gcodeManager = gcodeManager + self._printer = printer + + def _upload(self, path): + class WatchdogFileWrapper(object): + + def __init__(self, path): + self._path = path + self.filename = os.path.basename(self._path) + + def save(self, target): + octoprint.util.safeRename(self._path, target) + + fileWrapper = WatchdogFileWrapper(path) + + # determine current job + currentFilename = None + currentOrigin = None + currentJob = self._printer.getCurrentJob() + if currentJob is not None and "file" in currentJob.keys(): + currentJobFile = currentJob["file"] + if "name" in currentJobFile.keys() and "origin" in currentJobFile.keys(): + currentFilename = currentJobFile["name"] + currentOrigin = currentJobFile["origin"] + + # determine future filename of file to be uploaded, abort if it can't be uploaded + futureFilename = self._gcodeManager.getFutureFilename(fileWrapper) + if futureFilename is None or (not settings().getBoolean(["cura", "enabled"]) and not octoprint.gcodefiles.isGcodeFileName(futureFilename)): + self._logger.warn("Could not add %s: Invalid file" % fileWrapper.filename) + return + + # prohibit overwriting currently selected file while it's being printed + if futureFilename == currentFilename and not currentOrigin == octoprint.gcodefiles.FileDestinations.SDCARD and self._printer.isPrinting() or self._printer.isPaused(): + self._logger.warn("Could not add %s: Trying to overwrite file that is currently being printed" % fileWrapper.filename) + return + + self._gcodeManager.addFile(fileWrapper, octoprint.gcodefiles.FileDestinations.LOCAL) + + def on_created(self, event): + self._upload(event.src_path) diff --git a/src/octoprint/settings.py b/src/octoprint/settings.py index d599791ed..a31b07805 100644 --- a/src/octoprint/settings.py +++ b/src/octoprint/settings.py @@ -42,7 +42,13 @@ default_settings = { "port": 5000, "firstRun": True, "baseUrl": "", - "scheme": "" + "scheme": "", + "uploads": { + "maxSize": 1 * 1024 * 1024 * 1024, # 1GB + "nameSuffix": ".name", + "pathSuffix": ".path" + }, + "maxSize": 100 * 1024, # 100 KB }, "webcam": { "stream": None, @@ -375,7 +381,11 @@ class Settings(object): return None if isinstance(value, bool): return value - return value.lower() in valid_boolean_trues + if isinstance(value, (int, float)): + return value != 0 + if isinstance(value, (str, unicode)): + return value.lower() in valid_boolean_trues + return value is not None def getBaseFolder(self, type): if type not in default_settings["folder"].keys(): diff --git a/src/octoprint/util/__init__.py b/src/octoprint/util/__init__.py index 5df97e7f0..d889ddcef 100644 --- a/src/octoprint/util/__init__.py +++ b/src/octoprint/util/__init__.py @@ -248,3 +248,7 @@ def dict_merge(a, b): else: result[k] = deepcopy(v) return result + + +class Object(object): + pass From 2d68b6e5894e2fac993d2808d02287fe54656412 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 5 Aug 2014 11:37:50 +0200 Subject: [PATCH 11/50] Get default max body size from settings too --- src/octoprint/server/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/server/__init__.py b/src/octoprint/server/__init__.py index 96890a401..57e9cfa9d 100644 --- a/src/octoprint/server/__init__.py +++ b/src/octoprint/server/__init__.py @@ -189,7 +189,7 @@ class Server(): max_body_sizes = [ ("POST", r"/api/files/([^/]*)", settings().getInt(["server", "uploads", "maxSize"])) ] - self._server = util.tornado.CustomHTTPServer(self._tornado_app, max_body_sizes=max_body_sizes, default_max_body_size=10*1024) + self._server = util.tornado.CustomHTTPServer(self._tornado_app, max_body_sizes=max_body_sizes, default_max_body_size=settings().getInt(["server", "maxSize"])) self._server.listen(self._port, address=self._host) eventManager.fire(events.Events.STARTUP) From 9d69951faaa0a88f416b6900436a3fd6fce094c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 5 Aug 2014 12:33:08 +0200 Subject: [PATCH 12/50] Fixed double file request after file upload causing autoscrolling to uploaded file to not work --- src/octoprint/static/js/app/viewmodels/files.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/octoprint/static/js/app/viewmodels/files.js b/src/octoprint/static/js/app/viewmodels/files.js index e9bc301f1..aa838a217 100644 --- a/src/octoprint/static/js/app/viewmodels/files.js +++ b/src/octoprint/static/js/app/viewmodels/files.js @@ -106,13 +106,18 @@ function GcodeFilesViewModel(printerStateViewModel, loginStateViewModel) { self.isSdReady(data.flags.sdReady); }; + self._otherRequestInProgress = false; self.requestData = function(filenameToFocus, locationToFocus) { + if (self._otherRequestInProgress) return; + + self._otherRequestInProgress = true; $.ajax({ url: API_BASEURL + "files", method: "GET", dataType: "json", success: function(response) { self.fromResponse(response, filenameToFocus, locationToFocus); + self._otherRequestInProgress = false; } }); }; From d4e7c2e1b15eab0f282b4e738a4446244d5a9585 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 5 Aug 2014 19:03:04 +0200 Subject: [PATCH 13/50] We actually do want to run the configured system commands on the shell, so set shell to True Also includes a workaround for sarge bug no. 21 Closes #489 --- src/octoprint/server/api/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/octoprint/server/api/__init__.py b/src/octoprint/server/api/__init__.py index 2af447263..530970dc6 100644 --- a/src/octoprint/server/api/__init__.py +++ b/src/octoprint/server/api/__init__.py @@ -161,7 +161,12 @@ def performSystemAction(): if availableAction["action"] == action: logger.info("Performing command: %s" % availableAction["command"]) try: - p = sarge.run(availableAction["command"], stderr=sarge.Capture()) + # Note: we put the command in brackets since sarge (up to the most recently released version) has + # a bug concerning shell=True commands. Once sarge 0.1.4 we can upgrade to that and remove this + # workaround again + # + # See https://bitbucket.org/vinay.sajip/sarge/issue/21/behavior-is-not-like-popen-using-shell + p = sarge.run([availableAction["command"]], stderr=sarge.Capture(), shell=True) if p.returncode != 0: returncode = p.returncode stderr_text = p.stderr.text From 5dc033358080948caa63b91ef69476c4438d4c85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 6 Aug 2014 10:18:23 +0200 Subject: [PATCH 14/50] First couple of print statements for debugging a Heisenbug --- src/octoprint/server/util/tornado.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/octoprint/server/util/tornado.py b/src/octoprint/server/util/tornado.py index 38a5252e2..29a8c0bb3 100644 --- a/src/octoprint/server/util/tornado.py +++ b/src/octoprint/server/util/tornado.py @@ -156,6 +156,8 @@ class UploadStorageFallbackHandler(tornado.web.RequestHandler): else: self._multipart_boundary = None else: + print("### In UploadStorageFallbackHandler.prepare, invoking fallback") + self._fallback(self.request, b"") self._finished = True @@ -411,6 +413,8 @@ class WsgiInputContainer(object): :param body: an optional body to use as `wsgi.input` instead of `request.body`, can be a string or a stream """ + print("### In WsgiInputContainer.__call__") + data = {} response = [] From 61f84302f37be5bb17b10942e2dfc7e8760891d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 6 Aug 2014 10:41:42 +0200 Subject: [PATCH 15/50] More debugging --- src/octoprint/server/util/tornado.py | 31 ++++++++++++++-------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/octoprint/server/util/tornado.py b/src/octoprint/server/util/tornado.py index 29a8c0bb3..214e53da7 100644 --- a/src/octoprint/server/util/tornado.py +++ b/src/octoprint/server/util/tornado.py @@ -134,6 +134,8 @@ class UploadStorageFallbackHandler(tornado.web.RequestHandler): body-less request, just calls the `fallback` with an empty body and finishes the request. """ if self.request.method in UploadStorageFallbackHandler.BODY_METHODS: + print("### In UploadStorageFallbackHandler.prepare, processing body: %r" % self.request) + self._bytes_left = self.request.headers.get("Content-Length", 0) self._content_type = self.request.headers.get("Content-Type", None) @@ -156,7 +158,7 @@ class UploadStorageFallbackHandler(tornado.web.RequestHandler): else: self._multipart_boundary = None else: - print("### In UploadStorageFallbackHandler.prepare, invoking fallback") + print("### In UploadStorageFallbackHandler.prepare, invoking fallback: %r" % self.request) self._fallback(self.request, b"") self._finished = True @@ -203,23 +205,22 @@ class UploadStorageFallbackHandler(tornado.web.RequestHandler): data, self._buffer = data[0:-endlen], data[-endlen:] # stream data to part handler - if data: - if self._current_part: - self._on_data(self._current_part, data) + if data and self._current_part: + self._on_part_data(self._current_part, data) if end_of_header >= 0: - self._on_header(self._buffer[delimiter_len+2:end_of_header]) + self._on_part_header(self._buffer[delimiter_len+2:end_of_header]) self._buffer = self._buffer[end_of_header + 4:] if delimiter_loc != -1 and self._buffer[delimiter_len:delimiter_len+2] == "--": # we saw the last boundary and are at the end of our request if self._current_part: - self._on_close(self._current_part) + self._on_part_finish(self._current_part) self._current_part = None self._buffer = b"" - self._on_finish() + self._on_request_body_finish() - def _on_header(self, header): + def _on_part_header(self, header): """ Called for a new multipart header, takes care of parsing the header and calling `self._on_part` with the relevant data, setting the current part in the process. @@ -229,7 +230,7 @@ class UploadStorageFallbackHandler(tornado.web.RequestHandler): # close any open parts if self._current_part: - self._on_close(self._current_part) + self._on_part_finish(self._current_part) self._current_part = None header_check = header.find(self._multipart_boundary) @@ -249,9 +250,9 @@ class UploadStorageFallbackHandler(tornado.web.RequestHandler): self._logger.warn("Got a multipart header without name, ignoring that one") return - self._current_part = self._on_part(disp_params["name"], header.get("Content-Type", None), filename=disp_params["filename"] if "filename" in disp_params else None) + self._current_part = self._on_part_start(disp_params["name"], header.get("Content-Type", None), filename=disp_params["filename"] if "filename" in disp_params else None) - def _on_part(self, name, content_type, filename=None): + def _on_part_start(self, name, content_type, filename=None): """ Called for new parts in the multipart stream. If `filename` is given creates new `file` part (which leads to storage of the data as temporary file on disk), if not creates a new `data` part (which stores @@ -289,7 +290,7 @@ class UploadStorageFallbackHandler(tornado.web.RequestHandler): else: return dict(name=tornado.escape.utf8(name), content_type=content_type, data=b"") - def _on_data(self, part, data): + def _on_part_data(self, part, data): """ Called when new bytes are received for the given `part`, takes care of writing them to their storage. @@ -301,7 +302,7 @@ class UploadStorageFallbackHandler(tornado.web.RequestHandler): else: part["data"] += data - def _on_close(self, part): + def _on_part_finish(self, part): """ Called when a part gets closed, takes care of storing the finished part in the internal parts storage and for `file` parts closing the temporary file and storing the part in the internal files storage. @@ -315,7 +316,7 @@ class UploadStorageFallbackHandler(tornado.web.RequestHandler): part["file"].close() del part["file"] - def _on_finish(self): + def _on_request_body_finish(self): """ Called when the request body has been read completely. Takes care of creating the replacement body out of the logged parts, turning `file` parts into new @@ -413,7 +414,7 @@ class WsgiInputContainer(object): :param body: an optional body to use as `wsgi.input` instead of `request.body`, can be a string or a stream """ - print("### In WsgiInputContainer.__call__") + print("### In WsgiInputContainer.__call__: %r" % request) data = {} response = [] From 3eab5503f1556e7305797d35158a0c6ed67c1d8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 6 Aug 2014 11:22:46 +0200 Subject: [PATCH 16/50] And even more debugging --- src/octoprint/server/util/tornado.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/octoprint/server/util/tornado.py b/src/octoprint/server/util/tornado.py index 214e53da7..6837fbd5b 100644 --- a/src/octoprint/server/util/tornado.py +++ b/src/octoprint/server/util/tornado.py @@ -178,6 +178,9 @@ class UploadStorageFallbackHandler(tornado.web.RequestHandler): else: self._buffer = data + def on_finish(self): + pass + def is_multipart(self): """Checks whether this request is a `multipart` request""" return self._content_type is not None and self._content_type.startswith("multipart") From 488eb1fac3738b09c261200ca96652933c8f59aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 6 Aug 2014 12:15:02 +0200 Subject: [PATCH 17/50] Also reset "otherRequestInProgress" if the request fails --- src/octoprint/static/js/app/viewmodels/files.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/octoprint/static/js/app/viewmodels/files.js b/src/octoprint/static/js/app/viewmodels/files.js index aa838a217..c7d8678e6 100644 --- a/src/octoprint/static/js/app/viewmodels/files.js +++ b/src/octoprint/static/js/app/viewmodels/files.js @@ -118,6 +118,9 @@ function GcodeFilesViewModel(printerStateViewModel, loginStateViewModel) { success: function(response) { self.fromResponse(response, filenameToFocus, locationToFocus); self._otherRequestInProgress = false; + }, + error: function() { + self._otherRequestInProgress = false; } }); }; From 86c6cda79a378e805d76f1abc19b0f7410eb0f65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 6 Aug 2014 16:21:32 +0200 Subject: [PATCH 18/50] Stop customized RequestHandler from sending another set of headers after the response This was causing the GET request for the list of files following directly after a successful response from an upload to get associated with the second empty response sent directly after the upload and such lead to a funny timing issue causing the file list not to update correctly since the response to THAT request -- while received by the client -- could then not be processed. See #455 --- src/octoprint/server/util/tornado.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/octoprint/server/util/tornado.py b/src/octoprint/server/util/tornado.py index 6837fbd5b..5da04a79f 100644 --- a/src/octoprint/server/util/tornado.py +++ b/src/octoprint/server/util/tornado.py @@ -134,8 +134,6 @@ class UploadStorageFallbackHandler(tornado.web.RequestHandler): body-less request, just calls the `fallback` with an empty body and finishes the request. """ if self.request.method in UploadStorageFallbackHandler.BODY_METHODS: - print("### In UploadStorageFallbackHandler.prepare, processing body: %r" % self.request) - self._bytes_left = self.request.headers.get("Content-Length", 0) self._content_type = self.request.headers.get("Content-Type", None) @@ -158,8 +156,6 @@ class UploadStorageFallbackHandler(tornado.web.RequestHandler): else: self._multipart_boundary = None else: - print("### In UploadStorageFallbackHandler.prepare, invoking fallback: %r" % self.request) - self._fallback(self.request, b"") self._finished = True @@ -178,9 +174,6 @@ class UploadStorageFallbackHandler(tornado.web.RequestHandler): else: self._buffer = data - def on_finish(self): - pass - def is_multipart(self): """Checks whether this request is a `multipart` request""" return self._content_type is not None and self._content_type.startswith("multipart") @@ -373,6 +366,7 @@ class UploadStorageFallbackHandler(tornado.web.RequestHandler): try: # call the configured fallback with request and body to use self._fallback(self.request, body) + self._headers_written = True finally: # make sure the temporary files are removed again for f in self._files: @@ -417,8 +411,6 @@ class WsgiInputContainer(object): :param body: an optional body to use as `wsgi.input` instead of `request.body`, can be a string or a stream """ - print("### In WsgiInputContainer.__call__: %r" % request) - data = {} response = [] From 02212bde21507d2fbcc5a15e33ecefc850ee0ed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 7 Aug 2014 09:55:50 +0200 Subject: [PATCH 19/50] Made the navbar static instead of fixed to improve usability on mobile devices This is just a hack really, the proper approach would be to finally move to a real responsive design, but this should prove as a valid workaround until that is realized. Closes #257 for now. --- src/octoprint/static/css/octoprint.css | 2 +- src/octoprint/static/less/octoprint.less | 13 ++++++------- src/octoprint/templates/index.jinja2 | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/octoprint/static/css/octoprint.css b/src/octoprint/static/css/octoprint.css index 19769052b..aa71526a2 100644 --- a/src/octoprint/static/css/octoprint.css +++ b/src/octoprint/static/css/octoprint.css @@ -1 +1 @@ -.btn{display:inline-block;*display:inline;*zoom:1;padding:4px 12px;margin-bottom:0;font-size:14px;line-height:20px;text-align:center;vertical-align:middle;cursor:pointer;color:#333;text-shadow:0 1px 1px rgba(255,255,255,0.75);background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe6e6e6',GradientType=0);border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#e6e6e6;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);border:1px solid #ccc;*border:0;border-bottom-color:#b3b3b3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;*margin-left:.3em;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05)}.btn:hover,.btn:focus,.btn:active,.btn.active,.btn.disabled,.btn[disabled]{color:#333;background-color:#e6e6e6;*background-color:#d9d9d9}.btn:active,.btn.active{background-color:#ccc \9}.btn:first-child{*margin-left:0}.btn:hover,.btn:focus{color:#333;text-decoration:none;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.btn:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.btn.disabled,.btn[disabled]{cursor:default;background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.btn-large{padding:11px 19px;font-size:17.5px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.btn-large [class^="icon-"],.btn-large [class*=" icon-"]{margin-top:4px}.btn-small{padding:2px 10px;font-size:11.9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-small [class^="icon-"],.btn-small [class*=" icon-"]{margin-top:0}.btn-mini [class^="icon-"],.btn-mini [class*=" icon-"]{margin-top:-1px}.btn-mini{padding:0 6px;font-size:10.5px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-block{display:block;width:100%;padding-left:0;padding-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.btn-block+.btn-block{margin-top:5px}input[type="submit"].btn-block,input[type="reset"].btn-block,input[type="button"].btn-block{width:100%}.btn-primary.active,.btn-warning.active,.btn-danger.active,.btn-success.active,.btn-info.active,.btn-inverse.active{color:rgba(255,255,255,0.75)}.btn-primary{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#006dcc;background-image:-moz-linear-gradient(top,#08c,#04c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#04c));background-image:-webkit-linear-gradient(top,#08c,#04c);background-image:-o-linear-gradient(top,#08c,#04c);background-image:linear-gradient(to bottom,#08c,#04c);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0044cc',GradientType=0);border-color:#04c #04c #002a80;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#04c;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.btn-primary.active,.btn-primary.disabled,.btn-primary[disabled]{color:#fff;background-color:#04c;*background-color:#003bb3}.btn-primary:active,.btn-primary.active{background-color:#039 \9}.btn-warning{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#faa732;background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fbb450),to(#f89406));background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(to bottom,#fbb450,#f89406);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450',endColorstr='#fff89406',GradientType=0);border-color:#f89406 #f89406 #ad6704;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#f89406;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.btn-warning:hover,.btn-warning:focus,.btn-warning:active,.btn-warning.active,.btn-warning.disabled,.btn-warning[disabled]{color:#fff;background-color:#f89406;*background-color:#df8505}.btn-warning:active,.btn-warning.active{background-color:#c67605 \9}.btn-danger{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#da4f49;background-image:-moz-linear-gradient(top,#ee5f5b,#bd362f);background-image:-webkit-gradient(linear,0 0,0 100%,from(#ee5f5b),to(#bd362f));background-image:-webkit-linear-gradient(top,#ee5f5b,#bd362f);background-image:-o-linear-gradient(top,#ee5f5b,#bd362f);background-image:linear-gradient(to bottom,#ee5f5b,#bd362f);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b',endColorstr='#ffbd362f',GradientType=0);border-color:#bd362f #bd362f #802420;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#bd362f;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.btn-danger:hover,.btn-danger:focus,.btn-danger:active,.btn-danger.active,.btn-danger.disabled,.btn-danger[disabled]{color:#fff;background-color:#bd362f;*background-color:#a9302a}.btn-danger:active,.btn-danger.active{background-color:#942a25 \9}.btn-success{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#5bb75b;background-image:-moz-linear-gradient(top,#62c462,#51a351);background-image:-webkit-gradient(linear,0 0,0 100%,from(#62c462),to(#51a351));background-image:-webkit-linear-gradient(top,#62c462,#51a351);background-image:-o-linear-gradient(top,#62c462,#51a351);background-image:linear-gradient(to bottom,#62c462,#51a351);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462',endColorstr='#ff51a351',GradientType=0);border-color:#51a351 #51a351 #387038;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#51a351;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.btn-success:hover,.btn-success:focus,.btn-success:active,.btn-success.active,.btn-success.disabled,.btn-success[disabled]{color:#fff;background-color:#51a351;*background-color:#499249}.btn-success:active,.btn-success.active{background-color:#408140 \9}.btn-info{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#49afcd;background-image:-moz-linear-gradient(top,#5bc0de,#2f96b4);background-image:-webkit-gradient(linear,0 0,0 100%,from(#5bc0de),to(#2f96b4));background-image:-webkit-linear-gradient(top,#5bc0de,#2f96b4);background-image:-o-linear-gradient(top,#5bc0de,#2f96b4);background-image:linear-gradient(to bottom,#5bc0de,#2f96b4);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de',endColorstr='#ff2f96b4',GradientType=0);border-color:#2f96b4 #2f96b4 #1f6377;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#2f96b4;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.btn-info:hover,.btn-info:focus,.btn-info:active,.btn-info.active,.btn-info.disabled,.btn-info[disabled]{color:#fff;background-color:#2f96b4;*background-color:#2a85a0}.btn-info:active,.btn-info.active{background-color:#24748c \9}.btn-inverse{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#363636;background-image:-moz-linear-gradient(top,#444,#222);background-image:-webkit-gradient(linear,0 0,0 100%,from(#444),to(#222));background-image:-webkit-linear-gradient(top,#444,#222);background-image:-o-linear-gradient(top,#444,#222);background-image:linear-gradient(to bottom,#444,#222);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff444444',endColorstr='#ff222222',GradientType=0);border-color:#222 #222 #000;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#222;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.btn-inverse:hover,.btn-inverse:focus,.btn-inverse:active,.btn-inverse.active,.btn-inverse.disabled,.btn-inverse[disabled]{color:#fff;background-color:#222;*background-color:#151515}.btn-inverse:active,.btn-inverse.active{background-color:#080808 \9}button.btn,input[type="submit"].btn{*padding-top:3px;*padding-bottom:3px}button.btn::-moz-focus-inner,input[type="submit"].btn::-moz-focus-inner{padding:0;border:0}button.btn.btn-large,input[type="submit"].btn.btn-large{*padding-top:7px;*padding-bottom:7px}button.btn.btn-small,input[type="submit"].btn.btn-small{*padding-top:3px;*padding-bottom:3px}button.btn.btn-mini,input[type="submit"].btn.btn-mini{*padding-top:1px;*padding-bottom:1px}.btn-link,.btn-link:active,.btn-link[disabled]{background-color:transparent;background-image:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.btn-link{border-color:transparent;cursor:pointer;color:#08c;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.btn-link:hover,.btn-link:focus{color:#005580;text-decoration:underline;background-color:transparent}.btn-link[disabled]:hover,.btn-link[disabled]:focus{color:#333;text-decoration:none}.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:"";line-height:0}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}body{padding-top:60px}#navbar .navbar-inner{background-color:#ebebeb;background-image:-moz-linear-gradient(top,#fff,#ccc);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#ccc));background-image:-webkit-linear-gradient(top,#fff,#ccc);background-image:-o-linear-gradient(top,#fff,#ccc);background-image:linear-gradient(to bottom,#fff,#ccc);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffcccccc',GradientType=0)}#navbar .navbar-inner .brand,#navbar .navbar-inner .nav>li>a{text-shadow:0 1px 0 #fff;color:#333}#navbar .navbar-inner .brand .caret,#navbar .navbar-inner .nav>li>a .caret{border-bottom-color:#939393;border-top-color:#939393}#navbar .navbar-inner .brand:hover .caret,#navbar .navbar-inner .nav>li>a:hover .caret,#navbar .navbar-inner .brand:focus .caret,#navbar .navbar-inner .nav>li>a:focus .caret{border-bottom-color:#636363;border-top-color:#636363}#navbar .navbar-inner .brand span{background-image:url(../img/tentacle-20x20.png)}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#navbar .navbar-inner .brand span{background-image:url(../img/tentacle-20x20@2x.png)}}#navbar .navbar-inner .nav li.dropdown.open>.dropdown-toggle,#navbar .navbar-inner .nav li.dropdown.active>.dropdown-toggle,#navbar .navbar-inner .nav li.dropdown.open.active>.dropdown-toggle{background-color:#e0e0e0;background-image:-moz-linear-gradient(top,#ccc,#fff);background-image:-webkit-gradient(linear,0 0,0 100%,from(#ccc),to(#fff));background-image:-webkit-linear-gradient(top,#ccc,#fff);background-image:-o-linear-gradient(top,#ccc,#fff);background-image:linear-gradient(to bottom,#ccc,#fff);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffcccccc',endColorstr='#ffffffff',GradientType=0)}#navbar .navbar-inner.red{background-color:#e36565;background-image:-moz-linear-gradient(top,#f9a0a0,#c20c0c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#f9a0a0),to(#c20c0c));background-image:-webkit-linear-gradient(top,#f9a0a0,#c20c0c);background-image:-o-linear-gradient(top,#f9a0a0,#c20c0c);background-image:linear-gradient(to bottom,#f9a0a0,#c20c0c);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9a0a0',endColorstr='#ffc20c0c',GradientType=0)}#navbar .navbar-inner.red .brand,#navbar .navbar-inner.red .nav>li>a{text-shadow:0 1px 0 #c20c0c;color:#f2f2f2}#navbar .navbar-inner.red .brand .caret,#navbar .navbar-inner.red .nav>li>a .caret{border-bottom-color:#f28d8d;border-top-color:#f28d8d}#navbar .navbar-inner.red .brand:hover .caret,#navbar .navbar-inner.red .nav>li>a:hover .caret,#navbar .navbar-inner.red .brand:focus .caret,#navbar .navbar-inner.red .nav>li>a:focus .caret{border-bottom-color:#f2c0c0;border-top-color:#f2c0c0}#navbar .navbar-inner.red .brand span{background-image:url(../img/tentacle-20x20-light.png)}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#navbar .navbar-inner.red .brand span{background-image:url(../img/tentacle-20x20-light@2x.png)}}#navbar .navbar-inner.red .nav li.dropdown.open>.dropdown-toggle,#navbar .navbar-inner.red .nav li.dropdown.active>.dropdown-toggle,#navbar .navbar-inner.red .nav li.dropdown.open.active>.dropdown-toggle{background-color:#d84747;background-image:-moz-linear-gradient(top,#c20c0c,#f9a0a0);background-image:-webkit-gradient(linear,0 0,0 100%,from(#c20c0c),to(#f9a0a0));background-image:-webkit-linear-gradient(top,#c20c0c,#f9a0a0);background-image:-o-linear-gradient(top,#c20c0c,#f9a0a0);background-image:linear-gradient(to bottom,#c20c0c,#f9a0a0);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffc20c0c',endColorstr='#fff9a0a0',GradientType=0)}#navbar .navbar-inner.orange{background-color:#e39665;background-image:-moz-linear-gradient(top,#f9c3a0,#c2530c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#f9c3a0),to(#c2530c));background-image:-webkit-linear-gradient(top,#f9c3a0,#c2530c);background-image:-o-linear-gradient(top,#f9c3a0,#c2530c);background-image:linear-gradient(to bottom,#f9c3a0,#c2530c);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9c3a0',endColorstr='#ffc2530c',GradientType=0)}#navbar .navbar-inner.orange .brand,#navbar .navbar-inner.orange .nav>li>a{text-shadow:0 1px 0 #f6a570;color:#333}#navbar .navbar-inner.orange .brand .caret,#navbar .navbar-inner.orange .nav>li>a .caret{border-bottom-color:#93552e;border-top-color:#93552e}#navbar .navbar-inner.orange .brand:hover .caret,#navbar .navbar-inner.orange .nav>li>a:hover .caret,#navbar .navbar-inner.orange .brand:focus .caret,#navbar .navbar-inner.orange .nav>li>a:focus .caret{border-bottom-color:#634430;border-top-color:#634430}#navbar .navbar-inner.orange .brand span{background-image:url(../img/tentacle-20x20.png)}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#navbar .navbar-inner.orange .brand span{background-image:url(../img/tentacle-20x20@2x.png)}}#navbar .navbar-inner.orange .nav li.dropdown.open>.dropdown-toggle,#navbar .navbar-inner.orange .nav li.dropdown.active>.dropdown-toggle,#navbar .navbar-inner.orange .nav li.dropdown.open.active>.dropdown-toggle{background-color:#d88047;background-image:-moz-linear-gradient(top,#c2530c,#f9c3a0);background-image:-webkit-gradient(linear,0 0,0 100%,from(#c2530c),to(#f9c3a0));background-image:-webkit-linear-gradient(top,#c2530c,#f9c3a0);background-image:-o-linear-gradient(top,#c2530c,#f9c3a0);background-image:linear-gradient(to bottom,#c2530c,#f9c3a0);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffc2530c',endColorstr='#fff9c3a0',GradientType=0)}#navbar .navbar-inner.yellow{background-color:#e3d765;background-image:-moz-linear-gradient(top,#f9f0a0,#c2b00c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#f9f0a0),to(#c2b00c));background-image:-webkit-linear-gradient(top,#f9f0a0,#c2b00c);background-image:-o-linear-gradient(top,#f9f0a0,#c2b00c);background-image:linear-gradient(to bottom,#f9f0a0,#c2b00c);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9f0a0',endColorstr='#ffc2b00c',GradientType=0)}#navbar .navbar-inner.yellow .brand,#navbar .navbar-inner.yellow .nav>li>a{text-shadow:0 1px 0 #f6e970;color:#333}#navbar .navbar-inner.yellow .brand .caret,#navbar .navbar-inner.yellow .nav>li>a .caret{border-bottom-color:#93892e;border-top-color:#93892e}#navbar .navbar-inner.yellow .brand:hover .caret,#navbar .navbar-inner.yellow .nav>li>a:hover .caret,#navbar .navbar-inner.yellow .brand:focus .caret,#navbar .navbar-inner.yellow .nav>li>a:focus .caret{border-bottom-color:#635e30;border-top-color:#635e30}#navbar .navbar-inner.yellow .brand span{background-image:url(../img/tentacle-20x20.png)}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#navbar .navbar-inner.yellow .brand span{background-image:url(../img/tentacle-20x20@2x.png)}}#navbar .navbar-inner.yellow .nav li.dropdown.open>.dropdown-toggle,#navbar .navbar-inner.yellow .nav li.dropdown.active>.dropdown-toggle,#navbar .navbar-inner.yellow .nav li.dropdown.open.active>.dropdown-toggle{background-color:#d8ca47;background-image:-moz-linear-gradient(top,#c2b00c,#f9f0a0);background-image:-webkit-gradient(linear,0 0,0 100%,from(#c2b00c),to(#f9f0a0));background-image:-webkit-linear-gradient(top,#c2b00c,#f9f0a0);background-image:-o-linear-gradient(top,#c2b00c,#f9f0a0);background-image:linear-gradient(to bottom,#c2b00c,#f9f0a0);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffc2b00c',endColorstr='#fff9f0a0',GradientType=0)}#navbar .navbar-inner.green{background-color:#98f064;background-image:-moz-linear-gradient(top,#c8ffa7,#50da00);background-image:-webkit-gradient(linear,0 0,0 100%,from(#c8ffa7),to(#50da00));background-image:-webkit-linear-gradient(top,#c8ffa7,#50da00);background-image:-o-linear-gradient(top,#c8ffa7,#50da00);background-image:linear-gradient(to bottom,#c8ffa7,#50da00);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffc8ffa7',endColorstr='#ff50da00',GradientType=0)}#navbar .navbar-inner.green .brand,#navbar .navbar-inner.green .nav>li>a{text-shadow:0 1px 0 #a7ff74;color:#333}#navbar .navbar-inner.green .brand .caret,#navbar .navbar-inner.green .nav>li>a .caret{border-bottom-color:#55992e;border-top-color:#55992e}#navbar .navbar-inner.green .brand:hover .caret,#navbar .navbar-inner.green .nav>li>a:hover .caret,#navbar .navbar-inner.green .brand:focus .caret,#navbar .navbar-inner.green .nav>li>a:focus .caret{border-bottom-color:#446630;border-top-color:#446630}#navbar .navbar-inner.green .brand span{background-image:url(../img/tentacle-20x20.png)}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#navbar .navbar-inner.green .brand span{background-image:url(../img/tentacle-20x20@2x.png)}}#navbar .navbar-inner.green .nav li.dropdown.open>.dropdown-toggle,#navbar .navbar-inner.green .nav li.dropdown.active>.dropdown-toggle,#navbar .navbar-inner.green .nav li.dropdown.open.active>.dropdown-toggle{background-color:#80e943;background-image:-moz-linear-gradient(top,#50da00,#c8ffa7);background-image:-webkit-gradient(linear,0 0,0 100%,from(#50da00),to(#c8ffa7));background-image:-webkit-linear-gradient(top,#50da00,#c8ffa7);background-image:-o-linear-gradient(top,#50da00,#c8ffa7);background-image:linear-gradient(to bottom,#50da00,#c8ffa7);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff50da00',endColorstr='#ffc8ffa7',GradientType=0)}#navbar .navbar-inner.blue{background-color:#6498f0;background-image:-moz-linear-gradient(top,#a7c8ff,#0050da);background-image:-webkit-gradient(linear,0 0,0 100%,from(#a7c8ff),to(#0050da));background-image:-webkit-linear-gradient(top,#a7c8ff,#0050da);background-image:-o-linear-gradient(top,#a7c8ff,#0050da);background-image:linear-gradient(to bottom,#a7c8ff,#0050da);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffa7c8ff',endColorstr='#ff0050da',GradientType=0)}#navbar .navbar-inner.blue .brand,#navbar .navbar-inner.blue .nav>li>a{text-shadow:0 1px 0 #74a7ff;color:#333}#navbar .navbar-inner.blue .brand .caret,#navbar .navbar-inner.blue .nav>li>a .caret{border-bottom-color:#2e5599;border-top-color:#2e5599}#navbar .navbar-inner.blue .brand:hover .caret,#navbar .navbar-inner.blue .nav>li>a:hover .caret,#navbar .navbar-inner.blue .brand:focus .caret,#navbar .navbar-inner.blue .nav>li>a:focus .caret{border-bottom-color:#304466;border-top-color:#304466}#navbar .navbar-inner.blue .brand span{background-image:url(../img/tentacle-20x20.png)}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#navbar .navbar-inner.blue .brand span{background-image:url(../img/tentacle-20x20@2x.png)}}#navbar .navbar-inner.blue .nav li.dropdown.open>.dropdown-toggle,#navbar .navbar-inner.blue .nav li.dropdown.active>.dropdown-toggle,#navbar .navbar-inner.blue .nav li.dropdown.open.active>.dropdown-toggle{background-color:#4380e9;background-image:-moz-linear-gradient(top,#0050da,#a7c8ff);background-image:-webkit-gradient(linear,0 0,0 100%,from(#0050da),to(#a7c8ff));background-image:-webkit-linear-gradient(top,#0050da,#a7c8ff);background-image:-o-linear-gradient(top,#0050da,#a7c8ff);background-image:linear-gradient(to bottom,#0050da,#a7c8ff);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0050da',endColorstr='#ffa7c8ff',GradientType=0)}#navbar .navbar-inner.violet{background-color:#9864f0;background-image:-moz-linear-gradient(top,#c8a7ff,#5000da);background-image:-webkit-gradient(linear,0 0,0 100%,from(#c8a7ff),to(#5000da));background-image:-webkit-linear-gradient(top,#c8a7ff,#5000da);background-image:-o-linear-gradient(top,#c8a7ff,#5000da);background-image:linear-gradient(to bottom,#c8a7ff,#5000da);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffc8a7ff',endColorstr='#ff5000da',GradientType=0)}#navbar .navbar-inner.violet .brand,#navbar .navbar-inner.violet .nav>li>a{text-shadow:0 1px 0 #5000da;color:#f2f2f2}#navbar .navbar-inner.violet .brand .caret,#navbar .navbar-inner.violet .nav>li>a .caret{border-bottom-color:#b58df9;border-top-color:#b58df9}#navbar .navbar-inner.violet .brand:hover .caret,#navbar .navbar-inner.violet .nav>li>a:hover .caret,#navbar .navbar-inner.violet .brand:focus .caret,#navbar .navbar-inner.violet .nav>li>a:focus .caret{border-bottom-color:#d3c0f5;border-top-color:#d3c0f5}#navbar .navbar-inner.violet .brand span{background-image:url(../img/tentacle-20x20-light.png)}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#navbar .navbar-inner.violet .brand span{background-image:url(../img/tentacle-20x20-light@2x.png)}}#navbar .navbar-inner.violet .nav li.dropdown.open>.dropdown-toggle,#navbar .navbar-inner.violet .nav li.dropdown.active>.dropdown-toggle,#navbar .navbar-inner.violet .nav li.dropdown.open.active>.dropdown-toggle{background-color:#8043e9;background-image:-moz-linear-gradient(top,#5000da,#c8a7ff);background-image:-webkit-gradient(linear,0 0,0 100%,from(#5000da),to(#c8a7ff));background-image:-webkit-linear-gradient(top,#5000da,#c8a7ff);background-image:-o-linear-gradient(top,#5000da,#c8a7ff);background-image:linear-gradient(to bottom,#5000da,#c8a7ff);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5000da',endColorstr='#ffc8a7ff',GradientType=0)}#navbar .navbar-inner.black{background-color:#4f4f4f;background-image:-moz-linear-gradient(top,#787878,#121212);background-image:-webkit-gradient(linear,0 0,0 100%,from(#787878),to(#121212));background-image:-webkit-linear-gradient(top,#787878,#121212);background-image:-o-linear-gradient(top,#787878,#121212);background-image:linear-gradient(to bottom,#787878,#121212);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff787878',endColorstr='#ff121212',GradientType=0)}#navbar .navbar-inner.black .brand,#navbar .navbar-inner.black .nav>li>a{text-shadow:0 1px 0 #121212;color:#f2f2f2}#navbar .navbar-inner.black .brand .caret,#navbar .navbar-inner.black .nav>li>a .caret{border-bottom-color:#959595;border-top-color:#959595}#navbar .navbar-inner.black .brand:hover .caret,#navbar .navbar-inner.black .nav>li>a:hover .caret,#navbar .navbar-inner.black .brand:focus .caret,#navbar .navbar-inner.black .nav>li>a:focus .caret{border-bottom-color:#c4c4c4;border-top-color:#c4c4c4}#navbar .navbar-inner.black .brand span{background-image:url(../img/tentacle-20x20-light.png)}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#navbar .navbar-inner.black .brand span{background-image:url(../img/tentacle-20x20-light@2x.png)}}#navbar .navbar-inner.black .nav li.dropdown.open>.dropdown-toggle,#navbar .navbar-inner.black .nav li.dropdown.active>.dropdown-toggle,#navbar .navbar-inner.black .nav li.dropdown.open.active>.dropdown-toggle{background-color:#3b3b3b;background-image:-moz-linear-gradient(top,#121212,#787878);background-image:-webkit-gradient(linear,0 0,0 100%,from(#121212),to(#787878));background-image:-webkit-linear-gradient(top,#121212,#787878);background-image:-o-linear-gradient(top,#121212,#787878);background-image:linear-gradient(to bottom,#121212,#787878);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff121212',endColorstr='#ff787878',GradientType=0)}#navbar .navbar-inner .brand span{background-size:20px 20px;background-position:left center;padding-left:24px;background-repeat:no-repeat}.octoprint-container .tab-content{padding:9px 15px;border-left:1px solid #DDD;border-right:1px solid #DDD;border-bottom:1px solid #DDD;-webkit-border-bottom-right-radius:4px;-moz-border-radius-bottomright:4px;border-bottom-right-radius:4px;-webkit-border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px;border-bottom-left-radius:4px}.octoprint-container .nav{margin-bottom:0}.octoprint-container .tab-content h1{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:40px;color:#333;border:0;border-bottom:1px solid #e5e5e5;font-weight:normal}.octoprint-container .accordion-heading .accordion-heading-button{float:right}.octoprint-container .accordion-heading .accordion-heading-button a{display:inline-block;padding:8px 15px;font-size:14px;line-height:20px;color:#000;text-decoration:none;background:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.octoprint-container .accordion-heading a.accordion-toggle{display:inline-block}.octoprint-container .accordion-heading [class^="icon-"],.octoprint-container .accordion-heading [class*=" icon-"]{color:#000}.print-control .btn{padding-left:4px;padding-right:4px}.upload-buttons .btn{margin-right:0}table{table-layout:fixed}table .popover-title{text-overflow:ellipsis;word-break:break-all}table th,table td{overflow:hidden}table th.gcode_files_name,table td.gcode_files_name{text-overflow:ellipsis;white-space:nowrap;text-align:left}table th.gcode_files_action,table td.gcode_files_action{text-align:center;width:90px}table th.gcode_files_action a,table td.gcode_files_action a{text-decoration:none;color:#000}table th.gcode_files_action a.disabled,table td.gcode_files_action a.disabled{color:#ccc;cursor:default}table th.timelapse_files_name,table td.timelapse_files_name{text-overflow:ellipsis;text-align:left}table th.timelapse_files_size,table td.timelapse_files_size{text-align:right;width:55px}table th.timelapse_files_action,table td.timelapse_files_action{text-align:center;width:45px}table th.timelapse_files_action a,table td.timelapse_files_action a{text-decoration:none;color:#000}table th.timelapse_files_action a.disabled,table td.timelapse_files_action a.disabled{color:#ccc;cursor:default}table th.settings_users_name,table td.settings_users_name{text-overflow:ellipsis;text-align:left}table th.settings_users_active,table td.settings_users_active,table th.settings_users_admin,table td.settings_users_admin{text-align:center;width:55px}table th.settings_users_actions,table td.settings_users_actions{text-align:center;width:60px}table th.settings_users_actions a,table td.settings_users_actions a{text-decoration:none;color:#000}table th.settings_users_actions a.disabled,table td.settings_users_actions a.disabled{color:#ccc;cursor:default}table th.settings_logs_name,table td.settings_logs_name{text-overflow:ellipsis;text-align:left}table th.settings_logs_size,table td.settings_logs_size{text-align:right;width:70px}table th.settings_logs_date,table td.settings_logs_date{text-align:left;width:130px}table th.settings_logs_action,table td.settings_logs_action{text-align:center;width:70px}table th.settings_logs_action a,table td.settings_logs_action a{text-decoration:none;color:#000}table th.settings_logs_action a.disabled,table td.settings_logs_action a.disabled{color:#ccc;cursor:default}#temperature-graph{height:350px;width:100%;background-image:url("../img/graph-background.png");background-position:center;background-repeat:no-repeat}.tab-content,.tab-pane{overflow:visible}.tempInput{width:50px}#temp_newTemp,#temp_newBedTemp,#speed_innerWall,#speed_outerWall,#speed_fill,#speed_support,#webcam_timelapse_interval,#webcam_timelapse_postRoll{text-align:right}ul.dropdown-menu li a{cursor:pointer}#connection_ports,#connection_baudrates{width:100%}#offline_overlay{position:fixed;top:0;left:0;width:100%;height:100%;z-index:10000;display:none}#offline_overlay_background{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000;filter:alpha(opacity=50);-moz-opacity:.5;-khtml-opacity:.5;opacity:.5}#offline_overlay_wrapper{position:absolute;top:0;bottom:0;left:0;right:0;padding-top:60px}#offline_overlay_wrapper .container{margin:auto}#webcam_container{width:100%}#webcam_container .flipH{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1)}#webcam_container .flipV{-webkit-transform:scaleY(-1);-moz-transform:scaleY(-1)}#webcam_container .flipH.flipV{-webkit-transform:scaleX(-1) scaleY(-1);-moz-transform:scaleX(-1) scaleY(-1)}#files .gcode_files{padding-right:7px}#files .gcode_files .entry{padding:5px;line-height:20px;border-bottom:1px solid #ddd;position:relative}#files .gcode_files .entry:hover{background-color:#f5f5f5}#files .gcode_files .entry .title{text-overflow:ellipsis;word-break:break-all}#files .gcode_files .entry .uploaded,#files .gcode_files .entry .size,#files .gcode_files .entry .additionalInfo{font-size:85%;color:#999}#files .gcode_files .entry .action-buttons{position:absolute;bottom:5px;right:5px}#files .gcode_files .entry .additionalInfo{padding-bottom:22px}#files .upload-buttons{margin-top:10px}#files .form-search{text-align:center;margin-bottom:5px!important}#control{overflow:hidden}#control .jog-panel{float:left;margin-right:19px}#control h1{text-align:left}#control .jog-panel>div{text-align:center}#control .jog-panel>div.distance{text-align:left}#control .box{width:30px;height:30px;margin-right:10px;margin-bottom:10px;padding-left:8px}#control .control-box{display:block;height:30px;margin-bottom:10px}#control .btn-group{margin-bottom:10px}#control .btn-group.distance>.btn{width:43px;padding:3px 0;height:30px}#gcode .progress{width:582px}#gcode .progress .bar{-webkit-transition:width 0s linear;-moz-transition:width 0s linear;-o-transition:width 0s linear;transition:width 0s linear}#gcode #gcode_layer_slider{height:568px;float:right}#gcode #gcode_layer_slider .slider-handle{width:14px;height:14px;margin-left:-3px;margin-top:-7px}#gcode #gcode_command_slider .slider-handle{width:14px;height:14px;margin-left:-7px;margin-top:-3px}#term #terminal-output{min-height:340px}.footer ul{margin:0}.footer ul li{display:inline;margin-left:1em;font-size:85%}.footer ul li:first-child{margin-left:0}.footer ul li a{color:#555}.ui-pnotify .alert a{color:#c09853}.ui-pnotify .alert-error a,.ui-pnotify .alert-danger a{color:#b94a48}.ui-pnotify .alert-success a{color:#468847}.ui-pnotify .alert-info a{color:#3a87ad}.pnotify_additional_info .pnotify_more{font-size:85%}.text-right{text-align:right}.overflow_visible{overflow:visible!important}#drop_overlay{position:fixed;top:0;left:0;width:100%;height:100%;z-index:10000;display:none}#drop_overlay.in{display:block}#drop_overlay #drop_overlay_background{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000;filter:alpha(opacity=50);-moz-opacity:.5;-khtml-opacity:.5;opacity:.5}#drop_overlay #drop_overlay_wrapper{position:absolute;top:0;bottom:0;left:0;right:0;padding-top:60px}#drop_overlay #drop_overlay_wrapper #drop,#drop_overlay #drop_overlay_wrapper #drop_background{position:absolute;top:50%;left:50%;margin-left:-200px;margin-top:-200px}#drop_overlay #drop_overlay_wrapper #drop_locally,#drop_overlay #drop_overlay_wrapper #drop_locally_background{position:absolute;top:50%;left:50%;margin-left:-425px;margin-top:-200px}#drop_overlay #drop_overlay_wrapper #drop_sd,#drop_overlay #drop_overlay_wrapper #drop_sd_background{position:absolute;top:50%;left:50%;margin-left:25px;margin-top:-200px}#drop_overlay #drop_overlay_wrapper .dropzone{width:404px;height:404px;z-index:10001;color:#fff;font-size:30px}#drop_overlay #drop_overlay_wrapper .dropzone i{font-size:50px}#drop_overlay #drop_overlay_wrapper .dropzone .centered{display:table-cell;text-align:center;vertical-align:middle;width:400px;height:400px;line-height:40px;filter:alpha(opacity=100);-moz-opacity:1.0;-khtml-opacity:1.0;opacity:1.0}#drop_overlay #drop_overlay_wrapper .dropzone_background{width:400px;height:400px;border:2px dashed #eee;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;background-color:#000;filter:alpha(opacity=25);-moz-opacity:.25;-khtml-opacity:.25;opacity:.25}#drop_overlay #drop_overlay_wrapper .dropzone_background.hover{background-color:#000;filter:alpha(opacity=50);-moz-opacity:.5;-khtml-opacity:.5;opacity:.5}#drop_overlay #drop_overlay_wrapper .dropzone_background.fade{-webkit-transition:all .3s ease-out;-moz-transition:all .3s ease-out;-ms-transition:all .3s ease-out;-o-transition:all .3s ease-out;transition:all .3s ease-out;opacity:1}.icon-sd-black-14{background:url("../img/icon-sd-black-14.png") 0 3px no-repeat;width:11px;height:17px;display:inline-block!important}.center{float:none;margin-left:auto;margin-right:auto}.slider .slider-selection{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#006dcc;background-image:-moz-linear-gradient(top,#08c,#04c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#04c));background-image:-webkit-linear-gradient(top,#08c,#04c);background-image:-o-linear-gradient(top,#08c,#04c);background-image:linear-gradient(to bottom,#08c,#04c);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0044cc',GradientType=0);border-color:#04c #04c #002a80;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#04c;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.slider .slider-selection:hover,.slider .slider-selection:focus,.slider .slider-selection:active,.slider .slider-selection.active,.slider .slider-selection.disabled,.slider .slider-selection[disabled]{color:#fff;background-color:#04c;*background-color:#003bb3}.slider .slider-selection:active,.slider .slider-selection.active{background-color:#039 \9}.slider.slider-disabled .slider-selection{background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.slider .slider-track{background-color:#f5f5f5;border:1px solid #e3e3e3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);box-shadow:inset 0 1px 1px rgba(0,0,0,0.05)}.slider.slider-disabled .slider-track{background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.slider .slider-handle{display:inline-block;*display:inline;*zoom:1;padding:4px 12px;font-size:14px;line-height:20px;text-align:center;vertical-align:middle;cursor:pointer;color:#333;text-shadow:0 1px 1px rgba(255,255,255,0.75);background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe6e6e6',GradientType=0);border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#e6e6e6;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);border:1px solid #ccc;*border:0;border-bottom-color:#b3b3b3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;*margin-left:.3em;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);padding:0;margin-bottom:0;opacity:1;filter:alpha(opacity=100)}.slider .slider-handle:hover,.slider .slider-handle:focus,.slider .slider-handle:active,.slider .slider-handle.active,.slider .slider-handle.disabled,.slider .slider-handle[disabled]{color:#333;background-color:#e6e6e6;*background-color:#d9d9d9}.slider .slider-handle:active,.slider .slider-handle.active{background-color:#ccc \9}.slider .slider-handle:first-child{*margin-left:0}.slider .slider-handle:hover,.slider .slider-handle:focus{color:#333;text-decoration:none;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.slider .slider-handle:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.slider .slider-handle.active,.slider .slider-handle:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.slider .slider-handle.disabled,.slider .slider-handle[disabled]{cursor:default;background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.slider .slider-handle.hide{display:none}.slider .slider-handle.round{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%} \ No newline at end of file +.btn{display:inline-block;*display:inline;*zoom:1;padding:4px 12px;margin-bottom:0;font-size:14px;line-height:20px;text-align:center;vertical-align:middle;cursor:pointer;color:#333;text-shadow:0 1px 1px rgba(255,255,255,0.75);background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe6e6e6',GradientType=0);border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#e6e6e6;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);border:1px solid #ccc;*border:0;border-bottom-color:#b3b3b3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;*margin-left:.3em;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05)}.btn:hover,.btn:focus,.btn:active,.btn.active,.btn.disabled,.btn[disabled]{color:#333;background-color:#e6e6e6;*background-color:#d9d9d9}.btn:active,.btn.active{background-color:#ccc \9}.btn:first-child{*margin-left:0}.btn:hover,.btn:focus{color:#333;text-decoration:none;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.btn:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.btn.disabled,.btn[disabled]{cursor:default;background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.btn-large{padding:11px 19px;font-size:17.5px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.btn-large [class^="icon-"],.btn-large [class*=" icon-"]{margin-top:4px}.btn-small{padding:2px 10px;font-size:11.9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-small [class^="icon-"],.btn-small [class*=" icon-"]{margin-top:0}.btn-mini [class^="icon-"],.btn-mini [class*=" icon-"]{margin-top:-1px}.btn-mini{padding:0 6px;font-size:10.5px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-block{display:block;width:100%;padding-left:0;padding-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.btn-block+.btn-block{margin-top:5px}input[type="submit"].btn-block,input[type="reset"].btn-block,input[type="button"].btn-block{width:100%}.btn-primary.active,.btn-warning.active,.btn-danger.active,.btn-success.active,.btn-info.active,.btn-inverse.active{color:rgba(255,255,255,0.75)}.btn-primary{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#006dcc;background-image:-moz-linear-gradient(top,#08c,#04c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#04c));background-image:-webkit-linear-gradient(top,#08c,#04c);background-image:-o-linear-gradient(top,#08c,#04c);background-image:linear-gradient(to bottom,#08c,#04c);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0044cc',GradientType=0);border-color:#04c #04c #002a80;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#04c;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.btn-primary.active,.btn-primary.disabled,.btn-primary[disabled]{color:#fff;background-color:#04c;*background-color:#003bb3}.btn-primary:active,.btn-primary.active{background-color:#039 \9}.btn-warning{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#faa732;background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fbb450),to(#f89406));background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(to bottom,#fbb450,#f89406);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450',endColorstr='#fff89406',GradientType=0);border-color:#f89406 #f89406 #ad6704;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#f89406;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.btn-warning:hover,.btn-warning:focus,.btn-warning:active,.btn-warning.active,.btn-warning.disabled,.btn-warning[disabled]{color:#fff;background-color:#f89406;*background-color:#df8505}.btn-warning:active,.btn-warning.active{background-color:#c67605 \9}.btn-danger{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#da4f49;background-image:-moz-linear-gradient(top,#ee5f5b,#bd362f);background-image:-webkit-gradient(linear,0 0,0 100%,from(#ee5f5b),to(#bd362f));background-image:-webkit-linear-gradient(top,#ee5f5b,#bd362f);background-image:-o-linear-gradient(top,#ee5f5b,#bd362f);background-image:linear-gradient(to bottom,#ee5f5b,#bd362f);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b',endColorstr='#ffbd362f',GradientType=0);border-color:#bd362f #bd362f #802420;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#bd362f;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.btn-danger:hover,.btn-danger:focus,.btn-danger:active,.btn-danger.active,.btn-danger.disabled,.btn-danger[disabled]{color:#fff;background-color:#bd362f;*background-color:#a9302a}.btn-danger:active,.btn-danger.active{background-color:#942a25 \9}.btn-success{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#5bb75b;background-image:-moz-linear-gradient(top,#62c462,#51a351);background-image:-webkit-gradient(linear,0 0,0 100%,from(#62c462),to(#51a351));background-image:-webkit-linear-gradient(top,#62c462,#51a351);background-image:-o-linear-gradient(top,#62c462,#51a351);background-image:linear-gradient(to bottom,#62c462,#51a351);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462',endColorstr='#ff51a351',GradientType=0);border-color:#51a351 #51a351 #387038;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#51a351;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.btn-success:hover,.btn-success:focus,.btn-success:active,.btn-success.active,.btn-success.disabled,.btn-success[disabled]{color:#fff;background-color:#51a351;*background-color:#499249}.btn-success:active,.btn-success.active{background-color:#408140 \9}.btn-info{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#49afcd;background-image:-moz-linear-gradient(top,#5bc0de,#2f96b4);background-image:-webkit-gradient(linear,0 0,0 100%,from(#5bc0de),to(#2f96b4));background-image:-webkit-linear-gradient(top,#5bc0de,#2f96b4);background-image:-o-linear-gradient(top,#5bc0de,#2f96b4);background-image:linear-gradient(to bottom,#5bc0de,#2f96b4);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de',endColorstr='#ff2f96b4',GradientType=0);border-color:#2f96b4 #2f96b4 #1f6377;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#2f96b4;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.btn-info:hover,.btn-info:focus,.btn-info:active,.btn-info.active,.btn-info.disabled,.btn-info[disabled]{color:#fff;background-color:#2f96b4;*background-color:#2a85a0}.btn-info:active,.btn-info.active{background-color:#24748c \9}.btn-inverse{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#363636;background-image:-moz-linear-gradient(top,#444,#222);background-image:-webkit-gradient(linear,0 0,0 100%,from(#444),to(#222));background-image:-webkit-linear-gradient(top,#444,#222);background-image:-o-linear-gradient(top,#444,#222);background-image:linear-gradient(to bottom,#444,#222);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff444444',endColorstr='#ff222222',GradientType=0);border-color:#222 #222 #000;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#222;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.btn-inverse:hover,.btn-inverse:focus,.btn-inverse:active,.btn-inverse.active,.btn-inverse.disabled,.btn-inverse[disabled]{color:#fff;background-color:#222;*background-color:#151515}.btn-inverse:active,.btn-inverse.active{background-color:#080808 \9}button.btn,input[type="submit"].btn{*padding-top:3px;*padding-bottom:3px}button.btn::-moz-focus-inner,input[type="submit"].btn::-moz-focus-inner{padding:0;border:0}button.btn.btn-large,input[type="submit"].btn.btn-large{*padding-top:7px;*padding-bottom:7px}button.btn.btn-small,input[type="submit"].btn.btn-small{*padding-top:3px;*padding-bottom:3px}button.btn.btn-mini,input[type="submit"].btn.btn-mini{*padding-top:1px;*padding-bottom:1px}.btn-link,.btn-link:active,.btn-link[disabled]{background-color:transparent;background-image:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.btn-link{border-color:transparent;cursor:pointer;color:#08c;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.btn-link:hover,.btn-link:focus{color:#005580;text-decoration:underline;background-color:transparent}.btn-link[disabled]:hover,.btn-link[disabled]:focus{color:#333;text-decoration:none}.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:"";line-height:0}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#navbar .navbar-inner{background-color:#ebebeb;background-image:-moz-linear-gradient(top,#fff,#ccc);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#ccc));background-image:-webkit-linear-gradient(top,#fff,#ccc);background-image:-o-linear-gradient(top,#fff,#ccc);background-image:linear-gradient(to bottom,#fff,#ccc);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffcccccc',GradientType=0)}#navbar .navbar-inner .brand,#navbar .navbar-inner .nav>li>a{text-shadow:0 1px 0 #fff;color:#333}#navbar .navbar-inner .brand .caret,#navbar .navbar-inner .nav>li>a .caret{border-bottom-color:#939393;border-top-color:#939393}#navbar .navbar-inner .brand:hover .caret,#navbar .navbar-inner .nav>li>a:hover .caret,#navbar .navbar-inner .brand:focus .caret,#navbar .navbar-inner .nav>li>a:focus .caret{border-bottom-color:#636363;border-top-color:#636363}#navbar .navbar-inner .brand span{background-image:url(../img/tentacle-20x20.png)}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#navbar .navbar-inner .brand span{background-image:url(../img/tentacle-20x20@2x.png)}}#navbar .navbar-inner .nav li.dropdown.open>.dropdown-toggle,#navbar .navbar-inner .nav li.dropdown.active>.dropdown-toggle,#navbar .navbar-inner .nav li.dropdown.open.active>.dropdown-toggle{background-color:#e0e0e0;background-image:-moz-linear-gradient(top,#ccc,#fff);background-image:-webkit-gradient(linear,0 0,0 100%,from(#ccc),to(#fff));background-image:-webkit-linear-gradient(top,#ccc,#fff);background-image:-o-linear-gradient(top,#ccc,#fff);background-image:linear-gradient(to bottom,#ccc,#fff);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffcccccc',endColorstr='#ffffffff',GradientType=0)}#navbar .navbar-inner.red{background-color:#e36565;background-image:-moz-linear-gradient(top,#f9a0a0,#c20c0c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#f9a0a0),to(#c20c0c));background-image:-webkit-linear-gradient(top,#f9a0a0,#c20c0c);background-image:-o-linear-gradient(top,#f9a0a0,#c20c0c);background-image:linear-gradient(to bottom,#f9a0a0,#c20c0c);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9a0a0',endColorstr='#ffc20c0c',GradientType=0)}#navbar .navbar-inner.red .brand,#navbar .navbar-inner.red .nav>li>a{text-shadow:0 1px 0 #c20c0c;color:#f2f2f2}#navbar .navbar-inner.red .brand .caret,#navbar .navbar-inner.red .nav>li>a .caret{border-bottom-color:#f28d8d;border-top-color:#f28d8d}#navbar .navbar-inner.red .brand:hover .caret,#navbar .navbar-inner.red .nav>li>a:hover .caret,#navbar .navbar-inner.red .brand:focus .caret,#navbar .navbar-inner.red .nav>li>a:focus .caret{border-bottom-color:#f2c0c0;border-top-color:#f2c0c0}#navbar .navbar-inner.red .brand span{background-image:url(../img/tentacle-20x20-light.png)}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#navbar .navbar-inner.red .brand span{background-image:url(../img/tentacle-20x20-light@2x.png)}}#navbar .navbar-inner.red .nav li.dropdown.open>.dropdown-toggle,#navbar .navbar-inner.red .nav li.dropdown.active>.dropdown-toggle,#navbar .navbar-inner.red .nav li.dropdown.open.active>.dropdown-toggle{background-color:#d84747;background-image:-moz-linear-gradient(top,#c20c0c,#f9a0a0);background-image:-webkit-gradient(linear,0 0,0 100%,from(#c20c0c),to(#f9a0a0));background-image:-webkit-linear-gradient(top,#c20c0c,#f9a0a0);background-image:-o-linear-gradient(top,#c20c0c,#f9a0a0);background-image:linear-gradient(to bottom,#c20c0c,#f9a0a0);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffc20c0c',endColorstr='#fff9a0a0',GradientType=0)}#navbar .navbar-inner.orange{background-color:#e39665;background-image:-moz-linear-gradient(top,#f9c3a0,#c2530c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#f9c3a0),to(#c2530c));background-image:-webkit-linear-gradient(top,#f9c3a0,#c2530c);background-image:-o-linear-gradient(top,#f9c3a0,#c2530c);background-image:linear-gradient(to bottom,#f9c3a0,#c2530c);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9c3a0',endColorstr='#ffc2530c',GradientType=0)}#navbar .navbar-inner.orange .brand,#navbar .navbar-inner.orange .nav>li>a{text-shadow:0 1px 0 #f6a570;color:#333}#navbar .navbar-inner.orange .brand .caret,#navbar .navbar-inner.orange .nav>li>a .caret{border-bottom-color:#93552e;border-top-color:#93552e}#navbar .navbar-inner.orange .brand:hover .caret,#navbar .navbar-inner.orange .nav>li>a:hover .caret,#navbar .navbar-inner.orange .brand:focus .caret,#navbar .navbar-inner.orange .nav>li>a:focus .caret{border-bottom-color:#634430;border-top-color:#634430}#navbar .navbar-inner.orange .brand span{background-image:url(../img/tentacle-20x20.png)}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#navbar .navbar-inner.orange .brand span{background-image:url(../img/tentacle-20x20@2x.png)}}#navbar .navbar-inner.orange .nav li.dropdown.open>.dropdown-toggle,#navbar .navbar-inner.orange .nav li.dropdown.active>.dropdown-toggle,#navbar .navbar-inner.orange .nav li.dropdown.open.active>.dropdown-toggle{background-color:#d88047;background-image:-moz-linear-gradient(top,#c2530c,#f9c3a0);background-image:-webkit-gradient(linear,0 0,0 100%,from(#c2530c),to(#f9c3a0));background-image:-webkit-linear-gradient(top,#c2530c,#f9c3a0);background-image:-o-linear-gradient(top,#c2530c,#f9c3a0);background-image:linear-gradient(to bottom,#c2530c,#f9c3a0);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffc2530c',endColorstr='#fff9c3a0',GradientType=0)}#navbar .navbar-inner.yellow{background-color:#e3d765;background-image:-moz-linear-gradient(top,#f9f0a0,#c2b00c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#f9f0a0),to(#c2b00c));background-image:-webkit-linear-gradient(top,#f9f0a0,#c2b00c);background-image:-o-linear-gradient(top,#f9f0a0,#c2b00c);background-image:linear-gradient(to bottom,#f9f0a0,#c2b00c);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9f0a0',endColorstr='#ffc2b00c',GradientType=0)}#navbar .navbar-inner.yellow .brand,#navbar .navbar-inner.yellow .nav>li>a{text-shadow:0 1px 0 #f6e970;color:#333}#navbar .navbar-inner.yellow .brand .caret,#navbar .navbar-inner.yellow .nav>li>a .caret{border-bottom-color:#93892e;border-top-color:#93892e}#navbar .navbar-inner.yellow .brand:hover .caret,#navbar .navbar-inner.yellow .nav>li>a:hover .caret,#navbar .navbar-inner.yellow .brand:focus .caret,#navbar .navbar-inner.yellow .nav>li>a:focus .caret{border-bottom-color:#635e30;border-top-color:#635e30}#navbar .navbar-inner.yellow .brand span{background-image:url(../img/tentacle-20x20.png)}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#navbar .navbar-inner.yellow .brand span{background-image:url(../img/tentacle-20x20@2x.png)}}#navbar .navbar-inner.yellow .nav li.dropdown.open>.dropdown-toggle,#navbar .navbar-inner.yellow .nav li.dropdown.active>.dropdown-toggle,#navbar .navbar-inner.yellow .nav li.dropdown.open.active>.dropdown-toggle{background-color:#d8ca47;background-image:-moz-linear-gradient(top,#c2b00c,#f9f0a0);background-image:-webkit-gradient(linear,0 0,0 100%,from(#c2b00c),to(#f9f0a0));background-image:-webkit-linear-gradient(top,#c2b00c,#f9f0a0);background-image:-o-linear-gradient(top,#c2b00c,#f9f0a0);background-image:linear-gradient(to bottom,#c2b00c,#f9f0a0);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffc2b00c',endColorstr='#fff9f0a0',GradientType=0)}#navbar .navbar-inner.green{background-color:#98f064;background-image:-moz-linear-gradient(top,#c8ffa7,#50da00);background-image:-webkit-gradient(linear,0 0,0 100%,from(#c8ffa7),to(#50da00));background-image:-webkit-linear-gradient(top,#c8ffa7,#50da00);background-image:-o-linear-gradient(top,#c8ffa7,#50da00);background-image:linear-gradient(to bottom,#c8ffa7,#50da00);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffc8ffa7',endColorstr='#ff50da00',GradientType=0)}#navbar .navbar-inner.green .brand,#navbar .navbar-inner.green .nav>li>a{text-shadow:0 1px 0 #a7ff74;color:#333}#navbar .navbar-inner.green .brand .caret,#navbar .navbar-inner.green .nav>li>a .caret{border-bottom-color:#55992e;border-top-color:#55992e}#navbar .navbar-inner.green .brand:hover .caret,#navbar .navbar-inner.green .nav>li>a:hover .caret,#navbar .navbar-inner.green .brand:focus .caret,#navbar .navbar-inner.green .nav>li>a:focus .caret{border-bottom-color:#446630;border-top-color:#446630}#navbar .navbar-inner.green .brand span{background-image:url(../img/tentacle-20x20.png)}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#navbar .navbar-inner.green .brand span{background-image:url(../img/tentacle-20x20@2x.png)}}#navbar .navbar-inner.green .nav li.dropdown.open>.dropdown-toggle,#navbar .navbar-inner.green .nav li.dropdown.active>.dropdown-toggle,#navbar .navbar-inner.green .nav li.dropdown.open.active>.dropdown-toggle{background-color:#80e943;background-image:-moz-linear-gradient(top,#50da00,#c8ffa7);background-image:-webkit-gradient(linear,0 0,0 100%,from(#50da00),to(#c8ffa7));background-image:-webkit-linear-gradient(top,#50da00,#c8ffa7);background-image:-o-linear-gradient(top,#50da00,#c8ffa7);background-image:linear-gradient(to bottom,#50da00,#c8ffa7);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff50da00',endColorstr='#ffc8ffa7',GradientType=0)}#navbar .navbar-inner.blue{background-color:#6498f0;background-image:-moz-linear-gradient(top,#a7c8ff,#0050da);background-image:-webkit-gradient(linear,0 0,0 100%,from(#a7c8ff),to(#0050da));background-image:-webkit-linear-gradient(top,#a7c8ff,#0050da);background-image:-o-linear-gradient(top,#a7c8ff,#0050da);background-image:linear-gradient(to bottom,#a7c8ff,#0050da);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffa7c8ff',endColorstr='#ff0050da',GradientType=0)}#navbar .navbar-inner.blue .brand,#navbar .navbar-inner.blue .nav>li>a{text-shadow:0 1px 0 #74a7ff;color:#333}#navbar .navbar-inner.blue .brand .caret,#navbar .navbar-inner.blue .nav>li>a .caret{border-bottom-color:#2e5599;border-top-color:#2e5599}#navbar .navbar-inner.blue .brand:hover .caret,#navbar .navbar-inner.blue .nav>li>a:hover .caret,#navbar .navbar-inner.blue .brand:focus .caret,#navbar .navbar-inner.blue .nav>li>a:focus .caret{border-bottom-color:#304466;border-top-color:#304466}#navbar .navbar-inner.blue .brand span{background-image:url(../img/tentacle-20x20.png)}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#navbar .navbar-inner.blue .brand span{background-image:url(../img/tentacle-20x20@2x.png)}}#navbar .navbar-inner.blue .nav li.dropdown.open>.dropdown-toggle,#navbar .navbar-inner.blue .nav li.dropdown.active>.dropdown-toggle,#navbar .navbar-inner.blue .nav li.dropdown.open.active>.dropdown-toggle{background-color:#4380e9;background-image:-moz-linear-gradient(top,#0050da,#a7c8ff);background-image:-webkit-gradient(linear,0 0,0 100%,from(#0050da),to(#a7c8ff));background-image:-webkit-linear-gradient(top,#0050da,#a7c8ff);background-image:-o-linear-gradient(top,#0050da,#a7c8ff);background-image:linear-gradient(to bottom,#0050da,#a7c8ff);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0050da',endColorstr='#ffa7c8ff',GradientType=0)}#navbar .navbar-inner.violet{background-color:#9864f0;background-image:-moz-linear-gradient(top,#c8a7ff,#5000da);background-image:-webkit-gradient(linear,0 0,0 100%,from(#c8a7ff),to(#5000da));background-image:-webkit-linear-gradient(top,#c8a7ff,#5000da);background-image:-o-linear-gradient(top,#c8a7ff,#5000da);background-image:linear-gradient(to bottom,#c8a7ff,#5000da);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffc8a7ff',endColorstr='#ff5000da',GradientType=0)}#navbar .navbar-inner.violet .brand,#navbar .navbar-inner.violet .nav>li>a{text-shadow:0 1px 0 #5000da;color:#f2f2f2}#navbar .navbar-inner.violet .brand .caret,#navbar .navbar-inner.violet .nav>li>a .caret{border-bottom-color:#b58df9;border-top-color:#b58df9}#navbar .navbar-inner.violet .brand:hover .caret,#navbar .navbar-inner.violet .nav>li>a:hover .caret,#navbar .navbar-inner.violet .brand:focus .caret,#navbar .navbar-inner.violet .nav>li>a:focus .caret{border-bottom-color:#d3c0f5;border-top-color:#d3c0f5}#navbar .navbar-inner.violet .brand span{background-image:url(../img/tentacle-20x20-light.png)}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#navbar .navbar-inner.violet .brand span{background-image:url(../img/tentacle-20x20-light@2x.png)}}#navbar .navbar-inner.violet .nav li.dropdown.open>.dropdown-toggle,#navbar .navbar-inner.violet .nav li.dropdown.active>.dropdown-toggle,#navbar .navbar-inner.violet .nav li.dropdown.open.active>.dropdown-toggle{background-color:#8043e9;background-image:-moz-linear-gradient(top,#5000da,#c8a7ff);background-image:-webkit-gradient(linear,0 0,0 100%,from(#5000da),to(#c8a7ff));background-image:-webkit-linear-gradient(top,#5000da,#c8a7ff);background-image:-o-linear-gradient(top,#5000da,#c8a7ff);background-image:linear-gradient(to bottom,#5000da,#c8a7ff);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5000da',endColorstr='#ffc8a7ff',GradientType=0)}#navbar .navbar-inner.black{background-color:#4f4f4f;background-image:-moz-linear-gradient(top,#787878,#121212);background-image:-webkit-gradient(linear,0 0,0 100%,from(#787878),to(#121212));background-image:-webkit-linear-gradient(top,#787878,#121212);background-image:-o-linear-gradient(top,#787878,#121212);background-image:linear-gradient(to bottom,#787878,#121212);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff787878',endColorstr='#ff121212',GradientType=0)}#navbar .navbar-inner.black .brand,#navbar .navbar-inner.black .nav>li>a{text-shadow:0 1px 0 #121212;color:#f2f2f2}#navbar .navbar-inner.black .brand .caret,#navbar .navbar-inner.black .nav>li>a .caret{border-bottom-color:#959595;border-top-color:#959595}#navbar .navbar-inner.black .brand:hover .caret,#navbar .navbar-inner.black .nav>li>a:hover .caret,#navbar .navbar-inner.black .brand:focus .caret,#navbar .navbar-inner.black .nav>li>a:focus .caret{border-bottom-color:#c4c4c4;border-top-color:#c4c4c4}#navbar .navbar-inner.black .brand span{background-image:url(../img/tentacle-20x20-light.png)}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#navbar .navbar-inner.black .brand span{background-image:url(../img/tentacle-20x20-light@2x.png)}}#navbar .navbar-inner.black .nav li.dropdown.open>.dropdown-toggle,#navbar .navbar-inner.black .nav li.dropdown.active>.dropdown-toggle,#navbar .navbar-inner.black .nav li.dropdown.open.active>.dropdown-toggle{background-color:#3b3b3b;background-image:-moz-linear-gradient(top,#121212,#787878);background-image:-webkit-gradient(linear,0 0,0 100%,from(#121212),to(#787878));background-image:-webkit-linear-gradient(top,#121212,#787878);background-image:-o-linear-gradient(top,#121212,#787878);background-image:linear-gradient(to bottom,#121212,#787878);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff121212',endColorstr='#ff787878',GradientType=0)}#navbar .navbar-inner .brand span{background-size:20px 20px;background-position:left center;padding-left:24px;background-repeat:no-repeat}.octoprint-container{margin-top:20px}.octoprint-container .tab-content{padding:9px 15px;border-left:1px solid #DDD;border-right:1px solid #DDD;border-bottom:1px solid #DDD;-webkit-border-bottom-right-radius:4px;-moz-border-radius-bottomright:4px;border-bottom-right-radius:4px;-webkit-border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px;border-bottom-left-radius:4px}.octoprint-container .nav{margin-bottom:0}.octoprint-container .tab-content h1{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:40px;color:#333;border:0;border-bottom:1px solid #e5e5e5;font-weight:normal}.octoprint-container .accordion-heading .accordion-heading-button{float:right}.octoprint-container .accordion-heading .accordion-heading-button a{display:inline-block;padding:8px 15px;font-size:14px;line-height:20px;color:#000;text-decoration:none;background:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.octoprint-container .accordion-heading a.accordion-toggle{display:inline-block}.octoprint-container .accordion-heading [class^="icon-"],.octoprint-container .accordion-heading [class*=" icon-"]{color:#000}.print-control .btn{padding-left:4px;padding-right:4px}.upload-buttons .btn{margin-right:0}table{table-layout:fixed}table .popover-title{text-overflow:ellipsis;word-break:break-all}table th,table td{overflow:hidden}table th.gcode_files_name,table td.gcode_files_name{text-overflow:ellipsis;white-space:nowrap;text-align:left}table th.gcode_files_action,table td.gcode_files_action{text-align:center;width:90px}table th.gcode_files_action a,table td.gcode_files_action a{text-decoration:none;color:#000}table th.gcode_files_action a.disabled,table td.gcode_files_action a.disabled{color:#ccc;cursor:default}table th.timelapse_files_name,table td.timelapse_files_name{text-overflow:ellipsis;text-align:left}table th.timelapse_files_size,table td.timelapse_files_size{text-align:right;width:55px}table th.timelapse_files_action,table td.timelapse_files_action{text-align:center;width:45px}table th.timelapse_files_action a,table td.timelapse_files_action a{text-decoration:none;color:#000}table th.timelapse_files_action a.disabled,table td.timelapse_files_action a.disabled{color:#ccc;cursor:default}table th.settings_users_name,table td.settings_users_name{text-overflow:ellipsis;text-align:left}table th.settings_users_active,table td.settings_users_active,table th.settings_users_admin,table td.settings_users_admin{text-align:center;width:55px}table th.settings_users_actions,table td.settings_users_actions{text-align:center;width:60px}table th.settings_users_actions a,table td.settings_users_actions a{text-decoration:none;color:#000}table th.settings_users_actions a.disabled,table td.settings_users_actions a.disabled{color:#ccc;cursor:default}table th.settings_logs_name,table td.settings_logs_name{text-overflow:ellipsis;text-align:left}table th.settings_logs_size,table td.settings_logs_size{text-align:right;width:70px}table th.settings_logs_date,table td.settings_logs_date{text-align:left;width:130px}table th.settings_logs_action,table td.settings_logs_action{text-align:center;width:70px}table th.settings_logs_action a,table td.settings_logs_action a{text-decoration:none;color:#000}table th.settings_logs_action a.disabled,table td.settings_logs_action a.disabled{color:#ccc;cursor:default}#temperature-graph{height:350px;width:100%;background-image:url("../img/graph-background.png");background-position:center;background-repeat:no-repeat}.tab-content,.tab-pane{overflow:visible}.tempInput{width:50px}#temp_newTemp,#temp_newBedTemp,#speed_innerWall,#speed_outerWall,#speed_fill,#speed_support,#webcam_timelapse_interval,#webcam_timelapse_postRoll{text-align:right}ul.dropdown-menu li a{cursor:pointer}#connection_ports,#connection_baudrates{width:100%}#offline_overlay{position:fixed;top:0;left:0;width:100%;height:100%;z-index:10000;display:none}#offline_overlay_background{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000;filter:alpha(opacity=50);-moz-opacity:.5;-khtml-opacity:.5;opacity:.5}#offline_overlay_wrapper{position:absolute;top:0;bottom:0;left:0;right:0;padding-top:60px}#offline_overlay_wrapper .container{margin:auto}#webcam_container{width:100%}#webcam_container .flipH{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1)}#webcam_container .flipV{-webkit-transform:scaleY(-1);-moz-transform:scaleY(-1)}#webcam_container .flipH.flipV{-webkit-transform:scaleX(-1) scaleY(-1);-moz-transform:scaleX(-1) scaleY(-1)}#files .gcode_files{padding-right:7px}#files .gcode_files .entry{padding:5px;line-height:20px;border-bottom:1px solid #ddd;position:relative}#files .gcode_files .entry:hover{background-color:#f5f5f5}#files .gcode_files .entry .title{text-overflow:ellipsis;word-break:break-all}#files .gcode_files .entry .uploaded,#files .gcode_files .entry .size,#files .gcode_files .entry .additionalInfo{font-size:85%;color:#999}#files .gcode_files .entry .action-buttons{position:absolute;bottom:5px;right:5px}#files .gcode_files .entry .additionalInfo{padding-bottom:22px}#files .upload-buttons{margin-top:10px}#files .form-search{text-align:center;margin-bottom:5px!important}#control{overflow:hidden}#control .jog-panel{float:left;margin-right:19px}#control h1{text-align:left}#control .jog-panel>div{text-align:center}#control .jog-panel>div.distance{text-align:left}#control .box{width:30px;height:30px;margin-right:10px;margin-bottom:10px;padding-left:8px}#control .control-box{display:block;height:30px;margin-bottom:10px}#control .btn-group{margin-bottom:10px}#control .btn-group.distance>.btn{width:43px;padding:3px 0;height:30px}#gcode .progress{width:582px}#gcode .progress .bar{-webkit-transition:width 0s linear;-moz-transition:width 0s linear;-o-transition:width 0s linear;transition:width 0s linear}#gcode #gcode_layer_slider{height:568px;float:right}#gcode #gcode_layer_slider .slider-handle{width:14px;height:14px;margin-left:-3px;margin-top:-7px}#gcode #gcode_command_slider .slider-handle{width:14px;height:14px;margin-left:-7px;margin-top:-3px}#term #terminal-output{min-height:340px}.footer ul{margin:0}.footer ul li{display:inline;margin-left:1em;font-size:85%}.footer ul li:first-child{margin-left:0}.footer ul li a{color:#555}.ui-pnotify .alert a{color:#c09853}.ui-pnotify .alert-error a,.ui-pnotify .alert-danger a{color:#b94a48}.ui-pnotify .alert-success a{color:#468847}.ui-pnotify .alert-info a{color:#3a87ad}.pnotify_additional_info .pnotify_more{font-size:85%}.text-right{text-align:right}.overflow_visible{overflow:visible!important}#drop_overlay{position:fixed;top:0;left:0;width:100%;height:100%;z-index:10000;display:none}#drop_overlay.in{display:block}#drop_overlay #drop_overlay_background{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000;filter:alpha(opacity=50);-moz-opacity:.5;-khtml-opacity:.5;opacity:.5}#drop_overlay #drop_overlay_wrapper{position:absolute;top:0;bottom:0;left:0;right:0;padding-top:60px}#drop_overlay #drop_overlay_wrapper #drop,#drop_overlay #drop_overlay_wrapper #drop_background{position:absolute;top:50%;left:50%;margin-left:-200px;margin-top:-200px}#drop_overlay #drop_overlay_wrapper #drop_locally,#drop_overlay #drop_overlay_wrapper #drop_locally_background{position:absolute;top:50%;left:50%;margin-left:-425px;margin-top:-200px}#drop_overlay #drop_overlay_wrapper #drop_sd,#drop_overlay #drop_overlay_wrapper #drop_sd_background{position:absolute;top:50%;left:50%;margin-left:25px;margin-top:-200px}#drop_overlay #drop_overlay_wrapper .dropzone{width:404px;height:404px;z-index:10001;color:#fff;font-size:30px}#drop_overlay #drop_overlay_wrapper .dropzone i{font-size:50px}#drop_overlay #drop_overlay_wrapper .dropzone .centered{display:table-cell;text-align:center;vertical-align:middle;width:400px;height:400px;line-height:40px;filter:alpha(opacity=100);-moz-opacity:1.0;-khtml-opacity:1.0;opacity:1.0}#drop_overlay #drop_overlay_wrapper .dropzone_background{width:400px;height:400px;border:2px dashed #eee;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;background-color:#000;filter:alpha(opacity=25);-moz-opacity:.25;-khtml-opacity:.25;opacity:.25}#drop_overlay #drop_overlay_wrapper .dropzone_background.hover{background-color:#000;filter:alpha(opacity=50);-moz-opacity:.5;-khtml-opacity:.5;opacity:.5}#drop_overlay #drop_overlay_wrapper .dropzone_background.fade{-webkit-transition:all .3s ease-out;-moz-transition:all .3s ease-out;-ms-transition:all .3s ease-out;-o-transition:all .3s ease-out;transition:all .3s ease-out;opacity:1}.icon-sd-black-14{background:url("../img/icon-sd-black-14.png") 0 3px no-repeat;width:11px;height:17px;display:inline-block!important}.center{float:none;margin-left:auto;margin-right:auto}.slider .slider-selection{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#006dcc;background-image:-moz-linear-gradient(top,#08c,#04c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#04c));background-image:-webkit-linear-gradient(top,#08c,#04c);background-image:-o-linear-gradient(top,#08c,#04c);background-image:linear-gradient(to bottom,#08c,#04c);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0044cc',GradientType=0);border-color:#04c #04c #002a80;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#04c;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.slider .slider-selection:hover,.slider .slider-selection:focus,.slider .slider-selection:active,.slider .slider-selection.active,.slider .slider-selection.disabled,.slider .slider-selection[disabled]{color:#fff;background-color:#04c;*background-color:#003bb3}.slider .slider-selection:active,.slider .slider-selection.active{background-color:#039 \9}.slider.slider-disabled .slider-selection{background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.slider .slider-track{background-color:#f5f5f5;border:1px solid #e3e3e3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);box-shadow:inset 0 1px 1px rgba(0,0,0,0.05)}.slider.slider-disabled .slider-track{background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.slider .slider-handle{display:inline-block;*display:inline;*zoom:1;padding:4px 12px;font-size:14px;line-height:20px;text-align:center;vertical-align:middle;cursor:pointer;color:#333;text-shadow:0 1px 1px rgba(255,255,255,0.75);background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe6e6e6',GradientType=0);border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#e6e6e6;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);border:1px solid #ccc;*border:0;border-bottom-color:#b3b3b3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;*margin-left:.3em;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);padding:0;margin-bottom:0;opacity:1;filter:alpha(opacity=100)}.slider .slider-handle:hover,.slider .slider-handle:focus,.slider .slider-handle:active,.slider .slider-handle.active,.slider .slider-handle.disabled,.slider .slider-handle[disabled]{color:#333;background-color:#e6e6e6;*background-color:#d9d9d9}.slider .slider-handle:active,.slider .slider-handle.active{background-color:#ccc \9}.slider .slider-handle:first-child{*margin-left:0}.slider .slider-handle:hover,.slider .slider-handle:focus{color:#333;text-decoration:none;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.slider .slider-handle:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.slider .slider-handle.active,.slider .slider-handle:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.slider .slider-handle.disabled,.slider .slider-handle[disabled]{cursor:default;background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.slider .slider-handle.hide{display:none}.slider .slider-handle.round{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%} \ No newline at end of file diff --git a/src/octoprint/static/less/octoprint.less b/src/octoprint/static/less/octoprint.less index 7a49001f4..e6e0dfd7b 100644 --- a/src/octoprint/static/less/octoprint.less +++ b/src/octoprint/static/less/octoprint.less @@ -6,7 +6,7 @@ // Body body { - padding-top: 60px; + //padding-top: 60px; } // Navigation bar @@ -113,9 +113,11 @@ body { } } -/** OctoPrint application tabs */ - .octoprint-container { + margin-top: 20px; + + /** OctoPrint application tabs */ + .tab-content { padding: 9px 15px; border-left: 1px solid #DDD; @@ -143,12 +145,9 @@ body { border-bottom: 1px solid #E5E5E5; font-weight: normal; } -} + /** Accordions */ -/** Accordions */ - -.octoprint-container { .accordion-heading { .accordion-heading-button { float: right; diff --git a/src/octoprint/templates/index.jinja2 b/src/octoprint/templates/index.jinja2 index 17255f91e..a7508680a 100644 --- a/src/octoprint/templates/index.jinja2 +++ b/src/octoprint/templates/index.jinja2 @@ -45,7 +45,7 @@ - +
+ +
+ +
+
From dffa00dc5e02d39f7d204c17b563e41dbc7db08d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 11 Aug 2014 18:26:33 +0200 Subject: [PATCH 29/50] If a tool did not extrude anything, skip it in the filament usage summary Also targets #539 --- src/octoprint/static/js/app/viewmodels/files.js | 4 +++- src/octoprint/static/js/app/viewmodels/printerstate.js | 10 ++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/octoprint/static/js/app/viewmodels/files.js b/src/octoprint/static/js/app/viewmodels/files.js index c7d8678e6..77484a360 100644 --- a/src/octoprint/static/js/app/viewmodels/files.js +++ b/src/octoprint/static/js/app/viewmodels/files.js @@ -277,7 +277,9 @@ function GcodeFilesViewModel(printerStateViewModel, loginStateViewModel) { } else { var i = 0; do { - output += "Filament (Tool " + i + "): " + formatFilament(data["gcodeAnalysis"]["filament"]["tool" + i]) + "
"; + if (filament["tool" + i].hasOwnProperty("length") && filament["tool" + i]["length"] > 0) { + output += "Filament (Tool " + i + "): " + formatFilament(filament["tool" + i]) + "
"; + } i++; } while (filament.hasOwnProperty("tool" + i)); } diff --git a/src/octoprint/static/js/app/viewmodels/printerstate.js b/src/octoprint/static/js/app/viewmodels/printerstate.js index 7dfad2971..98e17d135 100644 --- a/src/octoprint/static/js/app/viewmodels/printerstate.js +++ b/src/octoprint/static/js/app/viewmodels/printerstate.js @@ -133,10 +133,12 @@ function PrinterStateViewModel(loginStateViewModel) { var i = 0; do { var key = "tool" + i; - result[i] = { - name: ko.observable("Tool " + i), - data: ko.observable(data.filament[key]) - }; + if (data.filament[key].hasOwnProperty("length") && data.filament[key].length > 0) { + result.push({ + name: ko.observable("Tool " + i), + data: ko.observable(data.filament[key]) + }); + } i++; } while (data.filament.hasOwnProperty("tool" + i)); } From af9a6a8a6edbe5fcfaf24157994393361083c257 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 11 Aug 2014 22:25:09 +0200 Subject: [PATCH 30/50] Don't overwrite query string of webcam URI If there's a query already present, just append the timestamp to it with a & in between instead of creating a new query. (cherry picked from commit 51c77be) --- src/octoprint/static/js/app/main.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/octoprint/static/js/app/main.js b/src/octoprint/static/js/app/main.js index 450d1e26b..6f297fce2 100644 --- a/src/octoprint/static/js/app/main.js +++ b/src/octoprint/static/js/app/main.js @@ -361,7 +361,15 @@ $(function() { var webcamImage = $("#webcam_image"); var currentSrc = webcamImage.attr("src"); if (currentSrc === undefined || currentSrc.trim() == "") { - webcamImage.attr("src", CONFIG_WEBCAM_STREAM + "?" + new Date().getTime()); + var newSrc = CONFIG_WEBCAM_STREAM; + if (CONFIG_WEBCAM_STREAM.lastIndexOf("?") > -1) { + newSrc += "&"; + } else { + newSrc += "?"; + } + newSrc += new Date().getTime(); + + webcamImage.attr("src", newSrc); } } else if (previous.hash == "#control") { // only disable webcam stream if tab is out of focus for more than 5s, otherwise we might cause From ef1f96f3827cede42f676c39e2dcadce30d3fec8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 12 Aug 2014 15:10:30 +0200 Subject: [PATCH 31/50] Moved development requirements to a different file We don't need nose, mock and sphinx + dependencies on pure runtime installations --- requirements-dev.txt | 4 ++++ requirements.txt | 9 ++------- 2 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 requirements-dev.txt diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 000000000..07c9d39e1 --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,4 @@ +mock>=1.0.1 +nose>=1.3.0 +sphinxcontrib-httpdomain +sphinx_rtd_theme diff --git a/requirements.txt b/requirements.txt index f52c102ba..47542d3a6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,12 +5,7 @@ sockjs-tornado>=1.0.0 PyYAML==3.10 Flask-Login==0.2.2 Flask-Principal==0.3.5 -pyserial>=2.6 -netaddr>=0.7.10 -mock>=1.0.1 -nose>=1.3.0 +pyserial +netaddr watchdog sarge - -sphinxcontrib-httpdomain -sphinx_rtd_theme From 7903119cb434490839caea93cf763c4e93c9930a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 12 Aug 2014 15:29:04 +0200 Subject: [PATCH 32/50] Removed unused code --- src/octoprint/filemanager/types.py | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 src/octoprint/filemanager/types.py diff --git a/src/octoprint/filemanager/types.py b/src/octoprint/filemanager/types.py deleted file mode 100644 index 0c9d098e9..000000000 --- a/src/octoprint/filemanager/types.py +++ /dev/null @@ -1,6 +0,0 @@ - - -class FileTypes(object): - - STL = "stl" - GCODE = "gcode" From 4aee779385a528b8e09c83cd16911bf0dc38cf65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 12 Aug 2014 15:35:56 +0200 Subject: [PATCH 33/50] Added two file headers --- src/octoprint/filemanager/__init__.py | 3 +++ src/octoprint/filemanager/destinations.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/octoprint/filemanager/__init__.py b/src/octoprint/filemanager/__init__.py index e69de29bb..7aaa5e369 100644 --- a/src/octoprint/filemanager/__init__.py +++ b/src/octoprint/filemanager/__init__.py @@ -0,0 +1,3 @@ +# coding=utf-8 +__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' + diff --git a/src/octoprint/filemanager/destinations.py b/src/octoprint/filemanager/destinations.py index b4af51832..c84ea9b97 100644 --- a/src/octoprint/filemanager/destinations.py +++ b/src/octoprint/filemanager/destinations.py @@ -1,3 +1,6 @@ +# coding=utf-8 +__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' + class FileDestinations(object): SDCARD = "sdcard" From 519429cebbd2e504a9ef3bb9bfe7315f28dcc019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 13 Aug 2014 09:46:52 +0200 Subject: [PATCH 34/50] Correctly check for null values and don't try to access non existing keys Fixes #544 --- .../static/js/app/viewmodels/files.js | 14 ++++++-------- .../static/js/app/viewmodels/printerstate.js | 19 ++++++++----------- 2 files changed, 14 insertions(+), 19 deletions(-) diff --git a/src/octoprint/static/js/app/viewmodels/files.js b/src/octoprint/static/js/app/viewmodels/files.js index 77484a360..1d1028ee8 100644 --- a/src/octoprint/static/js/app/viewmodels/files.js +++ b/src/octoprint/static/js/app/viewmodels/files.js @@ -274,14 +274,12 @@ function GcodeFilesViewModel(printerStateViewModel, loginStateViewModel) { var filament = data["gcodeAnalysis"]["filament"]; if (_.keys(filament).length == 1) { output += "Filament: " + formatFilament(data["gcodeAnalysis"]["filament"]["tool" + 0]) + "
"; - } else { - var i = 0; - do { - if (filament["tool" + i].hasOwnProperty("length") && filament["tool" + i]["length"] > 0) { - output += "Filament (Tool " + i + "): " + formatFilament(filament["tool" + i]) + "
"; - } - i++; - } while (filament.hasOwnProperty("tool" + i)); + } else if (_.keys(filament).length > 1) { + for (var toolKey in filament) { + if (!_.startsWith(toolKey, "tool") || !filament[toolKey] || !filament[toolKey].hasOwnProperty("length") || filament[toolKey]["length"] <= 0) continue; + + output += "Filament (Tool " + toolKey.substr("tool".length) + "): " + formatFilament(filament[toolKey]) + "
"; + } } } output += "Estimated Print Time: " + formatDuration(data["gcodeAnalysis"]["estimatedPrintTime"]) + "
"; diff --git a/src/octoprint/static/js/app/viewmodels/printerstate.js b/src/octoprint/static/js/app/viewmodels/printerstate.js index 98e17d135..a916ce6f2 100644 --- a/src/octoprint/static/js/app/viewmodels/printerstate.js +++ b/src/octoprint/static/js/app/viewmodels/printerstate.js @@ -130,17 +130,14 @@ function PrinterStateViewModel(loginStateViewModel) { var result = []; if (data.filament && typeof(data.filament) == "object" && _.keys(data.filament).length > 0) { - var i = 0; - do { - var key = "tool" + i; - if (data.filament[key].hasOwnProperty("length") && data.filament[key].length > 0) { - result.push({ - name: ko.observable("Tool " + i), - data: ko.observable(data.filament[key]) - }); - } - i++; - } while (data.filament.hasOwnProperty("tool" + i)); + for (var key in data.filament) { + if (!_.startsWith(key, "tool") || !data.filament[key] || !data.filament[key].hasOwnProperty("length") || data.filament[key].length <= 0) continue; + + result.push({ + name: ko.observable("Tool " + key.substr("tool".length)), + data: ko.observable(data.filament[key]) + }); + } } self.filament(result); }; From 9509c8027ba80cc5d4e19cb42f2925543dd01349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 13 Aug 2014 18:16:51 +0200 Subject: [PATCH 35/50] Pinned tornado to 4.0.0 4.0.1 is currently causing issues with OctoPrint, this is a quick fix for that until I have the opportunity to investigate this further. Workaround for second issue in #544 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 47542d3a6..af3e1062c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ flask==0.9 werkzeug==0.8.3 -tornado>=4.0 +tornado==4.0.0 sockjs-tornado>=1.0.0 PyYAML==3.10 Flask-Login==0.2.2 From fe3a47f2d54a880af500776c0c99b8c093d8b325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 13 Aug 2014 20:07:02 +0200 Subject: [PATCH 36/50] Resolved issue with tornado 4.0.1 (incompatibility between existing and custom http1connection implementation) Compare #544 and #546. Pinned tornado version to 4.0.1 (since the change in this commit is not backwards compatible), dependency update is mandatory. --- requirements.txt | 2 +- src/octoprint/server/util/tornado.py | 31 ++++++++++++++++++++++++++-- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index af3e1062c..2b2773cd2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ flask==0.9 werkzeug==0.8.3 -tornado==4.0.0 +tornado==4.0.1 sockjs-tornado>=1.0.0 PyYAML==3.10 Flask-Login==0.2.2 diff --git a/src/octoprint/server/util/tornado.py b/src/octoprint/server/util/tornado.py index 5da04a79f..735489d12 100644 --- a/src/octoprint/server/util/tornado.py +++ b/src/octoprint/server/util/tornado.py @@ -12,6 +12,7 @@ import stat import mimetypes import email import time +import re import tornado import tornado.web @@ -622,7 +623,7 @@ class CustomHTTP1Connection(tornado.http1connection.HTTP1Connection): self._max_body_sizes = map(lambda x: (x[0], re.compile(x[1]), x[2]), self.params.max_body_sizes or dict()) self._default_max_body_size = self.params.default_max_body_size or self.stream.max_buffer_size - def _read_body(self, headers, delegate): + def _read_body(self, code, headers, delegate): """ Basically the same as `tornado.http1connection.HTTP1Connection._read_body`, but determines the maximum content length individually for the request (utilizing `._get_max_content_length`). @@ -632,11 +633,37 @@ class CustomHTTP1Connection(tornado.http1connection.HTTP1Connection): `HTTPInputError` is raised. """ content_length = headers.get("Content-Length") - if content_length: + if "Content-Length" in headers: + if "," in headers["Content-Length"]: + # Proxies sometimes cause Content-Length headers to get + # duplicated. If all the values are identical then we can + # use them but if they differ it's an error. + pieces = re.split(r',\s*', headers["Content-Length"]) + if any(i != pieces[0] for i in pieces): + raise tornado.httputil.HTTPInputError( + "Multiple unequal Content-Lengths: %r" % + headers["Content-Length"]) + headers["Content-Length"] = pieces[0] + content_length = int(headers["Content-Length"]) + content_length = int(content_length) max_content_length = self._get_max_content_length(self._request_start_line.method, self._request_start_line.path) if 0 <= max_content_length < content_length: raise tornado.httputil.HTTPInputError("Content-Length too long") + else: + content_length = None + + if code == 204: + # This response code is not allowed to have a non-empty body, + # and has an implicit length of zero instead of read-until-close. + # http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.3 + if ("Transfer-Encoding" in headers or + content_length not in (None, 0)): + raise tornado.httputil.HTTPInputError( + "Response with code %d should not have body" % code) + content_length = 0 + + if content_length is not None: return self._read_fixed_body(content_length, delegate) if headers.get("Transfer-Encoding") == "chunked": return self._read_chunked_body(delegate) From a439dc4cd8ca46405891a8a3099f0fea7f6580ea Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Thu, 14 Aug 2014 08:23:22 -0600 Subject: [PATCH 37/50] add serial types for OpenBSD --- src/octoprint/util/comm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index 963a4d867..e03d89355 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -48,6 +48,7 @@ def serialList(): + glob.glob("/dev/ttyAMA*") \ + glob.glob("/dev/tty.usb*") \ + glob.glob("/dev/cu.*") \ + + glob.glob("/dev/cuaU*") \ + glob.glob("/dev/rfcomm*") additionalPorts = settings().get(["serial", "additionalPorts"]) From b78bb9e970c8b4fbfb874856123c4885bb4a329e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 19 Aug 2014 15:55:52 +0200 Subject: [PATCH 38/50] Make watched folder configurable via UI --- src/octoprint/server/api/settings.py | 4 +++- src/octoprint/static/js/app/viewmodels/settings.js | 4 +++- src/octoprint/templates/settings.jinja2 | 6 ++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/octoprint/server/api/settings.py b/src/octoprint/server/api/settings.py index 94aa489fd..2b53f2f06 100644 --- a/src/octoprint/server/api/settings.py +++ b/src/octoprint/server/api/settings.py @@ -86,7 +86,8 @@ def getSettings(): "uploads": s.getBaseFolder("uploads"), "timelapse": s.getBaseFolder("timelapse"), "timelapseTmp": s.getBaseFolder("timelapse_tmp"), - "logs": s.getBaseFolder("logs") + "logs": s.getBaseFolder("logs"), + "watched": s.getBaseFolder("watched") }, "temperature": { "profiles": s.get(["temperature", "profiles"]) @@ -177,6 +178,7 @@ def setSettings(): if "timelapse" in data["folder"].keys(): s.setBaseFolder("timelapse", data["folder"]["timelapse"]) if "timelapseTmp" in data["folder"].keys(): s.setBaseFolder("timelapse_tmp", data["folder"]["timelapseTmp"]) if "logs" in data["folder"].keys(): s.setBaseFolder("logs", data["folder"]["logs"]) + if "watched" in data["folder"].keys(): s.setBaseFolder("watched", data["folder"]["watched"]) if "temperature" in data.keys(): if "profiles" in data["temperature"].keys(): s.set(["temperature", "profiles"], data["temperature"]["profiles"]) diff --git a/src/octoprint/static/js/app/viewmodels/settings.js b/src/octoprint/static/js/app/viewmodels/settings.js index f6bb00883..4fe986f1c 100644 --- a/src/octoprint/static/js/app/viewmodels/settings.js +++ b/src/octoprint/static/js/app/viewmodels/settings.js @@ -239,6 +239,7 @@ function SettingsViewModel(loginStateViewModel, usersViewModel) { self.folder_timelapse(response.folder.timelapse); self.folder_timelapseTmp(response.folder.timelapseTmp); self.folder_logs(response.folder.logs); + self.folder_watched(response.folder.watched); self.cura_enabled(response.cura.enabled); self.cura_path(response.cura.path); @@ -307,7 +308,8 @@ function SettingsViewModel(loginStateViewModel, usersViewModel) { "uploads": self.folder_uploads(), "timelapse": self.folder_timelapse(), "timelapseTmp": self.folder_timelapseTmp(), - "logs": self.folder_logs() + "logs": self.folder_logs(), + "watched": self.folder_watched() }, "temperature": { "profiles": self.temperature_profiles() diff --git a/src/octoprint/templates/settings.jinja2 b/src/octoprint/templates/settings.jinja2 index d21038f24..97573b7c2 100644 --- a/src/octoprint/templates/settings.jinja2 +++ b/src/octoprint/templates/settings.jinja2 @@ -332,6 +332,12 @@
+
+ +
+ +
+
From 53e52c841bf817f761ae89a5bd43e7684e8a6d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 27 Aug 2014 14:46:46 +0200 Subject: [PATCH 39/50] First version of OctoPrint with i18n/l10n support Also included is a translation for (informal) german. New languages can be added with "python setup.py babel_new --locale=" which will create the corresponding .po file from the existing .pot file under "src/octoprint/translations/". Translations can be refreshed from strings in source with "python setup.py babel_refresh". Existing translations can be compiled into usable translation files (.mo for python and .js for Javascript) via "python setup.py babel_compile". You'll need to install the development dependencies for all of this to work, just issue "pip install -r requirements-dev.txt" Note: numbers are not yet correctly formatted for their respective locale (e.g. "2.5mm" instead of "2,5mm" in german). --- babel.cfg | 6 + requirements-dev.txt | 1 + requirements.txt | 1 + setup.py | 101 +- src/octoprint/server/__init__.py | 34 +- src/octoprint/static/js/app/dataupdater.js | 31 +- src/octoprint/static/js/app/helpers.js | 16 +- src/octoprint/static/js/app/main.js | 32 +- .../static/js/app/viewmodels/appearance.js | 4 +- .../static/js/app/viewmodels/connection.js | 4 +- .../static/js/app/viewmodels/control.js | 30 +- .../static/js/app/viewmodels/files.js | 10 +- .../static/js/app/viewmodels/firstrun.js | 4 +- .../static/js/app/viewmodels/gcode.js | 30 +- .../static/js/app/viewmodels/loginstate.js | 16 +- .../static/js/app/viewmodels/navigation.js | 6 +- .../static/js/app/viewmodels/printerstate.js | 14 +- .../static/js/app/viewmodels/settings.js | 33 +- .../static/js/app/viewmodels/temperature.js | 16 +- src/octoprint/static/js/i18n/README.txt | 7 + src/octoprint/static/js/i18n/de.js | 1 + src/octoprint/static/js/lib/babel.js | 160 ++ .../static/js/lib/moment-with-locales.min.js | 10 + src/octoprint/static/js/lib/moment.min.js | 6 - src/octoprint/templates/dialogs.jinja2 | 48 +- src/octoprint/templates/index.jinja2 | 208 +-- src/octoprint/templates/settings.jinja2 | 220 +-- .../translations/de/LC_MESSAGES/messages.mo | Bin 0 -> 18835 bytes .../translations/de/LC_MESSAGES/messages.po | 1310 +++++++++++++++++ src/octoprint/translations/messages.pot | 1242 ++++++++++++++++ 30 files changed, 3258 insertions(+), 343 deletions(-) create mode 100644 babel.cfg create mode 100644 src/octoprint/static/js/i18n/README.txt create mode 100644 src/octoprint/static/js/i18n/de.js create mode 100644 src/octoprint/static/js/lib/babel.js create mode 100644 src/octoprint/static/js/lib/moment-with-locales.min.js delete mode 100644 src/octoprint/static/js/lib/moment.min.js create mode 100644 src/octoprint/translations/de/LC_MESSAGES/messages.mo create mode 100644 src/octoprint/translations/de/LC_MESSAGES/messages.po create mode 100644 src/octoprint/translations/messages.pot diff --git a/babel.cfg b/babel.cfg new file mode 100644 index 000000000..cbdd8fa5e --- /dev/null +++ b/babel.cfg @@ -0,0 +1,6 @@ +[python: src/octoprint/**.py] +[jinja2: src/octoprint/templates/**.jinja2] +extensions=jinja2.ext.autoescape, jinja2.ext.with_ + +[javascript: src/octoprint/static/js/app/**.js] +extract_messages = gettext, ngettext diff --git a/requirements-dev.txt b/requirements-dev.txt index 07c9d39e1..eac1a3bb0 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -2,3 +2,4 @@ mock>=1.0.1 nose>=1.3.0 sphinxcontrib-httpdomain sphinx_rtd_theme +po2json diff --git a/requirements.txt b/requirements.txt index 2b2773cd2..62301f0ec 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,6 +5,7 @@ sockjs-tornado>=1.0.0 PyYAML==3.10 Flask-Login==0.2.2 Flask-Principal==0.3.5 +Flask-Babel==0.9 pyserial netaddr watchdog diff --git a/setup.py b/setup.py index 471e546f3..c08753885 100644 --- a/setup.py +++ b/setup.py @@ -13,6 +13,15 @@ import os import shutil import glob +from babel.messages import frontend as babel +import po2json + +I18N_MAPPING_FILE = "babel.cfg" +I18N_DOMAIN = "messages" +I18N_INPUT_DIRS = "." +I18N_OUTPUT_DIR_PY = os.path.join("src", "octoprint", "translations") +I18N_OUTPUT_DIR_JS = os.path.join("src", "octoprint", "static", "js", "i18n") +I18N_POT_FILE = os.path.join(I18N_OUTPUT_DIR_PY, "messages.pot") def package_data_dirs(source, sub_folders): dirs = [] @@ -47,10 +56,100 @@ class CleanCommand(Command): shutil.rmtree(egg) +class NewTranslation(Command): + description = "create a new translation" + user_options = [ + ('locale=', 'l', 'locale for the new translation'), + ] + boolean_options = [] + + def __init__(self, dist, **kw): + self.babel_init_messages = babel.init_catalog(dist) + Command.__init__(self, dist, **kw) + + def initialize_options(self): + self.locale = None + self.babel_init_messages.initialize_options() + + def finalize_options(self): + self.babel_init_messages.locale = self.locale + self.babel_init_messages.input_file = I18N_POT_FILE + self.babel_init_messages.output_dir = I18N_OUTPUT_DIR_PY + self.babel_init_messages.finalize_options() + + def run(self): + self.babel_init_messages.run() + + +class RefreshTranslation(Command): + description = "refresh translations" + user_options = [] + boolean_options = [] + + def __init__(self, dist, **kw): + self.babel_extract_messages = babel.extract_messages(dist) + self.babel_update_messages = babel.update_catalog(dist) + Command.__init__(self, dist, **kw) + + def initialize_options(self): + self.babel_extract_messages.initialize_options() + self.babel_update_messages.initialize_options() + + def finalize_options(self): + self.babel_extract_messages.mapping_file = I18N_MAPPING_FILE + self.babel_extract_messages.output_file = I18N_POT_FILE + self.babel_extract_messages.input_dirs = I18N_INPUT_DIRS + self.babel_extract_messages.msgid_bugs_address = "i18n@octoprint.org" + self.babel_extract_messages.copyright_holder = "The OctoPrint Project" + self.babel_extract_messages.finalize_options() + + self.babel_update_messages.input_file = I18N_MAPPING_FILE + self.babel_update_messages.output_dir = I18N_OUTPUT_DIR_PY + + def run(self): + self.babel_extract_messages.run() + self.babel_update_messages.run() + + +class CompileTranslation(Command): + description = "compile translations" + user_options = [] + boolean_options = [] + + def __init__(self, dist, **kw): + self.babel_compile_messages = babel.compile_catalog(dist) + Command.__init__(self, dist, **kw) + + def initialize_options(self): + self.babel_compile_messages.initialize_options() + + def finalize_options(self): + self.babel_compile_messages.directory = I18N_OUTPUT_DIR_PY + + def run(self): + self.babel_compile_messages.run() + + for lang_code in os.listdir(I18N_OUTPUT_DIR_PY): + full_path = os.path.join(I18N_OUTPUT_DIR_PY, lang_code) + + if os.path.isdir(full_path): + client_po_dir = os.path.join(full_path, "LC_MESSAGES") + + po2json.update_js_file( + "%s/%s.po" % (client_po_dir, I18N_DOMAIN), + lang_code, + I18N_OUTPUT_DIR_JS, + I18N_DOMAIN + ) + + def get_cmdclass(): cmdclass = versioneer.get_cmdclass() cmdclass.update({ - 'clean': CleanCommand + 'clean': CleanCommand, + 'babel_new': NewTranslation, + 'babel_refresh': RefreshTranslation, + 'babel_compile': CompileTranslation }) return cmdclass diff --git a/src/octoprint/server/__init__.py b/src/octoprint/server/__init__.py index 16e483212..d92a8d095 100644 --- a/src/octoprint/server/__init__.py +++ b/src/octoprint/server/__init__.py @@ -7,9 +7,11 @@ __copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms import uuid from sockjs.tornado import SockJSRouter -from flask import Flask, render_template, send_from_directory +from flask import Flask, render_template, send_from_directory, g, request from flask.ext.login import LoginManager from flask.ext.principal import Principal, Permission, RoleNeed, identity_loaded, UserNeed +from flask.ext.babel import Babel +from babel import Locale from watchdog.observers import Observer import os @@ -20,6 +22,7 @@ SUCCESS = {} NO_CONTENT = ("", 204) app = Flask("octoprint") +babel = Babel(app) debug = False printer = None @@ -49,6 +52,35 @@ UI_API_KEY = ''.join('%02X' % ord(z) for z in uuid.uuid4().bytes) VERSION = octoprint._version.get_versions()['version'] +def get_available_locale_identifiers(locales): + result = set() + + # add available translations + for locale in locales: + result.add(locale.language) + if locale.territory: + # if a territory is specified, add that too + result.add("%s_%s" % (locale.language, locale.territory)) + + return result + + +LOCALES = [Locale.parse("en")] + babel.list_translations() +LANGUAGES = get_available_locale_identifiers(LOCALES) + + +@app.before_request +def before_request(): + g.locale = get_locale() + + +@babel.localeselector +def get_locale(): + if "l10n" in request.values: + return Locale.negotiate([request.values["l10n"]], LANGUAGES) + return request.accept_languages.best_match(LANGUAGES) + + @app.route("/") def index(): return render_template( diff --git a/src/octoprint/static/js/app/dataupdater.js b/src/octoprint/static/js/app/dataupdater.js index 499a0ef24..3f397a2c3 100644 --- a/src/octoprint/static/js/app/dataupdater.js +++ b/src/octoprint/static/js/app/dataupdater.js @@ -40,11 +40,7 @@ function DataUpdater(loginStateViewModel, connectionViewModel, printerStateViewM }; self._onclose = function() { - $("#offline_overlay_message").html( - "The server appears to be offline, at least I'm not getting any response from it. I'll try to reconnect " + - "automatically over the next couple of minutes, however you are welcome to try a manual reconnect " + - "anytime using the button below." - ); + $("#offline_overlay_message").html(gettext("The server appears to be offline, at least I'm not getting any response from it. I'll try to reconnect automatically over the next couple of minutes, however you are welcome to try a manual reconnect anytime using the button below.")); if (!$("#offline_overlay").is(":visible")) $("#offline_overlay").show(); @@ -59,10 +55,7 @@ function DataUpdater(loginStateViewModel, connectionViewModel, printerStateViewM }; self._onreconnectfailed = function() { - $("#offline_overlay_message").html( - "The server appears to be offline, at least I'm not getting any response from it. I could not reconnect automatically, " + - "but you may try a manual reconnect using the button below." - ); + $("#offline_overlay_message").html(gettext("The server appears to be offline, at least I'm not getting any response from it. I could not reconnect automatically, but you may try a manual reconnect using the button below.")); }; self._onmessage = function(e) { @@ -129,40 +122,40 @@ function DataUpdater(loginStateViewModel, connectionViewModel, printerStateViewM if ((type == "UpdatedFiles" && payload.type == "gcode") || type == "MetadataAnalysisFinished") { gcodeFilesViewModel.requestData(); } else if (type == "MovieRendering") { - new PNotify({title: "Rendering timelapse", text: "Now rendering timelapse " + payload.movie_basename}); + new PNotify({title: gettext("Rendering timelapse"), text: _.sprintf(gettext("Now rendering timelapse %(movie_basename)s"), payload)}); } else if (type == "MovieDone") { - new PNotify({title: "Timelapse ready", text: "New timelapse " + payload.movie_basename + " is done rendering."}); + new PNotify({title: gettext("Timelapse ready"), text: _.sprintf(gettext("New timelapse %(movie_basename)s is done rendering."), payload)}); timelapseViewModel.requestData(); } else if (type == "MovieFailed") { - html = "

Rendering of timelapse " + payload.movie_basename + " failed with return code " + payload.returncode + "

"; + html = "

" + _.sprintf(gettext("Rendering of timelapse %(movie_basename)s failedwith return code %(returncode)s"), payload) + "

"; html += pnotifyAdditionalInfo('
' + payload.error + '
'); - new PNotify({title: "Rendering failed", text: html, type: "error", hide: false}); + new PNotify({title: gettext("Rendering failed"), text: html, type: "error", hide: false}); } else if (type == "SlicingStarted") { gcodeUploadProgress.addClass("progress-striped").addClass("active"); gcodeUploadProgressBar.css("width", "100%"); - gcodeUploadProgressBar.text("Slicing ..."); + gcodeUploadProgressBar.text(gettext("Slicing ...")); } else if (type == "SlicingDone") { gcodeUploadProgress.removeClass("progress-striped").removeClass("active"); gcodeUploadProgressBar.css("width", "0%"); gcodeUploadProgressBar.text(""); - new PNotify({title: "Slicing done", text: "Sliced " + payload.stl + " to " + payload.gcode + ", took " + _.sprintf("%.2f", payload.time) + " seconds"}); + new PNotify({title: gettext("Slicing done"), text: _.sprintf(gettext("Sliced %(stl)s to %(gcode)s, took %(time).2f seconds"), payload)}); gcodeFilesViewModel.requestData(payload.gcode); } else if (type == "SlicingFailed") { gcodeUploadProgress.removeClass("progress-striped").removeClass("active"); gcodeUploadProgressBar.css("width", "0%"); gcodeUploadProgressBar.text(""); - html = "Could not slice " + payload.stl + " to " + payload.gcode + ": " + payload.reason; - new PNotify({title: "Slicing failed", text: html, type: "error", hide: false}); + html = _.sprintf(gettext("Could not slice %(stl)s to %(gcode)s: %(reason)s"), payload); + new PNotify({title: gettext("Slicing failed"), text: html, type: "error", hide: false}); } else if (type == "TransferStarted") { gcodeUploadProgress.addClass("progress-striped").addClass("active"); gcodeUploadProgressBar.css("width", "100%"); - gcodeUploadProgressBar.text("Streaming ..."); + gcodeUploadProgressBar.text(gettext("Streaming ...")); } else if (type == "TransferDone") { gcodeUploadProgress.removeClass("progress-striped").removeClass("active"); gcodeUploadProgressBar.css("width", "0%"); gcodeUploadProgressBar.text(""); - new PNotify({title: "Streaming done", text: "Streamed " + payload.local + " to " + payload.remote + " on SD, took " + _.sprintf("%.2f", payload.time) + " seconds"}); + new PNotify({title: gettext("Streaming done"), text: _.sprintf(gettext("Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds"), payload)}); gcodeFilesViewModel.requestData(payload.remote, "sdcard"); } break; diff --git a/src/octoprint/static/js/app/helpers.js b/src/octoprint/static/js/app/helpers.js index 66066a5d5..7ef138c7e 100644 --- a/src/octoprint/static/js/app/helpers.js +++ b/src/octoprint/static/js/app/helpers.js @@ -11,7 +11,7 @@ function ItemListHelper(listType, supportedSorting, supportedFilters, defaultSor self.searchFunction = undefined; self.allItems = []; - +0 self.items = ko.observableArray([]); self.pageSize = ko.observable(filesPerPage); self.currentPage = ko.observable(0); @@ -321,12 +321,12 @@ function formatDuration(seconds) { var m = (seconds % 3600) / 60; var h = seconds / 3600; - return _.sprintf("%02d:%02d:%02d", h, m, s); + return _.sprintf(gettext(/* L10N: duration format */ "%(hour)02d:%(minute)02d:%(second)02d"), {hour: h, minute: m, second: s}); } function formatDate(unixTimestamp) { if (!unixTimestamp) return "-"; - return moment.unix(unixTimestamp).format("YYYY-MM-DD HH:mm"); + return moment.unix(unixTimestamp).format(gettext(/* L10N: Date format */ "YYYY-MM-DD HH:mm")); } function formatTimeAgo(unixTimestamp) { @@ -336,20 +336,20 @@ function formatTimeAgo(unixTimestamp) { function formatFilament(filament) { if (!filament || !filament["length"]) return "-"; - var result = _.sprintf("%.02fm", (filament["length"] / 1000)); + var result = "%(length).02fm"; if (filament.hasOwnProperty("volume") && filament.volume) { - result += " / " + _.sprintf("%.02fcm³", filament["volume"]); + result += " / " + "%(volume).02fcm³"; } - return result; + return _.sprintf(result, {length: filament["length"] / 1000, volume: filament["volume"]}); } function cleanTemperature(temp) { - if (!temp || temp < 10) return "off"; + if (!temp || temp < 10) return gettext("off"); return temp; } function formatTemperature(temp) { - if (!temp || temp < 10) return "off"; + if (!temp || temp < 10) return gettext("off"); return _.sprintf("%.1f°C", temp); } diff --git a/src/octoprint/static/js/app/main.js b/src/octoprint/static/js/app/main.js index 6f297fce2..d76a2080d 100644 --- a/src/octoprint/static/js/app/main.js +++ b/src/octoprint/static/js/app/main.js @@ -1,4 +1,30 @@ $(function() { + //~~ Initialize i18n + var catalog = window["BABEL_TO_LOAD_" + LOCALE]; + if (catalog === undefined) { + catalog = {messages: undefined, plural_expr: undefined, locale: undefined, domain: undefined} + } + babel.Translations.load(catalog).install(); + + moment.locale(LOCALE); + + // Dummy translation requests for dynamic strings supplied by the backend + var dummyTranslations = [ + // printer states + gettext("Offline"), + gettext("Opening serial port"), + gettext("Detecting serial port"), + gettext("Detecting baudrate"), + gettext("Connecting"), + gettext("Operational"), + gettext("Printing from SD"), + gettext("Sending file to SD"), + gettext("Printing"), + gettext("Paused"), + gettext("Closed"), + gettext("Transfering file to SD") + ]; + //~~ Initialize view models var loginStateViewModel = new LoginStateViewModel(); var usersViewModel = new UsersViewModel(loginStateViewModel); @@ -92,7 +118,7 @@ $(function() { } function gcode_upload_fail(e, data) { - var error = "

Could not upload the file. Make sure that it is a GCODE file and has the extension \".gcode\" or \".gco\" or that it is an STL file with the extension \".stl\" and slicing support is enabled and configured.

"; + var error = "

" + gettext("Could not upload the file. Make sure that it is a GCODE file and has the extension \".gcode\" or \".gco\" or that it is an STL file with the extension \".stl\" and slicing support is enabled and configured.") + "

"; error += pnotifyAdditionalInfo("
" + data.jqXHR.responseText + "
"); new PNotify({ title: "Upload failed", @@ -108,10 +134,10 @@ $(function() { function gcode_upload_progress(e, data) { var progress = parseInt(data.loaded / data.total * 100, 10); $("#gcode_upload_progress .bar").css("width", progress + "%"); - $("#gcode_upload_progress .bar").text("Uploading ..."); + $("#gcode_upload_progress .bar").text(gettext("Uploading ...")); if (progress >= 100) { $("#gcode_upload_progress").addClass("progress-striped").addClass("active"); - $("#gcode_upload_progress .bar").text("Saving ..."); + $("#gcode_upload_progress .bar").text(gettext("Saving ...")); } } diff --git a/src/octoprint/static/js/app/viewmodels/appearance.js b/src/octoprint/static/js/app/viewmodels/appearance.js index fc09c9ee4..51a15d0df 100644 --- a/src/octoprint/static/js/app/viewmodels/appearance.js +++ b/src/octoprint/static/js/app/viewmodels/appearance.js @@ -9,12 +9,12 @@ function AppearanceViewModel(settingsViewModel) { return "OctoPrint: " + self.name(); else return "OctoPrint"; - }) + }); self.title = ko.computed(function() { if (self.name()) return self.name() + " [OctoPrint]"; else return "OctoPrint"; - }) + }); } diff --git a/src/octoprint/static/js/app/viewmodels/connection.js b/src/octoprint/static/js/app/viewmodels/connection.js index 0bc791a28..be2f26957 100644 --- a/src/octoprint/static/js/app/viewmodels/connection.js +++ b/src/octoprint/static/js/app/viewmodels/connection.js @@ -21,9 +21,9 @@ function ConnectionViewModel(loginStateViewModel, settingsViewModel) { self.buttonText = ko.computed(function() { if (self.isErrorOrClosed()) - return "Connect"; + return gettext("Connect"); else - return "Disconnect"; + return gettext("Disconnect"); }) self.previousIsOperational = undefined; diff --git a/src/octoprint/static/js/app/viewmodels/control.js b/src/octoprint/static/js/app/viewmodels/control.js index cd8f281ee..0b0b826e6 100644 --- a/src/octoprint/static/js/app/viewmodels/control.js +++ b/src/octoprint/static/js/app/viewmodels/control.js @@ -34,13 +34,13 @@ function ControlViewModel(loginStateViewModel, settingsViewModel) { // multiple extruders for (var extruder = 0; extruder < numExtruders; extruder++) { tools[extruder] = self._createToolEntry(); - tools[extruder]["name"]("Tool " + extruder); + tools[extruder]["name"](gettext("Tool") + " " + extruder); tools[extruder]["key"]("tool" + extruder); } } else { // only one extruder, no need to add numbers tools[0] = self._createToolEntry(); - tools[0]["name"]("Hotend"); + tools[0]["name"](gettext("Hotend")); tools[0]["key"]("tool0"); } @@ -49,11 +49,11 @@ function ControlViewModel(loginStateViewModel, settingsViewModel) { self.fromCurrentData = function(data) { self._processStateData(data.state); - } + }; self.fromHistoryData = function(data) { self._processStateData(data.state); - } + }; self._processStateData = function(data) { self.isErrorOrClosed(data.flags.closedOrError); @@ -63,13 +63,13 @@ function ControlViewModel(loginStateViewModel, settingsViewModel) { self.isError(data.flags.error); self.isReady(data.flags.ready); self.isLoading(data.flags.loading); - } + }; self.fromFeedbackCommandData = function(data) { if (data.name in self.feedbackControlLookup) { self.feedbackControlLookup[data.name](data.output); } - } + }; self.requestData = function() { $.ajax({ @@ -80,18 +80,18 @@ function ControlViewModel(loginStateViewModel, settingsViewModel) { self._fromResponse(response); } }); - } + }; self._fromResponse = function(response) { self.controls(self._processControls(response.controls)); - } + }; self._processControls = function(controls) { for (var i = 0; i < controls.length; i++) { controls[i] = self._processControl(controls[i]); } return controls; - } + }; self._processControl = function(control) { if (control.type == "parametric_command" || control.type == "parametric_commands") { @@ -105,7 +105,7 @@ function ControlViewModel(loginStateViewModel, settingsViewModel) { control.children = self._processControls(control.children); } return control; - } + }; self.sendJogCommand = function(axis, multiplier, distance) { if (typeof distance === "undefined") @@ -116,7 +116,7 @@ function ControlViewModel(loginStateViewModel, settingsViewModel) { var data = { "command": "jog" - } + }; data[axis] = distance * multiplier; $.ajax({ @@ -126,13 +126,13 @@ function ControlViewModel(loginStateViewModel, settingsViewModel) { contentType: "application/json; charset=UTF-8", data: JSON.stringify(data) }); - } + }; self.sendHomeCommand = function(axis) { var data = { "command": "home", "axes": axis - } + }; $.ajax({ url: API_BASEURL + "printer/printhead", @@ -141,7 +141,7 @@ function ControlViewModel(loginStateViewModel, settingsViewModel) { contentType: "application/json; charset=UTF-8", data: JSON.stringify(data) }); - } + }; self.sendExtrudeCommand = function() { self._sendECommand(1); @@ -217,7 +217,7 @@ function ControlViewModel(loginStateViewModel, settingsViewModel) { contentType: "application/json; charset=UTF-8", data: JSON.stringify(data) }) - } + }; self.displayMode = function(customControl) { switch (customControl.type) { diff --git a/src/octoprint/static/js/app/viewmodels/files.js b/src/octoprint/static/js/app/viewmodels/files.js index 1d1028ee8..ab224de2f 100644 --- a/src/octoprint/static/js/app/viewmodels/files.js +++ b/src/octoprint/static/js/app/viewmodels/files.js @@ -273,21 +273,21 @@ function GcodeFilesViewModel(printerStateViewModel, loginStateViewModel) { if (data["gcodeAnalysis"]["filament"] && typeof(data["gcodeAnalysis"]["filament"]) == "object") { var filament = data["gcodeAnalysis"]["filament"]; if (_.keys(filament).length == 1) { - output += "Filament: " + formatFilament(data["gcodeAnalysis"]["filament"]["tool" + 0]) + "
"; + output += gettext("Filament") + ": " + formatFilament(data["gcodeAnalysis"]["filament"]["tool" + 0]) + "
"; } else if (_.keys(filament).length > 1) { for (var toolKey in filament) { if (!_.startsWith(toolKey, "tool") || !filament[toolKey] || !filament[toolKey].hasOwnProperty("length") || filament[toolKey]["length"] <= 0) continue; - output += "Filament (Tool " + toolKey.substr("tool".length) + "): " + formatFilament(filament[toolKey]) + "
"; + output += gettext("Filament") + " (" + gettext("Tool") + " " + toolKey.substr("tool".length) + "): " + formatFilament(filament[toolKey]) + "
"; } } } - output += "Estimated Print Time: " + formatDuration(data["gcodeAnalysis"]["estimatedPrintTime"]) + "
"; + output += gettext("Estimated Print Time") + ": " + formatDuration(data["gcodeAnalysis"]["estimatedPrintTime"]) + "
"; } if (data["prints"] && data["prints"]["last"]) { - output += "Last Printed: " + formatTimeAgo(data["prints"]["last"]["date"]) + "
"; + output += gettext("Last Printed") + ": " + formatTimeAgo(data["prints"]["last"]["date"]) + "
"; if (data["prints"]["last"]["lastPrintTime"]) { - output += "Last Print Time: " + formatDuration(data["prints"]["last"]["lastPrintTime"]); + output += gettext("Last Print Time") + ": " + formatDuration(data["prints"]["last"]["lastPrintTime"]); } } return output; diff --git a/src/octoprint/static/js/app/viewmodels/firstrun.js b/src/octoprint/static/js/app/viewmodels/firstrun.js index 89ddc15ef..c53e485ee 100644 --- a/src/octoprint/static/js/app/viewmodels/firstrun.js +++ b/src/octoprint/static/js/app/viewmodels/firstrun.js @@ -34,9 +34,7 @@ function FirstRunViewModel() { }; self.disableAccessControl = function() { - $("#confirmation_dialog .confirmation_dialog_message").html("If you disable Access Control and your OctoPrint " + - "installation is accessible from the internet, your printer will be accessible by everyone - " + - "that also includes the bad guys!"); + $("#confirmation_dialog .confirmation_dialog_message").html(gettext("If you disable Access Control and your OctoPrint installation is accessible from the internet, your printer will be accessible by everyone - that also includes the bad guys!")); $("#confirmation_dialog .confirmation_dialog_acknowledge").unbind("click"); $("#confirmation_dialog .confirmation_dialog_acknowledge").click(function(e) { e.preventDefault(); diff --git a/src/octoprint/static/js/app/viewmodels/gcode.js b/src/octoprint/static/js/app/viewmodels/gcode.js index 5c3883ea4..96c19ca13 100644 --- a/src/octoprint/static/js/app/viewmodels/gcode.js +++ b/src/octoprint/static/js/app/viewmodels/gcode.js @@ -10,15 +10,15 @@ function GcodeViewModel(loginStateViewModel, settingsViewModel) { var text = ""; switch (self.ui_progress_type()) { case "loading": { - text = "Loading... (" + self.ui_progress_percentage().toFixed(0) + "%)"; + text = gettext("Loading...") + " (" + self.ui_progress_percentage().toFixed(0) + "%)"; break; } case "analyzing": { - text = "Analyzing... (" + self.ui_progress_percentage().toFixed(0) + "%)"; + text = gettext("Analyzing...") + " (" + self.ui_progress_percentage().toFixed(0) + "%)"; break; } case "done": { - text = "Analyzed"; + text = gettext("Analyzed"); break; } } @@ -322,17 +322,17 @@ function GcodeViewModel(loginStateViewModel, settingsViewModel) { self.currentLayer = 0; } else { var output = []; - output.push("Model size is: " + model.width.toFixed(2) + "mm × " + model.depth.toFixed(2) + "mm × " + model.height.toFixed(2) + "mm"); + output.push(gettext("Model size") + ": " + model.width.toFixed(2) + "mm × " + model.depth.toFixed(2) + "mm × " + model.height.toFixed(2) + "mm"); if (model.filament.length == 0) { - output.push("Total filament used: " + model.filament.toFixed(2) + "mm"); + output.push(gettext("Total filament used") + ": " + model.filament.toFixed(2) + gettext("mm")); } else { for (var i = 0; i < model.filament.length; i++) { - output.push("Total filament used (Tool " + i + "): " + model.filament[i].toFixed(2) + "mm"); + output.push(gettext("Total filament used") + " (" + gettext("Tool") + " " + i + "): " + model.filament[i].toFixed(2) + gettext("mm")); } } - output.push("Estimated print time: " + formatDuration(model.printTime)); - output.push("Estimated layer height: " + model.layerHeight.toFixed(2) + "mm"); - output.push("Layer count: " + model.layersPrinted.toFixed(0) + " printed, " + model.layersTotal.toFixed(0) + " visited"); + output.push(gettext("Estimated print time") + ": " + formatDuration(model.printTime)); + output.push(gettext("Estimated layer height") + ": " + model.layerHeight.toFixed(2) + gettext("mm")); + output.push(gettext("Layer count") + ": " + model.layersPrinted.toFixed(0) + " " + gettext(printed) + ", " + model.layersTotal.toFixed(0) + " " + gettext("visited")); self.ui_modelInfo(output.join("
")); @@ -351,17 +351,17 @@ function GcodeViewModel(loginStateViewModel, settingsViewModel) { self.currentCommand = [0, 1]; } else { var output = []; - output.push("Layer number: " + (layer.number + 1)); - output.push("Layer height (mm): " + layer.height); - output.push("GCODE commands in layer: " + layer.commands); + output.push(gettext("Layer number") + ": " + (layer.number + 1)); + output.push(gettext("Layer height") + " (mm): " + layer.height); + output.push(gettext("GCODE commands in layer") + ": " + layer.commands); if (layer.filament.length == 1) { - output.push("Filament used by layer: " + layer.filament[0].toFixed(2) + "mm"); + output.push(gettext("Filament used by layer") + ": " + layer.filament[0].toFixed(2) + "mm"); } else { for (var i = 0; i < layer.filament.length; i++) { - output.push("Filament used by layer (Tool " + i + "): " + layer.filament[i].toFixed(2) + "mm"); + output.push(gettext("Filament used by layer") + " (" + gettext("Tool") + " " + i + "): " + layer.filament[i].toFixed(2) + "mm"); } } - output.push("Print time for layer: " + formatDuration(layer.printTime)); + output.push(gettext("Print time for layer") + ": " + formatDuration(layer.printTime)); self.ui_layerInfo(output.join("
")); diff --git a/src/octoprint/static/js/app/viewmodels/loginstate.js b/src/octoprint/static/js/app/viewmodels/loginstate.js index f6d68557f..dab4ad440 100644 --- a/src/octoprint/static/js/app/viewmodels/loginstate.js +++ b/src/octoprint/static/js/app/viewmodels/loginstate.js @@ -12,15 +12,15 @@ function LoginStateViewModel() { if (self.loggedIn()) { return "\"" + self.username() + "\""; } else { - return "Login"; + return gettext("Login"); } - }) + }); self.subscribers = []; self.subscribe = function(callback) { if (callback === undefined) return; self.subscribers.push(callback); - } + }; self.requestData = function() { $.ajax({ @@ -51,7 +51,7 @@ function LoginStateViewModel() { _.each(self.subscribers, function(callback) { callback("logout", {}); }); } - } + }; self.login = function() { var username = $("#login_user").val(); @@ -67,21 +67,21 @@ function LoginStateViewModel() { type: "POST", data: {"user": username, "pass": password, "remember": remember}, success: function(response) { - new PNotify({title: "Login successful", text: "You are now logged in as \"" + response.name + "\"", type: "success"}); + new PNotify({title: gettext("Login successful"), text: _.sprintf(gettext('You are now logged in as "%(username)s"'), {username: response.name}), type: "success"}); self.fromResponse(response); }, error: function(jqXHR, textStatus, errorThrown) { - new PNotify({title: "Login failed", text: "User unknown or wrong password", type: "error"}); + new PNotify({title: gettext("Login failed"), text: gettext("User unknown or wrong password"), type: "error"}); } }) - } + }; self.logout = function() { $.ajax({ url: API_BASEURL + "logout", type: "POST", success: function(response) { - new PNotify({title: "Logout successful", text: "You are now logged out", type: "success"}); + new PNotify({title: gettext("Logout successful"), text: gettext("You are now logged out"), type: "success"}); self.fromResponse(response); } }) diff --git a/src/octoprint/static/js/app/viewmodels/navigation.js b/src/octoprint/static/js/app/viewmodels/navigation.js index b1c21976e..df9a16c3d 100644 --- a/src/octoprint/static/js/app/viewmodels/navigation.js +++ b/src/octoprint/static/js/app/viewmodels/navigation.js @@ -14,12 +14,12 @@ function NavigationViewModel(loginStateViewModel, appearanceViewModel, settingsV dataType: "json", data: "action=" + action.action, success: function() { - new PNotify({title: "Success", text: "The command \""+ action.name +"\" executed successfully", type: "success"}); + new PNotify({title: "Success", text: _.sprintf(gettext("The command \"%(command)s\" executed successfully"), {command: action.name}), type: "success"}); }, error: function(jqXHR, textStatus, errorThrown) { - var error = "

The command \"" + action.name + "\" could not be executed.

"; + var error = "

" + _.sprintf(gettext("The command \"%(command)s\" could not be executed."), {command: action.name}) + "

"; error += pnotifyAdditionalInfo("
" + jqXHR.responseText + "
"); - new PNotify({title: "Error", text: error, type: "error", hide: false}); + new PNotify({title: gettext("Error"), text: error, type: "error", hide: false}); } }) }; diff --git a/src/octoprint/static/js/app/viewmodels/printerstate.js b/src/octoprint/static/js/app/viewmodels/printerstate.js index a916ce6f2..5827b13af 100644 --- a/src/octoprint/static/js/app/viewmodels/printerstate.js +++ b/src/octoprint/static/js/app/viewmodels/printerstate.js @@ -63,9 +63,9 @@ function PrinterStateViewModel(loginStateViewModel) { }); self.pauseString = ko.computed(function() { if (self.isPaused()) - return "Continue"; + return gettext("Continue"); else - return "Pause"; + return gettext("Pause"); }); self.timelapseString = ko.computed(function() { @@ -76,9 +76,9 @@ function PrinterStateViewModel(loginStateViewModel) { var type = timelapse["type"]; if (type == "zchange") { - return "On Z Change"; + return gettext("On Z Change"); } else if (type == "timed") { - return "Timed (" + timelapse["options"]["interval"] + "s)"; + return gettext("Timed") + " (" + timelapse["options"]["interval"] + " " + gettext("sec") + ")"; } else { return "-"; } @@ -104,7 +104,7 @@ function PrinterStateViewModel(loginStateViewModel) { }; self._processStateData = function(data) { - self.stateString(data.text); + self.stateString(gettext(data.text)); self.isErrorOrClosed(data.flags.closedOrError); self.isOperational(data.flags.operational); self.isPaused(data.flags.paused); @@ -134,7 +134,7 @@ function PrinterStateViewModel(loginStateViewModel) { if (!_.startsWith(key, "tool") || !data.filament[key] || !data.filament[key].hasOwnProperty("length") || data.filament[key].length <= 0) continue; result.push({ - name: ko.observable("Tool " + key.substr("tool".length)), + name: ko.observable(gettext("Tool") + " " + key.substr("tool".length)), data: ko.observable(data.filament[key]) }); } @@ -163,7 +163,7 @@ function PrinterStateViewModel(loginStateViewModel) { }; if (self.isPaused()) { - $("#confirmation_dialog .confirmation_dialog_message").text("This will restart the print job from the beginning."); + $("#confirmation_dialog .confirmation_dialog_message").text(gettext("This will restart the print job from the beginning.")); $("#confirmation_dialog .confirmation_dialog_acknowledge").unbind("click"); $("#confirmation_dialog .confirmation_dialog_acknowledge").click(function(e) {e.preventDefault(); $("#confirmation_dialog").modal("hide"); restartCommand(); }); $("#confirmation_dialog").modal("show"); diff --git a/src/octoprint/static/js/app/viewmodels/settings.js b/src/octoprint/static/js/app/viewmodels/settings.js index 4fe986f1c..4411f14d0 100644 --- a/src/octoprint/static/js/app/viewmodels/settings.js +++ b/src/octoprint/static/js/app/viewmodels/settings.js @@ -11,7 +11,38 @@ function SettingsViewModel(loginStateViewModel, usersViewModel) { self.appearance_name = ko.observable(undefined); self.appearance_color = ko.observable(undefined); - self.appearance_available_colors = ko.observable(["default", "red", "orange", "yellow", "green", "blue", "violet", "black"]); + self.appearance_available_colors = ko.observable([ + {key: "default", name: gettext("default")}, + {key: "red", name: gettext("red")}, + {key: "orange", name: gettext("orange")}, + {key: "yellow", name: gettext("yellow")}, + {key: "green", name: gettext("green")}, + {key: "blue", name: gettext("blue")}, + {key: "violet", name: gettext("violet")}, + {key: "black", name: gettext("black")}, + ]); + self.appearance_colorName = function(color) { + switch (color) { + case "red": + return gettext("red"); + case "orange": + return gettext("orange"); + case "yellow": + return gettext("yellow"); + case "green": + return gettext("green"); + case "blue": + return gettext("blue"); + case "violet": + return gettext("violet"); + case "black": + return gettext("black"); + case "default": + return gettext("default"); + default: + return color; + } + }; self.printer_movementSpeedX = ko.observable(undefined); self.printer_movementSpeedY = ko.observable(undefined); diff --git a/src/octoprint/static/js/app/viewmodels/temperature.js b/src/octoprint/static/js/app/viewmodels/temperature.js index 4ee2768e5..949001c91 100644 --- a/src/octoprint/static/js/app/viewmodels/temperature.js +++ b/src/octoprint/static/js/app/viewmodels/temperature.js @@ -19,7 +19,7 @@ function TemperatureViewModel(loginStateViewModel, settingsViewModel) { self.tools = ko.observableArray([]); self.hasBed = ko.observable(true); self.bedTemp = self._createToolEntry(); - self.bedTemp["name"]("Bed"); + self.bedTemp["name"](gettext("Bed")); self.bedTemp["key"]("bed"); self.isErrorOrClosed = ko.observable(undefined); @@ -51,7 +51,7 @@ function TemperatureViewModel(loginStateViewModel, settingsViewModel) { if (tools.length <= extruder || !tools[extruder]) { tools[extruder] = self._createToolEntry(); } - tools[extruder]["name"]("Tool " + extruder); + tools[extruder]["name"](gettext("Tool") + " " + extruder); tools[extruder]["key"]("tool" + extruder); } } else { @@ -62,12 +62,12 @@ function TemperatureViewModel(loginStateViewModel, settingsViewModel) { if (tools.length < 1 || !tools[0]) { tools[0] = self._createToolEntry(); } - tools[0]["name"]("Hotend"); + tools[0]["name"](gettext("Hotend")); tools[0]["key"]("tool0"); } // print bed - heaterOptions["bed"] = {name: "Bed", color: "blue"}; + heaterOptions["bed"] = {name: gettext("Bed"), color: "blue"}; // write back self.heaterOptions(heaterOptions); @@ -98,9 +98,9 @@ function TemperatureViewModel(loginStateViewModel, settingsViewModel) { // convert to minutes var diffInMins = Math.round(diff / (60 * 1000)); if (diffInMins == 0) - return "just now"; + return gettext("just now"); else - return "- " + diffInMins + " min"; + return "- " + diffInMins + " " + gettext("min"); } }, legend: { @@ -238,12 +238,12 @@ function TemperatureViewModel(loginStateViewModel, settingsViewModel) { var targetTemp = targets && targets.length ? formatTemperature(targets[targets.length - 1][1]) : "-"; data.push({ - label: "Actual " + heaterOptions[type].name + ": " + actualTemp, + label: gettext("Actual") + " " + heaterOptions[type].name + ": " + actualTemp, color: heaterOptions[type].color, data: actuals }); data.push({ - label: "Target " + heaterOptions[type].name + ": " + targetTemp, + label: gettext("Target") + " " + heaterOptions[type].name + ": " + targetTemp, color: pusher.color(heaterOptions[type].color).tint(0.5).html(), data: targets }); diff --git a/src/octoprint/static/js/i18n/README.txt b/src/octoprint/static/js/i18n/README.txt new file mode 100644 index 000000000..0c704a5b1 --- /dev/null +++ b/src/octoprint/static/js/i18n/README.txt @@ -0,0 +1,7 @@ +Note to developers +------------------ + +Do not edit the files in this directory directly, they are auto generated from the i18n PO files. If you want to +change any translations in here, please follow the translation guide on the Wiki: + + https://github.com/foosel/OctoPrint/wiki/Translating-OctoPrint \ No newline at end of file diff --git a/src/octoprint/static/js/i18n/de.js b/src/octoprint/static/js/i18n/de.js new file mode 100644 index 000000000..3a75faba8 --- /dev/null +++ b/src/octoprint/static/js/i18n/de.js @@ -0,0 +1 @@ +window.BABEL_TO_LOAD_de = {"locale": "de", "domain": "messages", "plural_expr": "(n != 1)", "messages": {"": "Project-Id-Version: OctoPrint 1.2.0-dev-119-gb78bb9e-dirty\nReport-Msgid-Bugs-To: i18n@octoprint.org\nPOT-Creation-Date: 2014-08-27 11:44+0200\nPO-Revision-Date: 2014-08-27 11:45+0100\nLast-Translator: Gina H\u00e4u\u00dfge \nLanguage-Team: de \nPlural-Forms: nplurals=2; plural=(n != 1)\nMIME-Version: 1.0\nContent-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 8bit\nGenerated-By: Babel 1.3\n", "Print Time Left": "Verbleibende Druckdauer", "Proceed": "Fortfahren", "Timelapse Temp Folder": "Tempor\u00e4res Zeitrafferverzeichnis", "Title": "Titel", "Only show files stored locally": "Nur lokal abgelegte Dateien anzeigen", "yellow": "Gelb", "Path to Cura": "Pfad zu Cura", "Action": "Aktion", "Passwords do not match": "Passw\u00f6rter nicht identisch", "Sort by name": "Nach Name sortieren", "Save connection settings": "Verbindungseinstellungen speichern", "Rendering timelapse": "Zeitraffer wird gerendert", "Cura": "Cura", "Files": "Dateien", "Bed Size": "Bettdimensionen", "Always assume SD card is present": "Immer davon ausgehen, dass eine SD Karte vorhanden ist", "Load and Print": "Laden und Drucken", "Sending file to SD": "Sende Datei zu SD", "Number of Extruders": "Anzahl Extruder", "black": "Schwarz", "Last Printed": "Zuletzt gedruckt", "Sourcecode": "Quellcode", "Estimated layer height": "Gesch\u00e4tzte Schichth\u00f6he", "You are now logged out": "Du bist jetzt ausgeloggt", "Uploaded": "Hochgeladen", "Opening serial port": "\u00d6ffnet Serialport", "New timelapse %(movie_basename)s is done rendering.": "Neue Zeitrafferaufnahme %(movie_basename)s wurde fertig gerendert", "Invert control": "Invertieren", "Webcam": "Webcam", "Remember me": "Login merken", "Enable GCode Visualizer": "GCode Viewer aktivieren", "The server appears to be offline, at least I'm not getting any response from it. I'll try to reconnect automatically over the next couple of minutes, however you are welcome to try a manual reconnect anytime using the button below.": "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich werde \u00fcber die n\u00e4chsten Minuten versuchen, zu reconnecten, aber Du kannst mittels des folgenden Buttons auch jederzeit einen manuellen Reconnect ansto\u00dfen.", "Rendering failed": "Rendering fehlgeschlagen", "Upload Folder": "Uploadverzeichnis", "descending": "absteigend", "X": "X", "Add user": "Nutzer hinzuf\u00fcgen", "GCODE commands in layer": "GCODE Kommandos in Schicht", "Estimated print time": "Gesch\u00e4tzte Druckzeit", "Serial Connection": "Serielle Verbindung", "Control": "Kontrolle", "Show moves": "Bewegungen zeigen", "Also show next layer": "Auch n\u00e4chste Schicht anzeigen", "Print Time": "Druckdauer", "Sort by file size": "Nach Gr\u00f6\u00dfe sortieren", "Machine State": "Druckerstatus", "default": "Standard", "API": "API", "Printing from SD": "Drucke von SD", "Terminal filters": "Terminalfilter", "Change password for user \"%(user)s\"": "Passwort\u00e4nderung f\u00fcr Nutzer \"%(user)s\"", "Enable Temperature Graph": "Temperaturgraph aktivieren", "Delete user": "Nutzer l\u00f6schen", "Confirm Password": "Passwort best\u00e4tigen", "Disconnect": "Trennen", "Slicing done": "Slicing abgeschlossen", "Initialize SD card": "SD Karte initialisieren", "System": "System", "Send": "Senden", "State": "Status", "Version": "Version", "YYYY-MM-DD HH:mm": "DD.MM.YYYY HH:mm", "Attempt to reconnect": "Erneut verbinden", "Streaming done": "Streaming abgeschlossen", "violet": "Violett", "Print": "Drucken", "Layer count": "Schichtanzahl", "OctoPrint Settings": "OctoPrint Einstellungen", "Are you sure?": "Bist Du sicher?", "blue": "Blau", "Temperature timeout": "Temperaturtimeout", "Printer": "Drucker", "Tool": "Werkzeug", "Settings": "Einstellungen", "Path to FFMPEG": "Pfad zu FFMPEG", "Upload to SD": "Upload (SD)", "The command \"%(command)s\" could not be executed.": "Das Kommando \"%(command)s\" konnte nicht ausgef\u00fchrt werden.", "Printed": "Gedruckt", "Layer number": "Schichtnummer", "Sync with job progress": "Job mit Fortschritt synchronisieren", "Circular": "Rund", "Total filament used": "Gesamtmenge genutzten Filaments", "red": "Rot", "Save as default": "Als Standard speichern", "Slicing ...": "Slice ...", "Last Print Time": "Letzte Druckdauer", "Target": "Soll", "Streaming ...": "Streame ...", "Logout successful": "Logout erfolgreich", "Now rendering timelapse %(movie_basename)s": "Rendere Zeitrafferaufnahme %(movie_basename)s", "Documentation": "Dokumentation", "%(hour)02d:%(minute)02d:%(second)02d": "%(hour)02d:%(minute)02d:%(second)02d", "Upload": "Upload", "ascending": "aufsteigend", "Model size": "Modelgr\u00f6\u00dfe", "Temperatures": "Temperaturen", "visited": "besucht", "Timed": "Nach Zeit", "Edit user \"%(user)s\"": "Editiere Nutzer \"%(user)s\"", "Snapshot URL": "Snapshot-URL", "Release SD card": "SD Karte auswerfen", "Server is offline": "Der Server ist offline", "Log communication to serial.log (might negatively impact performance)": "Logge die Kommunikation in das serial.log (kann die Performance negativ beeinflussen)", "Sort by upload date": "Nach Uploaddatum sortieren", "Change Password": "Passwort \u00e4ndern", "Logs": "Logs", "Hotend": "Hotend", "Show retracts": "Retracts zeigen", "Keep Access Control Enabled": "Zugangsbeschr\u00e4nkung aktiviert lassen", "Upload locally": "Upload (lokal)", "Select Tool...": "Werkzeug w\u00e4hlen...", "Paused": "Pausiert", "Continue": "Fortsetzen", "Radius": "Radius", "The command \"%(command)s\" executed successfully": "Das Kommando \"%(command)s\" wurde erfolgreich ausgef\u00fchrt", "Features": "Funktionen", "Download": "Download", "GCode Viewer": "GCode Viewer", "Also show previous layer": "Auch vorherige Schicht anzeigen", "Repetier": "Repetier", "Login successful": "Login erfolgreich", "Finished Timelapses": "Abgeschlossene Zeitraffer", "Rendering of timelapse %(movie_basename)s failedwith return code %(returncode)s": "Rendering der Zeitrafferaufnahme %(movie_basename)s fehlgeschlagen mit Returncode %(returncode)s", "Pause": "Pause", "Temperature": "Temperatur", "Enable slicing via Cura": "Slicing mittels Cura aktivieren", "Access Control": "Zugangsbeschr\u00e4nkung", "Analyzing...": "Analysiere...", "just now": "gerade eben", "Operational": "Bereit", "Send a checksum with every command": "Eine Pr\u00fcfsumme mit jedem Kommando senden", "Autodetection timeout": "Autodetectiontimeout", "Connecting": "Verbinde", "Free": "Frei", "Closed": "Geschlossen", "Refresh SD files": "SD Dateien aktualisieren", "Flip webcam vertically": "Webcam vertikal flippen", "Path to Cura config": "Pfad zur Cura-Konfiguration", "Filament": "Filament", "Could not slice %(stl)s to %(gcode)s: %(reason)s": "Konnte %(stl)s nicht nach %(gcode)s slicen: %(reason)s", "Baudrate": "Baudrate", "Detecting baudrate": "Detektiere Baudrate", "Date": "Datum", "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds": "%(local)s nach %(remote)s gestreamt, dauerte %(time).2f Sekunden", "Enable OctoPrint watermark in timelapse movies": "OctoPrint Wasserzeichen in Zeitrafferaufnahmen aktivieren", "Motors off": "Motoren aus", "Detecting serial port": "Detektiere Serialport", "New Password": "Neues Passwort", "Logout": "Logout", "Offset": "Offset", "Analyzed": "Analysiert", "Auto-connect on server startup": "Automatisch bei Serverstart verbinden", "Printer Parameters": "Druckerparameter", "E": "E", "Restart": "Neu starten", "Search...": "Suchen...", "Slicing failed": "Slicing fehlgeschlagen", "Actual": "Ist", "Active": "Aktiv", "Creation date": "Erstellungsdatum", "Hint: You can also drag and drop files on this page to upload them.": "Hinweis: Du kannst auch Dateien auf diese Seite ziehen um sie hochzuladen.", "Interval": "Intervall", "N/A": "(nicht vorhanden)", "Bed": "Bett", "Auto-connect to printer on server start": "Automatisch bei Serverstart verbinden", "orange": "Orange", "Error": "Fehler", "On Z Change": "Bei Ebenenwechsel", "Timelapse post roll (in rendered seconds)": "Zeitraffernachlauf (in gerenderten Sekunden)", "Z": "Z", "Are you sure you want to proceed?": "Bist Du sicher, dass du fortfahren willst?", "If you disable Access Control and your OctoPrint installation is accessible from the internet, your printer will be accessible by everyone - that also includes the bad guys!": "Wenn Du die Zugangsbeschr\u00e4nkung deaktivierst und Deine OctoPrint Installation vom Internet aus erreichbar ist, kann jeder auf Deinen Drucker zugreifen - auch die b\u00f6sen Jungs!", "Load": "Laden", "Set": "Setzen", "The server appears to be offline, at least I'm not getting any response from it. I could not reconnect automatically, but you may try a manual reconnect using the button below.": "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich konnte nicht automatisch reconnected, aber Du kannst mittels des folgenden Buttons einen manuellen Reconnect ansto\u00dfen.", "Zoom in on model": "Auf Model zoomen", "mm": "mm", "Saving ...": "Speichere ...", "Watched Folder": "Beobachtetes Verzeichnis", "General": "Allgemein", "

\n Please read the following, it is very important for your printer's health!\n

\n

\n OctoPrint by default now ships with Access Control enabled, meaning you won't be able to do anything with the\n printer unless you login first as a configured user. This is just to prevent strangers - possibly with\n malicious intent - to gain access to your printer via the internet or another untrustworthy network\n and using it in such a way that it is damaged or worse (i.e. causes a fire).\n

\n

\n It looks like you haven't configured access control yet. Please set up an username and password for the\n initial administrator account who will have full access to both the printer and OctoPrint's settings, then click\n on \"Keep Access Control Enabled\":\n

": "

\n Bitte lies die folgenden Zeilen aufmerksam durch, es ist sehr wichtig f\u00fcr die Gesundheit Deines Druckers!\n

\n

\n OctoPrint wird nun standardm\u00e4ssig mit aktivierter Zugangsbeschr\u00e4nkung ausgeliefert, das hei\u00dft, dass Du mit dem Drucker nichts\n anfangen kannst, wenn du nicht als einer der konfigurierten Nutzer eingeloggt bist. Das dient dem Zweck, Fremde mit\n m\u00f6glicherweise b\u00f6swilligen Absichten davon abzuhalten, auf Deinen Drucker \u00fcber das Internet oder ein anderes\n unsicheres Netzwerk zuzugreifen und ihn auf eine Art zu nutzen, die ihn besch\u00e4digt oder schlimmeres (z.B. ein Feuer verursacht).\n

\n

\n Es sieht so aus, als h\u00e4ttest Du die Zugriffsbeschr\u00e4nkung noch nicht konfiguriert. Bitte konfiguriere einen Usernamen\n und ein Passwort f\u00fcr das initiale Administratorkonto, das vollen Zugang zu sowohl dem Drucker als auch OctoPrints\n Einstellungen haben wird, und klicke dann auf \"Zugangsbeschr\u00e4nkung aktiviert lassen\".\n

", "Color": "Farbe", "Fans on": "L\u00fcfter an", "Swallow the first \"ok\" after a resend response": "Erstes \"ok\" nach Resend ignorieren", "Enable SD support": "SD-Unterst\u00fctzung aktivieren", "Connect": "Verbinden", "Cancel": "Abbruch", "sec": "Sek", "Warning": "Warnung", "Loading...": "Lade...", "Current API Key": "Aktueller API-Key", "Size": "Gr\u00f6\u00dfe", "Communication timeout": "Kommunikationstimeout", "Modification date": "\u00c4nderungsdatum", "Change password": "Passwort \u00e4ndern", "This will restart the print job from the beginning.": "Der Druckjob wird zur\u00fcckgesetzt und von vorne begonnen.", "Stream URL": "Stream-URL", "Sort by": "Sortieren", "Login failed": "Login fehlgeschlagen", "Abort": "Abbrechen", "Confirm": "Best\u00e4tigen", "Repeat Password": "Passwort wiederholen", "Terminal": "Terminal", "Autoscroll": "Autoscroll", "Print time for layer": "Druckdauer f\u00fcr Schicht", "Disable Access Control": "Zugangsbeschr\u00e4nkung deaktivieren", "Configure Access Control": "Zugangsbeschr\u00e4nkung konfigurieren", "Timelapse Configuration": "Zeitrafferkonfiguration", "Retract": "Retract", "Timelapse bitrate": "Zeitrafferbitrate", "Offline": "Offline", "API Key": "API Key", "Homepage": "Homepage", "Estimated Print Time": "Gesch\u00e4tzte Druckzeit", "Folders": "Verzeichnisse", "Bugs and Requests": "Bugs und Requests", "Save": "Speichern", "Default extrusion length": "Standard Extrusionsl\u00e4nge", "min": "Min", "Support TargetExtr%%n/TargetBed target temperature format": "TargetExtr%%n/TargetBed Zieltemperaturformat unterst\u00fctzen", "Connection timeout": "Verbindungstimeout", "Save config": "Konfiguration speichern", "Center viewport on model": "Ausschnitt auf Modell zentrieren", "User unknown or wrong password": "Nutzer unbekannt oder falsches Passwort", "Allow Cross Origin Resource Sharing (CORS)": "Cross Origin Resource Sharing (CORS) erlauben", "Appearance": "Aussehen", "Enable": "Aktivieren", "Uploading ...": "Uploade ...", "Logs Folder": "Logverzeichnis", "Password": "Passwort", "Hide successfully printed files": "Erfolgreich gedruckte Dateien verbergen", "Username": "Username", "Off": "Aus", "Name": "Name", "Extruder Offsets": "Extruderoffsets", "Approx. Total Print Time": "Ungef\u00e4hre Gesamtdruckdauer", "Admin": "Admin", "

\n Note: In case that your OctoPrint installation is only accessible from within a trustworthy network and you don't\n need Access Control for other reasons, you may alternatively disable Access Control. You should only\n do this if you are absolutely certain that only people you know and trust will be able to connect to it.\n

\n

\n Do NOT underestimate the risk of an unsecured access from the internet to your printer!\n

": "

\n Beachte: Falls Deine OctoPrint Installation ausschlie\u00dflich innerhalb eines vertrauensw\u00fcrdigen Netzwerks\n erreicht werden kann und Du die Zugangsbeschr\u00e4nkung nicht f\u00fcr andere Zwecke ben\u00f6tigst, kannst Du sie alternativ auch\n deaktivieren. Du solltest das nur tun, wenn Du Dir absolut sicher bist, dass nur Leute darauf zugreifen k\u00f6nnen, die du kennst\n und denen du vertraust\n

\n

\n UNTERSCH\u00c4TZE NICHT das Risiko eines ungesicherten Zugriffs aus dem Internet auf Deinen Drucker!\n

", "Timelapse": "Zeitraffer", "Remove": "Entfernen", "Reload": "Neu laden", "Printing": "Drucke", "Only show files stored on SD": "Nur auf SD abgelegte Dateien anzeigen", "Y": "Y", "Fans off": "L\u00fcfter aus", "Login": "Login", "Timelapse ready": "Zeitraffer fertig", "Timelapse Mode": "Zeitraffermodus", "Timelapse Folder": "Zeitrafferverzeichnis", "Extruder": "Extruder", "Could not upload the file. Make sure that it is a GCODE file and has the extension \".gcode\" or \".gco\" or that it is an STL file with the extension \".stl\" and slicing support is enabled and configured.": "Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um eine GCODE-Datei mit der Extension \".gcode\" oder \".gco\" oder um eine STL-Datei mit der Extension \".stl\" handelt und in letzterem Fall auch der Slicingsupport aktiviert ist.", "SD status timeout": "SD-Status-Timeout", "SD not initialized": "SD Karte ist nicht initialisiert", "Update User": "Nutzer editieren", "off": "Aus", "Serial Port": "Serialport", "Flip webcam horizontally": "Webcam horizontal flippen", "Wait for start on connect": "Bei der Verbindung auf start warten", "Transfering file to SD": "Sende Datei zu SD", "RegExp": "RegExp", "Layer height": "Schichth\u00f6he", "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds": "%(stl)s nach %(gcode)s geslicet, dauerte %(time).2f Sekunden", "Extrude": "Extrude", "green": "Gr\u00fcn", "File": "Datei", "You are now logged in as \"%(username)s\"": "Du bist jetzt eingeloggt als \"%(username)s\"", "Axis": "Achse", "Filament used by layer": "Genutztes Filament in Schicht"}} ; \ No newline at end of file diff --git a/src/octoprint/static/js/lib/babel.js b/src/octoprint/static/js/lib/babel.js new file mode 100644 index 000000000..5aff8f051 --- /dev/null +++ b/src/octoprint/static/js/lib/babel.js @@ -0,0 +1,160 @@ +/** + * Babel JavaScript Support + * + * Copyright (C) 2008-2011 Edgewall Software + * All rights reserved. + * + * This software is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at http://babel.edgewall.org/wiki/License. + * + * This software consists of voluntary contributions made by many + * individuals. For the exact contribution history, see the revision + * history and logs, available at http://babel.edgewall.org/log/. + */ + +/** + * A simple module that provides a gettext like translation interface. + * The catalog passed to load() must be a object conforming to this + * interface:: + * + * { + * messages: an object of {msgid: translations} items where + * translations is an array of messages or a single + * string if the message is not pluralizable. + * plural_expr: the plural expression for the language. + * locale: the identifier for this locale. + * domain: the name of the domain. + * } + * + * Missing elements in the object are ignored. + * + * Typical usage:: + * + * var translations = babel.Translations.load(...).install(); + */ +var babel = new function() { + + var defaultPluralExpr = function(n) { return n == 1 ? 0 : 1; }; + var formatRegex = /%?%(?:\(([^\)]+)\))?([disr])/g; + + /** + * A translations object implementing the gettext interface + */ + var Translations = this.Translations = function(locale, domain) { + this.messages = {}; + this.locale = locale || 'unknown'; + this.domain = domain || 'messages'; + this.pluralexpr = defaultPluralExpr; + }; + + /** + * Create a new translations object from the catalog and return it. + * See the babel-module comment for more details. + */ + Translations.load = function(catalog) { + var rv = new Translations(); + rv.load(catalog); + return rv; + }; + + Translations.prototype = { + /** + * translate a single string. + */ + gettext: function(string) { + var translated = this.messages[string]; + if (typeof translated == 'undefined') + return string; + return (typeof translated == 'string') ? translated : translated[0]; + }, + + /** + * translate a pluralizable string + */ + ngettext: function(singular, plural, n) { + var translated = this.messages[singular]; + if (typeof translated == 'undefined') + return (n == 1) ? singular : plural; + return translated[this.pluralexpr(n)]; + }, + + /** + * Install this translation document wide. After this call, there are + * three new methods on the window object: _, gettext and ngettext + */ + install: function() { + var self = this; + window.gettext = function(string) { + return self.gettext(string); + }; + window.ngettext = function(singular, plural, n) { + return self.ngettext(singular, plural, n); + }; + return this; + }, + + /** + * Works like Translations.load but updates the instance rather + * then creating a new one. + */ + load: function(catalog) { + if (catalog.messages) + this.update(catalog.messages); + if (catalog.plural_expr) + this.setPluralExpr(catalog.plural_expr); + if (catalog.locale) + this.locale = catalog.locale; + if (catalog.domain) + this.domain = catalog.domain; + return this; + }, + + /** + * Updates the translations with the object of messages. + */ + update: function(mapping) { + for (var key in mapping) + if (mapping.hasOwnProperty(key)) + this.messages[key] = mapping[key]; + return this; + }, + + /** + * Sets the plural expression + */ + setPluralExpr: function(expr) { + this.pluralexpr = new Function('n', 'return +(' + expr + ')'); + return this; + } + }; + + /** + * A python inspired string formatting function. Supports named and + * positional placeholders and "s", "d" and "i" as type characters + * without any formatting specifications. + * + * Examples:: + * + * babel.format(_('Hello %s'), name) + * babel.format(_('Progress: %(percent)s%%'), {percent: 100}) + */ + this.format = function() { + var arg, string = arguments[0], idx = 0; + if (arguments.length == 1) + return string; + else if (arguments.length == 2 && typeof arguments[1] == 'object') + arg = arguments[1]; + else { + arg = []; + for (var i = 1, n = arguments.length; i != n; ++i) + arg[i - 1] = arguments[i]; + } + return string.replace(formatRegex, function(all, name, type) { + if (all[0] == all[1]) return all.substring(1); + var value = arg[name || idx++]; + return (type == 'i' || type == 'd') ? +value : value; + }); + } + +}; diff --git a/src/octoprint/static/js/lib/moment-with-locales.min.js b/src/octoprint/static/js/lib/moment-with-locales.min.js new file mode 100644 index 000000000..a9fdb1dbc --- /dev/null +++ b/src/octoprint/static/js/lib/moment-with-locales.min.js @@ -0,0 +1,10 @@ +//! moment.js +//! version : 2.8.2 +//! authors : Tim Wood, Iskren Chernev, Moment.js contributors +//! license : MIT +//! momentjs.com +(function(a){function b(a,b,c){switch(arguments.length){case 2:return null!=a?a:b;case 3:return null!=a?a:null!=b?b:c;default:throw new Error("Implement me")}}function c(a,b){return yb.call(a,b)}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function e(a){sb.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+a)}function f(a,b){var c=!0;return m(function(){return c&&(e(a),c=!1),b.apply(this,arguments)},b)}function g(a,b){pc[a]||(e(b),pc[a]=!0)}function h(a,b){return function(c){return p(a.call(this,c),b)}}function i(a,b){return function(c){return this.localeData().ordinal(a.call(this,c),b)}}function j(){}function k(a,b){b!==!1&&F(a),n(this,a),this._d=new Date(+a._d)}function l(a){var b=y(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;this._milliseconds=+k+1e3*j+6e4*i+36e5*h,this._days=+g+7*f,this._months=+e+3*d+12*c,this._data={},this._locale=sb.localeData(),this._bubble()}function m(a,b){for(var d in b)c(b,d)&&(a[d]=b[d]);return c(b,"toString")&&(a.toString=b.toString),c(b,"valueOf")&&(a.valueOf=b.valueOf),a}function n(a,b){var c,d,e;if("undefined"!=typeof b._isAMomentObject&&(a._isAMomentObject=b._isAMomentObject),"undefined"!=typeof b._i&&(a._i=b._i),"undefined"!=typeof b._f&&(a._f=b._f),"undefined"!=typeof b._l&&(a._l=b._l),"undefined"!=typeof b._strict&&(a._strict=b._strict),"undefined"!=typeof b._tzm&&(a._tzm=b._tzm),"undefined"!=typeof b._isUTC&&(a._isUTC=b._isUTC),"undefined"!=typeof b._offset&&(a._offset=b._offset),"undefined"!=typeof b._pf&&(a._pf=b._pf),"undefined"!=typeof b._locale&&(a._locale=b._locale),Hb.length>0)for(c in Hb)d=Hb[c],e=b[d],"undefined"!=typeof e&&(a[d]=e);return a}function o(a){return 0>a?Math.ceil(a):Math.floor(a)}function p(a,b,c){for(var d=""+Math.abs(a),e=a>=0;d.lengthd;d++)(c&&a[d]!==b[d]||!c&&A(a[d])!==A(b[d]))&&g++;return g+f}function x(a){if(a){var b=a.toLowerCase().replace(/(.)s$/,"$1");a=ic[a]||jc[b]||b}return a}function y(a){var b,d,e={};for(d in a)c(a,d)&&(b=x(d),b&&(e[b]=a[d]));return e}function z(b){var c,d;if(0===b.indexOf("week"))c=7,d="day";else{if(0!==b.indexOf("month"))return;c=12,d="month"}sb[b]=function(e,f){var g,h,i=sb._locale[b],j=[];if("number"==typeof e&&(f=e,e=a),h=function(a){var b=sb().utc().set(d,a);return i.call(sb._locale,b,e||"")},null!=f)return h(f);for(g=0;c>g;g++)j.push(h(g));return j}}function A(a){var b=+a,c=0;return 0!==b&&isFinite(b)&&(c=b>=0?Math.floor(b):Math.ceil(b)),c}function B(a,b){return new Date(Date.UTC(a,b+1,0)).getUTCDate()}function C(a,b,c){return gb(sb([a,11,31+b-c]),b,c).week}function D(a){return E(a)?366:365}function E(a){return a%4===0&&a%100!==0||a%400===0}function F(a){var b;a._a&&-2===a._pf.overflow&&(b=a._a[Ab]<0||a._a[Ab]>11?Ab:a._a[Bb]<1||a._a[Bb]>B(a._a[zb],a._a[Ab])?Bb:a._a[Cb]<0||a._a[Cb]>23?Cb:a._a[Db]<0||a._a[Db]>59?Db:a._a[Eb]<0||a._a[Eb]>59?Eb:a._a[Fb]<0||a._a[Fb]>999?Fb:-1,a._pf._overflowDayOfYear&&(zb>b||b>Bb)&&(b=Bb),a._pf.overflow=b)}function G(a){return null==a._isValid&&(a._isValid=!isNaN(a._d.getTime())&&a._pf.overflow<0&&!a._pf.empty&&!a._pf.invalidMonth&&!a._pf.nullInput&&!a._pf.invalidFormat&&!a._pf.userInvalidated,a._strict&&(a._isValid=a._isValid&&0===a._pf.charsLeftOver&&0===a._pf.unusedTokens.length)),a._isValid}function H(a){return a?a.toLowerCase().replace("_","-"):a}function I(a){for(var b,c,d,e,f=0;f0;){if(d=J(e.slice(0,b).join("-")))return d;if(c&&c.length>=b&&w(e,c,!0)>=b-1)break;b--}f++}return null}function J(a){var b=null;if(!Gb[a]&&Ib)try{b=sb.locale(),require("./locale/"+a),sb.locale(b)}catch(c){}return Gb[a]}function K(a,b){return b._isUTC?sb(a).zone(b._offset||0):sb(a).local()}function L(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function M(a){var b,c,d=a.match(Mb);for(b=0,c=d.length;c>b;b++)d[b]=oc[d[b]]?oc[d[b]]:L(d[b]);return function(e){var f="";for(b=0;c>b;b++)f+=d[b]instanceof Function?d[b].call(e,a):d[b];return f}}function N(a,b){return a.isValid()?(b=O(b,a.localeData()),kc[b]||(kc[b]=M(b)),kc[b](a)):a.localeData().invalidDate()}function O(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(Nb.lastIndex=0;d>=0&&Nb.test(a);)a=a.replace(Nb,c),Nb.lastIndex=0,d-=1;return a}function P(a,b){var c,d=b._strict;switch(a){case"Q":return Yb;case"DDDD":return $b;case"YYYY":case"GGGG":case"gggg":return d?_b:Qb;case"Y":case"G":case"g":return bc;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return d?ac:Rb;case"S":if(d)return Yb;case"SS":if(d)return Zb;case"SSS":if(d)return $b;case"DDD":return Pb;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Tb;case"a":case"A":return b._locale._meridiemParse;case"X":return Wb;case"Z":case"ZZ":return Ub;case"T":return Vb;case"SSSS":return Sb;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return d?Zb:Ob;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Ob;case"Do":return Xb;default:return c=new RegExp(Y(X(a.replace("\\","")),"i"))}}function Q(a){a=a||"";var b=a.match(Ub)||[],c=b[b.length-1]||[],d=(c+"").match(gc)||["-",0,0],e=+(60*d[1])+A(d[2]);return"+"===d[0]?-e:e}function R(a,b,c){var d,e=c._a;switch(a){case"Q":null!=b&&(e[Ab]=3*(A(b)-1));break;case"M":case"MM":null!=b&&(e[Ab]=A(b)-1);break;case"MMM":case"MMMM":d=c._locale.monthsParse(b),null!=d?e[Ab]=d:c._pf.invalidMonth=b;break;case"D":case"DD":null!=b&&(e[Bb]=A(b));break;case"Do":null!=b&&(e[Bb]=A(parseInt(b,10)));break;case"DDD":case"DDDD":null!=b&&(c._dayOfYear=A(b));break;case"YY":e[zb]=sb.parseTwoDigitYear(b);break;case"YYYY":case"YYYYY":case"YYYYYY":e[zb]=A(b);break;case"a":case"A":c._isPm=c._locale.isPM(b);break;case"H":case"HH":case"h":case"hh":e[Cb]=A(b);break;case"m":case"mm":e[Db]=A(b);break;case"s":case"ss":e[Eb]=A(b);break;case"S":case"SS":case"SSS":case"SSSS":e[Fb]=A(1e3*("0."+b));break;case"X":c._d=new Date(1e3*parseFloat(b));break;case"Z":case"ZZ":c._useUTC=!0,c._tzm=Q(b);break;case"dd":case"ddd":case"dddd":d=c._locale.weekdaysParse(b),null!=d?(c._w=c._w||{},c._w.d=d):c._pf.invalidWeekday=b;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":a=a.substr(0,1);case"gggg":case"GGGG":case"GGGGG":a=a.substr(0,2),b&&(c._w=c._w||{},c._w[a]=A(b));break;case"gg":case"GG":c._w=c._w||{},c._w[a]=sb.parseTwoDigitYear(b)}}function S(a){var c,d,e,f,g,h,i;c=a._w,null!=c.GG||null!=c.W||null!=c.E?(g=1,h=4,d=b(c.GG,a._a[zb],gb(sb(),1,4).year),e=b(c.W,1),f=b(c.E,1)):(g=a._locale._week.dow,h=a._locale._week.doy,d=b(c.gg,a._a[zb],gb(sb(),g,h).year),e=b(c.w,1),null!=c.d?(f=c.d,g>f&&++e):f=null!=c.e?c.e+g:g),i=hb(d,e,f,h,g),a._a[zb]=i.year,a._dayOfYear=i.dayOfYear}function T(a){var c,d,e,f,g=[];if(!a._d){for(e=V(a),a._w&&null==a._a[Bb]&&null==a._a[Ab]&&S(a),a._dayOfYear&&(f=b(a._a[zb],e[zb]),a._dayOfYear>D(f)&&(a._pf._overflowDayOfYear=!0),d=cb(f,0,a._dayOfYear),a._a[Ab]=d.getUTCMonth(),a._a[Bb]=d.getUTCDate()),c=0;3>c&&null==a._a[c];++c)a._a[c]=g[c]=e[c];for(;7>c;c++)a._a[c]=g[c]=null==a._a[c]?2===c?1:0:a._a[c];a._d=(a._useUTC?cb:bb).apply(null,g),null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()+a._tzm)}}function U(a){var b;a._d||(b=y(a._i),a._a=[b.year,b.month,b.day,b.hour,b.minute,b.second,b.millisecond],T(a))}function V(a){var b=new Date;return a._useUTC?[b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()]:[b.getFullYear(),b.getMonth(),b.getDate()]}function W(a){if(a._f===sb.ISO_8601)return void $(a);a._a=[],a._pf.empty=!0;var b,c,d,e,f,g=""+a._i,h=g.length,i=0;for(d=O(a._f,a._locale).match(Mb)||[],b=0;b0&&a._pf.unusedInput.push(f),g=g.slice(g.indexOf(c)+c.length),i+=c.length),oc[e]?(c?a._pf.empty=!1:a._pf.unusedTokens.push(e),R(e,c,a)):a._strict&&!c&&a._pf.unusedTokens.push(e);a._pf.charsLeftOver=h-i,g.length>0&&a._pf.unusedInput.push(g),a._isPm&&a._a[Cb]<12&&(a._a[Cb]+=12),a._isPm===!1&&12===a._a[Cb]&&(a._a[Cb]=0),T(a),F(a)}function X(a){return a.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e})}function Y(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Z(a){var b,c,e,f,g;if(0===a._f.length)return a._pf.invalidFormat=!0,void(a._d=new Date(0/0));for(f=0;fg)&&(e=g,c=b));m(a,c||b)}function $(a){var b,c,d=a._i,e=cc.exec(d);if(e){for(a._pf.iso=!0,b=0,c=ec.length;c>b;b++)if(ec[b][1].exec(d)){a._f=ec[b][0]+(e[6]||" ");break}for(b=0,c=fc.length;c>b;b++)if(fc[b][1].exec(d)){a._f+=fc[b][0];break}d.match(Ub)&&(a._f+="Z"),W(a)}else a._isValid=!1}function _(a){$(a),a._isValid===!1&&(delete a._isValid,sb.createFromInputFallback(a))}function ab(b){var c,d=b._i;d===a?b._d=new Date:v(d)?b._d=new Date(+d):null!==(c=Jb.exec(d))?b._d=new Date(+c[1]):"string"==typeof d?_(b):u(d)?(b._a=d.slice(0),T(b)):"object"==typeof d?U(b):"number"==typeof d?b._d=new Date(d):sb.createFromInputFallback(b)}function bb(a,b,c,d,e,f,g){var h=new Date(a,b,c,d,e,f,g);return 1970>a&&h.setFullYear(a),h}function cb(a){var b=new Date(Date.UTC.apply(null,arguments));return 1970>a&&b.setUTCFullYear(a),b}function db(a,b){if("string"==typeof a)if(isNaN(a)){if(a=b.weekdaysParse(a),"number"!=typeof a)return null}else a=parseInt(a,10);return a}function eb(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function fb(a,b,c){var d=sb.duration(a).abs(),e=xb(d.as("s")),f=xb(d.as("m")),g=xb(d.as("h")),h=xb(d.as("d")),i=xb(d.as("M")),j=xb(d.as("y")),k=e0,k[4]=c,eb.apply({},k)}function gb(a,b,c){var d,e=c-b,f=c-a.day();return f>e&&(f-=7),e-7>f&&(f+=7),d=sb(a).add(f,"d"),{week:Math.ceil(d.dayOfYear()/7),year:d.year()}}function hb(a,b,c,d,e){var f,g,h=cb(a,0,1).getUTCDay();return h=0===h?7:h,c=null!=c?c:e,f=e-h+(h>d?7:0)-(e>h?7:0),g=7*(b-1)+(c-e)+f+1,{year:g>0?a:a-1,dayOfYear:g>0?g:D(a-1)+g}}function ib(b){var c=b._i,d=b._f;return b._locale=b._locale||sb.localeData(b._l),null===c||d===a&&""===c?sb.invalid({nullInput:!0}):("string"==typeof c&&(b._i=c=b._locale.preparse(c)),sb.isMoment(c)?new k(c,!0):(d?u(d)?Z(b):W(b):ab(b),new k(b)))}function jb(a,b){var c,d;if(1===b.length&&u(b[0])&&(b=b[0]),!b.length)return sb();for(c=b[0],d=1;d=0?"+":"-";return b+p(Math.abs(a),6)},gg:function(){return p(this.weekYear()%100,2)},gggg:function(){return p(this.weekYear(),4)},ggggg:function(){return p(this.weekYear(),5)},GG:function(){return p(this.isoWeekYear()%100,2)},GGGG:function(){return p(this.isoWeekYear(),4)},GGGGG:function(){return p(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return A(this.milliseconds()/100)},SS:function(){return p(A(this.milliseconds()/10),2)},SSS:function(){return p(this.milliseconds(),3)},SSSS:function(){return p(this.milliseconds(),3)},Z:function(){var a=-this.zone(),b="+";return 0>a&&(a=-a,b="-"),b+p(A(a/60),2)+":"+p(A(a)%60,2)},ZZ:function(){var a=-this.zone(),b="+";return 0>a&&(a=-a,b="-"),b+p(A(a/60),2)+p(A(a)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},pc={},qc=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];mc.length;)ub=mc.pop(),oc[ub+"o"]=i(oc[ub],ub);for(;nc.length;)ub=nc.pop(),oc[ub+ub]=h(oc[ub],2);oc.DDDD=h(oc.DDD,3),m(j.prototype,{set:function(a){var b,c;for(c in a)b=a[c],"function"==typeof b?this[c]=b:this["_"+c]=b},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(a){return this._months[a.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(a){return this._monthsShort[a.month()]},monthsParse:function(a){var b,c,d;for(this._monthsParse||(this._monthsParse=[]),b=0;12>b;b++)if(this._monthsParse[b]||(c=sb.utc([2e3,b]),d="^"+this.months(c,"")+"|^"+this.monthsShort(c,""),this._monthsParse[b]=new RegExp(d.replace(".",""),"i")),this._monthsParse[b].test(a))return b},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(a){return this._weekdays[a.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(a){return this._weekdaysShort[a.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(a){return this._weekdaysMin[a.day()]},weekdaysParse:function(a){var b,c,d;for(this._weekdaysParse||(this._weekdaysParse=[]),b=0;7>b;b++)if(this._weekdaysParse[b]||(c=sb([2e3,1]).day(b),d="^"+this.weekdays(c,"")+"|^"+this.weekdaysShort(c,"")+"|^"+this.weekdaysMin(c,""),this._weekdaysParse[b]=new RegExp(d.replace(".",""),"i")),this._weekdaysParse[b].test(a))return b},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(a){var b=this._longDateFormat[a];return!b&&this._longDateFormat[a.toUpperCase()]&&(b=this._longDateFormat[a.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a]=b),b},isPM:function(a){return"p"===(a+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(a,b,c){return a>11?c?"pm":"PM":c?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(a,b){var c=this._calendar[a];return"function"==typeof c?c.apply(b):c},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(a,b,c,d){var e=this._relativeTime[c];return"function"==typeof e?e(a,b,c,d):e.replace(/%d/i,a)},pastFuture:function(a,b){var c=this._relativeTime[a>0?"future":"past"];return"function"==typeof c?c(b):c.replace(/%s/i,b)},ordinal:function(a){return this._ordinal.replace("%d",a)},_ordinal:"%d",preparse:function(a){return a},postformat:function(a){return a},week:function(a){return gb(a,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),sb=function(b,c,e,f){var g;return"boolean"==typeof e&&(f=e,e=a),g={},g._isAMomentObject=!0,g._i=b,g._f=c,g._l=e,g._strict=f,g._isUTC=!1,g._pf=d(),ib(g)},sb.suppressDeprecationWarnings=!1,sb.createFromInputFallback=f("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(a){a._d=new Date(a._i)}),sb.min=function(){var a=[].slice.call(arguments,0);return jb("isBefore",a)},sb.max=function(){var a=[].slice.call(arguments,0);return jb("isAfter",a)},sb.utc=function(b,c,e,f){var g;return"boolean"==typeof e&&(f=e,e=a),g={},g._isAMomentObject=!0,g._useUTC=!0,g._isUTC=!0,g._l=e,g._i=b,g._f=c,g._strict=f,g._pf=d(),ib(g).utc()},sb.unix=function(a){return sb(1e3*a)},sb.duration=function(a,b){var d,e,f,g,h=a,i=null;return sb.isDuration(a)?h={ms:a._milliseconds,d:a._days,M:a._months}:"number"==typeof a?(h={},b?h[b]=a:h.milliseconds=a):(i=Kb.exec(a))?(d="-"===i[1]?-1:1,h={y:0,d:A(i[Bb])*d,h:A(i[Cb])*d,m:A(i[Db])*d,s:A(i[Eb])*d,ms:A(i[Fb])*d}):(i=Lb.exec(a))?(d="-"===i[1]?-1:1,f=function(a){var b=a&&parseFloat(a.replace(",","."));return(isNaN(b)?0:b)*d},h={y:f(i[2]),M:f(i[3]),d:f(i[4]),h:f(i[5]),m:f(i[6]),s:f(i[7]),w:f(i[8])}):"object"==typeof h&&("from"in h||"to"in h)&&(g=r(sb(h.from),sb(h.to)),h={},h.ms=g.milliseconds,h.M=g.months),e=new l(h),sb.isDuration(a)&&c(a,"_locale")&&(e._locale=a._locale),e},sb.version=vb,sb.defaultFormat=dc,sb.ISO_8601=function(){},sb.momentProperties=Hb,sb.updateOffset=function(){},sb.relativeTimeThreshold=function(b,c){return lc[b]===a?!1:c===a?lc[b]:(lc[b]=c,!0)},sb.lang=f("moment.lang is deprecated. Use moment.locale instead.",function(a,b){return sb.locale(a,b)}),sb.locale=function(a,b){var c;return a&&(c="undefined"!=typeof b?sb.defineLocale(a,b):sb.localeData(a),c&&(sb.duration._locale=sb._locale=c)),sb._locale._abbr},sb.defineLocale=function(a,b){return null!==b?(b.abbr=a,Gb[a]||(Gb[a]=new j),Gb[a].set(b),sb.locale(a),Gb[a]):(delete Gb[a],null)},sb.langData=f("moment.langData is deprecated. Use moment.localeData instead.",function(a){return sb.localeData(a)}),sb.localeData=function(a){var b;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return sb._locale;if(!u(a)){if(b=J(a))return b;a=[a]}return I(a)},sb.isMoment=function(a){return a instanceof k||null!=a&&c(a,"_isAMomentObject")},sb.isDuration=function(a){return a instanceof l};for(ub=qc.length-1;ub>=0;--ub)z(qc[ub]);sb.normalizeUnits=function(a){return x(a)},sb.invalid=function(a){var b=sb.utc(0/0);return null!=a?m(b._pf,a):b._pf.userInvalidated=!0,b},sb.parseZone=function(){return sb.apply(null,arguments).parseZone()},sb.parseTwoDigitYear=function(a){return A(a)+(A(a)>68?1900:2e3)},m(sb.fn=k.prototype,{clone:function(){return sb(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var a=sb(this).utc();return 00:!1},parsingFlags:function(){return m({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(a){return this.zone(0,a)},local:function(a){return this._isUTC&&(this.zone(0,a),this._isUTC=!1,a&&this.add(this._d.getTimezoneOffset(),"m")),this},format:function(a){var b=N(this,a||sb.defaultFormat);return this.localeData().postformat(b)},add:s(1,"add"),subtract:s(-1,"subtract"),diff:function(a,b,c){var d,e,f=K(a,this),g=6e4*(this.zone()-f.zone());return b=x(b),"year"===b||"month"===b?(d=432e5*(this.daysInMonth()+f.daysInMonth()),e=12*(this.year()-f.year())+(this.month()-f.month()),e+=(this-sb(this).startOf("month")-(f-sb(f).startOf("month")))/d,e-=6e4*(this.zone()-sb(this).startOf("month").zone()-(f.zone()-sb(f).startOf("month").zone()))/d,"year"===b&&(e/=12)):(d=this-f,e="second"===b?d/1e3:"minute"===b?d/6e4:"hour"===b?d/36e5:"day"===b?(d-g)/864e5:"week"===b?(d-g)/6048e5:d),c?e:o(e)},from:function(a,b){return sb.duration({to:this,from:a}).locale(this.locale()).humanize(!b)},fromNow:function(a){return this.from(sb(),a)},calendar:function(a){var b=a||sb(),c=K(b,this).startOf("day"),d=this.diff(c,"days",!0),e=-6>d?"sameElse":-1>d?"lastWeek":0>d?"lastDay":1>d?"sameDay":2>d?"nextDay":7>d?"nextWeek":"sameElse";return this.format(this.localeData().calendar(e,this))},isLeapYear:function(){return E(this.year())},isDST:function(){return this.zone()+sb(a).startOf(b)},isBefore:function(a,b){return b="undefined"!=typeof b?b:"millisecond",+this.clone().startOf(b)<+sb(a).startOf(b)},isSame:function(a,b){return b=b||"ms",+this.clone().startOf(b)===+K(a,this).startOf(b)},min:f("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(a){return a=sb.apply(null,arguments),this>a?this:a}),max:f("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(a){return a=sb.apply(null,arguments),a>this?this:a}),zone:function(a,b){var c,d=this._offset||0;return null==a?this._isUTC?d:this._d.getTimezoneOffset():("string"==typeof a&&(a=Q(a)),Math.abs(a)<16&&(a=60*a),!this._isUTC&&b&&(c=this._d.getTimezoneOffset()),this._offset=a,this._isUTC=!0,null!=c&&this.subtract(c,"m"),d!==a&&(!b||this._changeInProgress?t(this,sb.duration(d-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,sb.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(a){return a=a?sb(a).zone():0,(this.zone()-a)%60===0},daysInMonth:function(){return B(this.year(),this.month())},dayOfYear:function(a){var b=xb((sb(this).startOf("day")-sb(this).startOf("year"))/864e5)+1;return null==a?b:this.add(a-b,"d")},quarter:function(a){return null==a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()%3)},weekYear:function(a){var b=gb(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==a?b:this.add(a-b,"y")},isoWeekYear:function(a){var b=gb(this,1,4).year;return null==a?b:this.add(a-b,"y")},week:function(a){var b=this.localeData().week(this);return null==a?b:this.add(7*(a-b),"d")},isoWeek:function(a){var b=gb(this,1,4).week;return null==a?b:this.add(7*(a-b),"d")},weekday:function(a){var b=(this.day()+7-this.localeData()._week.dow)%7;return null==a?b:this.add(a-b,"d")},isoWeekday:function(a){return null==a?this.day()||7:this.day(this.day()%7?a:a-7)},isoWeeksInYear:function(){return C(this.year(),1,4)},weeksInYear:function(){var a=this.localeData()._week;return C(this.year(),a.dow,a.doy)},get:function(a){return a=x(a),this[a]()},set:function(a,b){return a=x(a),"function"==typeof this[a]&&this[a](b),this},locale:function(b){return b===a?this._locale._abbr:(this._locale=sb.localeData(b),this)},lang:f("moment().lang() is deprecated. Use moment().localeData() instead.",function(b){return b===a?this.localeData():(this._locale=sb.localeData(b),this)}),localeData:function(){return this._locale}}),sb.fn.millisecond=sb.fn.milliseconds=nb("Milliseconds",!1),sb.fn.second=sb.fn.seconds=nb("Seconds",!1),sb.fn.minute=sb.fn.minutes=nb("Minutes",!1),sb.fn.hour=sb.fn.hours=nb("Hours",!0),sb.fn.date=nb("Date",!0),sb.fn.dates=f("dates accessor is deprecated. Use date instead.",nb("Date",!0)),sb.fn.year=nb("FullYear",!0),sb.fn.years=f("years accessor is deprecated. Use year instead.",nb("FullYear",!0)),sb.fn.days=sb.fn.day,sb.fn.months=sb.fn.month,sb.fn.weeks=sb.fn.week,sb.fn.isoWeeks=sb.fn.isoWeek,sb.fn.quarters=sb.fn.quarter,sb.fn.toJSON=sb.fn.toISOString,m(sb.duration.fn=l.prototype,{_bubble:function(){var a,b,c,d=this._milliseconds,e=this._days,f=this._months,g=this._data,h=0;g.milliseconds=d%1e3,a=o(d/1e3),g.seconds=a%60,b=o(a/60),g.minutes=b%60,c=o(b/60),g.hours=c%24,e+=o(c/24),h=o(ob(e)),e-=o(pb(h)),f+=o(e/30),e%=30,h+=o(f/12),f%=12,g.days=e,g.months=f,g.years=h},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return o(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*A(this._months/12)},humanize:function(a){var b=fb(this,!a,this.localeData());return a&&(b=this.localeData().pastFuture(+this,b)),this.localeData().postformat(b)},add:function(a,b){var c=sb.duration(a,b);return this._milliseconds+=c._milliseconds,this._days+=c._days,this._months+=c._months,this._bubble(),this},subtract:function(a,b){var c=sb.duration(a,b);return this._milliseconds-=c._milliseconds,this._days-=c._days,this._months-=c._months,this._bubble(),this},get:function(a){return a=x(a),this[a.toLowerCase()+"s"]()},as:function(a){var b,c;if(a=x(a),b=this._days+this._milliseconds/864e5,"month"===a||"year"===a)return c=this._months+12*ob(b),"month"===a?c:c/12;switch(b+=pb(this._months/12),a){case"week":return b/7;case"day":return b;case"hour":return 24*b;case"minute":return 24*b*60;case"second":return 24*b*60*60;case"millisecond":return 24*b*60*60*1e3;default:throw new Error("Unknown unit "+a)}},lang:sb.fn.lang,locale:sb.fn.locale,toIsoString:f("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var a=Math.abs(this.years()),b=Math.abs(this.months()),c=Math.abs(this.days()),d=Math.abs(this.hours()),e=Math.abs(this.minutes()),f=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(a?a+"Y":"")+(b?b+"M":"")+(c?c+"D":"")+(d||e||f?"T":"")+(d?d+"H":"")+(e?e+"M":"")+(f?f+"S":""):"P0D"},localeData:function(){return this._locale}}),sb.duration.fn.toString=sb.duration.fn.toISOString;for(ub in hc)c(hc,ub)&&qb(ub.toLowerCase());sb.duration.fn.asMilliseconds=function(){return this.as("ms")},sb.duration.fn.asSeconds=function(){return this.as("s")},sb.duration.fn.asMinutes=function(){return this.as("m")},sb.duration.fn.asHours=function(){return this.as("h")},sb.duration.fn.asDays=function(){return this.as("d")},sb.duration.fn.asWeeks=function(){return this.as("weeks")},sb.duration.fn.asMonths=function(){return this.as("M")},sb.duration.fn.asYears=function(){return this.as("y")},sb.locale("en",{ordinal:function(a){var b=a%10,c=1===A(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}}),function(a){a(sb)}(function(a){return a.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiem:function(a,b,c){return 12>a?c?"vm":"VM":c?"nm":"NM"},longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},ordinal:function(a){return a+(1===a||8===a||a>=20?"ste":"de") +},week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){return a.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})}),function(a){a(sb)}(function(a){var b={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},c={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};return a.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},meridiem:function(a){return 12>a?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(a){return a.replace(/[۰-۹]/g,function(a){return c[a]}).replace(/،/g,",")},postformat:function(a){return a.replace(/\d/g,function(a){return b[a]}).replace(/,/g,"،")},week:{dow:6,doy:12}})}),function(a){a(sb)}(function(a){var b={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},c={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};return a.defineLocale("ar",{months:"يناير/ كانون الثاني_فبراير/ شباط_مارس/ آذار_أبريل/ نيسان_مايو/ أيار_يونيو/ حزيران_يوليو/ تموز_أغسطس/ آب_سبتمبر/ أيلول_أكتوبر/ تشرين الأول_نوفمبر/ تشرين الثاني_ديسمبر/ كانون الأول".split("_"),monthsShort:"يناير/ كانون الثاني_فبراير/ شباط_مارس/ آذار_أبريل/ نيسان_مايو/ أيار_يونيو/ حزيران_يوليو/ تموز_أغسطس/ آب_سبتمبر/ أيلول_أكتوبر/ تشرين الأول_نوفمبر/ تشرين الثاني_ديسمبر/ كانون الأول".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},meridiem:function(a){return 12>a?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(a){return a.replace(/[۰-۹]/g,function(a){return c[a]}).replace(/،/g,",")},postformat:function(a){return a.replace(/\d/g,function(a){return b[a]}).replace(/,/g,"،")},week:{dow:6,doy:12}})}),function(a){a(sb)}(function(a){var b={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};return a.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),longDateFormat:{LT:"HH:mm",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiem:function(a){return 4>a?"gecə":12>a?"səhər":17>a?"gündüz":"axşam"},ordinal:function(a){if(0===a)return a+"-ıncı";var c=a%10,d=a%100-c,e=a>=100?100:null;return a+(b[c]||b[d]||b[e])},week:{dow:1,doy:7}})}),function(a){a(sb)}(function(a){function b(a,b){var c=a.split("_");return b%10===1&&b%100!==11?c[0]:b%10>=2&&4>=b%10&&(10>b%100||b%100>=20)?c[1]:c[2]}function c(a,c,d){var e={mm:c?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:c?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===d?c?"хвіліна":"хвіліну":"h"===d?c?"гадзіна":"гадзіну":a+" "+b(e[d],+a)}function d(a,b){var c={nominative:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_"),accusative:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_")},d=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(b)?"accusative":"nominative";return c[d][a.month()]}function e(a,b){var c={nominative:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),accusative:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_")},d=/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/.test(b)?"accusative":"nominative";return c[d][a.day()]}return a.defineLocale("be",{months:d,monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:e,weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., LT",LLLL:"dddd, D MMMM YYYY г., LT"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:c,mm:c,h:c,hh:c,d:"дзень",dd:c,M:"месяц",MM:c,y:"год",yy:c},meridiem:function(a){return 4>a?"ночы":12>a?"раніцы":17>a?"дня":"вечара"},ordinal:function(a,b){switch(b){case"M":case"d":case"DDD":case"w":case"W":return a%10!==2&&a%10!==3||a%100===12||a%100===13?a+"-ы":a+"-і";case"D":return a+"-га";default:return a}},week:{dow:1,doy:7}})}),function(a){a(sb)}(function(a){return a.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},ordinal:function(a){var b=a%10,c=a%100;return 0===a?a+"-ев":0===c?a+"-ен":c>10&&20>c?a+"-ти":1===b?a+"-ви":2===b?a+"-ри":7===b||8===b?a+"-ми":a+"-ти"},week:{dow:1,doy:7}})}),function(a){a(sb)}(function(a){var b={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},c={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};return a.defineLocale("bn",{months:"জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রুবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্রু_শনি".split("_"),weekdaysMin:"রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কএক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(a){return a.replace(/[১২৩৪৫৬৭৮৯০]/g,function(a){return c[a]})},postformat:function(a){return a.replace(/\d/g,function(a){return b[a]})},meridiem:function(a){return 4>a?"রাত":10>a?"শকাল":17>a?"দুপুর":20>a?"বিকেল":"রাত"},week:{dow:0,doy:6}})}),function(a){a(sb)}(function(a){var b={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},c={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};return a.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(a){return a.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(a){return c[a]})},postformat:function(a){return a.replace(/\d/g,function(a){return b[a]})},meridiem:function(a){return 4>a?"མཚན་མོ":10>a?"ཞོགས་ཀས":17>a?"ཉིན་གུང":20>a?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}),function(a){a(sb)}(function(b){function c(a,b,c){var d={mm:"munutenn",MM:"miz",dd:"devezh"};return a+" "+f(d[c],a)}function d(a){switch(e(a)){case 1:case 3:case 4:case 5:case 9:return a+" bloaz";default:return a+" vloaz"}}function e(a){return a>9?e(a%10):a}function f(a,b){return 2===b?g(a):a}function g(b){var c={m:"v",b:"v",d:"z"};return c[b.charAt(0)]===a?b:c[b.charAt(0)]+b.substring(1)}return b.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),longDateFormat:{LT:"h[e]mm A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY LT",LLLL:"dddd, D [a viz] MMMM YYYY LT"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",m:"ur vunutenn",mm:c,h:"un eur",hh:"%d eur",d:"un devezh",dd:c,M:"ur miz",MM:c,y:"ur bloaz",yy:d},ordinal:function(a){var b=1===a?"añ":"vet";return a+b},week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){function b(a,b,c){var d=a+" ";switch(c){case"m":return b?"jedna minuta":"jedne minute";case"mm":return d+=1===a?"minuta":2===a||3===a||4===a?"minute":"minuta";case"h":return b?"jedan sat":"jednog sata";case"hh":return d+=1===a?"sat":2===a||3===a||4===a?"sata":"sati";case"dd":return d+=1===a?"dan":"dana";case"MM":return d+=1===a?"mjesec":2===a||3===a||4===a?"mjeseca":"mjeseci";case"yy":return d+=1===a?"godina":2===a||3===a||4===a?"godine":"godina"}}return a.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:b,mm:b,h:b,hh:b,d:"dan",dd:b,M:"mjesec",MM:b,y:"godinu",yy:b},ordinal:"%d.",week:{dow:1,doy:7}})}),function(a){a(sb)}(function(a){return a.defineLocale("ca",{months:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),monthsShort:"gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),longDateFormat:{LT:"H:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinal:"%dº",week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){function b(a){return a>1&&5>a&&1!==~~(a/10)}function c(a,c,d,e){var f=a+" ";switch(d){case"s":return c||e?"pár sekund":"pár sekundami";case"m":return c?"minuta":e?"minutu":"minutou";case"mm":return c||e?f+(b(a)?"minuty":"minut"):f+"minutami";break;case"h":return c?"hodina":e?"hodinu":"hodinou";case"hh":return c||e?f+(b(a)?"hodiny":"hodin"):f+"hodinami";break;case"d":return c||e?"den":"dnem";case"dd":return c||e?f+(b(a)?"dny":"dní"):f+"dny";break;case"M":return c||e?"měsíc":"měsícem";case"MM":return c||e?f+(b(a)?"měsíce":"měsíců"):f+"měsíci";break;case"y":return c||e?"rok":"rokem";case"yy":return c||e?f+(b(a)?"roky":"let"):f+"lety"}}var d="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),e="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");return a.defineLocale("cs",{months:d,monthsShort:e,monthsParse:function(a,b){var c,d=[];for(c=0;12>c;c++)d[c]=new RegExp("^"+a[c]+"$|^"+b[c]+"$","i");return d}(d,e),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H.mm",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd D. MMMM YYYY LT"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:c,m:c,mm:c,h:c,hh:c,d:c,dd:c,M:c,MM:c,y:c,yy:c},ordinal:"%d.",week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){return a.defineLocale("cv",{months:"кăрлач_нарăс_пуш_ака_май_çĕртме_утă_çурла_авăн_юпа_чӳк_раштав".split("_"),monthsShort:"кăр_нар_пуш_ака_май_çĕр_утă_çур_ав_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кĕçнерникун_эрнекун_шăматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кĕç_эрн_шăм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кç_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",L:"DD-MM-YYYY",LL:"YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ]",LLL:"YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT",LLLL:"dddd, YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ĕнер] LT [сехетре]",nextWeek:"[Çитес] dddd LT [сехетре]",lastWeek:"[Иртнĕ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(a){var b=/сехет$/i.exec(a)?"рен":/çул$/i.exec(a)?"тан":"ран";return a+b},past:"%s каялла",s:"пĕр-ик çеккунт",m:"пĕр минут",mm:"%d минут",h:"пĕр сехет",hh:"%d сехет",d:"пĕр кун",dd:"%d кун",M:"пĕр уйăх",MM:"%d уйăх",y:"пĕр çул",yy:"%d çул"},ordinal:"%d-мĕш",week:{dow:1,doy:7}})}),function(a){a(sb)}(function(a){return a.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},ordinal:function(a){var b=a,c="",d=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return b>20?c=40===b||50===b||60===b||80===b||100===b?"fed":"ain":b>0&&(c=d[b]),a+c},week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){return a.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd [d.] D. MMMM YYYY LT"},calendar:{sameDay:"[I dag kl.] LT",nextDay:"[I morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[I går kl.] LT",lastWeek:"[sidste] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},ordinal:"%d.",week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){function b(a,b,c){var d={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[a+" Tage",a+" Tagen"],M:["ein Monat","einem Monat"],MM:[a+" Monate",a+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[a+" Jahre",a+" Jahren"]};return b?d[c][0]:d[c][1]}return a.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm [Uhr]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Heute um] LT",sameElse:"L",nextDay:"[Morgen um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gestern um] LT",lastWeek:"[letzten] dddd [um] LT"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:b,mm:"%d Minuten",h:b,hh:"%d Stunden",d:b,dd:b,M:b,MM:b,y:b,yy:b},ordinal:"%d.",week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){function b(a,b,c){var d={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[a+" Tage",a+" Tagen"],M:["ein Monat","einem Monat"],MM:[a+" Monate",a+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[a+" Jahre",a+" Jahren"]};return b?d[c][0]:d[c][1]}return a.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm [Uhr]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Heute um] LT",sameElse:"L",nextDay:"[Morgen um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gestern um] LT",lastWeek:"[letzten] dddd [um] LT"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:b,mm:"%d Minuten",h:b,hh:"%d Stunden",d:b,dd:b,M:b,MM:b,y:b,yy:b},ordinal:"%d.",week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){return a.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(a,b){return/D/.test(b.substring(0,b.indexOf("MMMM")))?this._monthsGenitiveEl[a.month()]:this._monthsNominativeEl[a.month()]},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(a,b,c){return a>11?c?"μμ":"ΜΜ":c?"πμ":"ΠΜ"},isPM:function(a){return"μ"===(a+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(a,b){var c=this._calendarEl[a],d=b&&b.hours();return"function"==typeof c&&(c=c.apply(b)),c.replace("{}",d%12===1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},ordinal:function(a){return a+"η"},week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){return a.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinal:function(a){var b=a%10,c=1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c},week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){return a.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",L:"YYYY-MM-DD",LL:"D MMMM, YYYY",LLL:"D MMMM, YYYY LT",LLLL:"dddd, D MMMM, YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinal:function(a){var b=a%10,c=1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}})}),function(a){a(sb)}(function(a){return a.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinal:function(a){var b=a%10,c=1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c},week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){return a.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato".split("_"),weekdaysShort:"Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Ĵa_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",L:"YYYY-MM-DD",LL:"D[-an de] MMMM, YYYY",LLL:"D[-an de] MMMM, YYYY LT",LLLL:"dddd, [la] D[-an de] MMMM, YYYY LT"},meridiem:function(a,b,c){return a>11?c?"p.t.m.":"P.T.M.":c?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"je %s",past:"antaŭ %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},ordinal:"%da",week:{dow:1,doy:7}})}),function(a){a(sb)}(function(a){var b="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),c="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");return a.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(a,d){return/-MMM-/.test(d)?c[a.month()]:b[a.month()]},weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mi_Ju_Vi_Sá".split("_"),longDateFormat:{LT:"H:mm",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY LT",LLLL:"dddd, D [de] MMMM [de] YYYY LT"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:"%dº",week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){function b(a,b,c,d){var e={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:[a+" minuti",a+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[a+" tunni",a+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[a+" kuu",a+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[a+" aasta",a+" aastat"]};return b?e[c][2]?e[c][2]:e[c][1]:d?e[c][0]:e[c][1]}return a.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:b,m:b,mm:b,h:b,hh:b,d:b,dd:"%d päeva",M:b,MM:b,y:b,yy:b},ordinal:"%d.",week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){return a.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),longDateFormat:{LT:"HH:mm",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] LT",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] LT",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] LT",llll:"ddd, YYYY[ko] MMM D[a] LT"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},ordinal:"%d.",week:{dow:1,doy:7}}) +}),function(a){a(sb)}(function(a){var b={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},c={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};return a.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},meridiem:function(a){return 12>a?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چندین ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(a){return a.replace(/[۰-۹]/g,function(a){return c[a]}).replace(/،/g,",")},postformat:function(a){return a.replace(/\d/g,function(a){return b[a]}).replace(/,/g,"،")},ordinal:"%dم",week:{dow:6,doy:12}})}),function(a){a(sb)}(function(a){function b(a,b,d,e){var f="";switch(d){case"s":return e?"muutaman sekunnin":"muutama sekunti";case"m":return e?"minuutin":"minuutti";case"mm":f=e?"minuutin":"minuuttia";break;case"h":return e?"tunnin":"tunti";case"hh":f=e?"tunnin":"tuntia";break;case"d":return e?"päivän":"päivä";case"dd":f=e?"päivän":"päivää";break;case"M":return e?"kuukauden":"kuukausi";case"MM":f=e?"kuukauden":"kuukautta";break;case"y":return e?"vuoden":"vuosi";case"yy":f=e?"vuoden":"vuotta"}return f=c(a,e)+" "+f}function c(a,b){return 10>a?b?e[a]:d[a]:a}var d="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),e=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",d[7],d[8],d[9]];return a.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] LT",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] LT",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] LT",llll:"ddd, Do MMM YYYY, [klo] LT"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:b,m:b,mm:b,h:b,hh:b,d:b,dd:b,M:b,MM:b,y:b,yy:b},ordinal:"%d.",week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){return a.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D. MMMM, YYYY LT"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},ordinal:"%d.",week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){return a.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(a){return a+(1===a?"er":"")}})}),function(a){a(sb)}(function(a){return a.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(a){return a+(1===a?"er":"")},week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){return a.defineLocale("gl",{months:"Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro".split("_"),monthsShort:"Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"),weekdays:"Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"),weekdaysShort:"Dom._Lun._Mar._Mér._Xov._Ven._Sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mé_Xo_Ve_Sá".split("_"),longDateFormat:{LT:"H:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(a){return"uns segundos"===a?"nuns segundos":"en "+a},past:"hai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},ordinal:"%dº",week:{dow:1,doy:7}})}),function(a){a(sb)}(function(a){return a.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY LT",LLLL:"dddd, D [ב]MMMM YYYY LT",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY LT",llll:"ddd, D MMM YYYY LT"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(a){return 2===a?"שעתיים":a+" שעות"},d:"יום",dd:function(a){return 2===a?"יומיים":a+" ימים"},M:"חודש",MM:function(a){return 2===a?"חודשיים":a+" חודשים"},y:"שנה",yy:function(a){return 2===a?"שנתיים":a+" שנים"}}})}),function(a){a(sb)}(function(a){var b={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},c={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return a.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(a){return a.replace(/[१२३४५६७८९०]/g,function(a){return c[a]})},postformat:function(a){return a.replace(/\d/g,function(a){return b[a]})},meridiem:function(a){return 4>a?"रात":10>a?"सुबह":17>a?"दोपहर":20>a?"शाम":"रात"},week:{dow:0,doy:6}})}),function(a){a(sb)}(function(a){function b(a,b,c){var d=a+" ";switch(c){case"m":return b?"jedna minuta":"jedne minute";case"mm":return d+=1===a?"minuta":2===a||3===a||4===a?"minute":"minuta";case"h":return b?"jedan sat":"jednog sata";case"hh":return d+=1===a?"sat":2===a||3===a||4===a?"sata":"sati";case"dd":return d+=1===a?"dan":"dana";case"MM":return d+=1===a?"mjesec":2===a||3===a||4===a?"mjeseca":"mjeseci";case"yy":return d+=1===a?"godina":2===a||3===a||4===a?"godine":"godina"}}return a.defineLocale("hr",{months:"sječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_"),monthsShort:"sje._vel._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:b,mm:b,h:b,hh:b,d:"dan",dd:b,M:"mjesec",MM:b,y:"godinu",yy:b},ordinal:"%d.",week:{dow:1,doy:7}})}),function(a){a(sb)}(function(a){function b(a,b,c,d){var e=a;switch(c){case"s":return d||b?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(d||b?" perc":" perce");case"mm":return e+(d||b?" perc":" perce");case"h":return"egy"+(d||b?" óra":" órája");case"hh":return e+(d||b?" óra":" órája");case"d":return"egy"+(d||b?" nap":" napja");case"dd":return e+(d||b?" nap":" napja");case"M":return"egy"+(d||b?" hónap":" hónapja");case"MM":return e+(d||b?" hónap":" hónapja");case"y":return"egy"+(d||b?" év":" éve");case"yy":return e+(d||b?" év":" éve")}return""}function c(a){return(a?"":"[múlt] ")+"["+d[this.day()]+"] LT[-kor]"}var d="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");return a.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D., LT",LLLL:"YYYY. MMMM D., dddd LT"},meridiem:function(a,b,c){return 12>a?c===!0?"de":"DE":c===!0?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return c.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return c.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:b,m:b,mm:b,h:b,hh:b,d:b,dd:b,M:b,MM:b,y:b,yy:b},ordinal:"%d.",week:{dow:1,doy:7}})}),function(a){a(sb)}(function(a){function b(a,b){var c={nominative:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_"),accusative:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_")},d=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(b)?"accusative":"nominative";return c[d][a.month()]}function c(a){var b="հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_");return b[a.month()]}function d(a){var b="կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_");return b[a.day()]}return a.defineLocale("hy-am",{months:b,monthsShort:c,weekdays:d,weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., LT",LLLL:"dddd, D MMMM YYYY թ., LT"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiem:function(a){return 4>a?"գիշերվա":12>a?"առավոտվա":17>a?"ցերեկվա":"երեկոյան"},ordinal:function(a,b){switch(b){case"DDD":case"w":case"W":case"DDDo":return 1===a?a+"-ին":a+"-րդ";default:return a}},week:{dow:1,doy:7}})}),function(a){a(sb)}(function(a){return a.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] LT",LLLL:"dddd, D MMMM YYYY [pukul] LT"},meridiem:function(a){return 11>a?"pagi":15>a?"siang":19>a?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}),function(a){a(sb)}(function(a){function b(a){return a%100===11?!0:a%10===1?!1:!0}function c(a,c,d,e){var f=a+" ";switch(d){case"s":return c||e?"nokkrar sekúndur":"nokkrum sekúndum";case"m":return c?"mínúta":"mínútu";case"mm":return b(a)?f+(c||e?"mínútur":"mínútum"):c?f+"mínúta":f+"mínútu";case"hh":return b(a)?f+(c||e?"klukkustundir":"klukkustundum"):f+"klukkustund";case"d":return c?"dagur":e?"dag":"degi";case"dd":return b(a)?c?f+"dagar":f+(e?"daga":"dögum"):c?f+"dagur":f+(e?"dag":"degi");case"M":return c?"mánuður":e?"mánuð":"mánuði";case"MM":return b(a)?c?f+"mánuðir":f+(e?"mánuði":"mánuðum"):c?f+"mánuður":f+(e?"mánuð":"mánuði");case"y":return c||e?"ár":"ári";case"yy":return b(a)?f+(c||e?"ár":"árum"):f+(c||e?"ár":"ári")}}return a.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] LT",LLLL:"dddd, D. MMMM YYYY [kl.] LT"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:c,m:c,mm:c,h:"klukkustund",hh:c,d:c,dd:c,M:c,MM:c,y:c,yy:c},ordinal:"%d.",week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){return a.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),weekdaysShort:"Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),weekdaysMin:"D_L_Ma_Me_G_V_S".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:"[lo scorso] dddd [alle] LT",sameElse:"L"},relativeTime:{future:function(a){return(/^[0-9].+$/.test(a)?"tra":"in")+" "+a},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:"%dº",week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){return a.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日LT",LLLL:"YYYY年M月D日LT dddd"},meridiem:function(a){return 12>a?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}),function(a){a(sb)}(function(a){function b(a,b){var c={nominative:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),accusative:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},d=/D[oD] *MMMM?/.test(b)?"accusative":"nominative";return c[d][a.month()]}function c(a,b){var c={nominative:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),accusative:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_")},d=/(წინა|შემდეგ)/.test(b)?"accusative":"nominative";return c[d][a.day()]}return a.defineLocale("ka",{months:b,monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:c,weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(a){return/(წამი|წუთი|საათი|წელი)/.test(a)?a.replace(/ი$/,"ში"):a+"ში"},past:function(a){return/(წამი|წუთი|საათი|დღე|თვე)/.test(a)?a.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(a)?a.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},ordinal:function(a){return 0===a?a:1===a?a+"-ლი":20>a||100>=a&&a%20===0||a%100===0?"მე-"+a:a+"-ე"},week:{dow:1,doy:7}})}),function(a){a(sb)}(function(a){return a.defineLocale("km",{months:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[ថ្ងៃនៈ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){return a.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 m분",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 LT",LLLL:"YYYY년 MMMM D일 dddd LT"},meridiem:function(a){return 12>a?"오전":"오후"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇초",ss:"%d초",m:"일분",mm:"%d분",h:"한시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한달",MM:"%d달",y:"일년",yy:"%d년"},ordinal:"%d일",meridiemParse:/(오전|오후)/,isPM:function(a){return"오후"===a}})}),function(a){a(sb)}(function(a){function b(a,b,c){var d={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return b?d[c][0]:d[c][1]}function c(a){var b=a.substr(0,a.indexOf(" "));return e(b)?"a "+a:"an "+a}function d(a){var b=a.substr(0,a.indexOf(" "));return e(b)?"viru "+a:"virun "+a}function e(a){if(a=parseInt(a,10),isNaN(a))return!1;if(0>a)return!0;if(10>a)return a>=4&&7>=a?!0:!1;if(100>a){var b=a%10,c=a/10;return e(0===b?c:b)}if(1e4>a){for(;a>=10;)a/=10;return e(a)}return a/=1e3,e(a)}return a.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),longDateFormat:{LT:"H:mm [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:c,past:d,s:"e puer Sekonnen",m:b,mm:"%d Minutten",h:b,hh:"%d Stonnen",d:b,dd:"%d Deeg",M:b,MM:"%d Méint",y:b,yy:"%d Joer"},ordinal:"%d.",week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){function b(a,b,c,d){return b?"kelios sekundės":d?"kelių sekundžių":"kelias sekundes"}function c(a,b,c,d){return b?e(c)[0]:d?e(c)[1]:e(c)[2]}function d(a){return a%10===0||a>10&&20>a}function e(a){return h[a].split("_")}function f(a,b,f,g){var h=a+" ";return 1===a?h+c(a,b,f[0],g):b?h+(d(a)?e(f)[1]:e(f)[0]):g?h+e(f)[1]:h+(d(a)?e(f)[1]:e(f)[2])}function g(a,b){var c=-1===b.indexOf("dddd HH:mm"),d=i[a.day()];return c?d:d.substring(0,d.length-2)+"į"}var h={m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"},i="sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_");return a.defineLocale("lt",{months:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:g,weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),longDateFormat:{LT:"HH:mm",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], LT [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, LT [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], LT [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, LT [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:b,m:c,mm:f,h:c,hh:f,d:c,dd:f,M:c,MM:f,y:c,yy:f},ordinal:function(a){return a+"-oji"},week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){function b(a,b,c){var d=a.split("_");return c?b%10===1&&11!==b?d[2]:d[3]:b%10===1&&11!==b?d[0]:d[1]}function c(a,c,e){return a+" "+b(d[e],a,c)}var d={mm:"minūti_minūtes_minūte_minūtes",hh:"stundu_stundas_stunda_stundas",dd:"dienu_dienas_diena_dienas",MM:"mēnesi_mēnešus_mēnesis_mēneši",yy:"gadu_gadus_gads_gadi"};return a.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),longDateFormat:{LT:"HH:mm",L:"DD.MM.YYYY",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, LT",LLLL:"YYYY. [gada] D. MMMM, dddd, LT"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"%s vēlāk",past:"%s agrāk",s:"dažas sekundes",m:"minūti",mm:c,h:"stundu",hh:c,d:"dienu",dd:c,M:"mēnesi",MM:c,y:"gadu",yy:c},ordinal:"%d.",week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){return a.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Во изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Во изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},ordinal:function(a){var b=a%10,c=a%100;return 0===a?a+"-ев":0===c?a+"-ен":c>10&&20>c?a+"-ти":1===b?a+"-ви":2===b?a+"-ри":7===b||8===b?a+"-ми":a+"-ти"},week:{dow:1,doy:7}})}),function(a){a(sb)}(function(a){return a.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiem:function(a){return 4>a?"രാത്രി":12>a?"രാവിലെ":17>a?"ഉച്ച കഴിഞ്ഞ്":20>a?"വൈകുന്നേരം":"രാത്രി"}})}),function(a){a(sb)}(function(a){var b={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},c={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return a.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%s नंतर",past:"%s पूर्वी",s:"सेकंद",m:"एक मिनिट",mm:"%d मिनिटे",h:"एक तास",hh:"%d तास",d:"एक दिवस",dd:"%d दिवस",M:"एक महिना",MM:"%d महिने",y:"एक वर्ष",yy:"%d वर्षे"},preparse:function(a){return a.replace(/[१२३४५६७८९०]/g,function(a){return c[a]})},postformat:function(a){return a.replace(/\d/g,function(a){return b[a]})},meridiem:function(a){return 4>a?"रात्री":10>a?"सकाळी":17>a?"दुपारी":20>a?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}),function(a){a(sb)}(function(a){return a.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] LT",LLLL:"dddd, D MMMM YYYY [pukul] LT"},meridiem:function(a){return 11>a?"pagi":15>a?"tengahari":19>a?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}),function(a){a(sb)}(function(a){var b={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},c={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};return a.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(a){return a.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(a){return c[a]})},postformat:function(a){return a.replace(/\d/g,function(a){return b[a] +})},week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){return a.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tirs_ons_tors_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"H.mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] LT",LLLL:"dddd D. MMMM YYYY [kl.] LT"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},ordinal:"%d.",week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){var b={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},c={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return a.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आइ._सो._मङ्_बु._बि._शु._श.".split("_"),longDateFormat:{LT:"Aको h:mm बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},preparse:function(a){return a.replace(/[१२३४५६७८९०]/g,function(a){return c[a]})},postformat:function(a){return a.replace(/\d/g,function(a){return b[a]})},meridiem:function(a){return 3>a?"राती":10>a?"बिहान":15>a?"दिउँसो":18>a?"बेलुका":20>a?"साँझ":"राती"},calendar:{sameDay:"[आज] LT",nextDay:"[भोली] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडी",s:"केही समय",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:1,doy:7}})}),function(a){a(sb)}(function(a){var b="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),c="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_");return a.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(a,d){return/-MMM-/.test(d)?c[a.month()]:b[a.month()]},weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),longDateFormat:{LT:"HH:mm",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},ordinal:function(a){return a+(1===a||8===a||a>=20?"ste":"de")},week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){return a.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s sidan",s:"nokre sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},ordinal:"%d.",week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){function b(a){return 5>a%10&&a%10>1&&~~(a/10)%10!==1}function c(a,c,d){var e=a+" ";switch(d){case"m":return c?"minuta":"minutę";case"mm":return e+(b(a)?"minuty":"minut");case"h":return c?"godzina":"godzinę";case"hh":return e+(b(a)?"godziny":"godzin");case"MM":return e+(b(a)?"miesiące":"miesięcy");case"yy":return e+(b(a)?"lata":"lat")}}var d="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),e="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");return a.defineLocale("pl",{months:function(a,b){return/D MMMM/.test(b)?e[a.month()]:d[a.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"nie_pon_wt_śr_czw_pt_sb".split("_"),weekdaysMin:"N_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:c,mm:c,h:c,hh:c,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:c,y:"rok",yy:c},ordinal:"%d.",week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){return a.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"dom_2ª_3ª_4ª_5ª_6ª_sáb".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] LT",LLLL:"dddd, D [de] MMMM [de] YYYY [às] LT"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinal:"%dº"})}),function(a){a(sb)}(function(a){return a.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"dom_2ª_3ª_4ª_5ª_6ª_sáb".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY LT",LLLL:"dddd, D [de] MMMM [de] YYYY LT"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinal:"%dº",week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){function b(a,b,c){var d={mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"},e=" ";return(a%100>=20||a>=100&&a%100===0)&&(e=" de "),a+e+d[c]}return a.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",m:"un minut",mm:b,h:"o oră",hh:b,d:"o zi",dd:b,M:"o lună",MM:b,y:"un an",yy:b},week:{dow:1,doy:7}})}),function(a){a(sb)}(function(a){function b(a,b){var c=a.split("_");return b%10===1&&b%100!==11?c[0]:b%10>=2&&4>=b%10&&(10>b%100||b%100>=20)?c[1]:c[2]}function c(a,c,d){var e={mm:c?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===d?c?"минута":"минуту":a+" "+b(e[d],+a)}function d(a,b){var c={nominative:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),accusative:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_")},d=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(b)?"accusative":"nominative";return c[d][a.month()]}function e(a,b){var c={nominative:"янв_фев_мар_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),accusative:"янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек".split("_")},d=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(b)?"accusative":"nominative";return c[d][a.month()]}function f(a,b){var c={nominative:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),accusative:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_")},d=/\[ ?[Вв] ?(?:прошлую|следующую)? ?\] ?dddd/.test(b)?"accusative":"nominative";return c[d][a.day()]}return a.defineLocale("ru",{months:d,monthsShort:e,weekdays:f,weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[й|я]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],longDateFormat:{LT:"HH:mm",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., LT",LLLL:"dddd, D MMMM YYYY г., LT"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(){return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT"},lastWeek:function(){switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:c,mm:c,h:"час",hh:c,d:"день",dd:c,M:"месяц",MM:c,y:"год",yy:c},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(a){return/^(дня|вечера)$/.test(a)},meridiem:function(a){return 4>a?"ночи":12>a?"утра":17>a?"дня":"вечера"},ordinal:function(a,b){switch(b){case"M":case"d":case"DDD":return a+"-й";case"D":return a+"-го";case"w":case"W":return a+"-я";default:return a}},week:{dow:1,doy:7}})}),function(a){a(sb)}(function(a){function b(a){return a>1&&5>a}function c(a,c,d,e){var f=a+" ";switch(d){case"s":return c||e?"pár sekúnd":"pár sekundami";case"m":return c?"minúta":e?"minútu":"minútou";case"mm":return c||e?f+(b(a)?"minúty":"minút"):f+"minútami";break;case"h":return c?"hodina":e?"hodinu":"hodinou";case"hh":return c||e?f+(b(a)?"hodiny":"hodín"):f+"hodinami";break;case"d":return c||e?"deň":"dňom";case"dd":return c||e?f+(b(a)?"dni":"dní"):f+"dňami";break;case"M":return c||e?"mesiac":"mesiacom";case"MM":return c||e?f+(b(a)?"mesiace":"mesiacov"):f+"mesiacmi";break;case"y":return c||e?"rok":"rokom";case"yy":return c||e?f+(b(a)?"roky":"rokov"):f+"rokmi"}}var d="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),e="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");return a.defineLocale("sk",{months:d,monthsShort:e,monthsParse:function(a,b){var c,d=[];for(c=0;12>c;c++)d[c]=new RegExp("^"+a[c]+"$|^"+b[c]+"$","i");return d}(d,e),weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd D. MMMM YYYY LT"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:c,m:c,mm:c,h:c,hh:c,d:c,dd:c,M:c,MM:c,y:c,yy:c},ordinal:"%d.",week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){function b(a,b,c){var d=a+" ";switch(c){case"m":return b?"ena minuta":"eno minuto";case"mm":return d+=1===a?"minuta":2===a?"minuti":3===a||4===a?"minute":"minut";case"h":return b?"ena ura":"eno uro";case"hh":return d+=1===a?"ura":2===a?"uri":3===a||4===a?"ure":"ur";case"dd":return d+=1===a?"dan":"dni";case"MM":return d+=1===a?"mesec":2===a?"meseca":3===a||4===a?"mesece":"mesecev";case"yy":return d+=1===a?"leto":2===a?"leti":3===a||4===a?"leta":"let"}}return a.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),longDateFormat:{LT:"H:mm",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[prejšnja] dddd [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"%s nazaj",s:"nekaj sekund",m:b,mm:b,h:b,hh:b,d:"en dan",dd:b,M:"en mesec",MM:b,y:"eno leto",yy:b},ordinal:"%d.",week:{dow:1,doy:7}})}),function(a){a(sb)}(function(a){return a.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),meridiem:function(a){return 12>a?"PD":"MD"},longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},ordinal:"%d.",week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){var b={words:{m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(a,b){return 1===a?b[0]:a>=2&&4>=a?b[1]:b[2]},translate:function(a,c,d){var e=b.words[d];return 1===d.length?c?e[0]:e[1]:a+" "+b.correctGrammaticalCase(a,e)}};return a.defineLocale("sr-cyrl",{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],monthsShort:["јан.","феб.","мар.","апр.","мај","јун","јул","авг.","сеп.","окт.","нов.","дец."],weekdays:["недеља","понедељак","уторак","среда","четвртак","петак","субота"],weekdaysShort:["нед.","пон.","уто.","сре.","чет.","пет.","суб."],weekdaysMin:["не","по","ут","ср","че","пе","су"],longDateFormat:{LT:"H:mm",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var a=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return a[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",m:b.translate,mm:b.translate,h:b.translate,hh:b.translate,d:"дан",dd:b.translate,M:"месец",MM:b.translate,y:"годину",yy:b.translate},ordinal:"%d.",week:{dow:1,doy:7}})}),function(a){a(sb)}(function(a){var b={words:{m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(a,b){return 1===a?b[0]:a>=2&&4>=a?b[1]:b[2]},translate:function(a,c,d){var e=b.words[d];return 1===d.length?c?e[0]:e[1]:a+" "+b.correctGrammaticalCase(a,e)}};return a.defineLocale("sr",{months:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"],monthsShort:["jan.","feb.","mar.","apr.","maj","jun","jul","avg.","sep.","okt.","nov.","dec."],weekdays:["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"],weekdaysShort:["ned.","pon.","uto.","sre.","čet.","pet.","sub."],weekdaysMin:["ne","po","ut","sr","če","pe","su"],longDateFormat:{LT:"H:mm",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var a=["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return a[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:b.translate,mm:b.translate,h:b.translate,hh:b.translate,d:"dan",dd:b.translate,M:"mesec",MM:b.translate,y:"godinu",yy:b.translate},ordinal:"%d.",week:{dow:1,doy:7}})}),function(a){a(sb)}(function(a){return a.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"dddd LT",lastWeek:"[Förra] dddd[en] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},ordinal:function(a){var b=a%10,c=1===~~(a%100/10)?"e":1===b?"a":2===b?"a":3===b?"e":"e";return a+c},week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){return a.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},ordinal:function(a){return a+"வது"},meridiem:function(a){return a>=6&&10>=a?" காலை":a>=10&&14>=a?" நண்பகல்":a>=14&&18>=a?" எற்பாடு":a>=18&&20>=a?" மாலை":a>=20&&24>=a?" இரவு":a>=0&&6>=a?" வைகறை":void 0},week:{dow:0,doy:6}})}),function(a){a(sb)}(function(a){return a.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา".split("_"),weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),longDateFormat:{LT:"H นาฬิกา m นาที",L:"YYYY/MM/DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา LT",LLLL:"วันddddที่ D MMMM YYYY เวลา LT"},meridiem:function(a){return 12>a?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}),function(a){a(sb)}(function(a){return a.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM DD, YYYY LT"},calendar:{sameDay:"[Ngayon sa] LT",nextDay:"[Bukas sa] LT",nextWeek:"dddd [sa] LT",lastDay:"[Kahapon sa] LT",lastWeek:"dddd [huling linggo] LT",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},ordinal:function(a){return a},week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){var b={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};return a.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(a){if(0===a)return a+"'ıncı";var c=a%10,d=a%100-c,e=a>=100?100:null;return a+(b[c]||b[d]||b[e])},week:{dow:1,doy:7}})}),function(a){a(sb)}(function(a){return a.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}),function(a){a(sb)}(function(a){return a.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}),function(a){a(sb)}(function(a){function b(a,b){var c=a.split("_");return b%10===1&&b%100!==11?c[0]:b%10>=2&&4>=b%10&&(10>b%100||b%100>=20)?c[1]:c[2]}function c(a,c,d){var e={mm:"хвилина_хвилини_хвилин",hh:"година_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===d?c?"хвилина":"хвилину":"h"===d?c?"година":"годину":a+" "+b(e[d],+a)}function d(a,b){var c={nominative:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_"),accusative:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_")},d=/D[oD]? *MMMM?/.test(b)?"accusative":"nominative";return c[d][a.month()]}function e(a,b){var c={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},d=/(\[[ВвУу]\]) ?dddd/.test(b)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(b)?"genitive":"nominative";return c[d][a.day()]}function f(a){return function(){return a+"о"+(11===this.hours()?"б":"")+"] LT"}}return a.defineLocale("uk",{months:d,monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:e,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., LT",LLLL:"dddd, D MMMM YYYY р., LT"},calendar:{sameDay:f("[Сьогодні "),nextDay:f("[Завтра "),lastDay:f("[Вчора "),nextWeek:f("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return f("[Минулої] dddd [").call(this);case 1:case 2:case 4:return f("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:c,mm:c,h:"годину",hh:c,d:"день",dd:c,M:"місяць",MM:c,y:"рік",yy:c},meridiem:function(a){return 4>a?"ночі":12>a?"ранку":17>a?"дня":"вечора"},ordinal:function(a,b){switch(b){case"M":case"d":case"DDD":case"w":case"W":return a+"-й";case"D":return a+"-го";default:return a}},week:{dow:1,doy:7}})}),function(a){a(sb)}(function(a){return a.defineLocale("uz",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"D MMMM YYYY, dddd LT"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}),function(a){a(sb)}(function(a){return a.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY LT",LLLL:"dddd, D MMMM [năm] YYYY LT",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY LT",llll:"ddd, D MMM YYYY LT"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},ordinal:function(a){return a},week:{dow:1,doy:4}})}),function(a){a(sb)}(function(a){return a.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日LT",LLLL:"YYYY年MMMD日ddddLT",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日LT",llll:"YYYY年MMMD日ddddLT"},meridiem:function(a,b){var c=100*a+b;return 600>c?"凌晨":900>c?"早上":1130>c?"上午":1230>c?"中午":1800>c?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var b,c;return b=a().startOf("week"),c=this.unix()-b.unix()>=604800?"[下]":"[本]",0===this.minutes()?c+"dddAh点整":c+"dddAh点mm"},lastWeek:function(){var b,c;return b=a().startOf("week"),c=this.unix()c?"早上":1130>c?"上午":1230>c?"中午":1800>c?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinal:function(a,b){switch(b){case"d":case"D":case"DDD":return a+"日";case"M":return a+"月";case"w":case"W":return a+"週";default:return a}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"一分鐘",mm:"%d分鐘",h:"一小時",hh:"%d小時",d:"一天",dd:"%d天",M:"一個月",MM:"%d個月",y:"一年",yy:"%d年"}})}),sb.locale("en"),Ib?module.exports=sb:"function"==typeof define&&define.amd?(define("moment",function(a,b,c){return c.config&&c.config()&&c.config().noGlobal===!0&&(wb.moment=tb),sb}),rb(!0)):rb()}).call(this); \ No newline at end of file diff --git a/src/octoprint/static/js/lib/moment.min.js b/src/octoprint/static/js/lib/moment.min.js deleted file mode 100644 index 568ad05ce..000000000 --- a/src/octoprint/static/js/lib/moment.min.js +++ /dev/null @@ -1,6 +0,0 @@ -//! moment.js -//! version : 2.4.0 -//! authors : Tim Wood, Iskren Chernev, Moment.js contributors -//! license : MIT -//! momentjs.com -(function(a){function b(a,b){return function(c){return i(a.call(this,c),b)}}function c(a,b){return function(c){return this.lang().ordinal(a.call(this,c),b)}}function d(){}function e(a){u(a),g(this,a)}function f(a){var b=o(a),c=b.year||0,d=b.month||0,e=b.week||0,f=b.day||0,g=b.hour||0,h=b.minute||0,i=b.second||0,j=b.millisecond||0;this._input=a,this._milliseconds=+j+1e3*i+6e4*h+36e5*g,this._days=+f+7*e,this._months=+d+12*c,this._data={},this._bubble()}function g(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return b.hasOwnProperty("toString")&&(a.toString=b.toString),b.hasOwnProperty("valueOf")&&(a.valueOf=b.valueOf),a}function h(a){return 0>a?Math.ceil(a):Math.floor(a)}function i(a,b){for(var c=a+"";c.lengthd;d++)(c&&a[d]!==b[d]||!c&&q(a[d])!==q(b[d]))&&g++;return g+f}function n(a){if(a){var b=a.toLowerCase().replace(/(.)s$/,"$1");a=Kb[a]||Lb[b]||b}return a}function o(a){var b,c,d={};for(c in a)a.hasOwnProperty(c)&&(b=n(c),b&&(d[b]=a[c]));return d}function p(b){var c,d;if(0===b.indexOf("week"))c=7,d="day";else{if(0!==b.indexOf("month"))return;c=12,d="month"}bb[b]=function(e,f){var g,h,i=bb.fn._lang[b],j=[];if("number"==typeof e&&(f=e,e=a),h=function(a){var b=bb().utc().set(d,a);return i.call(bb.fn._lang,b,e||"")},null!=f)return h(f);for(g=0;c>g;g++)j.push(h(g));return j}}function q(a){var b=+a,c=0;return 0!==b&&isFinite(b)&&(c=b>=0?Math.floor(b):Math.ceil(b)),c}function r(a,b){return new Date(Date.UTC(a,b+1,0)).getUTCDate()}function s(a){return t(a)?366:365}function t(a){return 0===a%4&&0!==a%100||0===a%400}function u(a){var b;a._a&&-2===a._pf.overflow&&(b=a._a[gb]<0||a._a[gb]>11?gb:a._a[hb]<1||a._a[hb]>r(a._a[fb],a._a[gb])?hb:a._a[ib]<0||a._a[ib]>23?ib:a._a[jb]<0||a._a[jb]>59?jb:a._a[kb]<0||a._a[kb]>59?kb:a._a[lb]<0||a._a[lb]>999?lb:-1,a._pf._overflowDayOfYear&&(fb>b||b>hb)&&(b=hb),a._pf.overflow=b)}function v(a){a._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function w(a){return null==a._isValid&&(a._isValid=!isNaN(a._d.getTime())&&a._pf.overflow<0&&!a._pf.empty&&!a._pf.invalidMonth&&!a._pf.nullInput&&!a._pf.invalidFormat&&!a._pf.userInvalidated,a._strict&&(a._isValid=a._isValid&&0===a._pf.charsLeftOver&&0===a._pf.unusedTokens.length)),a._isValid}function x(a){return a?a.toLowerCase().replace("_","-"):a}function y(a,b){return b.abbr=a,mb[a]||(mb[a]=new d),mb[a].set(b),mb[a]}function z(a){delete mb[a]}function A(a){var b,c,d,e,f=0,g=function(a){if(!mb[a]&&nb)try{require("./lang/"+a)}catch(b){}return mb[a]};if(!a)return bb.fn._lang;if(!k(a)){if(c=g(a))return c;a=[a]}for(;f0;){if(c=g(e.slice(0,b).join("-")))return c;if(d&&d.length>=b&&m(e,d,!0)>=b-1)break;b--}f++}return bb.fn._lang}function B(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function C(a){var b,c,d=a.match(rb);for(b=0,c=d.length;c>b;b++)d[b]=Pb[d[b]]?Pb[d[b]]:B(d[b]);return function(e){var f="";for(b=0;c>b;b++)f+=d[b]instanceof Function?d[b].call(e,a):d[b];return f}}function D(a,b){return a.isValid()?(b=E(b,a.lang()),Mb[b]||(Mb[b]=C(b)),Mb[b](a)):a.lang().invalidDate()}function E(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(sb.lastIndex=0;d>=0&&sb.test(a);)a=a.replace(sb,c),sb.lastIndex=0,d-=1;return a}function F(a,b){var c;switch(a){case"DDDD":return vb;case"YYYY":case"GGGG":case"gggg":return wb;case"YYYYY":case"GGGGG":case"ggggg":return xb;case"S":case"SS":case"SSS":case"DDD":return ub;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return zb;case"a":case"A":return A(b._l)._meridiemParse;case"X":return Cb;case"Z":case"ZZ":return Ab;case"T":return Bb;case"SSSS":return yb;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"ww":case"W":case"WW":case"e":case"E":return tb;default:return c=new RegExp(N(M(a.replace("\\","")),"i"))}}function G(a){var b=(Ab.exec(a)||[])[0],c=(b+"").match(Hb)||["-",0,0],d=+(60*c[1])+q(c[2]);return"+"===c[0]?-d:d}function H(a,b,c){var d,e=c._a;switch(a){case"M":case"MM":null!=b&&(e[gb]=q(b)-1);break;case"MMM":case"MMMM":d=A(c._l).monthsParse(b),null!=d?e[gb]=d:c._pf.invalidMonth=b;break;case"D":case"DD":null!=b&&(e[hb]=q(b));break;case"DDD":case"DDDD":null!=b&&(c._dayOfYear=q(b));break;case"YY":e[fb]=q(b)+(q(b)>68?1900:2e3);break;case"YYYY":case"YYYYY":e[fb]=q(b);break;case"a":case"A":c._isPm=A(c._l).isPM(b);break;case"H":case"HH":case"h":case"hh":e[ib]=q(b);break;case"m":case"mm":e[jb]=q(b);break;case"s":case"ss":e[kb]=q(b);break;case"S":case"SS":case"SSS":case"SSSS":e[lb]=q(1e3*("0."+b));break;case"X":c._d=new Date(1e3*parseFloat(b));break;case"Z":case"ZZ":c._useUTC=!0,c._tzm=G(b);break;case"w":case"ww":case"W":case"WW":case"d":case"dd":case"ddd":case"dddd":case"e":case"E":a=a.substr(0,1);case"gg":case"gggg":case"GG":case"GGGG":case"GGGGG":a=a.substr(0,2),b&&(c._w=c._w||{},c._w[a]=b)}}function I(a){var b,c,d,e,f,g,h,i,j,k,l=[];if(!a._d){for(d=K(a),a._w&&null==a._a[hb]&&null==a._a[gb]&&(f=function(b){return b?b.length<3?parseInt(b,10)>68?"19"+b:"20"+b:b:null==a._a[fb]?bb().weekYear():a._a[fb]},g=a._w,null!=g.GG||null!=g.W||null!=g.E?h=X(f(g.GG),g.W||1,g.E,4,1):(i=A(a._l),j=null!=g.d?T(g.d,i):null!=g.e?parseInt(g.e,10)+i._week.dow:0,k=parseInt(g.w,10)||1,null!=g.d&&js(e)&&(a._pf._overflowDayOfYear=!0),c=S(e,0,a._dayOfYear),a._a[gb]=c.getUTCMonth(),a._a[hb]=c.getUTCDate()),b=0;3>b&&null==a._a[b];++b)a._a[b]=l[b]=d[b];for(;7>b;b++)a._a[b]=l[b]=null==a._a[b]?2===b?1:0:a._a[b];l[ib]+=q((a._tzm||0)/60),l[jb]+=q((a._tzm||0)%60),a._d=(a._useUTC?S:R).apply(null,l)}}function J(a){var b;a._d||(b=o(a._i),a._a=[b.year,b.month,b.day,b.hour,b.minute,b.second,b.millisecond],I(a))}function K(a){var b=new Date;return a._useUTC?[b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()]:[b.getFullYear(),b.getMonth(),b.getDate()]}function L(a){a._a=[],a._pf.empty=!0;var b,c,d,e,f,g=A(a._l),h=""+a._i,i=h.length,j=0;for(d=E(a._f,g).match(rb)||[],b=0;b0&&a._pf.unusedInput.push(f),h=h.slice(h.indexOf(c)+c.length),j+=c.length),Pb[e]?(c?a._pf.empty=!1:a._pf.unusedTokens.push(e),H(e,c,a)):a._strict&&!c&&a._pf.unusedTokens.push(e);a._pf.charsLeftOver=i-j,h.length>0&&a._pf.unusedInput.push(h),a._isPm&&a._a[ib]<12&&(a._a[ib]+=12),a._isPm===!1&&12===a._a[ib]&&(a._a[ib]=0),I(a),u(a)}function M(a){return a.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e})}function N(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function O(a){var b,c,d,e,f;if(0===a._f.length)return a._pf.invalidFormat=!0,a._d=new Date(0/0),void 0;for(e=0;ef)&&(d=f,c=b));g(a,c||b)}function P(a){var b,c=a._i,d=Db.exec(c);if(d){for(a._pf.iso=!0,b=4;b>0;b--)if(d[b]){a._f=Fb[b-1]+(d[6]||" ");break}for(b=0;4>b;b++)if(Gb[b][1].exec(c)){a._f+=Gb[b][0];break}Ab.exec(c)&&(a._f+="Z"),L(a)}else a._d=new Date(c)}function Q(b){var c=b._i,d=ob.exec(c);c===a?b._d=new Date:d?b._d=new Date(+d[1]):"string"==typeof c?P(b):k(c)?(b._a=c.slice(0),I(b)):l(c)?b._d=new Date(+c):"object"==typeof c?J(b):b._d=new Date(c)}function R(a,b,c,d,e,f,g){var h=new Date(a,b,c,d,e,f,g);return 1970>a&&h.setFullYear(a),h}function S(a){var b=new Date(Date.UTC.apply(null,arguments));return 1970>a&&b.setUTCFullYear(a),b}function T(a,b){if("string"==typeof a)if(isNaN(a)){if(a=b.weekdaysParse(a),"number"!=typeof a)return null}else a=parseInt(a,10);return a}function U(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function V(a,b,c){var d=eb(Math.abs(a)/1e3),e=eb(d/60),f=eb(e/60),g=eb(f/24),h=eb(g/365),i=45>d&&["s",d]||1===e&&["m"]||45>e&&["mm",e]||1===f&&["h"]||22>f&&["hh",f]||1===g&&["d"]||25>=g&&["dd",g]||45>=g&&["M"]||345>g&&["MM",eb(g/30)]||1===h&&["y"]||["yy",h];return i[2]=b,i[3]=a>0,i[4]=c,U.apply({},i)}function W(a,b,c){var d,e=c-b,f=c-a.day();return f>e&&(f-=7),e-7>f&&(f+=7),d=bb(a).add("d",f),{week:Math.ceil(d.dayOfYear()/7),year:d.year()}}function X(a,b,c,d,e){var f,g,h=new Date(Date.UTC(a,0)).getUTCDay();return c=null!=c?c:e,f=e-h+(h>d?7:0),g=7*(b-1)+(c-e)+f+1,{year:g>0?a:a-1,dayOfYear:g>0?g:s(a-1)+g}}function Y(a){var b=a._i,c=a._f;return"undefined"==typeof a._pf&&v(a),null===b?bb.invalid({nullInput:!0}):("string"==typeof b&&(a._i=b=A().preparse(b)),bb.isMoment(b)?(a=g({},b),a._d=new Date(+b._d)):c?k(c)?O(a):L(a):Q(a),new e(a))}function Z(a,b){bb.fn[a]=bb.fn[a+"s"]=function(a){var c=this._isUTC?"UTC":"";return null!=a?(this._d["set"+c+b](a),bb.updateOffset(this),this):this._d["get"+c+b]()}}function $(a){bb.duration.fn[a]=function(){return this._data[a]}}function _(a,b){bb.duration.fn["as"+a]=function(){return+this/b}}function ab(a){var b=!1,c=bb;"undefined"==typeof ender&&(this.moment=a?function(){return!b&&console&&console.warn&&(b=!0,console.warn("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.")),c.apply(null,arguments)}:bb)}for(var bb,cb,db="2.4.0",eb=Math.round,fb=0,gb=1,hb=2,ib=3,jb=4,kb=5,lb=6,mb={},nb="undefined"!=typeof module&&module.exports,ob=/^\/?Date\((\-?\d+)/i,pb=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,qb=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,rb=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,sb=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,tb=/\d\d?/,ub=/\d{1,3}/,vb=/\d{3}/,wb=/\d{1,4}/,xb=/[+\-]?\d{1,6}/,yb=/\d+/,zb=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Ab=/Z|[\+\-]\d\d:?\d\d/i,Bb=/T/i,Cb=/[\+\-]?\d+(\.\d{1,3})?/,Db=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d:?\d\d|Z)?)?$/,Eb="YYYY-MM-DDTHH:mm:ssZ",Fb=["YYYY-MM-DD","GGGG-[W]WW","GGGG-[W]WW-E","YYYY-DDD"],Gb=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d{1,3}/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],Hb=/([\+\-]|\d\d)/gi,Ib="Date|Hours|Minutes|Seconds|Milliseconds".split("|"),Jb={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},Kb={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},Lb={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},Mb={},Nb="DDD w W M D d".split(" "),Ob="M D H h m s w W".split(" "),Pb={M:function(){return this.month()+1},MMM:function(a){return this.lang().monthsShort(this,a)},MMMM:function(a){return this.lang().months(this,a)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(a){return this.lang().weekdaysMin(this,a)},ddd:function(a){return this.lang().weekdaysShort(this,a)},dddd:function(a){return this.lang().weekdays(this,a)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return i(this.year()%100,2)},YYYY:function(){return i(this.year(),4)},YYYYY:function(){return i(this.year(),5)},gg:function(){return i(this.weekYear()%100,2)},gggg:function(){return this.weekYear()},ggggg:function(){return i(this.weekYear(),5)},GG:function(){return i(this.isoWeekYear()%100,2)},GGGG:function(){return this.isoWeekYear()},GGGGG:function(){return i(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.lang().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return q(this.milliseconds()/100)},SS:function(){return i(q(this.milliseconds()/10),2)},SSS:function(){return i(this.milliseconds(),3)},SSSS:function(){return i(this.milliseconds(),3)},Z:function(){var a=-this.zone(),b="+";return 0>a&&(a=-a,b="-"),b+i(q(a/60),2)+":"+i(q(a)%60,2)},ZZ:function(){var a=-this.zone(),b="+";return 0>a&&(a=-a,b="-"),b+i(q(10*a/6),4)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()}},Qb=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];Nb.length;)cb=Nb.pop(),Pb[cb+"o"]=c(Pb[cb],cb);for(;Ob.length;)cb=Ob.pop(),Pb[cb+cb]=b(Pb[cb],2);for(Pb.DDDD=b(Pb.DDD,3),g(d.prototype,{set:function(a){var b,c;for(c in a)b=a[c],"function"==typeof b?this[c]=b:this["_"+c]=b},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(a){return this._months[a.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(a){return this._monthsShort[a.month()]},monthsParse:function(a){var b,c,d;for(this._monthsParse||(this._monthsParse=[]),b=0;12>b;b++)if(this._monthsParse[b]||(c=bb.utc([2e3,b]),d="^"+this.months(c,"")+"|^"+this.monthsShort(c,""),this._monthsParse[b]=new RegExp(d.replace(".",""),"i")),this._monthsParse[b].test(a))return b},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(a){return this._weekdays[a.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(a){return this._weekdaysShort[a.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(a){return this._weekdaysMin[a.day()]},weekdaysParse:function(a){var b,c,d;for(this._weekdaysParse||(this._weekdaysParse=[]),b=0;7>b;b++)if(this._weekdaysParse[b]||(c=bb([2e3,1]).day(b),d="^"+this.weekdays(c,"")+"|^"+this.weekdaysShort(c,"")+"|^"+this.weekdaysMin(c,""),this._weekdaysParse[b]=new RegExp(d.replace(".",""),"i")),this._weekdaysParse[b].test(a))return b},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D YYYY",LLL:"MMMM D YYYY LT",LLLL:"dddd, MMMM D YYYY LT"},longDateFormat:function(a){var b=this._longDateFormat[a];return!b&&this._longDateFormat[a.toUpperCase()]&&(b=this._longDateFormat[a.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a]=b),b},isPM:function(a){return"p"===(a+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(a,b,c){return a>11?c?"pm":"PM":c?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(a,b){var c=this._calendar[a];return"function"==typeof c?c.apply(b):c},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(a,b,c,d){var e=this._relativeTime[c];return"function"==typeof e?e(a,b,c,d):e.replace(/%d/i,a)},pastFuture:function(a,b){var c=this._relativeTime[a>0?"future":"past"];return"function"==typeof c?c(b):c.replace(/%s/i,b)},ordinal:function(a){return this._ordinal.replace("%d",a)},_ordinal:"%d",preparse:function(a){return a},postformat:function(a){return a},week:function(a){return W(a,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),bb=function(b,c,d,e){return"boolean"==typeof d&&(e=d,d=a),Y({_i:b,_f:c,_l:d,_strict:e,_isUTC:!1})},bb.utc=function(b,c,d,e){var f;return"boolean"==typeof d&&(e=d,d=a),f=Y({_useUTC:!0,_isUTC:!0,_l:d,_i:b,_f:c,_strict:e}).utc()},bb.unix=function(a){return bb(1e3*a)},bb.duration=function(a,b){var c,d,e,g=bb.isDuration(a),h="number"==typeof a,i=g?a._input:h?{}:a,j=null;return h?b?i[b]=a:i.milliseconds=a:(j=pb.exec(a))?(c="-"===j[1]?-1:1,i={y:0,d:q(j[hb])*c,h:q(j[ib])*c,m:q(j[jb])*c,s:q(j[kb])*c,ms:q(j[lb])*c}):(j=qb.exec(a))&&(c="-"===j[1]?-1:1,e=function(a){var b=a&&parseFloat(a.replace(",","."));return(isNaN(b)?0:b)*c},i={y:e(j[2]),M:e(j[3]),d:e(j[4]),h:e(j[5]),m:e(j[6]),s:e(j[7]),w:e(j[8])}),d=new f(i),g&&a.hasOwnProperty("_lang")&&(d._lang=a._lang),d},bb.version=db,bb.defaultFormat=Eb,bb.updateOffset=function(){},bb.lang=function(a,b){var c;return a?(b?y(x(a),b):null===b?(z(a),a="en"):mb[a]||A(a),c=bb.duration.fn._lang=bb.fn._lang=A(a),c._abbr):bb.fn._lang._abbr},bb.langData=function(a){return a&&a._lang&&a._lang._abbr&&(a=a._lang._abbr),A(a)},bb.isMoment=function(a){return a instanceof e},bb.isDuration=function(a){return a instanceof f},cb=Qb.length-1;cb>=0;--cb)p(Qb[cb]);for(bb.normalizeUnits=function(a){return n(a)},bb.invalid=function(a){var b=bb.utc(0/0);return null!=a?g(b._pf,a):b._pf.userInvalidated=!0,b},bb.parseZone=function(a){return bb(a).parseZone()},g(bb.fn=e.prototype,{clone:function(){return bb(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().lang("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){return D(bb(this).utc(),"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var a=this;return[a.year(),a.month(),a.date(),a.hours(),a.minutes(),a.seconds(),a.milliseconds()]},isValid:function(){return w(this)},isDSTShifted:function(){return this._a?this.isValid()&&m(this._a,(this._isUTC?bb.utc(this._a):bb(this._a)).toArray())>0:!1},parsingFlags:function(){return g({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(){return this.zone(0)},local:function(){return this.zone(0),this._isUTC=!1,this},format:function(a){var b=D(this,a||bb.defaultFormat);return this.lang().postformat(b)},add:function(a,b){var c;return c="string"==typeof a?bb.duration(+b,a):bb.duration(a,b),j(this,c,1),this},subtract:function(a,b){var c;return c="string"==typeof a?bb.duration(+b,a):bb.duration(a,b),j(this,c,-1),this},diff:function(a,b,c){var d,e,f=this._isUTC?bb(a).zone(this._offset||0):bb(a).local(),g=6e4*(this.zone()-f.zone());return b=n(b),"year"===b||"month"===b?(d=432e5*(this.daysInMonth()+f.daysInMonth()),e=12*(this.year()-f.year())+(this.month()-f.month()),e+=(this-bb(this).startOf("month")-(f-bb(f).startOf("month")))/d,e-=6e4*(this.zone()-bb(this).startOf("month").zone()-(f.zone()-bb(f).startOf("month").zone()))/d,"year"===b&&(e/=12)):(d=this-f,e="second"===b?d/1e3:"minute"===b?d/6e4:"hour"===b?d/36e5:"day"===b?(d-g)/864e5:"week"===b?(d-g)/6048e5:d),c?e:h(e)},from:function(a,b){return bb.duration(this.diff(a)).lang(this.lang()._abbr).humanize(!b)},fromNow:function(a){return this.from(bb(),a)},calendar:function(){var a=this.diff(bb().zone(this.zone()).startOf("day"),"days",!0),b=-6>a?"sameElse":-1>a?"lastWeek":0>a?"lastDay":1>a?"sameDay":2>a?"nextDay":7>a?"nextWeek":"sameElse";return this.format(this.lang().calendar(b,this))},isLeapYear:function(){return t(this.year())},isDST:function(){return this.zone()+bb(a).startOf(b)},isBefore:function(a,b){return b="undefined"!=typeof b?b:"millisecond",+this.clone().startOf(b)<+bb(a).startOf(b)},isSame:function(a,b){return b="undefined"!=typeof b?b:"millisecond",+this.clone().startOf(b)===+bb(a).startOf(b)},min:function(a){return a=bb.apply(null,arguments),this>a?this:a},max:function(a){return a=bb.apply(null,arguments),a>this?this:a},zone:function(a){var b=this._offset||0;return null==a?this._isUTC?b:this._d.getTimezoneOffset():("string"==typeof a&&(a=G(a)),Math.abs(a)<16&&(a=60*a),this._offset=a,this._isUTC=!0,b!==a&&j(this,bb.duration(b-a,"m"),1,!0),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(a){return a=a?bb(a).zone():0,0===(this.zone()-a)%60},daysInMonth:function(){return r(this.year(),this.month())},dayOfYear:function(a){var b=eb((bb(this).startOf("day")-bb(this).startOf("year"))/864e5)+1;return null==a?b:this.add("d",a-b)},weekYear:function(a){var b=W(this,this.lang()._week.dow,this.lang()._week.doy).year;return null==a?b:this.add("y",a-b)},isoWeekYear:function(a){var b=W(this,1,4).year;return null==a?b:this.add("y",a-b)},week:function(a){var b=this.lang().week(this);return null==a?b:this.add("d",7*(a-b))},isoWeek:function(a){var b=W(this,1,4).week;return null==a?b:this.add("d",7*(a-b))},weekday:function(a){var b=(this.day()+7-this.lang()._week.dow)%7;return null==a?b:this.add("d",a-b)},isoWeekday:function(a){return null==a?this.day()||7:this.day(this.day()%7?a:a-7)},get:function(a){return a=n(a),this[a]()},set:function(a,b){return a=n(a),"function"==typeof this[a]&&this[a](b),this},lang:function(b){return b===a?this._lang:(this._lang=A(b),this)}}),cb=0;cb
-

Server is offline

-

- The server appears to be offline, at least I'm not getting any response from it. I'll try to reconnect - automatically over the next couple of minutes, however you are welcome to try a manual reconnect - anytime using the button below. -

+

{{ _('Server is offline') }}

+

- Attempt to reconnect + {{ _('Attempt to reconnect') }}

@@ -21,12 +17,12 @@
{% if enableSdSupport %} -

Upload locally
+

{{ _('Upload locally') }}
-

Upload to SD
(SD not initialized)
+

{{ _('Upload to SD') }}
({{ _('SD not initialized') }})
{% else %} -

Upload
+

{{ _('Upload') }}
{% endif %}
@@ -35,29 +31,29 @@ \ No newline at end of file diff --git a/src/octoprint/templates/index.jinja2 b/src/octoprint/templates/index.jinja2 index 67e3e7f81..03f50148d 100644 --- a/src/octoprint/templates/index.jinja2 +++ b/src/octoprint/templates/index.jinja2 @@ -42,6 +42,7 @@ var UI_API_KEY = "{{ uiApiKey }}"; var VERSION = "{{ version }}"; + var LOCALE = "{{ g.locale }}"; @@ -53,13 +54,13 @@
- + - + - +
- Machine State:
- File:  (SD)
- Timelapse:
+ {{ _('Machine State') }}:
+ {{ _('File') }}:  (SD)
+ {{ _('Timelapse') }}:

- Approx. Total Print Time:
- Print Time:
- Print Time Left:
- Printed:
+ {{ _('Approx. Total Print Time') }}:
+ {{ _('Print Time') }}:
+ {{ _('Print Time Left') }}:
+ {{ _('Printed') }}:
{% endif %} @@ -184,43 +185,43 @@
-
Uploaded:
-
Size:
+
{{ _('Uploaded') }}:
+
{{ _('Size') }}:
- -
-
-
+ +
+
+
- Free: + {{ _('Free') }}:
{% if enableSdSupport %} - Upload + {{ _('Upload') }} - Upload to SD + {{ _('Upload to SD') }} {% else %} - Upload + {{ _('Upload') }} {% endif %} @@ -229,7 +230,7 @@
- Hint: You can also drag and drop files on this page to upload them. + {{ _('Hint: You can also drag and drop files on this page to upload them.') }}
@@ -239,11 +240,11 @@
@@ -258,9 +259,9 @@ - - - + + + @@ -276,7 +277,7 @@ °C
- + @@ -288,7 +289,7 @@
  • - Off + {{ _('Off') }}
  • @@ -298,7 +299,7 @@
    °C - +
    @@ -356,28 +357,28 @@
    mm
    - - + +
    @@ -441,38 +442,38 @@

    - +

    @@ -499,7 +500,7 @@
    
                                 
                                 
    {% if enableTimelapse %}
    -

    Timelapse Configuration

    +

    {{ _('Timelapse Configuration') }}

    - + - +
    - sec + {{ _('sec') }}
    - +
    - sec + {{ _('sec') }}
    - +
    -

    Finished Timelapses

    +

    {{ _('Finished Timelapses') }}

    ActualTargetOffset{{ _('Actual') }}{{ _('Target') }}{{ _('Offset') }}
    - - - + + + @@ -588,13 +589,13 @@ @@ -607,6 +608,7 @@ + @@ -620,7 +622,7 @@ - + @@ -650,6 +652,12 @@ + + {% if g.locale != 'en' %} + + {% endif %} + + diff --git a/src/octoprint/templates/settings.jinja2 b/src/octoprint/templates/settings.jinja2 index 97573b7c2..b4c9ab2db 100644 --- a/src/octoprint/templates/settings.jinja2 +++ b/src/octoprint/templates/settings.jinja2 @@ -1,39 +1,39 @@
    NameSizeAction{{ _('Name') }}{{ _('Size') }}{{ _('Action') }}
    - - - - + + + + - + @@ -495,114 +495,114 @@ - +
    NameActiveAdminAction{{ _('Name') }}{{ _('Active') }}{{ _('Admin') }}{{ _('Action') }}

    Apikey:

    {{ _('API Key') }}:
    -  |  |  +  |  | 
    - - - - + + + + @@ -673,7 +673,7 @@ diff --git a/src/octoprint/translations/de/LC_MESSAGES/messages.mo b/src/octoprint/translations/de/LC_MESSAGES/messages.mo new file mode 100644 index 0000000000000000000000000000000000000000..53caafff5d792d953b3110daf8a93180f3ecffc9 GIT binary patch literal 18835 zcmcJWdypkpUB?>|NLU3S4;}&GWM$deWbb4*1d>cPOJ-+gcZYp4Gn<6v59xbv-+McA zZ}+vk?@ngah!R1hNKqC95HN*q;R9cwE-77585G2T%CiU>MMbeNA{8wKALZwJ&gs5A zvzrwyO(pZ~)93Vg{9fnxxOwEVi{BdX&r_ce1kVHSy;QC7KY#!9Ab26oN5RXV7zCF+ zBM9DeQ4qZ7@*n_$k3TaAE&(3`p9Fpud>Z&L_+;?!JpQA{e*v|`e}Wo+$+LpsHt?z7 z72r|u*n@!1sM`dgQC|-5RwK>-_Akp>-)jWz}JDA?;XDXr@>vce*yeB_$5&1J$;os#|J>| z>w~`iF;MG01bzqj6;Shj1Jr&ler^!Jg5WAp>+S|M-yTrwz8pj(f<;jDJOPRhcY%;N z_&#tFd;=&tJqT*OPx$`70(Jg>1NHqA5H79vOi=9xC_3x|?Ruc-vFO`v-#_r}k;i*L z&GULt{QD_T>--FeNCrO-Y9Aj0HSY7E)_D}v_c0n+yuTjgsKNc9`0xQx^M3>s{r||fzvS_&pxqCs@4p3# z4^LqebKn)A&UF&hJg){tp8=@-+yjd4KMHD|w}D#cU7+~*bD-us18Usw`u1l)$@wFo zzWYm1^ZzaQV(_29YrqNP=(z~$yj@V=t%0KFJ)rjSI#BDr3FHXDJ3vSqJP3*(p99tZ zccAF?&!G77pP<&g66Mvnt)S@eQc&lf12z94-(CQ9o;yL&w*^X$a!~vEF^_Kswcodc zTJL?J==STr|Mx)6`$_-)v%dWmQ1kx1Z~r@}eP6WIjsGrC^E?wg25twn?-fwry%E%U z?*z4<(;j~j)P8;)6dyhYitb+o_1z<&*7*lea{Db%=e!)F@)Yp-py)CI>bo03@o5jJ zd556peJ!YY-s;=$0WYHcYoPY^K~VGl4k-EfL(uL6yn*&3puWHSg^n*T0JZK;-@XOZ zxekI_@3?>81Vx7w)cmgn#lQP}`z_$hXg>gI-9HC4@1x)%`0wB(czm0aiys2TpZh(& z8`Qo|gIecTLCMWWL7nSQK=I{aa2NPB@H+5$FGA+Q!{EPyPuuS3cFBa>-z}i%I}OSn z90D~@3)KD!PU4A#D%3+g=EL7jgR z)ckuuo#POADR`&v4?*cs>fhf7itcX%IZE(=Z~s21c|HYd{yzhs0RFYdzX5fguYw#s z_$H`*U44xkcN3`oDex)aAyDTz0qQ)j0=4d|!7X49RDTX?zpLOy;E#Y$1YhUdZveHQ zH~IEkJigt(e;25Ef5x}p2mTxz{{V<61h3l3z0ZWN0kx6$ARJofr>}S4y%*Gee;Jhi zKL~2QPlDRtXF-jB7`zO8#J~RrI79niK+*S>7dv}@5_~D`HE;{~eo%Zm3+kMo0A<%d z1G2^7>!A356-p!eT?1|dZ}Av{SI~YvsQKOnYF|GKYQA3rMc*@^=J_p9^7V(H=<;Wv z0lxxj{wKf0;j_RA+7qC@e+4M{x*gQ~P4G&v2Vz2kdqDNS2fPCOB~Wzx2&jEL1d2YN z1GUeu`u@j2(c?eB$G{tCXde?dx^-^`wcov<);$j5iUhZVI?oWi9DEIUCHNNbYVa38 zo$nz~^!+TTef%XTx&0c5YZ5#PYCo6Wp z!DoXH`}Sj?)_n?-XuW5EmVcn=a}B8VUg~ig)VRYSSAB2-)H!od^Q?l;0e{%zJHcns z{tZy)`Xng+dKq0<0ZxGGzXz0@+zVQJ2Wmg> z10^RP0Cle417&wU0cyQ3f?DryLDBV}K<)G5TirZQ2ld@nP~U9_r@@zk4e)MI-@O;q zdC!2--%o+s=chsK<6%(y`ZD-J@G($yc=lemzrCQwy#f?H?*yL)+3VlE>q| z9fP9h5R^Q;7S#UUJ~=YY?@&GF|ZQ2RIniq5x#+D{WS;9a2T^hQwg zzZ;a@|5;Gy`7kK^@Oe=C{U)e!m%tS1?K41~XB&tJ20KB`*Y*9Ypw9OuQ1iYW)c9Wk zHQyOf<39?Dub&6CzrO(yjo=?Zt#|D{r>`#oHP0bXbZCO=PyPE(2zn&+#a_Wu~D{XA*b z(fcw`a`Rjel?tu_F)cv{{4)3ec*zs63v=%M8}_?%d<4|I4}n&mK-sCUgQCxq4mkUG zC8%|81b2e-zI_Umoc*vYAgJ+$LI)CM+wKWSdcQaQBgx9wgxEZ9ytBZr7PcG575OxVoR zKEz|jR+JSX$FO9u=Nv}qkR`PHT~*w)IjniY885ni^*!yJ=fJZ z@Oa#qP0i6`OJiqYQdE+B>>y5KMw9kzLyIZYaJ* z+0_+)H|*wdW#V`rdb4H}w(a7bwBJux;-tHi6N&SuqHNW~gCX1v5ezY^zTWoS^deZ) zdz^*GyQq;wvN@KuCR~j=;iz92Q9JL&!`#Z&CMKIG5#8H6%^(UBwrDxDBKfNG1a61P zswA`PW`SJQF0`_z6vXW#&UTW1+C>67ah4Y*%#mmq+ljlD@}oS;Ce4x+pxoSrq>J69 zP7Sl@R0Lg6sxawBS#BC;m|87awaaf;Wuo@MU#!F;L;2aqr4XrZ3 zh$I}KeH>;O<~e(8j|n8n+|24YiHkVwo3M?ojK!luWNWojNM=@gsnclf%ydTR_LvJz zNNWjRii=jQgch-9V+91oQn4zg6wWShpgERv>!BzbZWiM?C&pW+s?o9+!SwNY{bvqE ztHE>=bql69*hreP#uiRRf>GEHrrTm{l<~k3gK256*%O*x7Ikjjx@}^V^>^f3_s(R< zq&b$wlJkWq$J)0dv)Bu<8eKCnb8KO8$DZqOHK+S|Dnq)0A-@|IhO3&pdMR_Nw zK}bfPkKoJVETWRNWi=R=Bj3Sv682ZuqPBlvvB}BFV0t)=LiDA@F^0n|y&L^Xxo?cS ze3s$?9aw2u;2b4%iZ1hmdN97l4f3)LBWM*xG#J_unXW?Fn&`OhrIYcxh( z2!!k`MBg{U&ga354&D!DpbvXF6-O&Fu3B`Ew$;&-B{9dngqQ77;y1UgNtOs0u^WWn z!AzXBM*T1gX8LK)c4pFkN+TT%MoHXq*Lr!5nbOvoO#){-vH_oA46{LPN1nWNh|F+R zW9(y%KD?r96sb?@4eENvW|p7Kh)FPx0tnfE`e(`d~Edr{xV5 z_pwPwLad6Fjhg)m&4HO?vvb%fu4mD_hcTDYM3kc>7xT7G+J&~t#@T24RG%X;i%W;y z6moFR`JO#*wUg@*(w=-Yvk$3wFcHCy4p^wKO|Lsjs*S2uKEvI>;ezE1nNi+qQ=oU)V89Y)1MSm){SoAc!sk0ShKDb<#v`1 z-7r}x>q`%D6r{Lg#T-lq2h%~M4j$0Ab};W8?(_TXl?%n@$G5n3e#RoSISz66^Ed>l zdqg&5$SU`)bRa69eH^{O9lW+|HBBOUV2Xe2f#amrM-ZINXku@=qt$%u*aq{?oj}^l zyN*}L_$lZ+pNLIzZmg}lz{MXN4)GytSKYXcr9P}1muYZN{IeHb*O80{O}KhkYN|h$ zKXxwL^cU>mw96D5j6JuyH4T&ax`xmZZQzRUqWLzi!ov>)@y* zvSP5(66C>HCKtWq7hoOqU!PM6u@u3v#GEwl0_Pbev#wM}`j6LX8{yQ=Iq$HFTnb2A)D-utcw?B9Rn_}l@Sm@W6W z9XN5S3F!FI9F97L8(>LjoeyW}>>xzMVOF9!j;A-^%ED^dE_n;(gNtW5?{VkU1q)$2 z9_7J8)WNv+q-BOD=hr3eerAd*@T80tC2JzgjoUrO%y1#G>b>^M=k zcYhXPiBNBDUF_Ejih@;)=xu?ET6-#N_cTEiRB2-ee z+lyMuxbQAsE)AzOkz>p3?-~1zW*1{5VsLNKIUO^V4_LlAE;oc;Io+rvH>gz>G>Eq@ zdqMR|(t^SX)zUIdtQiC{Y>ukT>tpiG-Dy=P|6>7Qi|st#|> z784wj9*j7#a5z|$6W&}c(Vfp4DBojbTdHn<@mYJdXu~N9M&PX5Vu8aqaMRjHdjzZb z7$@uRX2>bYJEhhj;RViOzpvO?wcL5U>$yj3?_CPBZdAx*ZQGXYxz4`3uHHpZ;$IuY zk+DWGQ|W72!w+Lt@HAkFu2z>3*_tln@pcrggqTo_Y+EoSO~-*(la`a4yV9nDvo2k* zU^Qp%z-=k0xpejCO4MupIRi36S&UryAXZrWvBZ|V7%JHDkHkB?Ekg^kbJ5)-&58)W z`|&?0$JDMYye^H$3ogF{PK>od)%m2`bF|_JP%5sHgyldw8`XiZg3u1kHTq z<&1Y&g{LMYJjGr+->%ZMou)am30b4`XF>WcW-JGMa3fq7syZ(Q@G+z z{C|6b?W9Gt38Z$s{Dz%ZXGDo@4#wpUII+^Gm|K^q&TA(`=Ve}OU?1Y=uS9*gY3<45 z99TI$^!x$`$G})$5BZa^wZs|PY_=rRW~?o}B3u|UNQU|2i66k7^!0pn2?WoPD%q)T#7sL^= z-TYCe1eL%V5kD&22$o2uQccssRI9G7%`Nrvb zJsF%#DPr&m+i;neFmJ&LZKK%_Tg&_n+j&}K#4c@gN+DMn*|Q= z^8zlTfLs}IJCMiNqhK|XWtFpY7dqUSZ#O)ZrpB2?vwQOT$z6?hbgHp?_sxxN^TwN+ z&6}e}JI;#LEqD}MQ;j2eH*PnST52q%QzqVhQ*v8M@y3e#WSVui96z?yD6v!#9U}J%to_KZsaWA=c*KWosNNHF(qbihUQ|16R z+8kUzJz9T&P;gJ0w{PpDB%At^lqL2uKIx8#1shA;gj4u0X3x3X+`Hv?pJYhCv7exW z+)pyJ&HUEuZ!zxi)``SieXH5MW6P2GBXeVV?VjAV1tnDyy|J`9g%@uL{zuie(rwxo z5$J3vwC(3Y&CP72=w}>8%-2h7xZioJ*N>z12k=*VNF`BwFYGsszOq#qOvs2N*2?PKxeOARiL%*jy~j^s_GxR? z?LaJBff+V!)G?v5Sd5aL?2Iij&1}qat^miBsC#CbBSdn;{K+|kvnE>gucZc zooW3HbYUhPs7-Z_33FFm)JZuugLu!)B5KiPD{*B7uH?{(qf2uOi!%q;?_D}MXO7O# z99*&+T|f(#Q%`Zo6S>VHW1?Ob6XJ1Z`Qig(<9^lOv_s2Uj+Tv}UA+Wn6Z@N&-xrgr zrYr(mbq*?Sa8oQh8R1f6!A6~d*op($CQaYlX&4E8xE*>FX2h}>_ghTU_Xnb!!;>U{ zMNU}!K5ChZjdU2x;7Xj4kR1`xQ{02x?ZNtKYFAxuY)zLgG`=VX$6jAaC8Wcg)(9V21l#?eth!cqOK zkLAa2hdxN20;O2Dq87EHyt8snNSO_=LTt&(>|p&&SE?3eD^W~VvblaHm-}E!*=Zr}&byQUx|ykQ8g>SXO7!q;XPSs$8uP{~VK+n9@^7 zEIV{!ZS}Z|or{XjUeF<_kCv(Z*Qkt+UswSK%Go>Yix)e zN9L4if>e|hbuwpbBUGNv`AXmazQ$*wtRIdzAayMf|?^Z0TVjwr>SAex`l(HEz8>G{>y@WvV@oxr$Bx=%myxI(FyrPeB-_?UbboI z%Yr$6FhOL69yDX^#@6)|f1x#~QfwA&=;xw`|IMhXMpzIqY%UQ(WU7H>#bzI2BSpfZ zXfxE7rr3|I6-wT!TH$oF$}lU%3yRF%x}@%GJ-jen?HGdO@n5(B zy8Z1H;svZ$J6vD~0d&V7p=ivu_J>(B3J$q^@-p-y@GnnzJ}Iu7Yn=)sf-SKkRc#Y1 zQoX#rVo3QE_y=}bt%QqM;L~wtwqld)L_|E{16JuFXNVGP9It#u(G?q$4TVMjnarAe z%Os%!3o-%$GF@qy((7E=60$k_AYYSt++w80$L6{=UnUHa@4`DDzxa9Q9m& zPqpy^U)ySl*jDRafivvlT6Gy1ewS&yvlZ#fT>NPlVIa-zZ!WnGma zu{0yh9$!<4Z0NTK5QNS}?+~~QxT1r+kK|C>@dDH5zO;5swMWbq`@wbg74X_Sbc%wc ztw)|$R_eYZaV#Dk44zGwAHObXmpWH$t<7}GP%nU0ZVc0o9iKa7pfl{8jv$)id*L#6 zaAmOXN!UXv>t8O;HcqJ0gV3HW)}%Zob(waYz3Qr5S??+{k$4^4F1gLe*ZcQJJ!tQ= z4IP24&R1e*#fG=uIQQ1i^eFsEInNpHYZX=XvU(seMRBOcteVgeLbfsl;F8o#lSxj3it zd4~^myyJ9k%?r)9rbip%U$Q(>DAo=e;YEc{q>1 zx>ki&4R1y`m^@*Q`EnWGTJf{G&C9BVy|o)0eN3Y^sr>%uW?Ti5Ckpw`TCd=&Ph2HuuTwkqTbrrm7)%=!aSuzs&Dc`>MMt+g$f%3`6}6YdhMe6Ag3{ghuHRqi$A)KOhk zOQXlNc}^{LWkf>3D99r)9&GJrS-{J6&}y05`jb^u`` z*F;`M!h}X!^|Las^aZcyk^-sGz2anra2+w)pd;fBS*Y>VaUpr!IED4OsH^(QECRft zOgo;^hI2LfE&0oPna3WPT5Z%opCodHUcv-!A`IOfP=75N z@#|+oC=R7}i#Ed)plcYl3_pNsFU1t)XX=;4V0`_Q7cPbo2~6A!PBJ9$h>lc7uA>?6 z)xPuI-Yg7d2o}vIuWGelx$qmcejh(o>T*`jhxwE7^p*0wY#;EJul&v6CLbTOONbuX z)Dux6_Mlc4UW`a~+B0a3qZUsRM_C5+*ateLx3*Ejg0f89D9gm|iaV+>!|#h!1Lje- z5o^oqqZDU0zjJjIYp`owuaNs)m5#A~u6AtK+BQ*^jQw$|qA|O+mEiyGz;=*7a#cFs zc<6e8_}i-;pM>p2RX8T_CWhw9t=wa=SHT9A7*&q#-WOciIPNC=%FWX0Sco zC#~2vrWxK;D}wL)|8_!4`|6xNw~AL*W~>r(#Qq;p zfcF3B;5H7hZZr0%@EOZ*gAVp~R=L?`*4IXu+SW44DnHkHrMh-;%`n5wsH<8&1hf`I z7gaF6t!j@jxaLTVhj3Olr>sz38%-q>BO-lBDf1`~{NH`i^wsI{IB6^?!j3IYR~{e6 zxwND^Y72VLP$gSB=6p*%R8ilk(QcYTxO+} zfwJ{$d7rokwM))=mFKBuuPE24f_FwmrAyi?Z9>O_^hmC+D_+%V+OxBhM~+OYvh8cy zD5gpo<}NER7>BaJp}h5`y7tDg*5=q^2$k(=cxQ8jW{ny*n}V4bWZkT7#ZYW@E!YQ( zt2|FYL9QIYopv?};5$?_krKt|nJV1VNY*h|;a*5_ccSIsc3a^t0`ht2opKiaX7FF> CCD393 literal 0 HcmV?d00001 diff --git a/src/octoprint/translations/de/LC_MESSAGES/messages.po b/src/octoprint/translations/de/LC_MESSAGES/messages.po new file mode 100644 index 000000000..1025ba3df --- /dev/null +++ b/src/octoprint/translations/de/LC_MESSAGES/messages.po @@ -0,0 +1,1310 @@ +# German translations for OctoPrint. +# Copyright (C) 2014 The OctoPrint Project +# This file is distributed under the same license as the OctoPrint project. +# FIRST AUTHOR , 2014. +# +msgid "" +msgstr "" +"Project-Id-Version: OctoPrint 1.2.0-dev-119-gb78bb9e-dirty\n" +"Report-Msgid-Bugs-To: i18n@octoprint.org\n" +"POT-Creation-Date: 2014-08-27 11:44+0200\n" +"PO-Revision-Date: 2014-08-27 11:45+0100\n" +"Last-Translator: Gina Häußge \n" +"Language-Team: de \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Generated-By: Babel 1.3\n" +"X-Generator: Poedit 1.6.8\n" + +#: src/octoprint/static/js/app/dataupdater.js:43 +msgid "" +"The server appears to be offline, at least I'm not getting any response from " +"it. I'll try to reconnect automatically over the next couple of " +"minutes, however you are welcome to try a manual reconnect anytime " +"using the button below." +msgstr "" +"Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm " +"verbinden. Ich werde über die nächsten Minuten versuchen, " +"zu reconnecten, aber Du kannst mittels des folgenden Buttons auch jederzeit " +"einen manuellen Reconnect anstoßen." + +#: src/octoprint/static/js/app/dataupdater.js:58 +msgid "" +"The server appears to be offline, at least I'm not getting any response from " +"it. I could not reconnect automatically, but you may try a " +"manual reconnect using the button below." +msgstr "" +"Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm " +"verbinden. Ich konnte nicht automatisch reconnected, aber " +"Du kannst mittels des folgenden Buttons einen manuellen Reconnect anstoßen." + +#: src/octoprint/static/js/app/dataupdater.js:126 +msgid "Rendering timelapse" +msgstr "Zeitraffer wird gerendert" + +#: src/octoprint/static/js/app/dataupdater.js:126 +#, python-format +msgid "Now rendering timelapse %(movie_basename)s" +msgstr "Rendere Zeitrafferaufnahme %(movie_basename)s" + +#: src/octoprint/static/js/app/dataupdater.js:128 +msgid "Timelapse ready" +msgstr "Zeitraffer fertig" + +#: src/octoprint/static/js/app/dataupdater.js:128 +#, python-format +msgid "New timelapse %(movie_basename)s is done rendering." +msgstr "Neue Zeitrafferaufnahme %(movie_basename)s wurde fertig gerendert" + +#: src/octoprint/static/js/app/dataupdater.js:131 +#, python-format +msgid "" +"Rendering of timelapse %(movie_basename)s failedwith return code " +"%(returncode)s" +msgstr "" +"Rendering der Zeitrafferaufnahme %(movie_basename)s fehlgeschlagen mit " +"Returncode %(returncode)s" + +#: src/octoprint/static/js/app/dataupdater.js:133 +msgid "Rendering failed" +msgstr "Rendering fehlgeschlagen" + +#: src/octoprint/static/js/app/dataupdater.js:137 +msgid "Slicing ..." +msgstr "Slice ..." + +#: src/octoprint/static/js/app/dataupdater.js:142 +msgid "Slicing done" +msgstr "Slicing abgeschlossen" + +#: src/octoprint/static/js/app/dataupdater.js:142 +#, python-format +msgid "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds" +msgstr "%(stl)s nach %(gcode)s geslicet, dauerte %(time).2f Sekunden" + +#: src/octoprint/static/js/app/dataupdater.js:149 +#, python-format +msgid "Could not slice %(stl)s to %(gcode)s: %(reason)s" +msgstr "Konnte %(stl)s nicht nach %(gcode)s slicen: %(reason)s" + +#: src/octoprint/static/js/app/dataupdater.js:150 +msgid "Slicing failed" +msgstr "Slicing fehlgeschlagen" + +#: src/octoprint/static/js/app/dataupdater.js:154 +msgid "Streaming ..." +msgstr "Streame ..." + +#: src/octoprint/static/js/app/dataupdater.js:159 +msgid "Streaming done" +msgstr "Streaming abgeschlossen" + +#: src/octoprint/static/js/app/dataupdater.js:159 +#, python-format +msgid "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds" +msgstr "%(local)s nach %(remote)s gestreamt, dauerte %(time).2f Sekunden" + +#: src/octoprint/static/js/app/helpers.js:337 +#, python-format +msgid "%(hour)02d:%(minute)02d:%(second)02d" +msgstr "%(hour)02d:%(minute)02d:%(second)02d" + +#: src/octoprint/static/js/app/helpers.js:342 +msgid "YYYY-MM-DD HH:mm" +msgstr "DD.MM.YYYY HH:mm" + +#: src/octoprint/static/js/app/helpers.js:360 +#: src/octoprint/static/js/app/helpers.js:365 +msgid "off" +msgstr "Aus" + +#: src/octoprint/static/js/app/main.js:17 +msgid "Offline" +msgstr "Offline" + +#: src/octoprint/static/js/app/main.js:18 +msgid "Opening serial port" +msgstr "Öffnet Serialport" + +#: src/octoprint/static/js/app/main.js:19 +msgid "Detecting serial port" +msgstr "Detektiere Serialport" + +#: src/octoprint/static/js/app/main.js:20 +msgid "Detecting baudrate" +msgstr "Detektiere Baudrate" + +#: src/octoprint/static/js/app/main.js:21 +msgid "Connecting" +msgstr "Verbinde" + +#: src/octoprint/static/js/app/main.js:22 +msgid "Operational" +msgstr "Bereit" + +#: src/octoprint/static/js/app/main.js:23 +msgid "Printing from SD" +msgstr "Drucke von SD" + +#: src/octoprint/static/js/app/main.js:24 +msgid "Sending file to SD" +msgstr "Sende Datei zu SD" + +#: src/octoprint/static/js/app/main.js:25 +msgid "Printing" +msgstr "Drucke" + +#: src/octoprint/static/js/app/main.js:26 +msgid "Paused" +msgstr "Pausiert" + +#: src/octoprint/static/js/app/main.js:27 +msgid "Closed" +msgstr "Geschlossen" + +#: src/octoprint/static/js/app/main.js:28 +msgid "Transfering file to SD" +msgstr "Sende Datei zu SD" + +#: src/octoprint/static/js/app/main.js:132 +msgid "" +"Could not upload the file. Make sure that it is a GCODE file and has the " +"extension \".gcode\" or \".gco\" or that it is an STL file with the " +"extension \".stl\" and slicing support is enabled and configured." +msgstr "" +"Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um eine " +"GCODE-Datei mit der Extension \".gcode\" oder \".gco\" oder um eine STL-" +"Datei mit der Extension \".stl\" handelt und in letzterem Fall auch der " +"Slicingsupport aktiviert ist." + +#: src/octoprint/static/js/app/main.js:148 +msgid "Uploading ..." +msgstr "Uploade ..." + +#: src/octoprint/static/js/app/main.js:151 +msgid "Saving ..." +msgstr "Speichere ..." + +#: src/octoprint/static/js/app/viewmodels/connection.js:24 +#: src/octoprint/templates/index.jinja2:117 +msgid "Connect" +msgstr "Verbinden" + +#: src/octoprint/static/js/app/viewmodels/connection.js:26 +msgid "Disconnect" +msgstr "Trennen" + +#: src/octoprint/static/js/app/viewmodels/control.js:38 +#: src/octoprint/static/js/app/viewmodels/files.js:286 +#: src/octoprint/static/js/app/viewmodels/gcode.js:332 +#: src/octoprint/static/js/app/viewmodels/gcode.js:363 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:137 +#: src/octoprint/static/js/app/viewmodels/temperature.js:56 +msgid "Tool" +msgstr "Werkzeug" + +#: src/octoprint/static/js/app/viewmodels/control.js:45 +#: src/octoprint/static/js/app/viewmodels/temperature.js:68 +msgid "Hotend" +msgstr "Hotend" + +#: src/octoprint/static/js/app/viewmodels/files.js:281 +#: src/octoprint/static/js/app/viewmodels/files.js:286 +msgid "Filament" +msgstr "Filament" + +#: src/octoprint/static/js/app/viewmodels/files.js:290 +msgid "Estimated Print Time" +msgstr "Geschätzte Druckzeit" + +#: src/octoprint/static/js/app/viewmodels/files.js:293 +msgid "Last Printed" +msgstr "Zuletzt gedruckt" + +#: src/octoprint/static/js/app/viewmodels/files.js:295 +msgid "Last Print Time" +msgstr "Letzte Druckdauer" + +#: src/octoprint/static/js/app/viewmodels/firstrun.js:37 +msgid "" +"If you disable Access Control and your OctoPrint " +"installation is accessible from the internet, your printer will be " +"accessible by everyone - that also includes the bad guys!" +msgstr "" +"Wenn Du die Zugangsbeschränkung deaktivierst und Deine " +"OctoPrint Installation vom Internet aus erreichbar ist, kann jeder " +"auf Deinen Drucker zugreifen - auch die bösen Jungs!" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:13 +msgid "Loading..." +msgstr "Lade..." + +#: src/octoprint/static/js/app/viewmodels/gcode.js:17 +msgid "Analyzing..." +msgstr "Analysiere..." + +#: src/octoprint/static/js/app/viewmodels/gcode.js:21 +msgid "Analyzed" +msgstr "Analysiert" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:327 +msgid "Model size" +msgstr "Modelgröße" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:329 +#: src/octoprint/static/js/app/viewmodels/gcode.js:332 +msgid "Total filament used" +msgstr "Gesamtmenge genutzten Filaments" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:329 +#: src/octoprint/static/js/app/viewmodels/gcode.js:332 +#: src/octoprint/static/js/app/viewmodels/gcode.js:336 +msgid "mm" +msgstr "mm" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:335 +msgid "Estimated print time" +msgstr "Geschätzte Druckzeit" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:336 +msgid "Estimated layer height" +msgstr "Geschätzte Schichthöhe" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:337 +msgid "Layer count" +msgstr "Schichtanzahl" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:337 +msgid "visited" +msgstr "besucht" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:356 +msgid "Layer number" +msgstr "Schichtnummer" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:357 +msgid "Layer height" +msgstr "Schichthöhe" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:358 +msgid "GCODE commands in layer" +msgstr "GCODE Kommandos in Schicht" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:360 +#: src/octoprint/static/js/app/viewmodels/gcode.js:363 +msgid "Filament used by layer" +msgstr "Genutztes Filament in Schicht" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:366 +msgid "Print time for layer" +msgstr "Druckdauer für Schicht" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:15 +#: src/octoprint/templates/index.jinja2:74 +#: src/octoprint/templates/index.jinja2:85 +msgid "Login" +msgstr "Login" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:70 +msgid "Login successful" +msgstr "Login erfolgreich" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:70 +#, python-format +msgid "You are now logged in as \"%(username)s\"" +msgstr "Du bist jetzt eingeloggt als \"%(username)s\"" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:74 +msgid "Login failed" +msgstr "Login fehlgeschlagen" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:74 +msgid "User unknown or wrong password" +msgstr "Nutzer unbekannt oder falsches Passwort" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:84 +msgid "Logout successful" +msgstr "Logout erfolgreich" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:84 +msgid "You are now logged out" +msgstr "Du bist jetzt ausgeloggt" + +#: src/octoprint/static/js/app/viewmodels/navigation.js:17 +#, python-format +msgid "The command \"%(command)s\" executed successfully" +msgstr "Das Kommando \"%(command)s\" wurde erfolgreich ausgeführt" + +#: src/octoprint/static/js/app/viewmodels/navigation.js:20 +#, python-format +msgid "The command \"%(command)s\" could not be executed." +msgstr "Das Kommando \"%(command)s\" konnte nicht ausgeführt werden." + +#: src/octoprint/static/js/app/viewmodels/navigation.js:22 +msgid "Error" +msgstr "Fehler" + +#: src/octoprint/static/js/app/viewmodels/printerstate.js:66 +msgid "Continue" +msgstr "Fortsetzen" + +#: src/octoprint/static/js/app/viewmodels/printerstate.js:68 +#: src/octoprint/templates/index.jinja2:144 +msgid "Pause" +msgstr "Pause" + +#: src/octoprint/static/js/app/viewmodels/printerstate.js:79 +#: src/octoprint/templates/index.jinja2:524 +msgid "On Z Change" +msgstr "Bei Ebenenwechsel" + +#: src/octoprint/static/js/app/viewmodels/printerstate.js:81 +#: src/octoprint/templates/index.jinja2:525 +msgid "Timed" +msgstr "Nach Zeit" + +#: src/octoprint/static/js/app/viewmodels/printerstate.js:81 +#: src/octoprint/templates/index.jinja2:531 +#: src/octoprint/templates/index.jinja2:538 +msgid "sec" +msgstr "Sek" + +#: src/octoprint/static/js/app/viewmodels/printerstate.js:166 +msgid "This will restart the print job from the beginning." +msgstr "Der Druckjob wird zurückgesetzt und von vorne begonnen." + +#: src/octoprint/static/js/app/viewmodels/settings.js:15 +#: src/octoprint/static/js/app/viewmodels/settings.js:41 +msgid "default" +msgstr "Standard" + +#: src/octoprint/static/js/app/viewmodels/settings.js:16 +#: src/octoprint/static/js/app/viewmodels/settings.js:27 +msgid "red" +msgstr "Rot" + +#: src/octoprint/static/js/app/viewmodels/settings.js:17 +#: src/octoprint/static/js/app/viewmodels/settings.js:29 +msgid "orange" +msgstr "Orange" + +#: src/octoprint/static/js/app/viewmodels/settings.js:18 +#: src/octoprint/static/js/app/viewmodels/settings.js:31 +msgid "yellow" +msgstr "Gelb" + +#: src/octoprint/static/js/app/viewmodels/settings.js:19 +#: src/octoprint/static/js/app/viewmodels/settings.js:33 +msgid "green" +msgstr "Grün" + +#: src/octoprint/static/js/app/viewmodels/settings.js:20 +#: src/octoprint/static/js/app/viewmodels/settings.js:35 +msgid "blue" +msgstr "Blau" + +#: src/octoprint/static/js/app/viewmodels/settings.js:21 +#: src/octoprint/static/js/app/viewmodels/settings.js:37 +msgid "violet" +msgstr "Violett" + +#: src/octoprint/static/js/app/viewmodels/settings.js:22 +#: src/octoprint/static/js/app/viewmodels/settings.js:39 +msgid "black" +msgstr "Schwarz" + +#: src/octoprint/static/js/app/viewmodels/temperature.js:22 +#: src/octoprint/static/js/app/viewmodels/temperature.js:74 +#: src/octoprint/templates/settings.jinja2:347 +msgid "Bed" +msgstr "Bett" + +#: src/octoprint/static/js/app/viewmodels/temperature.js:110 +msgid "just now" +msgstr "gerade eben" + +#: src/octoprint/static/js/app/viewmodels/temperature.js:112 +msgid "min" +msgstr "Min" + +#: src/octoprint/static/js/app/viewmodels/temperature.js:252 +#: src/octoprint/templates/index.jinja2:262 +msgid "Actual" +msgstr "Ist" + +#: src/octoprint/static/js/app/viewmodels/temperature.js:257 +#: src/octoprint/templates/index.jinja2:263 +msgid "Target" +msgstr "Soll" + +#: src/octoprint/templates/dialogs.jinja2:6 +msgid "Server is offline" +msgstr "Der Server ist offline" + +#: src/octoprint/templates/dialogs.jinja2:9 +msgid "Attempt to reconnect" +msgstr "Erneut verbinden" + +#: src/octoprint/templates/dialogs.jinja2:20 +msgid "Upload locally" +msgstr "Upload (lokal)" + +#: src/octoprint/templates/dialogs.jinja2:22 +#: src/octoprint/templates/index.jinja2:218 +msgid "Upload to SD" +msgstr "Upload (SD)" + +#: src/octoprint/templates/dialogs.jinja2:22 +msgid "SD not initialized" +msgstr "SD Karte ist nicht initialisiert" + +#: src/octoprint/templates/dialogs.jinja2:25 +#: src/octoprint/templates/index.jinja2:213 +#: src/octoprint/templates/index.jinja2:224 +msgid "Upload" +msgstr "Upload" + +#: src/octoprint/templates/dialogs.jinja2:34 +msgid "Are you sure?" +msgstr "Bist Du sicher?" + +#: src/octoprint/templates/dialogs.jinja2:38 +msgid "Are you sure you want to proceed?" +msgstr "Bist Du sicher, dass du fortfahren willst?" + +#: src/octoprint/templates/dialogs.jinja2:41 +#: src/octoprint/templates/index.jinja2:145 +#: src/octoprint/templates/settings.jinja2:676 +msgid "Cancel" +msgstr "Abbruch" + +#: src/octoprint/templates/dialogs.jinja2:42 +msgid "Proceed" +msgstr "Fortfahren" + +#: src/octoprint/templates/dialogs.jinja2:48 +msgid "Configure Access Control" +msgstr "Zugangsbeschränkung konfigurieren" + +#: src/octoprint/templates/dialogs.jinja2:51 +msgid "" +"

    \n" +" Please read the following, it is very important for your " +"printer's health!\n" +"

    \n" +"

    \n" +" OctoPrint by default now ships with Access Control enabled, " +"meaning you won't be able to do anything with the\n" +" printer unless you login first as a configured user. This is " +"just to prevent strangers - possibly with\n" +" malicious intent - to gain access to your printer via " +"the internet or another untrustworthy network\n" +" and using it in such a way that it is damaged or worse (i.e. " +"causes a fire).\n" +"

    \n" +"

    \n" +" It looks like you haven't configured access control yet. Please " +"set up an username and password for the\n" +" initial administrator account who will have full access to both " +"the printer and OctoPrint's settings, then click\n" +" on \"Keep Access Control Enabled\":\n" +"

    " +msgstr "" +"

    \n" +" Bitte lies die folgenden Zeilen aufmerksam durch, es ist sehr " +"wichtig für die Gesundheit Deines Druckers!\n" +"

    \n" +"

    \n" +" OctoPrint wird nun standardmässig mit aktivierter Zugangsbeschränkung " +"ausgeliefert, das heißt, dass Du mit dem Drucker nichts\n" +" anfangen kannst, wenn du nicht als einer der konfigurierten Nutzer " +"eingeloggt bist. Das dient dem Zweck, Fremde mit\n" +" möglicherweise böswilligen Absichten davon abzuhalten, auf " +"Deinen Drucker über das Internet oder ein anderes\n" +" unsicheres Netzwerk zuzugreifen und ihn auf eine Art zu nutzen, die ihn " +"beschädigt oder schlimmeres (z.B. ein Feuer verursacht).\n" +"

    \n" +"

    \n" +" Es sieht so aus, als hättest Du die Zugriffsbeschränkung noch nicht " +"konfiguriert. Bitte konfiguriere einen Usernamen\n" +" und ein Passwort für das initiale Administratorkonto, das " +"vollen Zugang zu sowohl dem Drucker als auch OctoPrints\n" +" Einstellungen haben wird, und klicke dann auf \"Zugangsbeschränkung " +"aktiviert lassen\".\n" +"

    " + +#: src/octoprint/templates/dialogs.jinja2:67 +#: src/octoprint/templates/index.jinja2:78 +#: src/octoprint/templates/index.jinja2:79 +#: src/octoprint/templates/settings.jinja2:510 +msgid "Username" +msgstr "Username" + +#: src/octoprint/templates/dialogs.jinja2:73 +#: src/octoprint/templates/index.jinja2:80 +#: src/octoprint/templates/index.jinja2:81 +#: src/octoprint/templates/settings.jinja2:516 +msgid "Password" +msgstr "Passwort" + +#: src/octoprint/templates/dialogs.jinja2:79 +msgid "Confirm Password" +msgstr "Passwort bestätigen" + +#: src/octoprint/templates/dialogs.jinja2:82 +#: src/octoprint/templates/settings.jinja2:525 +#: src/octoprint/templates/settings.jinja2:596 +msgid "Passwords do not match" +msgstr "Passwörter nicht identisch" + +#: src/octoprint/templates/dialogs.jinja2:86 +msgid "" +"

    \n" +" Note: In case that your OctoPrint installation " +"is only accessible from within a trustworthy network and you don't\n" +" need Access Control for other reasons, you may alternatively " +"disable Access Control. You should only\n" +" do this if you are absolutely certain that only people you know " +"and trust will be able to connect to it.\n" +"

    \n" +"

    \n" +" Do NOT underestimate the risk of an unsecured access " +"from the internet to your printer!\n" +"

    " +msgstr "" +"

    \n" +" Beachte: Falls Deine OctoPrint Installation " +"ausschließlich innerhalb eines vertrauenswürdigen Netzwerks\n" +" erreicht werden kann und Du die Zugangsbeschränkung nicht für andere " +"Zwecke benötigst, kannst Du sie alternativ auch\n" +" deaktivieren. Du solltest das nur tun, wenn Du Dir absolut sicher bist, " +"dass nur Leute darauf zugreifen können, die du kennst\n" +" und denen du vertraust\n" +"

    \n" +"

    \n" +" UNTERSCHÄTZE NICHT das Risiko eines ungesicherten Zugriffs aus " +"dem Internet auf Deinen Drucker!\n" +"

    " + +#: src/octoprint/templates/dialogs.jinja2:96 +msgid "Disable Access Control" +msgstr "Zugangsbeschränkung deaktivieren" + +#: src/octoprint/templates/dialogs.jinja2:97 +msgid "Keep Access Control Enabled" +msgstr "Zugangsbeschränkung aktiviert lassen" + +#: src/octoprint/templates/index.jinja2:57 +msgid "Settings" +msgstr "Einstellungen" + +#: src/octoprint/templates/index.jinja2:63 +msgid "System" +msgstr "System" + +#: src/octoprint/templates/index.jinja2:83 +msgid "Remember me" +msgstr "Login merken" + +#: src/octoprint/templates/index.jinja2:88 +msgid "Change Password" +msgstr "Passwort ändern" + +#: src/octoprint/templates/index.jinja2:89 +msgid "Logout" +msgstr "Logout" + +#: src/octoprint/templates/index.jinja2:107 +#: src/octoprint/templates/settings.jinja2:30 +msgid "Serial Port" +msgstr "Serialport" + +#: src/octoprint/templates/index.jinja2:109 +#: src/octoprint/templates/settings.jinja2:36 +msgid "Baudrate" +msgstr "Baudrate" + +#: src/octoprint/templates/index.jinja2:112 +msgid "Save connection settings" +msgstr "Verbindungseinstellungen speichern" + +#: src/octoprint/templates/index.jinja2:115 +msgid "Auto-connect on server startup" +msgstr "Automatisch bei Serverstart verbinden" + +#: src/octoprint/templates/index.jinja2:123 +msgid "State" +msgstr "Status" + +#: src/octoprint/templates/index.jinja2:127 +msgid "Machine State" +msgstr "Druckerstatus" + +#: src/octoprint/templates/index.jinja2:128 +msgid "File" +msgstr "Datei" + +#: src/octoprint/templates/index.jinja2:129 +#: src/octoprint/templates/index.jinja2:247 +msgid "Timelapse" +msgstr "Zeitraffer" + +#: src/octoprint/templates/index.jinja2:133 +msgid "Approx. Total Print Time" +msgstr "Ungefähre Gesamtdruckdauer" + +#: src/octoprint/templates/index.jinja2:134 +msgid "Print Time" +msgstr "Druckdauer" + +#: src/octoprint/templates/index.jinja2:135 +msgid "Print Time Left" +msgstr "Verbleibende Druckdauer" + +#: src/octoprint/templates/index.jinja2:136 +msgid "Printed" +msgstr "Gedruckt" + +#: src/octoprint/templates/index.jinja2:143 +msgid "Restart" +msgstr "Neu starten" + +#: src/octoprint/templates/index.jinja2:143 +msgid "Print" +msgstr "Drucken" + +#: src/octoprint/templates/index.jinja2:152 +msgid "Files" +msgstr "Dateien" + +#: src/octoprint/templates/index.jinja2:159 +msgid "Sort by name" +msgstr "Nach Name sortieren" + +#: src/octoprint/templates/index.jinja2:159 +#: src/octoprint/templates/index.jinja2:556 +#: src/octoprint/templates/settings.jinja2:630 +msgid "ascending" +msgstr "aufsteigend" + +#: src/octoprint/templates/index.jinja2:160 +msgid "Sort by upload date" +msgstr "Nach Uploaddatum sortieren" + +#: src/octoprint/templates/index.jinja2:160 +#: src/octoprint/templates/index.jinja2:161 +#: src/octoprint/templates/index.jinja2:556 +#: src/octoprint/templates/settings.jinja2:630 +msgid "descending" +msgstr "absteigend" + +#: src/octoprint/templates/index.jinja2:161 +msgid "Sort by file size" +msgstr "Nach Größe sortieren" + +#: src/octoprint/templates/index.jinja2:164 +msgid "Only show files stored locally" +msgstr "Nur lokal abgelegte Dateien anzeigen" + +#: src/octoprint/templates/index.jinja2:165 +msgid "Only show files stored on SD" +msgstr "Nur auf SD abgelegte Dateien anzeigen" + +#: src/octoprint/templates/index.jinja2:168 +msgid "Hide successfully printed files" +msgstr "Erfolgreich gedruckte Dateien verbergen" + +#: src/octoprint/templates/index.jinja2:178 +msgid "Initialize SD card" +msgstr "SD Karte initialisieren" + +#: src/octoprint/templates/index.jinja2:179 +msgid "Refresh SD files" +msgstr "SD Dateien aktualisieren" + +#: src/octoprint/templates/index.jinja2:180 +msgid "Release SD card" +msgstr "SD Karte auswerfen" + +#: src/octoprint/templates/index.jinja2:188 +msgid "Search..." +msgstr "Suchen..." + +#: src/octoprint/templates/index.jinja2:193 +msgid "Uploaded" +msgstr "Hochgeladen" + +#: src/octoprint/templates/index.jinja2:194 +#: src/octoprint/templates/index.jinja2:556 +#: src/octoprint/templates/index.jinja2:562 +#: src/octoprint/templates/settings.jinja2:630 +#: src/octoprint/templates/settings.jinja2:637 +msgid "Size" +msgstr "Größe" + +#: src/octoprint/templates/index.jinja2:198 +msgid "Download" +msgstr "Download" + +#: src/octoprint/templates/index.jinja2:199 +msgid "Remove" +msgstr "Entfernen" + +#: src/octoprint/templates/index.jinja2:200 +msgid "Load" +msgstr "Laden" + +#: src/octoprint/templates/index.jinja2:201 +msgid "Load and Print" +msgstr "Laden und Drucken" + +#: src/octoprint/templates/index.jinja2:206 +msgid "Free" +msgstr "Frei" + +#: src/octoprint/templates/index.jinja2:233 +msgid "Hint: You can also drag and drop files on this page to upload them." +msgstr "" +"Hinweis: Du kannst auch Dateien auf diese Seite ziehen um sie hochzuladen." + +#: src/octoprint/templates/index.jinja2:243 +msgid "Temperature" +msgstr "Temperatur" + +#: src/octoprint/templates/index.jinja2:244 +msgid "Control" +msgstr "Kontrolle" + +#: src/octoprint/templates/index.jinja2:245 +msgid "GCode Viewer" +msgstr "GCode Viewer" + +#: src/octoprint/templates/index.jinja2:246 +msgid "Terminal" +msgstr "Terminal" + +#: src/octoprint/templates/index.jinja2:264 +msgid "Offset" +msgstr "Offset" + +#: src/octoprint/templates/index.jinja2:280 +#: src/octoprint/templates/index.jinja2:302 +msgid "Set" +msgstr "Setzen" + +#: src/octoprint/templates/index.jinja2:292 +#: src/octoprint/templates/index.jinja2:523 +msgid "Off" +msgstr "Aus" + +#: src/octoprint/templates/index.jinja2:360 +msgid "Select Tool..." +msgstr "Werkzeug wählen..." + +#: src/octoprint/templates/index.jinja2:371 +msgid "Extrude" +msgstr "Extrude" + +#: src/octoprint/templates/index.jinja2:372 +msgid "Retract" +msgstr "Retract" + +#: src/octoprint/templates/index.jinja2:377 +msgid "General" +msgstr "Allgemein" + +#: src/octoprint/templates/index.jinja2:379 +msgid "Motors off" +msgstr "Motoren aus" + +#: src/octoprint/templates/index.jinja2:380 +msgid "Fans on" +msgstr "Lüfter an" + +#: src/octoprint/templates/index.jinja2:381 +msgid "Fans off" +msgstr "Lüfter aus" + +#: src/octoprint/templates/index.jinja2:445 +msgid "Sync with job progress" +msgstr "Job mit Fortschritt synchronisieren" + +#: src/octoprint/templates/index.jinja2:450 +msgid "Center viewport on model" +msgstr "Ausschnitt auf Modell zentrieren" + +#: src/octoprint/templates/index.jinja2:453 +msgid "Zoom in on model" +msgstr "Auf Model zoomen" + +#: src/octoprint/templates/index.jinja2:459 +msgid "Show moves" +msgstr "Bewegungen zeigen" + +#: src/octoprint/templates/index.jinja2:462 +msgid "Show retracts" +msgstr "Retracts zeigen" + +#: src/octoprint/templates/index.jinja2:468 +msgid "Also show previous layer" +msgstr "Auch vorherige Schicht anzeigen" + +#: src/octoprint/templates/index.jinja2:471 +msgid "Also show next layer" +msgstr "Auch nächste Schicht anzeigen" + +#: src/octoprint/templates/index.jinja2:476 +msgid "Reload" +msgstr "Neu laden" + +#: src/octoprint/templates/index.jinja2:503 +msgid "Autoscroll" +msgstr "Autoscroll" + +#: src/octoprint/templates/index.jinja2:513 +msgid "Send" +msgstr "Senden" + +#: src/octoprint/templates/index.jinja2:519 +msgid "Timelapse Configuration" +msgstr "Zeitrafferkonfiguration" + +#: src/octoprint/templates/index.jinja2:521 +msgid "Timelapse Mode" +msgstr "Zeitraffermodus" + +#: src/octoprint/templates/index.jinja2:528 +msgid "Timelapse post roll (in rendered seconds)" +msgstr "Zeitraffernachlauf (in gerenderten Sekunden)" + +#: src/octoprint/templates/index.jinja2:535 +msgid "Interval" +msgstr "Intervall" + +#: src/octoprint/templates/index.jinja2:544 +msgid "Save as default" +msgstr "Als Standard speichern" + +#: src/octoprint/templates/index.jinja2:549 +msgid "Save config" +msgstr "Konfiguration speichern" + +#: src/octoprint/templates/index.jinja2:553 +msgid "Finished Timelapses" +msgstr "Abgeschlossene Zeitraffer" + +#: src/octoprint/templates/index.jinja2:556 +#: src/octoprint/templates/settings.jinja2:630 +msgid "Sort by" +msgstr "Sortieren" + +#: src/octoprint/templates/index.jinja2:556 +#: src/octoprint/templates/index.jinja2:561 +#: src/octoprint/templates/settings.jinja2:377 +#: src/octoprint/templates/settings.jinja2:469 +#: src/octoprint/templates/settings.jinja2:630 +#: src/octoprint/templates/settings.jinja2:636 +msgid "Name" +msgstr "Name" + +#: src/octoprint/templates/index.jinja2:556 +msgid "Creation date" +msgstr "Erstellungsdatum" + +#: src/octoprint/templates/index.jinja2:563 +#: src/octoprint/templates/settings.jinja2:472 +#: src/octoprint/templates/settings.jinja2:639 +msgid "Action" +msgstr "Aktion" + +#: src/octoprint/templates/index.jinja2:592 +msgid "Version" +msgstr "Version" + +#: src/octoprint/templates/index.jinja2:595 +msgid "Homepage" +msgstr "Homepage" + +#: src/octoprint/templates/index.jinja2:596 +msgid "Sourcecode" +msgstr "Quellcode" + +#: src/octoprint/templates/index.jinja2:597 +msgid "Documentation" +msgstr "Dokumentation" + +#: src/octoprint/templates/index.jinja2:598 +msgid "Bugs and Requests" +msgstr "Bugs und Requests" + +#: src/octoprint/templates/settings.jinja2:4 +msgid "OctoPrint Settings" +msgstr "OctoPrint Einstellungen" + +#: src/octoprint/templates/settings.jinja2:9 +msgid "Printer" +msgstr "Drucker" + +#: src/octoprint/templates/settings.jinja2:10 +msgid "Serial Connection" +msgstr "Serielle Verbindung" + +#: src/octoprint/templates/settings.jinja2:11 +msgid "Printer Parameters" +msgstr "Druckerparameter" + +#: src/octoprint/templates/settings.jinja2:12 +msgid "Temperatures" +msgstr "Temperaturen" + +#: src/octoprint/templates/settings.jinja2:13 +msgid "Terminal filters" +msgstr "Terminalfilter" + +#: src/octoprint/templates/settings.jinja2:14 +#: src/octoprint/templates/settings.jinja2:15 +msgid "Features" +msgstr "Funktionen" + +#: src/octoprint/templates/settings.jinja2:16 +msgid "Webcam" +msgstr "Webcam" + +#: src/octoprint/templates/settings.jinja2:17 +msgid "Cura" +msgstr "Cura" + +#: src/octoprint/templates/settings.jinja2:18 +msgid "Access Control" +msgstr "Zugangsbeschränkung" + +#: src/octoprint/templates/settings.jinja2:19 +msgid "API" +msgstr "API" + +#: src/octoprint/templates/settings.jinja2:21 +msgid "Folders" +msgstr "Verzeichnisse" + +#: src/octoprint/templates/settings.jinja2:22 +msgid "Appearance" +msgstr "Aussehen" + +#: src/octoprint/templates/settings.jinja2:23 +#: src/octoprint/templates/settings.jinja2:626 +msgid "Logs" +msgstr "Logs" + +#: src/octoprint/templates/settings.jinja2:44 +msgid "Auto-connect to printer on server start" +msgstr "Automatisch bei Serverstart verbinden" + +#: src/octoprint/templates/settings.jinja2:49 +msgid "Communication timeout" +msgstr "Kommunikationstimeout" + +#: src/octoprint/templates/settings.jinja2:58 +msgid "Temperature timeout" +msgstr "Temperaturtimeout" + +#: src/octoprint/templates/settings.jinja2:67 +msgid "SD status timeout" +msgstr "SD-Status-Timeout" + +#: src/octoprint/templates/settings.jinja2:76 +msgid "Connection timeout" +msgstr "Verbindungstimeout" + +#: src/octoprint/templates/settings.jinja2:85 +msgid "Autodetection timeout" +msgstr "Autodetectiontimeout" + +#: src/octoprint/templates/settings.jinja2:96 +msgid "Log communication to serial.log (might negatively impact performance)" +msgstr "" +"Logge die Kommunikation in das serial.log (kann die Performance negativ " +"beeinflussen)" + +#: src/octoprint/templates/settings.jinja2:96 +msgid "Warning" +msgstr "Warnung" + +#: src/octoprint/templates/settings.jinja2:105 +msgid "Axis" +msgstr "Achse" + +#: src/octoprint/templates/settings.jinja2:107 +#: src/octoprint/templates/settings.jinja2:176 +msgid "X" +msgstr "X" + +#: src/octoprint/templates/settings.jinja2:113 +#: src/octoprint/templates/settings.jinja2:123 +#: src/octoprint/templates/settings.jinja2:133 +msgid "Invert control" +msgstr "Invertieren" + +#: src/octoprint/templates/settings.jinja2:117 +#: src/octoprint/templates/settings.jinja2:181 +msgid "Y" +msgstr "Y" + +#: src/octoprint/templates/settings.jinja2:127 +msgid "Z" +msgstr "Z" + +#: src/octoprint/templates/settings.jinja2:137 +msgid "E" +msgstr "E" + +#: src/octoprint/templates/settings.jinja2:145 +msgid "Default extrusion length" +msgstr "Standard Extrusionslänge" + +#: src/octoprint/templates/settings.jinja2:151 +msgid "Number of Extruders" +msgstr "Anzahl Extruder" + +#: src/octoprint/templates/settings.jinja2:157 +msgid "Extruder Offsets" +msgstr "Extruderoffsets" + +#: src/octoprint/templates/settings.jinja2:174 +msgid "Bed Size" +msgstr "Bettdimensionen" + +#: src/octoprint/templates/settings.jinja2:188 +msgid "Radius" +msgstr "Radius" + +#: src/octoprint/templates/settings.jinja2:196 +msgid "Circular" +msgstr "Rund" + +#: src/octoprint/templates/settings.jinja2:205 +msgid "Stream URL" +msgstr "Stream-URL" + +#: src/octoprint/templates/settings.jinja2:211 +msgid "Snapshot URL" +msgstr "Snapshot-URL" + +#: src/octoprint/templates/settings.jinja2:217 +msgid "Path to FFMPEG" +msgstr "Pfad zu FFMPEG" + +#: src/octoprint/templates/settings.jinja2:223 +msgid "Timelapse bitrate" +msgstr "Zeitrafferbitrate" + +#: src/octoprint/templates/settings.jinja2:231 +msgid "Enable OctoPrint watermark in timelapse movies" +msgstr "OctoPrint Wasserzeichen in Zeitrafferaufnahmen aktivieren" + +#: src/octoprint/templates/settings.jinja2:238 +msgid "Flip webcam horizontally" +msgstr "Webcam horizontal flippen" + +#: src/octoprint/templates/settings.jinja2:243 +msgid "Flip webcam vertically" +msgstr "Webcam vertikal flippen" + +#: src/octoprint/templates/settings.jinja2:254 +msgid "Enable Temperature Graph" +msgstr "Temperaturgraph aktivieren" + +#: src/octoprint/templates/settings.jinja2:261 +msgid "Enable GCode Visualizer" +msgstr "GCode Viewer aktivieren" + +#: src/octoprint/templates/settings.jinja2:268 +msgid "Enable SD support" +msgstr "SD-Unterstützung aktivieren" + +#: src/octoprint/templates/settings.jinja2:275 +msgid "Always assume SD card is present" +msgstr "Immer davon ausgehen, dass eine SD Karte vorhanden ist" + +#: src/octoprint/templates/settings.jinja2:275 +#: src/octoprint/templates/settings.jinja2:289 +#: src/octoprint/templates/settings.jinja2:296 +msgid "Repetier" +msgstr "Repetier" + +#: src/octoprint/templates/settings.jinja2:282 +msgid "Wait for start on connect" +msgstr "Bei der Verbindung auf start warten" + +#: src/octoprint/templates/settings.jinja2:289 +msgid "Send a checksum with every command" +msgstr "Eine Prüfsumme mit jedem Kommando senden" + +#: src/octoprint/templates/settings.jinja2:296 +#, python-format +msgid "" +"Support TargetExtr%%n/TargetBed target temperature " +"format" +msgstr "" +"TargetExtr%%n/TargetBed Zieltemperaturformat " +"unterstützen" + +#: src/octoprint/templates/settings.jinja2:303 +msgid "Swallow the first \"ok\" after a resend response" +msgstr "Erstes \"ok\" nach Resend ignorieren" + +#: src/octoprint/templates/settings.jinja2:312 +msgid "Upload Folder" +msgstr "Uploadverzeichnis" + +#: src/octoprint/templates/settings.jinja2:318 +msgid "Timelapse Folder" +msgstr "Zeitrafferverzeichnis" + +#: src/octoprint/templates/settings.jinja2:324 +msgid "Timelapse Temp Folder" +msgstr "Temporäres Zeitrafferverzeichnis" + +#: src/octoprint/templates/settings.jinja2:330 +msgid "Logs Folder" +msgstr "Logverzeichnis" + +#: src/octoprint/templates/settings.jinja2:336 +msgid "Watched Folder" +msgstr "Beobachtetes Verzeichnis" + +#: src/octoprint/templates/settings.jinja2:346 +msgid "Extruder" +msgstr "Extruder" + +#: src/octoprint/templates/settings.jinja2:378 +msgid "RegExp" +msgstr "RegExp" + +#: src/octoprint/templates/settings.jinja2:403 +msgid "Title" +msgstr "Titel" + +#: src/octoprint/templates/settings.jinja2:409 +msgid "Color" +msgstr "Farbe" + +#: src/octoprint/templates/settings.jinja2:420 +msgid "Enable slicing via Cura" +msgstr "Slicing mittels Cura aktivieren" + +#: src/octoprint/templates/settings.jinja2:426 +msgid "Path to Cura" +msgstr "Pfad zu Cura" + +#: src/octoprint/templates/settings.jinja2:432 +msgid "Path to Cura config" +msgstr "Pfad zur Cura-Konfiguration" + +#: src/octoprint/templates/settings.jinja2:444 +msgid "Enable" +msgstr "Aktivieren" + +#: src/octoprint/templates/settings.jinja2:451 +#, python-format +msgid "Allow Cross Origin Resource Sharing (CORS)" +msgstr "Cross Origin Resource Sharing (CORS) erlauben" + +#: src/octoprint/templates/settings.jinja2:456 +#: src/octoprint/templates/settings.jinja2:477 +msgid "API Key" +msgstr "API Key" + +#: src/octoprint/templates/settings.jinja2:470 +#: src/octoprint/templates/settings.jinja2:531 +#: src/octoprint/templates/settings.jinja2:560 +msgid "Active" +msgstr "Aktiv" + +#: src/octoprint/templates/settings.jinja2:471 +#: src/octoprint/templates/settings.jinja2:538 +#: src/octoprint/templates/settings.jinja2:567 +msgid "Admin" +msgstr "Admin" + +#: src/octoprint/templates/settings.jinja2:481 +msgid "Update User" +msgstr "Nutzer editieren" + +#: src/octoprint/templates/settings.jinja2:481 +msgid "Change password" +msgstr "Passwort ändern" + +#: src/octoprint/templates/settings.jinja2:481 +msgid "Delete user" +msgstr "Nutzer löschen" + +#: src/octoprint/templates/settings.jinja2:498 +#: src/octoprint/templates/settings.jinja2:505 +msgid "Add user" +msgstr "Nutzer hinzufügen" + +#: src/octoprint/templates/settings.jinja2:522 +#: src/octoprint/templates/settings.jinja2:593 +msgid "Repeat Password" +msgstr "Passwort wiederholen" + +#: src/octoprint/templates/settings.jinja2:545 +#: src/octoprint/templates/settings.jinja2:574 +#: src/octoprint/templates/settings.jinja2:616 +msgid "Abort" +msgstr "Abbrechen" + +#: src/octoprint/templates/settings.jinja2:546 +#: src/octoprint/templates/settings.jinja2:575 +#: src/octoprint/templates/settings.jinja2:617 +msgid "Confirm" +msgstr "Bestätigen" + +#: src/octoprint/templates/settings.jinja2:553 +#, python-format +msgid "Edit user \"%(user)s\"" +msgstr "Editiere Nutzer \"%(user)s\"" + +#: src/octoprint/templates/settings.jinja2:582 +#, python-format +msgid "Change password for user \"%(user)s\"" +msgstr "Passwortänderung für Nutzer \"%(user)s\"" + +#: src/octoprint/templates/settings.jinja2:587 +msgid "New Password" +msgstr "Neues Passwort" + +#: src/octoprint/templates/settings.jinja2:602 +msgid "Current API Key" +msgstr "Aktueller API-Key" + +#: src/octoprint/templates/settings.jinja2:605 +msgid "N/A" +msgstr "(nicht vorhanden)" + +#: src/octoprint/templates/settings.jinja2:630 +msgid "Modification date" +msgstr "Änderungsdatum" + +#: src/octoprint/templates/settings.jinja2:638 +msgid "Date" +msgstr "Datum" + +#: src/octoprint/templates/settings.jinja2:677 +msgid "Save" +msgstr "Speichern" + +#~ msgid "%(volume).02fcm³" +#~ msgstr "%(volume).02fcm³" + +#~ msgid "Tool %(tool)d" +#~ msgstr "Werkzeug %(tool)d" + +#~ msgid "Select %%(tool)s" +#~ msgstr "%%(tool)s wählen" + +#~ msgid "Select" +#~ msgstr "Auswählen" diff --git a/src/octoprint/translations/messages.pot b/src/octoprint/translations/messages.pot new file mode 100644 index 000000000..2ad0173a8 --- /dev/null +++ b/src/octoprint/translations/messages.pot @@ -0,0 +1,1242 @@ +# Translations template for OctoPrint. +# Copyright (C) 2014 The OctoPrint Project +# This file is distributed under the same license as the OctoPrint project. +# FIRST AUTHOR , 2014. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: OctoPrint 1.2.0-dev-119-gb78bb9e-dirty\n" +"Report-Msgid-Bugs-To: i18n@octoprint.org\n" +"POT-Creation-Date: 2014-08-27 11:44+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 1.3\n" + +#: src/octoprint/static/js/app/dataupdater.js:43 +msgid "" +"The server appears to be offline, at least I'm not getting any response " +"from it. I'll try to reconnect automatically over the next couple" +" of minutes, however you are welcome to try a manual reconnect " +"anytime using the button below." +msgstr "" + +#: src/octoprint/static/js/app/dataupdater.js:58 +msgid "" +"The server appears to be offline, at least I'm not getting any response " +"from it. I could not reconnect automatically, but you " +"may try a manual reconnect using the button below." +msgstr "" + +#: src/octoprint/static/js/app/dataupdater.js:126 +msgid "Rendering timelapse" +msgstr "" + +#: src/octoprint/static/js/app/dataupdater.js:126 +#, python-format +msgid "Now rendering timelapse %(movie_basename)s" +msgstr "" + +#: src/octoprint/static/js/app/dataupdater.js:128 +msgid "Timelapse ready" +msgstr "" + +#: src/octoprint/static/js/app/dataupdater.js:128 +#, python-format +msgid "New timelapse %(movie_basename)s is done rendering." +msgstr "" + +#: src/octoprint/static/js/app/dataupdater.js:131 +#, python-format +msgid "" +"Rendering of timelapse %(movie_basename)s failedwith return code " +"%(returncode)s" +msgstr "" + +#: src/octoprint/static/js/app/dataupdater.js:133 +msgid "Rendering failed" +msgstr "" + +#: src/octoprint/static/js/app/dataupdater.js:137 +msgid "Slicing ..." +msgstr "" + +#: src/octoprint/static/js/app/dataupdater.js:142 +msgid "Slicing done" +msgstr "" + +#: src/octoprint/static/js/app/dataupdater.js:142 +#, python-format +msgid "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds" +msgstr "" + +#: src/octoprint/static/js/app/dataupdater.js:149 +#, python-format +msgid "Could not slice %(stl)s to %(gcode)s: %(reason)s" +msgstr "" + +#: src/octoprint/static/js/app/dataupdater.js:150 +msgid "Slicing failed" +msgstr "" + +#: src/octoprint/static/js/app/dataupdater.js:154 +msgid "Streaming ..." +msgstr "" + +#: src/octoprint/static/js/app/dataupdater.js:159 +msgid "Streaming done" +msgstr "" + +#: src/octoprint/static/js/app/dataupdater.js:159 +#, python-format +msgid "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds" +msgstr "" + +#: src/octoprint/static/js/app/helpers.js:337 +#, python-format +msgid "%(hour)02d:%(minute)02d:%(second)02d" +msgstr "" + +#: src/octoprint/static/js/app/helpers.js:342 +msgid "YYYY-MM-DD HH:mm" +msgstr "" + +#: src/octoprint/static/js/app/helpers.js:360 +#: src/octoprint/static/js/app/helpers.js:365 +msgid "off" +msgstr "" + +#: src/octoprint/static/js/app/main.js:17 +msgid "Offline" +msgstr "" + +#: src/octoprint/static/js/app/main.js:18 +msgid "Opening serial port" +msgstr "" + +#: src/octoprint/static/js/app/main.js:19 +msgid "Detecting serial port" +msgstr "" + +#: src/octoprint/static/js/app/main.js:20 +msgid "Detecting baudrate" +msgstr "" + +#: src/octoprint/static/js/app/main.js:21 +msgid "Connecting" +msgstr "" + +#: src/octoprint/static/js/app/main.js:22 +msgid "Operational" +msgstr "" + +#: src/octoprint/static/js/app/main.js:23 +msgid "Printing from SD" +msgstr "" + +#: src/octoprint/static/js/app/main.js:24 +msgid "Sending file to SD" +msgstr "" + +#: src/octoprint/static/js/app/main.js:25 +msgid "Printing" +msgstr "" + +#: src/octoprint/static/js/app/main.js:26 +msgid "Paused" +msgstr "" + +#: src/octoprint/static/js/app/main.js:27 +msgid "Closed" +msgstr "" + +#: src/octoprint/static/js/app/main.js:28 +msgid "Transfering file to SD" +msgstr "" + +#: src/octoprint/static/js/app/main.js:132 +msgid "" +"Could not upload the file. Make sure that it is a GCODE file and has the " +"extension \".gcode\" or \".gco\" or that it is an STL file with the " +"extension \".stl\" and slicing support is enabled and configured." +msgstr "" + +#: src/octoprint/static/js/app/main.js:148 +msgid "Uploading ..." +msgstr "" + +#: src/octoprint/static/js/app/main.js:151 +msgid "Saving ..." +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/connection.js:24 +#: src/octoprint/templates/index.jinja2:117 +msgid "Connect" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/connection.js:26 +msgid "Disconnect" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/control.js:38 +#: src/octoprint/static/js/app/viewmodels/files.js:286 +#: src/octoprint/static/js/app/viewmodels/gcode.js:332 +#: src/octoprint/static/js/app/viewmodels/gcode.js:363 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:137 +#: src/octoprint/static/js/app/viewmodels/temperature.js:56 +msgid "Tool" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/control.js:45 +#: src/octoprint/static/js/app/viewmodels/temperature.js:68 +msgid "Hotend" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/files.js:281 +#: src/octoprint/static/js/app/viewmodels/files.js:286 +msgid "Filament" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/files.js:290 +msgid "Estimated Print Time" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/files.js:293 +msgid "Last Printed" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/files.js:295 +msgid "Last Print Time" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/firstrun.js:37 +msgid "" +"If you disable Access Control and your OctoPrint " +"installation is accessible from the internet, your printer will " +"be accessible by everyone - that also includes the bad guys!" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:13 +msgid "Loading..." +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:17 +msgid "Analyzing..." +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:21 +msgid "Analyzed" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:327 +msgid "Model size" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:329 +#: src/octoprint/static/js/app/viewmodels/gcode.js:332 +msgid "Total filament used" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:329 +#: src/octoprint/static/js/app/viewmodels/gcode.js:332 +#: src/octoprint/static/js/app/viewmodels/gcode.js:336 +msgid "mm" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:335 +msgid "Estimated print time" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:336 +msgid "Estimated layer height" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:337 +msgid "Layer count" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:337 +msgid "visited" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:356 +msgid "Layer number" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:357 +msgid "Layer height" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:358 +msgid "GCODE commands in layer" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:360 +#: src/octoprint/static/js/app/viewmodels/gcode.js:363 +msgid "Filament used by layer" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:366 +msgid "Print time for layer" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:15 +#: src/octoprint/templates/index.jinja2:74 +#: src/octoprint/templates/index.jinja2:85 +msgid "Login" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:70 +msgid "Login successful" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:70 +#, python-format +msgid "You are now logged in as \"%(username)s\"" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:74 +msgid "Login failed" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:74 +msgid "User unknown or wrong password" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:84 +msgid "Logout successful" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:84 +msgid "You are now logged out" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/navigation.js:17 +#, python-format +msgid "The command \"%(command)s\" executed successfully" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/navigation.js:20 +#, python-format +msgid "The command \"%(command)s\" could not be executed." +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/navigation.js:22 +msgid "Error" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/printerstate.js:66 +msgid "Continue" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/printerstate.js:68 +#: src/octoprint/templates/index.jinja2:144 +msgid "Pause" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/printerstate.js:79 +#: src/octoprint/templates/index.jinja2:524 +msgid "On Z Change" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/printerstate.js:81 +#: src/octoprint/templates/index.jinja2:525 +msgid "Timed" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/printerstate.js:81 +#: src/octoprint/templates/index.jinja2:531 +#: src/octoprint/templates/index.jinja2:538 +msgid "sec" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/printerstate.js:166 +msgid "This will restart the print job from the beginning." +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/settings.js:15 +#: src/octoprint/static/js/app/viewmodels/settings.js:41 +msgid "default" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/settings.js:16 +#: src/octoprint/static/js/app/viewmodels/settings.js:27 +msgid "red" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/settings.js:17 +#: src/octoprint/static/js/app/viewmodels/settings.js:29 +msgid "orange" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/settings.js:18 +#: src/octoprint/static/js/app/viewmodels/settings.js:31 +msgid "yellow" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/settings.js:19 +#: src/octoprint/static/js/app/viewmodels/settings.js:33 +msgid "green" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/settings.js:20 +#: src/octoprint/static/js/app/viewmodels/settings.js:35 +msgid "blue" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/settings.js:21 +#: src/octoprint/static/js/app/viewmodels/settings.js:37 +msgid "violet" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/settings.js:22 +#: src/octoprint/static/js/app/viewmodels/settings.js:39 +msgid "black" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/temperature.js:22 +#: src/octoprint/static/js/app/viewmodels/temperature.js:74 +#: src/octoprint/templates/settings.jinja2:347 +msgid "Bed" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/temperature.js:110 +msgid "just now" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/temperature.js:112 +msgid "min" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/temperature.js:252 +#: src/octoprint/templates/index.jinja2:262 +msgid "Actual" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/temperature.js:257 +#: src/octoprint/templates/index.jinja2:263 +msgid "Target" +msgstr "" + +#: src/octoprint/templates/dialogs.jinja2:6 +msgid "Server is offline" +msgstr "" + +#: src/octoprint/templates/dialogs.jinja2:9 +msgid "Attempt to reconnect" +msgstr "" + +#: src/octoprint/templates/dialogs.jinja2:20 +msgid "Upload locally" +msgstr "" + +#: src/octoprint/templates/dialogs.jinja2:22 +#: src/octoprint/templates/index.jinja2:218 +msgid "Upload to SD" +msgstr "" + +#: src/octoprint/templates/dialogs.jinja2:22 +msgid "SD not initialized" +msgstr "" + +#: src/octoprint/templates/dialogs.jinja2:25 +#: src/octoprint/templates/index.jinja2:213 +#: src/octoprint/templates/index.jinja2:224 +msgid "Upload" +msgstr "" + +#: src/octoprint/templates/dialogs.jinja2:34 +msgid "Are you sure?" +msgstr "" + +#: src/octoprint/templates/dialogs.jinja2:38 +msgid "Are you sure you want to proceed?" +msgstr "" + +#: src/octoprint/templates/dialogs.jinja2:41 +#: src/octoprint/templates/index.jinja2:145 +#: src/octoprint/templates/settings.jinja2:676 +msgid "Cancel" +msgstr "" + +#: src/octoprint/templates/dialogs.jinja2:42 +msgid "Proceed" +msgstr "" + +#: src/octoprint/templates/dialogs.jinja2:48 +msgid "Configure Access Control" +msgstr "" + +#: src/octoprint/templates/dialogs.jinja2:51 +msgid "" +"

    \n" +" Please read the following, it is very important for " +"your printer's health!\n" +"

    \n" +"

    \n" +" OctoPrint by default now ships with Access Control enabled, " +"meaning you won't be able to do anything with the\n" +" printer unless you login first as a configured user. This is " +"just to prevent strangers - possibly with\n" +" malicious intent - to gain access to your printer " +"via the internet or another untrustworthy network\n" +" and using it in such a way that it is damaged or worse (i.e. " +"causes a fire).\n" +"

    \n" +"

    \n" +" It looks like you haven't configured access control yet. " +"Please set up an username and password for the\n" +" initial administrator account who will have full access to " +"both the printer and OctoPrint's settings, then click\n" +" on \"Keep Access Control Enabled\":\n" +"

    " +msgstr "" + +#: src/octoprint/templates/dialogs.jinja2:67 +#: src/octoprint/templates/index.jinja2:78 +#: src/octoprint/templates/index.jinja2:79 +#: src/octoprint/templates/settings.jinja2:510 +msgid "Username" +msgstr "" + +#: src/octoprint/templates/dialogs.jinja2:73 +#: src/octoprint/templates/index.jinja2:80 +#: src/octoprint/templates/index.jinja2:81 +#: src/octoprint/templates/settings.jinja2:516 +msgid "Password" +msgstr "" + +#: src/octoprint/templates/dialogs.jinja2:79 +msgid "Confirm Password" +msgstr "" + +#: src/octoprint/templates/dialogs.jinja2:82 +#: src/octoprint/templates/settings.jinja2:525 +#: src/octoprint/templates/settings.jinja2:596 +msgid "Passwords do not match" +msgstr "" + +#: src/octoprint/templates/dialogs.jinja2:86 +msgid "" +"

    \n" +" Note: In case that your OctoPrint " +"installation is only accessible from within a trustworthy network and you" +" don't\n" +" need Access Control for other reasons, you may alternatively " +"disable Access Control. You should only\n" +" do this if you are absolutely certain that only people you " +"know and trust will be able to connect to it.\n" +"

    \n" +"

    \n" +" Do NOT underestimate the risk of an unsecured access " +"from the internet to your printer!\n" +"

    " +msgstr "" + +#: src/octoprint/templates/dialogs.jinja2:96 +msgid "Disable Access Control" +msgstr "" + +#: src/octoprint/templates/dialogs.jinja2:97 +msgid "Keep Access Control Enabled" +msgstr "" + +#: src/octoprint/templates/index.jinja2:57 +msgid "Settings" +msgstr "" + +#: src/octoprint/templates/index.jinja2:63 +msgid "System" +msgstr "" + +#: src/octoprint/templates/index.jinja2:83 +msgid "Remember me" +msgstr "" + +#: src/octoprint/templates/index.jinja2:88 +msgid "Change Password" +msgstr "" + +#: src/octoprint/templates/index.jinja2:89 +msgid "Logout" +msgstr "" + +#: src/octoprint/templates/index.jinja2:107 +#: src/octoprint/templates/settings.jinja2:30 +msgid "Serial Port" +msgstr "" + +#: src/octoprint/templates/index.jinja2:109 +#: src/octoprint/templates/settings.jinja2:36 +msgid "Baudrate" +msgstr "" + +#: src/octoprint/templates/index.jinja2:112 +msgid "Save connection settings" +msgstr "" + +#: src/octoprint/templates/index.jinja2:115 +msgid "Auto-connect on server startup" +msgstr "" + +#: src/octoprint/templates/index.jinja2:123 +msgid "State" +msgstr "" + +#: src/octoprint/templates/index.jinja2:127 +msgid "Machine State" +msgstr "" + +#: src/octoprint/templates/index.jinja2:128 +msgid "File" +msgstr "" + +#: src/octoprint/templates/index.jinja2:129 +#: src/octoprint/templates/index.jinja2:247 +msgid "Timelapse" +msgstr "" + +#: src/octoprint/templates/index.jinja2:133 +msgid "Approx. Total Print Time" +msgstr "" + +#: src/octoprint/templates/index.jinja2:134 +msgid "Print Time" +msgstr "" + +#: src/octoprint/templates/index.jinja2:135 +msgid "Print Time Left" +msgstr "" + +#: src/octoprint/templates/index.jinja2:136 +msgid "Printed" +msgstr "" + +#: src/octoprint/templates/index.jinja2:143 +msgid "Restart" +msgstr "" + +#: src/octoprint/templates/index.jinja2:143 +msgid "Print" +msgstr "" + +#: src/octoprint/templates/index.jinja2:152 +msgid "Files" +msgstr "" + +#: src/octoprint/templates/index.jinja2:159 +msgid "Sort by name" +msgstr "" + +#: src/octoprint/templates/index.jinja2:159 +#: src/octoprint/templates/index.jinja2:556 +#: src/octoprint/templates/settings.jinja2:630 +msgid "ascending" +msgstr "" + +#: src/octoprint/templates/index.jinja2:160 +msgid "Sort by upload date" +msgstr "" + +#: src/octoprint/templates/index.jinja2:160 +#: src/octoprint/templates/index.jinja2:161 +#: src/octoprint/templates/index.jinja2:556 +#: src/octoprint/templates/settings.jinja2:630 +msgid "descending" +msgstr "" + +#: src/octoprint/templates/index.jinja2:161 +msgid "Sort by file size" +msgstr "" + +#: src/octoprint/templates/index.jinja2:164 +msgid "Only show files stored locally" +msgstr "" + +#: src/octoprint/templates/index.jinja2:165 +msgid "Only show files stored on SD" +msgstr "" + +#: src/octoprint/templates/index.jinja2:168 +msgid "Hide successfully printed files" +msgstr "" + +#: src/octoprint/templates/index.jinja2:178 +msgid "Initialize SD card" +msgstr "" + +#: src/octoprint/templates/index.jinja2:179 +msgid "Refresh SD files" +msgstr "" + +#: src/octoprint/templates/index.jinja2:180 +msgid "Release SD card" +msgstr "" + +#: src/octoprint/templates/index.jinja2:188 +msgid "Search..." +msgstr "" + +#: src/octoprint/templates/index.jinja2:193 +msgid "Uploaded" +msgstr "" + +#: src/octoprint/templates/index.jinja2:194 +#: src/octoprint/templates/index.jinja2:556 +#: src/octoprint/templates/index.jinja2:562 +#: src/octoprint/templates/settings.jinja2:630 +#: src/octoprint/templates/settings.jinja2:637 +msgid "Size" +msgstr "" + +#: src/octoprint/templates/index.jinja2:198 +msgid "Download" +msgstr "" + +#: src/octoprint/templates/index.jinja2:199 +msgid "Remove" +msgstr "" + +#: src/octoprint/templates/index.jinja2:200 +msgid "Load" +msgstr "" + +#: src/octoprint/templates/index.jinja2:201 +msgid "Load and Print" +msgstr "" + +#: src/octoprint/templates/index.jinja2:206 +msgid "Free" +msgstr "" + +#: src/octoprint/templates/index.jinja2:233 +msgid "Hint: You can also drag and drop files on this page to upload them." +msgstr "" + +#: src/octoprint/templates/index.jinja2:243 +msgid "Temperature" +msgstr "" + +#: src/octoprint/templates/index.jinja2:244 +msgid "Control" +msgstr "" + +#: src/octoprint/templates/index.jinja2:245 +msgid "GCode Viewer" +msgstr "" + +#: src/octoprint/templates/index.jinja2:246 +msgid "Terminal" +msgstr "" + +#: src/octoprint/templates/index.jinja2:264 +msgid "Offset" +msgstr "" + +#: src/octoprint/templates/index.jinja2:280 +#: src/octoprint/templates/index.jinja2:302 +msgid "Set" +msgstr "" + +#: src/octoprint/templates/index.jinja2:292 +#: src/octoprint/templates/index.jinja2:523 +msgid "Off" +msgstr "" + +#: src/octoprint/templates/index.jinja2:360 +msgid "Select Tool..." +msgstr "" + +#: src/octoprint/templates/index.jinja2:371 +msgid "Extrude" +msgstr "" + +#: src/octoprint/templates/index.jinja2:372 +msgid "Retract" +msgstr "" + +#: src/octoprint/templates/index.jinja2:377 +msgid "General" +msgstr "" + +#: src/octoprint/templates/index.jinja2:379 +msgid "Motors off" +msgstr "" + +#: src/octoprint/templates/index.jinja2:380 +msgid "Fans on" +msgstr "" + +#: src/octoprint/templates/index.jinja2:381 +msgid "Fans off" +msgstr "" + +#: src/octoprint/templates/index.jinja2:445 +msgid "Sync with job progress" +msgstr "" + +#: src/octoprint/templates/index.jinja2:450 +msgid "Center viewport on model" +msgstr "" + +#: src/octoprint/templates/index.jinja2:453 +msgid "Zoom in on model" +msgstr "" + +#: src/octoprint/templates/index.jinja2:459 +msgid "Show moves" +msgstr "" + +#: src/octoprint/templates/index.jinja2:462 +msgid "Show retracts" +msgstr "" + +#: src/octoprint/templates/index.jinja2:468 +msgid "Also show previous layer" +msgstr "" + +#: src/octoprint/templates/index.jinja2:471 +msgid "Also show next layer" +msgstr "" + +#: src/octoprint/templates/index.jinja2:476 +msgid "Reload" +msgstr "" + +#: src/octoprint/templates/index.jinja2:503 +msgid "Autoscroll" +msgstr "" + +#: src/octoprint/templates/index.jinja2:513 +msgid "Send" +msgstr "" + +#: src/octoprint/templates/index.jinja2:519 +msgid "Timelapse Configuration" +msgstr "" + +#: src/octoprint/templates/index.jinja2:521 +msgid "Timelapse Mode" +msgstr "" + +#: src/octoprint/templates/index.jinja2:528 +msgid "Timelapse post roll (in rendered seconds)" +msgstr "" + +#: src/octoprint/templates/index.jinja2:535 +msgid "Interval" +msgstr "" + +#: src/octoprint/templates/index.jinja2:544 +msgid "Save as default" +msgstr "" + +#: src/octoprint/templates/index.jinja2:549 +msgid "Save config" +msgstr "" + +#: src/octoprint/templates/index.jinja2:553 +msgid "Finished Timelapses" +msgstr "" + +#: src/octoprint/templates/index.jinja2:556 +#: src/octoprint/templates/settings.jinja2:630 +msgid "Sort by" +msgstr "" + +#: src/octoprint/templates/index.jinja2:556 +#: src/octoprint/templates/index.jinja2:561 +#: src/octoprint/templates/settings.jinja2:377 +#: src/octoprint/templates/settings.jinja2:469 +#: src/octoprint/templates/settings.jinja2:630 +#: src/octoprint/templates/settings.jinja2:636 +msgid "Name" +msgstr "" + +#: src/octoprint/templates/index.jinja2:556 +msgid "Creation date" +msgstr "" + +#: src/octoprint/templates/index.jinja2:563 +#: src/octoprint/templates/settings.jinja2:472 +#: src/octoprint/templates/settings.jinja2:639 +msgid "Action" +msgstr "" + +#: src/octoprint/templates/index.jinja2:592 +msgid "Version" +msgstr "" + +#: src/octoprint/templates/index.jinja2:595 +msgid "Homepage" +msgstr "" + +#: src/octoprint/templates/index.jinja2:596 +msgid "Sourcecode" +msgstr "" + +#: src/octoprint/templates/index.jinja2:597 +msgid "Documentation" +msgstr "" + +#: src/octoprint/templates/index.jinja2:598 +msgid "Bugs and Requests" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:4 +msgid "OctoPrint Settings" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:9 +msgid "Printer" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:10 +msgid "Serial Connection" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:11 +msgid "Printer Parameters" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:12 +msgid "Temperatures" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:13 +msgid "Terminal filters" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:14 +#: src/octoprint/templates/settings.jinja2:15 +msgid "Features" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:16 +msgid "Webcam" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:17 +msgid "Cura" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:18 +msgid "Access Control" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:19 +msgid "API" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:21 +msgid "Folders" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:22 +msgid "Appearance" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:23 +#: src/octoprint/templates/settings.jinja2:626 +msgid "Logs" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:44 +msgid "Auto-connect to printer on server start" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:49 +msgid "Communication timeout" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:58 +msgid "Temperature timeout" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:67 +msgid "SD status timeout" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:76 +msgid "Connection timeout" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:85 +msgid "Autodetection timeout" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:96 +msgid "Log communication to serial.log (might negatively impact performance)" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:96 +msgid "Warning" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:105 +msgid "Axis" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:107 +#: src/octoprint/templates/settings.jinja2:176 +msgid "X" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:113 +#: src/octoprint/templates/settings.jinja2:123 +#: src/octoprint/templates/settings.jinja2:133 +msgid "Invert control" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:117 +#: src/octoprint/templates/settings.jinja2:181 +msgid "Y" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:127 +msgid "Z" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:137 +msgid "E" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:145 +msgid "Default extrusion length" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:151 +msgid "Number of Extruders" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:157 +msgid "Extruder Offsets" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:174 +msgid "Bed Size" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:188 +msgid "Radius" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:196 +msgid "Circular" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:205 +msgid "Stream URL" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:211 +msgid "Snapshot URL" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:217 +msgid "Path to FFMPEG" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:223 +msgid "Timelapse bitrate" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:231 +msgid "Enable OctoPrint watermark in timelapse movies" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:238 +msgid "Flip webcam horizontally" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:243 +msgid "Flip webcam vertically" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:254 +msgid "Enable Temperature Graph" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:261 +msgid "Enable GCode Visualizer" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:268 +msgid "Enable SD support" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:275 +msgid "Always assume SD card is present" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:275 +#: src/octoprint/templates/settings.jinja2:289 +#: src/octoprint/templates/settings.jinja2:296 +msgid "Repetier" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:282 +msgid "Wait for start on connect" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:289 +msgid "Send a checksum with every command" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:296 +#, python-format +msgid "" +"Support TargetExtr%%n/TargetBed target " +"temperature format" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:303 +msgid "Swallow the first \"ok\" after a resend response" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:312 +msgid "Upload Folder" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:318 +msgid "Timelapse Folder" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:324 +msgid "Timelapse Temp Folder" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:330 +msgid "Logs Folder" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:336 +msgid "Watched Folder" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:346 +msgid "Extruder" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:378 +msgid "RegExp" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:403 +msgid "Title" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:409 +msgid "Color" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:420 +msgid "Enable slicing via Cura" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:426 +msgid "Path to Cura" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:432 +msgid "Path to Cura config" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:444 +msgid "Enable" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:451 +#, python-format +msgid "Allow Cross Origin Resource Sharing (CORS)" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:456 +#: src/octoprint/templates/settings.jinja2:477 +msgid "API Key" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:470 +#: src/octoprint/templates/settings.jinja2:531 +#: src/octoprint/templates/settings.jinja2:560 +msgid "Active" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:471 +#: src/octoprint/templates/settings.jinja2:538 +#: src/octoprint/templates/settings.jinja2:567 +msgid "Admin" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:481 +msgid "Update User" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:481 +msgid "Change password" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:481 +msgid "Delete user" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:498 +#: src/octoprint/templates/settings.jinja2:505 +msgid "Add user" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:522 +#: src/octoprint/templates/settings.jinja2:593 +msgid "Repeat Password" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:545 +#: src/octoprint/templates/settings.jinja2:574 +#: src/octoprint/templates/settings.jinja2:616 +msgid "Abort" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:546 +#: src/octoprint/templates/settings.jinja2:575 +#: src/octoprint/templates/settings.jinja2:617 +msgid "Confirm" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:553 +#, python-format +msgid "Edit user \"%(user)s\"" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:582 +#, python-format +msgid "Change password for user \"%(user)s\"" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:587 +msgid "New Password" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:602 +msgid "Current API Key" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:605 +msgid "N/A" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:630 +msgid "Modification date" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:638 +msgid "Date" +msgstr "" + +#: src/octoprint/templates/settings.jinja2:677 +msgid "Save" +msgstr "" + From 0adbef9696a6973a39796ff12ad291e246c0e62a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 27 Aug 2014 14:49:39 +0200 Subject: [PATCH 40/50] Updated german translation --- src/octoprint/static/js/i18n/de.js | 2 +- .../translations/de/LC_MESSAGES/messages.mo | Bin 18835 -> 18835 bytes .../translations/de/LC_MESSAGES/messages.po | 4 ++-- src/octoprint/translations/messages.pot | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/octoprint/static/js/i18n/de.js b/src/octoprint/static/js/i18n/de.js index 3a75faba8..44ea36e7c 100644 --- a/src/octoprint/static/js/i18n/de.js +++ b/src/octoprint/static/js/i18n/de.js @@ -1 +1 @@ -window.BABEL_TO_LOAD_de = {"locale": "de", "domain": "messages", "plural_expr": "(n != 1)", "messages": {"": "Project-Id-Version: OctoPrint 1.2.0-dev-119-gb78bb9e-dirty\nReport-Msgid-Bugs-To: i18n@octoprint.org\nPOT-Creation-Date: 2014-08-27 11:44+0200\nPO-Revision-Date: 2014-08-27 11:45+0100\nLast-Translator: Gina H\u00e4u\u00dfge \nLanguage-Team: de \nPlural-Forms: nplurals=2; plural=(n != 1)\nMIME-Version: 1.0\nContent-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 8bit\nGenerated-By: Babel 1.3\n", "Print Time Left": "Verbleibende Druckdauer", "Proceed": "Fortfahren", "Timelapse Temp Folder": "Tempor\u00e4res Zeitrafferverzeichnis", "Title": "Titel", "Only show files stored locally": "Nur lokal abgelegte Dateien anzeigen", "yellow": "Gelb", "Path to Cura": "Pfad zu Cura", "Action": "Aktion", "Passwords do not match": "Passw\u00f6rter nicht identisch", "Sort by name": "Nach Name sortieren", "Save connection settings": "Verbindungseinstellungen speichern", "Rendering timelapse": "Zeitraffer wird gerendert", "Cura": "Cura", "Files": "Dateien", "Bed Size": "Bettdimensionen", "Always assume SD card is present": "Immer davon ausgehen, dass eine SD Karte vorhanden ist", "Load and Print": "Laden und Drucken", "Sending file to SD": "Sende Datei zu SD", "Number of Extruders": "Anzahl Extruder", "black": "Schwarz", "Last Printed": "Zuletzt gedruckt", "Sourcecode": "Quellcode", "Estimated layer height": "Gesch\u00e4tzte Schichth\u00f6he", "You are now logged out": "Du bist jetzt ausgeloggt", "Uploaded": "Hochgeladen", "Opening serial port": "\u00d6ffnet Serialport", "New timelapse %(movie_basename)s is done rendering.": "Neue Zeitrafferaufnahme %(movie_basename)s wurde fertig gerendert", "Invert control": "Invertieren", "Webcam": "Webcam", "Remember me": "Login merken", "Enable GCode Visualizer": "GCode Viewer aktivieren", "The server appears to be offline, at least I'm not getting any response from it. I'll try to reconnect automatically over the next couple of minutes, however you are welcome to try a manual reconnect anytime using the button below.": "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich werde \u00fcber die n\u00e4chsten Minuten versuchen, zu reconnecten, aber Du kannst mittels des folgenden Buttons auch jederzeit einen manuellen Reconnect ansto\u00dfen.", "Rendering failed": "Rendering fehlgeschlagen", "Upload Folder": "Uploadverzeichnis", "descending": "absteigend", "X": "X", "Add user": "Nutzer hinzuf\u00fcgen", "GCODE commands in layer": "GCODE Kommandos in Schicht", "Estimated print time": "Gesch\u00e4tzte Druckzeit", "Serial Connection": "Serielle Verbindung", "Control": "Kontrolle", "Show moves": "Bewegungen zeigen", "Also show next layer": "Auch n\u00e4chste Schicht anzeigen", "Print Time": "Druckdauer", "Sort by file size": "Nach Gr\u00f6\u00dfe sortieren", "Machine State": "Druckerstatus", "default": "Standard", "API": "API", "Printing from SD": "Drucke von SD", "Terminal filters": "Terminalfilter", "Change password for user \"%(user)s\"": "Passwort\u00e4nderung f\u00fcr Nutzer \"%(user)s\"", "Enable Temperature Graph": "Temperaturgraph aktivieren", "Delete user": "Nutzer l\u00f6schen", "Confirm Password": "Passwort best\u00e4tigen", "Disconnect": "Trennen", "Slicing done": "Slicing abgeschlossen", "Initialize SD card": "SD Karte initialisieren", "System": "System", "Send": "Senden", "State": "Status", "Version": "Version", "YYYY-MM-DD HH:mm": "DD.MM.YYYY HH:mm", "Attempt to reconnect": "Erneut verbinden", "Streaming done": "Streaming abgeschlossen", "violet": "Violett", "Print": "Drucken", "Layer count": "Schichtanzahl", "OctoPrint Settings": "OctoPrint Einstellungen", "Are you sure?": "Bist Du sicher?", "blue": "Blau", "Temperature timeout": "Temperaturtimeout", "Printer": "Drucker", "Tool": "Werkzeug", "Settings": "Einstellungen", "Path to FFMPEG": "Pfad zu FFMPEG", "Upload to SD": "Upload (SD)", "The command \"%(command)s\" could not be executed.": "Das Kommando \"%(command)s\" konnte nicht ausgef\u00fchrt werden.", "Printed": "Gedruckt", "Layer number": "Schichtnummer", "Sync with job progress": "Job mit Fortschritt synchronisieren", "Circular": "Rund", "Total filament used": "Gesamtmenge genutzten Filaments", "red": "Rot", "Save as default": "Als Standard speichern", "Slicing ...": "Slice ...", "Last Print Time": "Letzte Druckdauer", "Target": "Soll", "Streaming ...": "Streame ...", "Logout successful": "Logout erfolgreich", "Now rendering timelapse %(movie_basename)s": "Rendere Zeitrafferaufnahme %(movie_basename)s", "Documentation": "Dokumentation", "%(hour)02d:%(minute)02d:%(second)02d": "%(hour)02d:%(minute)02d:%(second)02d", "Upload": "Upload", "ascending": "aufsteigend", "Model size": "Modelgr\u00f6\u00dfe", "Temperatures": "Temperaturen", "visited": "besucht", "Timed": "Nach Zeit", "Edit user \"%(user)s\"": "Editiere Nutzer \"%(user)s\"", "Snapshot URL": "Snapshot-URL", "Release SD card": "SD Karte auswerfen", "Server is offline": "Der Server ist offline", "Log communication to serial.log (might negatively impact performance)": "Logge die Kommunikation in das serial.log (kann die Performance negativ beeinflussen)", "Sort by upload date": "Nach Uploaddatum sortieren", "Change Password": "Passwort \u00e4ndern", "Logs": "Logs", "Hotend": "Hotend", "Show retracts": "Retracts zeigen", "Keep Access Control Enabled": "Zugangsbeschr\u00e4nkung aktiviert lassen", "Upload locally": "Upload (lokal)", "Select Tool...": "Werkzeug w\u00e4hlen...", "Paused": "Pausiert", "Continue": "Fortsetzen", "Radius": "Radius", "The command \"%(command)s\" executed successfully": "Das Kommando \"%(command)s\" wurde erfolgreich ausgef\u00fchrt", "Features": "Funktionen", "Download": "Download", "GCode Viewer": "GCode Viewer", "Also show previous layer": "Auch vorherige Schicht anzeigen", "Repetier": "Repetier", "Login successful": "Login erfolgreich", "Finished Timelapses": "Abgeschlossene Zeitraffer", "Rendering of timelapse %(movie_basename)s failedwith return code %(returncode)s": "Rendering der Zeitrafferaufnahme %(movie_basename)s fehlgeschlagen mit Returncode %(returncode)s", "Pause": "Pause", "Temperature": "Temperatur", "Enable slicing via Cura": "Slicing mittels Cura aktivieren", "Access Control": "Zugangsbeschr\u00e4nkung", "Analyzing...": "Analysiere...", "just now": "gerade eben", "Operational": "Bereit", "Send a checksum with every command": "Eine Pr\u00fcfsumme mit jedem Kommando senden", "Autodetection timeout": "Autodetectiontimeout", "Connecting": "Verbinde", "Free": "Frei", "Closed": "Geschlossen", "Refresh SD files": "SD Dateien aktualisieren", "Flip webcam vertically": "Webcam vertikal flippen", "Path to Cura config": "Pfad zur Cura-Konfiguration", "Filament": "Filament", "Could not slice %(stl)s to %(gcode)s: %(reason)s": "Konnte %(stl)s nicht nach %(gcode)s slicen: %(reason)s", "Baudrate": "Baudrate", "Detecting baudrate": "Detektiere Baudrate", "Date": "Datum", "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds": "%(local)s nach %(remote)s gestreamt, dauerte %(time).2f Sekunden", "Enable OctoPrint watermark in timelapse movies": "OctoPrint Wasserzeichen in Zeitrafferaufnahmen aktivieren", "Motors off": "Motoren aus", "Detecting serial port": "Detektiere Serialport", "New Password": "Neues Passwort", "Logout": "Logout", "Offset": "Offset", "Analyzed": "Analysiert", "Auto-connect on server startup": "Automatisch bei Serverstart verbinden", "Printer Parameters": "Druckerparameter", "E": "E", "Restart": "Neu starten", "Search...": "Suchen...", "Slicing failed": "Slicing fehlgeschlagen", "Actual": "Ist", "Active": "Aktiv", "Creation date": "Erstellungsdatum", "Hint: You can also drag and drop files on this page to upload them.": "Hinweis: Du kannst auch Dateien auf diese Seite ziehen um sie hochzuladen.", "Interval": "Intervall", "N/A": "(nicht vorhanden)", "Bed": "Bett", "Auto-connect to printer on server start": "Automatisch bei Serverstart verbinden", "orange": "Orange", "Error": "Fehler", "On Z Change": "Bei Ebenenwechsel", "Timelapse post roll (in rendered seconds)": "Zeitraffernachlauf (in gerenderten Sekunden)", "Z": "Z", "Are you sure you want to proceed?": "Bist Du sicher, dass du fortfahren willst?", "If you disable Access Control and your OctoPrint installation is accessible from the internet, your printer will be accessible by everyone - that also includes the bad guys!": "Wenn Du die Zugangsbeschr\u00e4nkung deaktivierst und Deine OctoPrint Installation vom Internet aus erreichbar ist, kann jeder auf Deinen Drucker zugreifen - auch die b\u00f6sen Jungs!", "Load": "Laden", "Set": "Setzen", "The server appears to be offline, at least I'm not getting any response from it. I could not reconnect automatically, but you may try a manual reconnect using the button below.": "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich konnte nicht automatisch reconnected, aber Du kannst mittels des folgenden Buttons einen manuellen Reconnect ansto\u00dfen.", "Zoom in on model": "Auf Model zoomen", "mm": "mm", "Saving ...": "Speichere ...", "Watched Folder": "Beobachtetes Verzeichnis", "General": "Allgemein", "

    \n Please read the following, it is very important for your printer's health!\n

    \n

    \n OctoPrint by default now ships with Access Control enabled, meaning you won't be able to do anything with the\n printer unless you login first as a configured user. This is just to prevent strangers - possibly with\n malicious intent - to gain access to your printer via the internet or another untrustworthy network\n and using it in such a way that it is damaged or worse (i.e. causes a fire).\n

    \n

    \n It looks like you haven't configured access control yet. Please set up an username and password for the\n initial administrator account who will have full access to both the printer and OctoPrint's settings, then click\n on \"Keep Access Control Enabled\":\n

    ": "

    \n Bitte lies die folgenden Zeilen aufmerksam durch, es ist sehr wichtig f\u00fcr die Gesundheit Deines Druckers!\n

    \n

    \n OctoPrint wird nun standardm\u00e4ssig mit aktivierter Zugangsbeschr\u00e4nkung ausgeliefert, das hei\u00dft, dass Du mit dem Drucker nichts\n anfangen kannst, wenn du nicht als einer der konfigurierten Nutzer eingeloggt bist. Das dient dem Zweck, Fremde mit\n m\u00f6glicherweise b\u00f6swilligen Absichten davon abzuhalten, auf Deinen Drucker \u00fcber das Internet oder ein anderes\n unsicheres Netzwerk zuzugreifen und ihn auf eine Art zu nutzen, die ihn besch\u00e4digt oder schlimmeres (z.B. ein Feuer verursacht).\n

    \n

    \n Es sieht so aus, als h\u00e4ttest Du die Zugriffsbeschr\u00e4nkung noch nicht konfiguriert. Bitte konfiguriere einen Usernamen\n und ein Passwort f\u00fcr das initiale Administratorkonto, das vollen Zugang zu sowohl dem Drucker als auch OctoPrints\n Einstellungen haben wird, und klicke dann auf \"Zugangsbeschr\u00e4nkung aktiviert lassen\".\n

    ", "Color": "Farbe", "Fans on": "L\u00fcfter an", "Swallow the first \"ok\" after a resend response": "Erstes \"ok\" nach Resend ignorieren", "Enable SD support": "SD-Unterst\u00fctzung aktivieren", "Connect": "Verbinden", "Cancel": "Abbruch", "sec": "Sek", "Warning": "Warnung", "Loading...": "Lade...", "Current API Key": "Aktueller API-Key", "Size": "Gr\u00f6\u00dfe", "Communication timeout": "Kommunikationstimeout", "Modification date": "\u00c4nderungsdatum", "Change password": "Passwort \u00e4ndern", "This will restart the print job from the beginning.": "Der Druckjob wird zur\u00fcckgesetzt und von vorne begonnen.", "Stream URL": "Stream-URL", "Sort by": "Sortieren", "Login failed": "Login fehlgeschlagen", "Abort": "Abbrechen", "Confirm": "Best\u00e4tigen", "Repeat Password": "Passwort wiederholen", "Terminal": "Terminal", "Autoscroll": "Autoscroll", "Print time for layer": "Druckdauer f\u00fcr Schicht", "Disable Access Control": "Zugangsbeschr\u00e4nkung deaktivieren", "Configure Access Control": "Zugangsbeschr\u00e4nkung konfigurieren", "Timelapse Configuration": "Zeitrafferkonfiguration", "Retract": "Retract", "Timelapse bitrate": "Zeitrafferbitrate", "Offline": "Offline", "API Key": "API Key", "Homepage": "Homepage", "Estimated Print Time": "Gesch\u00e4tzte Druckzeit", "Folders": "Verzeichnisse", "Bugs and Requests": "Bugs und Requests", "Save": "Speichern", "Default extrusion length": "Standard Extrusionsl\u00e4nge", "min": "Min", "Support TargetExtr%%n/TargetBed target temperature format": "TargetExtr%%n/TargetBed Zieltemperaturformat unterst\u00fctzen", "Connection timeout": "Verbindungstimeout", "Save config": "Konfiguration speichern", "Center viewport on model": "Ausschnitt auf Modell zentrieren", "User unknown or wrong password": "Nutzer unbekannt oder falsches Passwort", "Allow Cross Origin Resource Sharing (CORS)": "Cross Origin Resource Sharing (CORS) erlauben", "Appearance": "Aussehen", "Enable": "Aktivieren", "Uploading ...": "Uploade ...", "Logs Folder": "Logverzeichnis", "Password": "Passwort", "Hide successfully printed files": "Erfolgreich gedruckte Dateien verbergen", "Username": "Username", "Off": "Aus", "Name": "Name", "Extruder Offsets": "Extruderoffsets", "Approx. Total Print Time": "Ungef\u00e4hre Gesamtdruckdauer", "Admin": "Admin", "

    \n Note: In case that your OctoPrint installation is only accessible from within a trustworthy network and you don't\n need Access Control for other reasons, you may alternatively disable Access Control. You should only\n do this if you are absolutely certain that only people you know and trust will be able to connect to it.\n

    \n

    \n Do NOT underestimate the risk of an unsecured access from the internet to your printer!\n

    ": "

    \n Beachte: Falls Deine OctoPrint Installation ausschlie\u00dflich innerhalb eines vertrauensw\u00fcrdigen Netzwerks\n erreicht werden kann und Du die Zugangsbeschr\u00e4nkung nicht f\u00fcr andere Zwecke ben\u00f6tigst, kannst Du sie alternativ auch\n deaktivieren. Du solltest das nur tun, wenn Du Dir absolut sicher bist, dass nur Leute darauf zugreifen k\u00f6nnen, die du kennst\n und denen du vertraust\n

    \n

    \n UNTERSCH\u00c4TZE NICHT das Risiko eines ungesicherten Zugriffs aus dem Internet auf Deinen Drucker!\n

    ", "Timelapse": "Zeitraffer", "Remove": "Entfernen", "Reload": "Neu laden", "Printing": "Drucke", "Only show files stored on SD": "Nur auf SD abgelegte Dateien anzeigen", "Y": "Y", "Fans off": "L\u00fcfter aus", "Login": "Login", "Timelapse ready": "Zeitraffer fertig", "Timelapse Mode": "Zeitraffermodus", "Timelapse Folder": "Zeitrafferverzeichnis", "Extruder": "Extruder", "Could not upload the file. Make sure that it is a GCODE file and has the extension \".gcode\" or \".gco\" or that it is an STL file with the extension \".stl\" and slicing support is enabled and configured.": "Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um eine GCODE-Datei mit der Extension \".gcode\" oder \".gco\" oder um eine STL-Datei mit der Extension \".stl\" handelt und in letzterem Fall auch der Slicingsupport aktiviert ist.", "SD status timeout": "SD-Status-Timeout", "SD not initialized": "SD Karte ist nicht initialisiert", "Update User": "Nutzer editieren", "off": "Aus", "Serial Port": "Serialport", "Flip webcam horizontally": "Webcam horizontal flippen", "Wait for start on connect": "Bei der Verbindung auf start warten", "Transfering file to SD": "Sende Datei zu SD", "RegExp": "RegExp", "Layer height": "Schichth\u00f6he", "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds": "%(stl)s nach %(gcode)s geslicet, dauerte %(time).2f Sekunden", "Extrude": "Extrude", "green": "Gr\u00fcn", "File": "Datei", "You are now logged in as \"%(username)s\"": "Du bist jetzt eingeloggt als \"%(username)s\"", "Axis": "Achse", "Filament used by layer": "Genutztes Filament in Schicht"}} ; \ No newline at end of file +window.BABEL_TO_LOAD_de = {"locale": "de", "domain": "messages", "plural_expr": "(n != 1)", "messages": {"": "Project-Id-Version: OctoPrint 1.2.0-dev-119-gb78bb9e-dirty\nReport-Msgid-Bugs-To: i18n@octoprint.org\nPOT-Creation-Date: 2014-08-27 14:48+0200\nPO-Revision-Date: 2014-08-27 14:49+0100\nLast-Translator: Gina H\u00e4u\u00dfge \nLanguage-Team: de \nPlural-Forms: nplurals=2; plural=(n != 1)\nMIME-Version: 1.0\nContent-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 8bit\nGenerated-By: Babel 1.3\n", "Print Time Left": "Verbleibende Druckdauer", "Proceed": "Fortfahren", "Timelapse Temp Folder": "Tempor\u00e4res Zeitrafferverzeichnis", "Title": "Titel", "Only show files stored locally": "Nur lokal abgelegte Dateien anzeigen", "yellow": "Gelb", "Path to Cura": "Pfad zu Cura", "Action": "Aktion", "Passwords do not match": "Passw\u00f6rter nicht identisch", "Sort by name": "Nach Name sortieren", "Save connection settings": "Verbindungseinstellungen speichern", "Rendering timelapse": "Zeitraffer wird gerendert", "Cura": "Cura", "Files": "Dateien", "Bed Size": "Bettdimensionen", "Always assume SD card is present": "Immer davon ausgehen, dass eine SD Karte vorhanden ist", "Load and Print": "Laden und Drucken", "Sending file to SD": "Sende Datei zu SD", "Number of Extruders": "Anzahl Extruder", "black": "Schwarz", "Last Printed": "Zuletzt gedruckt", "Sourcecode": "Quellcode", "Estimated layer height": "Gesch\u00e4tzte Schichth\u00f6he", "You are now logged out": "Du bist jetzt ausgeloggt", "Uploaded": "Hochgeladen", "Opening serial port": "\u00d6ffnet Serialport", "New timelapse %(movie_basename)s is done rendering.": "Neue Zeitrafferaufnahme %(movie_basename)s wurde fertig gerendert", "Invert control": "Invertieren", "Webcam": "Webcam", "Remember me": "Login merken", "Enable GCode Visualizer": "GCode Viewer aktivieren", "The server appears to be offline, at least I'm not getting any response from it. I'll try to reconnect automatically over the next couple of minutes, however you are welcome to try a manual reconnect anytime using the button below.": "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich werde \u00fcber die n\u00e4chsten Minuten versuchen, zu reconnecten, aber Du kannst mittels des folgenden Buttons auch jederzeit einen manuellen Reconnect ansto\u00dfen.", "Rendering failed": "Rendering fehlgeschlagen", "Upload Folder": "Uploadverzeichnis", "descending": "absteigend", "X": "X", "Add user": "Nutzer hinzuf\u00fcgen", "GCODE commands in layer": "GCODE Kommandos in Schicht", "Estimated print time": "Gesch\u00e4tzte Druckzeit", "Serial Connection": "Serielle Verbindung", "Control": "Kontrolle", "Show moves": "Bewegungen zeigen", "Also show next layer": "Auch n\u00e4chste Schicht anzeigen", "Print Time": "Druckdauer", "Sort by file size": "Nach Gr\u00f6\u00dfe sortieren", "Machine State": "Druckerstatus", "default": "Standard", "API": "API", "Printing from SD": "Drucke von SD", "Terminal filters": "Terminalfilter", "Change password for user \"%(user)s\"": "Passwort\u00e4nderung f\u00fcr Nutzer \"%(user)s\"", "Enable Temperature Graph": "Temperaturgraph aktivieren", "Delete user": "Nutzer l\u00f6schen", "Confirm Password": "Passwort best\u00e4tigen", "Disconnect": "Trennen", "Slicing done": "Slicing abgeschlossen", "Initialize SD card": "SD Karte initialisieren", "System": "System", "Send": "Senden", "State": "Status", "Version": "Version", "YYYY-MM-DD HH:mm": "DD.MM.YYYY HH:mm", "Attempt to reconnect": "Erneut verbinden", "Streaming done": "Streaming abgeschlossen", "violet": "Violett", "Print": "Drucken", "Layer count": "Schichtanzahl", "OctoPrint Settings": "OctoPrint Einstellungen", "Are you sure?": "Bist Du sicher?", "blue": "Blau", "Temperature timeout": "Temperaturtimeout", "Printer": "Drucker", "Tool": "Werkzeug", "Settings": "Einstellungen", "Path to FFMPEG": "Pfad zu FFMPEG", "Upload to SD": "Upload (SD)", "The command \"%(command)s\" could not be executed.": "Das Kommando \"%(command)s\" konnte nicht ausgef\u00fchrt werden.", "Printed": "Gedruckt", "Layer number": "Schichtnummer", "Sync with job progress": "Job mit Fortschritt synchronisieren", "Circular": "Rund", "Total filament used": "Gesamtmenge genutzten Filaments", "red": "Rot", "Save as default": "Als Standard speichern", "Slicing ...": "Slice ...", "Last Print Time": "Letzte Druckdauer", "Target": "Soll", "Streaming ...": "Streame ...", "Logout successful": "Logout erfolgreich", "Now rendering timelapse %(movie_basename)s": "Rendere Zeitrafferaufnahme %(movie_basename)s", "Documentation": "Dokumentation", "%(hour)02d:%(minute)02d:%(second)02d": "%(hour)02d:%(minute)02d:%(second)02d", "Upload": "Upload", "ascending": "aufsteigend", "Model size": "Modelgr\u00f6\u00dfe", "Temperatures": "Temperaturen", "visited": "besucht", "Timed": "Nach Zeit", "Edit user \"%(user)s\"": "Editiere Nutzer \"%(user)s\"", "Snapshot URL": "Snapshot-URL", "Release SD card": "SD Karte auswerfen", "Server is offline": "Der Server ist offline", "Log communication to serial.log (might negatively impact performance)": "Logge die Kommunikation in das serial.log (kann die Performance negativ beeinflussen)", "Sort by upload date": "Nach Uploaddatum sortieren", "Change Password": "Passwort \u00e4ndern", "Logs": "Logs", "Hotend": "Hotend", "Show retracts": "Retracts zeigen", "Keep Access Control Enabled": "Zugangsbeschr\u00e4nkung aktiviert lassen", "Upload locally": "Upload (lokal)", "Select Tool...": "Werkzeug w\u00e4hlen...", "Paused": "Pausiert", "Continue": "Fortsetzen", "Radius": "Radius", "The command \"%(command)s\" executed successfully": "Das Kommando \"%(command)s\" wurde erfolgreich ausgef\u00fchrt", "Features": "Funktionen", "Download": "Download", "GCode Viewer": "GCode Viewer", "Also show previous layer": "Auch vorherige Schicht anzeigen", "Repetier": "Repetier", "Login successful": "Login erfolgreich", "Finished Timelapses": "Abgeschlossene Zeitraffer", "Rendering of timelapse %(movie_basename)s failedwith return code %(returncode)s": "Rendering der Zeitrafferaufnahme %(movie_basename)s fehlgeschlagen mit Returncode %(returncode)s", "Pause": "Pause", "Temperature": "Temperatur", "Enable slicing via Cura": "Slicing mittels Cura aktivieren", "Access Control": "Zugangsbeschr\u00e4nkung", "Analyzing...": "Analysiere...", "just now": "gerade eben", "Operational": "Bereit", "Send a checksum with every command": "Eine Pr\u00fcfsumme mit jedem Kommando senden", "Autodetection timeout": "Autodetectiontimeout", "Connecting": "Verbinde", "Free": "Frei", "Closed": "Geschlossen", "Refresh SD files": "SD Dateien aktualisieren", "Flip webcam vertically": "Webcam vertikal flippen", "Path to Cura config": "Pfad zur Cura-Konfiguration", "Filament": "Filament", "Could not slice %(stl)s to %(gcode)s: %(reason)s": "Konnte %(stl)s nicht nach %(gcode)s slicen: %(reason)s", "Baudrate": "Baudrate", "Detecting baudrate": "Detektiere Baudrate", "Date": "Datum", "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds": "%(local)s nach %(remote)s gestreamt, dauerte %(time).2f Sekunden", "Enable OctoPrint watermark in timelapse movies": "OctoPrint Wasserzeichen in Zeitrafferaufnahmen aktivieren", "Motors off": "Motoren aus", "Detecting serial port": "Detektiere Serialport", "New Password": "Neues Passwort", "Logout": "Logout", "Offset": "Offset", "Analyzed": "Analysiert", "Auto-connect on server startup": "Automatisch bei Serverstart verbinden", "Printer Parameters": "Druckerparameter", "E": "E", "Restart": "Neu starten", "Search...": "Suchen...", "Slicing failed": "Slicing fehlgeschlagen", "Actual": "Ist", "Active": "Aktiv", "Creation date": "Erstellungsdatum", "Hint: You can also drag and drop files on this page to upload them.": "Hinweis: Du kannst auch Dateien auf diese Seite ziehen um sie hochzuladen.", "Interval": "Intervall", "N/A": "(nicht vorhanden)", "Bed": "Bett", "Auto-connect to printer on server start": "Automatisch bei Serverstart verbinden", "orange": "Orange", "Error": "Fehler", "On Z Change": "Bei Ebenenwechsel", "Timelapse post roll (in rendered seconds)": "Zeitraffernachlauf (in gerenderten Sekunden)", "Z": "Z", "Are you sure you want to proceed?": "Bist Du sicher, dass du fortfahren willst?", "If you disable Access Control and your OctoPrint installation is accessible from the internet, your printer will be accessible by everyone - that also includes the bad guys!": "Wenn Du die Zugangsbeschr\u00e4nkung deaktivierst und Deine OctoPrint Installation vom Internet aus erreichbar ist, kann jeder auf Deinen Drucker zugreifen - auch die b\u00f6sen Jungs!", "Load": "Laden", "Set": "Setzen", "The server appears to be offline, at least I'm not getting any response from it. I could not reconnect automatically, but you may try a manual reconnect using the button below.": "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich konnte nicht automatisch reconnected, aber Du kannst mittels des folgenden Buttons einen manuellen Reconnect ansto\u00dfen.", "Zoom in on model": "Auf Model zoomen", "mm": "mm", "Saving ...": "Speichere ...", "Watched Folder": "Beobachtetes Verzeichnis", "General": "Allgemein", "

    \n Please read the following, it is very important for your printer's health!\n

    \n

    \n OctoPrint by default now ships with Access Control enabled, meaning you won't be able to do anything with the\n printer unless you login first as a configured user. This is just to prevent strangers - possibly with\n malicious intent - to gain access to your printer via the internet or another untrustworthy network\n and using it in such a way that it is damaged or worse (i.e. causes a fire).\n

    \n

    \n It looks like you haven't configured access control yet. Please set up an username and password for the\n initial administrator account who will have full access to both the printer and OctoPrint's settings, then click\n on \"Keep Access Control Enabled\":\n

    ": "

    \n Bitte lies die folgenden Zeilen aufmerksam durch, es ist sehr wichtig f\u00fcr die Gesundheit Deines Druckers!\n

    \n

    \n OctoPrint wird nun standardm\u00e4ssig mit aktivierter Zugangsbeschr\u00e4nkung ausgeliefert, das hei\u00dft, dass Du mit dem Drucker nichts\n anfangen kannst, wenn du nicht als einer der konfigurierten Nutzer eingeloggt bist. Das dient dem Zweck, Fremde mit\n m\u00f6glicherweise b\u00f6swilligen Absichten davon abzuhalten, auf Deinen Drucker \u00fcber das Internet oder ein anderes\n unsicheres Netzwerk zuzugreifen und ihn auf eine Art zu nutzen, die ihn besch\u00e4digt oder schlimmeres (z.B. ein Feuer verursacht).\n

    \n

    \n Es sieht so aus, als h\u00e4ttest Du die Zugriffsbeschr\u00e4nkung noch nicht konfiguriert. Bitte konfiguriere einen Usernamen\n und ein Passwort f\u00fcr das initiale Administratorkonto, das vollen Zugang zu sowohl dem Drucker als auch OctoPrints\n Einstellungen haben wird, und klicke dann auf \"Zugangsbeschr\u00e4nkung aktiviert lassen\".\n

    ", "Color": "Farbe", "Fans on": "L\u00fcfter an", "Swallow the first \"ok\" after a resend response": "Erstes \"ok\" nach Resend ignorieren", "Enable SD support": "SD-Unterst\u00fctzung aktivieren", "Connect": "Verbinden", "Cancel": "Abbruch", "sec": "Sek", "Warning": "Warnung", "Loading...": "Lade...", "Current API Key": "Aktueller API-Key", "Size": "Gr\u00f6\u00dfe", "Communication timeout": "Kommunikationstimeout", "Modification date": "\u00c4nderungsdatum", "Change password": "Passwort \u00e4ndern", "This will restart the print job from the beginning.": "Der Druckjob wird zur\u00fcckgesetzt und von vorne begonnen.", "Stream URL": "Stream-URL", "Sort by": "Sortieren", "Login failed": "Login fehlgeschlagen", "Abort": "Abbrechen", "Confirm": "Best\u00e4tigen", "Repeat Password": "Passwort wiederholen", "Terminal": "Terminal", "Autoscroll": "Autoscroll", "Print time for layer": "Druckdauer f\u00fcr Schicht", "Disable Access Control": "Zugangsbeschr\u00e4nkung deaktivieren", "Configure Access Control": "Zugangsbeschr\u00e4nkung konfigurieren", "Timelapse Configuration": "Zeitrafferkonfiguration", "Retract": "Retract", "Timelapse bitrate": "Zeitrafferbitrate", "Offline": "Offline", "API Key": "API Key", "Homepage": "Homepage", "Estimated Print Time": "Gesch\u00e4tzte Druckzeit", "Folders": "Verzeichnisse", "Bugs and Requests": "Bugs und Requests", "Save": "Speichern", "Default extrusion length": "Standard Extrusionsl\u00e4nge", "min": "Min", "Support TargetExtr%%n/TargetBed target temperature format": "TargetExtr%%n/TargetBed Zieltemperaturformat unterst\u00fctzen", "Connection timeout": "Verbindungstimeout", "Save config": "Konfiguration speichern", "Center viewport on model": "Ausschnitt auf Modell zentrieren", "User unknown or wrong password": "Nutzer unbekannt oder falsches Passwort", "Allow Cross Origin Resource Sharing (CORS)": "Cross Origin Resource Sharing (CORS) erlauben", "Appearance": "Aussehen", "Enable": "Aktivieren", "Uploading ...": "Uploade ...", "Logs Folder": "Logverzeichnis", "Password": "Passwort", "Hide successfully printed files": "Erfolgreich gedruckte Dateien verbergen", "Username": "Username", "Off": "Aus", "Name": "Name", "Extruder Offsets": "Extruderoffsets", "Approx. Total Print Time": "Ungef\u00e4hre Gesamtdruckdauer", "Admin": "Admin", "

    \n Note: In case that your OctoPrint installation is only accessible from within a trustworthy network and you don't\n need Access Control for other reasons, you may alternatively disable Access Control. You should only\n do this if you are absolutely certain that only people you know and trust will be able to connect to it.\n

    \n

    \n Do NOT underestimate the risk of an unsecured access from the internet to your printer!\n

    ": "

    \n Beachte: Falls Deine OctoPrint Installation ausschlie\u00dflich innerhalb eines vertrauensw\u00fcrdigen Netzwerks\n erreicht werden kann und Du die Zugangsbeschr\u00e4nkung nicht f\u00fcr andere Zwecke ben\u00f6tigst, kannst Du sie alternativ auch\n deaktivieren. Du solltest das nur tun, wenn Du Dir absolut sicher bist, dass nur Leute darauf zugreifen k\u00f6nnen, die du kennst\n und denen du vertraust\n

    \n

    \n UNTERSCH\u00c4TZE NICHT das Risiko eines ungesicherten Zugriffs aus dem Internet auf Deinen Drucker!\n

    ", "Timelapse": "Zeitraffer", "Remove": "Entfernen", "Reload": "Neu laden", "Printing": "Drucke", "Only show files stored on SD": "Nur auf SD abgelegte Dateien anzeigen", "Y": "Y", "Fans off": "L\u00fcfter aus", "Login": "Login", "Timelapse ready": "Zeitraffer fertig", "Timelapse Mode": "Zeitraffermodus", "Timelapse Folder": "Zeitrafferverzeichnis", "Extruder": "Extruder", "Could not upload the file. Make sure that it is a GCODE file and has the extension \".gcode\" or \".gco\" or that it is an STL file with the extension \".stl\" and slicing support is enabled and configured.": "Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um eine GCODE-Datei mit der Extension \".gcode\" oder \".gco\" oder um eine STL-Datei mit der Extension \".stl\" handelt und in letzterem Fall auch der Slicingsupport aktiviert ist.", "SD status timeout": "SD-Status-Timeout", "SD not initialized": "SD Karte ist nicht initialisiert", "Update User": "Nutzer editieren", "off": "Aus", "Serial Port": "Serialport", "Flip webcam horizontally": "Webcam horizontal flippen", "Wait for start on connect": "Bei der Verbindung auf start warten", "Transfering file to SD": "Sende Datei zu SD", "RegExp": "RegExp", "Layer height": "Schichth\u00f6he", "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds": "%(stl)s nach %(gcode)s geslicet, dauerte %(time).2f Sekunden", "Extrude": "Extrude", "green": "Gr\u00fcn", "File": "Datei", "You are now logged in as \"%(username)s\"": "Du bist jetzt eingeloggt als \"%(username)s\"", "Axis": "Achse", "Filament used by layer": "Genutztes Filament in Schicht"}} ; \ No newline at end of file diff --git a/src/octoprint/translations/de/LC_MESSAGES/messages.mo b/src/octoprint/translations/de/LC_MESSAGES/messages.mo index 53caafff5d792d953b3110daf8a93180f3ecffc9..a1620d3e4c36fce59e0ce466fb391f26926fc545 100644 GIT binary patch delta 28 hcmbO{nQ`)D#to+0EGAYa7LzTtRX_~O&57DZasYfo2gU#Z delta 28 hcmbO{nQ`)D#to+0EQVGlCX+3-RX_~W&57DZasYdt2e<$L diff --git a/src/octoprint/translations/de/LC_MESSAGES/messages.po b/src/octoprint/translations/de/LC_MESSAGES/messages.po index 1025ba3df..431be58a9 100644 --- a/src/octoprint/translations/de/LC_MESSAGES/messages.po +++ b/src/octoprint/translations/de/LC_MESSAGES/messages.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: OctoPrint 1.2.0-dev-119-gb78bb9e-dirty\n" "Report-Msgid-Bugs-To: i18n@octoprint.org\n" -"POT-Creation-Date: 2014-08-27 11:44+0200\n" -"PO-Revision-Date: 2014-08-27 11:45+0100\n" +"POT-Creation-Date: 2014-08-27 14:48+0200\n" +"PO-Revision-Date: 2014-08-27 14:49+0100\n" "Last-Translator: Gina Häußge \n" "Language-Team: de \n" "Language: de\n" diff --git a/src/octoprint/translations/messages.pot b/src/octoprint/translations/messages.pot index 2ad0173a8..be6058d10 100644 --- a/src/octoprint/translations/messages.pot +++ b/src/octoprint/translations/messages.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: OctoPrint 1.2.0-dev-119-gb78bb9e-dirty\n" +"Project-Id-Version: OctoPrint 1.2.0-dev-120-g53e52c8\n" "Report-Msgid-Bugs-To: i18n@octoprint.org\n" -"POT-Creation-Date: 2014-08-27 11:44+0200\n" +"POT-Creation-Date: 2014-08-27 14:48+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" From a9736b96c0cdd25ee1a525204c677c423260f588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 27 Aug 2014 15:13:19 +0200 Subject: [PATCH 41/50] po2json is only needed in development environments, so don't try to always import it --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c08753885..207f03710 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,6 @@ import shutil import glob from babel.messages import frontend as babel -import po2json I18N_MAPPING_FILE = "babel.cfg" I18N_DOMAIN = "messages" @@ -129,6 +128,8 @@ class CompileTranslation(Command): def run(self): self.babel_compile_messages.run() + import po2json + for lang_code in os.listdir(I18N_OUTPUT_DIR_PY): full_path = os.path.join(I18N_OUTPUT_DIR_PY, lang_code) From 22bde8171201e87433d3c4e5c19affff3be012ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 27 Aug 2014 19:41:06 +0200 Subject: [PATCH 42/50] i18n: Removed a test string I had forgotten to remove earlier and also realised that I hadn't pushed the most recent version yet --- src/octoprint/templates/dialogs.jinja2 | 2 +- .../translations/de/LC_MESSAGES/messages.mo | Bin 18835 -> 20306 bytes .../translations/de/LC_MESSAGES/messages.po | 171 +++++------------- src/octoprint/translations/messages.pot | 6 +- 4 files changed, 51 insertions(+), 128 deletions(-) diff --git a/src/octoprint/templates/dialogs.jinja2 b/src/octoprint/templates/dialogs.jinja2 index 892ecbd21..8d4c73fde 100644 --- a/src/octoprint/templates/dialogs.jinja2 +++ b/src/octoprint/templates/dialogs.jinja2 @@ -53,7 +53,7 @@

    OctoPrint by default now ships with Access Control enabled, meaning you won't be able to do anything with the - printer unless you login first as a configured user. This is just to prevent strangers - possibly with + printer unless you login first as a configured user. This is to prevent strangers - possibly with malicious intent - to gain access to your printer via the internet or another untrustworthy network and using it in such a way that it is damaged or worse (i.e. causes a fire).

    diff --git a/src/octoprint/translations/de/LC_MESSAGES/messages.mo b/src/octoprint/translations/de/LC_MESSAGES/messages.mo index a1620d3e4c36fce59e0ce466fb391f26926fc545..a67bc785f15ec50f27ba3d869a2f8aca65853072 100644 GIT binary patch delta 5891 zcmYk<34Bdg0>|;2MG{F6ODrMD3yB~rA5o>Je42oJRCHB1uwe{ILqKOu-I<}_T zu}l@yCd1G%jNL4X=oH-yrKyY=RaK;;`uo3o-ly*8^Y=aHE@!*vzO*ivS5>*!swU3y zUY2z;#Bv`cO)V>$(h6+sZCSfM6yJ=e;z{BaD{!O2)3XQCf2GA=j1iUFKo zi@LuYb8rhb!RxIor$yUVEhik;WVs=t56MVc8=z#2IzG~z-ys=;K`1L>HIUGWsoLd`hSVb3HFHLwAuJ_^<0 z7!1M%sCG+G1KNnZP3r^Hikw2V=R8kA9bZAVf>ncB(wnH6d9mKjFaQ(Lfm*42REGuT z`aIMMtU*1$4%OiiG&lIRwr>bFhN2pZK)u5*sE#tQG3KBK zG6;3wR8&XHQ1_RiCa@Z{r`|Q!_hKadTL&q0EGH+p$EQ)n%QksL-$ad#y7?uP$+8Y zTcIx|qB=@Jy~}LWyX}vXtHLLchIsORRQ+J6b1DHKX6bihNXC9Oft_$SnZ4cppF z8j4z(a8$?9$cDC(kuTWFM?F8qTwjD*u`<-FS&Qm;C+fcaZCQUU#c58|!OzhTubTP| z)QoPSmbezRxdLPD0Yw^PQ3Fmwb(o7q)|{Vg>I-67e>J?+oN%FLw!zf5 zp&HtS`FIdD^7`%U=USsW?1cW9Y3zm?P+!!m7=>E;8L0k>QT@E^q@dlq8a2}$SQq!8 zR^|}u!H+Nn&!ZalZ*MmohH5C@)YDL}tPcj@093m}PUcJ)-DNlsU6`ovznX$JN7Fd_ z9VHk$qXw3V>ZliLfWuKUn}B*XGcg&LU=mj1Vf+g31JHR^qD?){m}JhUpxVta z_1t9E|13k#<3uzU!aDH>h8D9?BN@#WRYwJB_Jf6}0Z&E!4$MJyScaN_3w8f`)K~JR zIsZO(qrMll!nGKQEz(*4R0`?o_DpA>Ud4RWOjn?O=@DhgL4UEBBqa(u} zSWnc-4Mz=Z9ICx3s1+_owKLC2L7VIq)Y5E12W~-iaNPI_wxeE+Y9J)j-ejSu4x&(- zHWv9iW@VY{qfsk01+{XEQ3EMOt&sC|3L5Elb3+AcMGoK{yn`A@^^@1pSzW6J^+zW9 zDf_;zsCPI5wFefUI$Vm)alNTmpgKNJHQZpEUJ6bpL{OXZ^J_ zMV!zpn1||cDQZuYq6YMaaX0F|6R7*npqBmus^f1^D{>3<{6lj-pohIF8=&rMhZ=B_ zlY%xyE^37ROnn$?7mvZwxB#{3zCeA?_fP`~?rAS|C~81a=)m@i#ML)cT{N`ByK{eR6mwi1AHN$?WhKHc;pN49$7>K z{9BSo{qf)b6!hJGk7_8ex4jZkr~xIS&ZnUUmXG?Z#+d6bp*k)>4d^w@!40TQ z_!(-()i?+rp=LfPPyZ{&`=3KW4QxbTdCqI*wasJ{Q*6tqOgFbY3Lb^HUyV?ckq-UaJW?}Zvj ze~iRu%=Ou*%~*n((0X%zGityUs1-SEJdIABxI`fqucI2SH^6>ZO);5zgsJDFHsugh z2Q!d~T62tZQ3IHdaae}Bf1kO2&Rjo_>i60J*59APx17+@-$xDLA!@1o^6eQnL_N?9 zeXtFBW2~unKn*C-)VmndQSE0Ld!YL1j~e)Wz5g#MtRr2>)8z4EF_q2a*~d;Er2JRX zj@%~WNFc3kL>;e^8ZwaZm0DjD9aC-G|NiJH>;3EavyFAxsM+i2NY)a)_ur5^Qk6a^p~!ZbR|0UW3$p-`sJSu z6!(!-a*-qu&oP(6Pvi%4Vl3Vx3yF5SUYkDSw@D1yP1xT~_uuqFDjyIX+ik4pu`S{2 zvd)t4$e+j}qGKLe<}UH$g#R+-1Nb8OJ=sK>lgZ@2gSRNpA#alZli!hgpt zv?MEtkE!e21M&o!L_$d%$t9lSCWXJ4%BOgQ)RN`qTmc_D!DI#HH6=_d~k!aG3=-6rF{_DAovVNi)=>2~~CBR%19f%hf z@2Y~+VYtd1iR20iB1=dT`H1NF%EsD(<4w6YULwCTb#F`|v&g?mL%si*q?BAB9}~}U zl0scmsm9MqWAX>`A<+>@9uWu8F@cP9m-st?$>a+%f=nSZ$TZ?P)W7u)(w!_IgUA}P zmGmdRtUwm#6CLYq-2c8{$^&o+$sq;AbKIaXntVb|5FME$o}5=j<8Q>j$4EC)kIr63 z&vDDDtO;4>Q~5%ZBTaqNGg3Ob(&M64=;SJh8yVcMVA}ZNg7JkJjbT*qgK_P> vGF@HcTZ9cw=v6qaa8^Ol^jR5>r>7T=omk}Pn3$TF7U;Sel2}<19~AyG-91+u delta 4438 zcmYk;dvI388G!K(2_#@e$OS?`5|EG(E)5sCBp3muho3&-%TvmJ2L4Y(ZDD6Zsb!_}^9dX7n^(L;oWB zTwa%Ce0Ow(#c1HZ$dE7^t=Qd2QA17a&qEXYb&5tdjV0)W8{&Y+v7G+X_zIpxSG=tt zS;;OmvAwbXG8(WEufQ|tycf}gGP;JqE`$O!@IZ9F)JPfzz8TYS5?a#9XeDMNRSrML z0k{mUR0A6DP`v*ET7j?8=hM0+0Xw1n{%9q}U`srtBB?MbUYHRF+!y-`qIGEIOVK@i z3=Q-IaxTLk&_wp5<4&M~&ZFbMKo@WsJyY3NC-)1nkocj5#tqyUhi0}MUHNK!9XFz- zyq6Q^{W|p2FGUs`)}mXn3k`4p-GbL+|77$mwj_i;e;M2P{P%HpXrfGCjKN|_y)~9 zy=U^kRp>;W@OCUgGyf%;&~h~3Ml_*q(LbUIJ&SI|%V_D}L7zK?#`!cw!_#{iU1<(q zm$uj)txPHU;4pNnMxqnXMJHa2PP8WWw_-Z|-DqNa(Ru%lo{`tEB@rA#KXreG(chmi zfrb-JM>Cv{eli!ME8c*8a0j|~$FVh@!3;cyCioe8$}<>j;$6`Nm7oUC0E? zB7T?>2UMf4(;RQ$O0@Lrki~>8vHub}(GfJjyO@UmiGGMK=q$4Ma0yMUM_Dp%IC{SV zQ*CKXpy7%pqbr(<2A+oPa29%h9-3G!rsD(H3YWzGGBlwTvA;UHK3?C1&ih2{?g)PDROz>JH~Otx}D4D|S*VNdP{6xm3Cpk;E2GtzOMfXk z-zGG%C(-$yK`Xomo#*)!4G-CCXldTXB0PfzXmf31XDp>(icW9`ddTiV1Jqz1&O$yV zp$@&j6?5?!v~mZ~L>kcwrH<1u)3b3vGg^`VVlxh*VW! z=3)*m!aQ7!J@9FCfsJT|k0FVq!uvElz2}fWR>FBSp{(J_?{*H3px+n$k(r5(djQ?T z&FC4}j|M!5`PdZu&1m4ZOybHrV#^ld6~6yvGz>U2IvO2#3-Z$+CZj8zhfY+BUGR6& zjo6v~bLh$rqg!+mP4wUB`~Ee$1z8ozYnhEV6F*eYFyKSzN><`gT!T(Lt1@|T5xS?3 zU@@*mw_+c zmA#05fDWMn-$4U@gqHSmG|`Ofl6g9y&-Fx~E5Xq?^g8O_pT@7a;Dg)I74Jdc<0ELM zN6|!@(8Nw-FKk9DkzbW0ScQ(e1Fh&3?26TBg1?RZN6ToL=fM<3XR z({Mj_!S17yEgFs{ax1oc2hhZ8un1?Pm0FI@zZv}vcoJRE3+Q(ub%KT&UqT0FvN68D z9nlpPBj+&mLnpi^-mgVhxB{JcJv#o+=zM$7@dweZJ%J|pA#yyzr%1e1=sPBPZ?8os znt)cK22E&Ayk3hYwh9YyTfF}_H1MlvLT}(GJc(AO8y|jGT#DbvQP>mL;5EMg4K$qK zU+5|Q0G;S8x`Jjjq1HDhCC^3=Pgms43T4PQCj1yr;}*JPiBc_}IT6J**F-d%qG3ab3K>7d?!xVjFCV*H5DfH=`A4 zbyH${OnISzMhW)DEW8af@dsFrKZ^ZT=%HMX2H1%#G&Ds2iYBlR`{H4A{H1t5dwg;~ z7mZsyp86YTAQv)l1ZH6sTB>pAitj`pn1bmz16$#&*uNJ|Xin_kA6 zxOCQ>1@(o4O6w2hci8<>ryJ8VW-pjGe|Ou0e|E|kQZZzB{Tt=IY>cS?s{Dub`v&%@ puO2wH^SGHmoB50C`7>wqA5&XVG^V;{=1+?T4j8;Ue^ABM{{x70)>{Ao diff --git a/src/octoprint/translations/de/LC_MESSAGES/messages.po b/src/octoprint/translations/de/LC_MESSAGES/messages.po index 431be58a9..c6ceed63e 100644 --- a/src/octoprint/translations/de/LC_MESSAGES/messages.po +++ b/src/octoprint/translations/de/LC_MESSAGES/messages.po @@ -1,45 +1,40 @@ -# German translations for OctoPrint. +# Translations template for OctoPrint. # Copyright (C) 2014 The OctoPrint Project # This file is distributed under the same license as the OctoPrint project. -# FIRST AUTHOR , 2014. -# +# +# Translators: +# FIRST AUTHOR , 2014 +# Gina Häußge , 2014 +# demod , 2014 msgid "" msgstr "" -"Project-Id-Version: OctoPrint 1.2.0-dev-119-gb78bb9e-dirty\n" +"Project-Id-Version: OctoPrint\n" "Report-Msgid-Bugs-To: i18n@octoprint.org\n" -"POT-Creation-Date: 2014-08-27 14:48+0200\n" -"PO-Revision-Date: 2014-08-27 14:49+0100\n" -"Last-Translator: Gina Häußge \n" -"Language-Team: de \n" -"Language: de\n" +"POT-Creation-Date: 2014-08-27 19:31+0200\n" +"PO-Revision-Date: 2014-08-27 17:37+0000\n" +"Last-Translator: Gina Häußge \n" +"Language-Team: German (http://www.transifex.com/projects/p/octoprint/language/de/)\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Generated-By: Babel 1.3\n" -"X-Generator: Poedit 1.6.8\n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/octoprint/static/js/app/dataupdater.js:43 msgid "" -"The server appears to be offline, at least I'm not getting any response from " -"it. I'll try to reconnect automatically over the next couple of " +"The server appears to be offline, at least I'm not getting any response from" +" it. I'll try to reconnect automatically over the next couple of " "minutes, however you are welcome to try a manual reconnect anytime " "using the button below." -msgstr "" -"Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm " -"verbinden. Ich werde über die nächsten Minuten versuchen, " -"zu reconnecten, aber Du kannst mittels des folgenden Buttons auch jederzeit " -"einen manuellen Reconnect anstoßen." +msgstr "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich werde über die nächsten Minuten versuchen, zu reconnecten, aber Du kannst mittels des folgenden Buttons auch jederzeit einen manuellen Reconnect anstoßen." #: src/octoprint/static/js/app/dataupdater.js:58 msgid "" -"The server appears to be offline, at least I'm not getting any response from " -"it. I could not reconnect automatically, but you may try a " -"manual reconnect using the button below." -msgstr "" -"Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm " -"verbinden. Ich konnte nicht automatisch reconnected, aber " -"Du kannst mittels des folgenden Buttons einen manuellen Reconnect anstoßen." +"The server appears to be offline, at least I'm not getting any response from" +" it. I could not reconnect automatically, but you may try a" +" manual reconnect using the button below." +msgstr "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich konnte nicht automatisch reconnected, aber Du kannst mittels des folgenden Buttons einen manuellen Reconnect anstoßen." #: src/octoprint/static/js/app/dataupdater.js:126 msgid "Rendering timelapse" @@ -64,9 +59,7 @@ msgstr "Neue Zeitrafferaufnahme %(movie_basename)s wurde fertig gerendert" msgid "" "Rendering of timelapse %(movie_basename)s failedwith return code " "%(returncode)s" -msgstr "" -"Rendering der Zeitrafferaufnahme %(movie_basename)s fehlgeschlagen mit " -"Returncode %(returncode)s" +msgstr "Rendering der Zeitrafferaufnahme %(movie_basename)s fehlgeschlagen mit Returncode %(returncode)s" #: src/octoprint/static/js/app/dataupdater.js:133 msgid "Rendering failed" @@ -174,11 +167,7 @@ msgid "" "Could not upload the file. Make sure that it is a GCODE file and has the " "extension \".gcode\" or \".gco\" or that it is an STL file with the " "extension \".stl\" and slicing support is enabled and configured." -msgstr "" -"Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um eine " -"GCODE-Datei mit der Extension \".gcode\" oder \".gco\" oder um eine STL-" -"Datei mit der Extension \".stl\" handelt und in letzterem Fall auch der " -"Slicingsupport aktiviert ist." +msgstr "Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um eine GCODE-Datei mit der Extension \".gcode\" oder \".gco\" oder um eine STL-Datei mit der Extension \".stl\" handelt und in letzterem Fall auch der Slicingsupport aktiviert ist." #: src/octoprint/static/js/app/main.js:148 msgid "Uploading ..." @@ -233,10 +222,7 @@ msgid "" "If you disable Access Control and your OctoPrint " "installation is accessible from the internet, your printer will be " "accessible by everyone - that also includes the bad guys!" -msgstr "" -"Wenn Du die Zugangsbeschränkung deaktivierst und Deine " -"OctoPrint Installation vom Internet aus erreichbar ist, kann jeder " -"auf Deinen Drucker zugreifen - auch die bösen Jungs!" +msgstr "Wenn Du die Zugangsbeschränkung deaktivierst und Deine OctoPrint Installation vom Internet aus erreichbar ist, kann jeder auf Deinen Drucker zugreifen - auch die bösen Jungs!" #: src/octoprint/static/js/app/viewmodels/gcode.js:13 msgid "Loading..." @@ -459,7 +445,7 @@ msgstr "Upload (SD)" #: src/octoprint/templates/dialogs.jinja2:22 msgid "SD not initialized" -msgstr "SD Karte ist nicht initialisiert" +msgstr "SD-Karte ist nicht initialisiert" #: src/octoprint/templates/dialogs.jinja2:25 #: src/octoprint/templates/index.jinja2:213 @@ -492,49 +478,20 @@ msgstr "Zugangsbeschränkung konfigurieren" #: src/octoprint/templates/dialogs.jinja2:51 msgid "" "

    \n" -" Please read the following, it is very important for your " -"printer's health!\n" +" Please read the following, it is very important for your printer's health!\n" "

    \n" "

    \n" -" OctoPrint by default now ships with Access Control enabled, " -"meaning you won't be able to do anything with the\n" -" printer unless you login first as a configured user. This is " -"just to prevent strangers - possibly with\n" -" malicious intent - to gain access to your printer via " -"the internet or another untrustworthy network\n" -" and using it in such a way that it is damaged or worse (i.e. " -"causes a fire).\n" +" OctoPrint by default now ships with Access Control enabled, meaning you won't be able to do anything with the\n" +" printer unless you login first as a configured user. This is to prevent strangers - possibly with\n" +" malicious intent - to gain access to your printer via the internet or another untrustworthy network\n" +" and using it in such a way that it is damaged or worse (i.e. causes a fire).\n" "

    \n" "

    \n" -" It looks like you haven't configured access control yet. Please " -"set up an username and password for the\n" -" initial administrator account who will have full access to both " -"the printer and OctoPrint's settings, then click\n" +" It looks like you haven't configured access control yet. Please set up an username and password for the\n" +" initial administrator account who will have full access to both the printer and OctoPrint's settings, then click\n" " on \"Keep Access Control Enabled\":\n" "

    " -msgstr "" -"

    \n" -" Bitte lies die folgenden Zeilen aufmerksam durch, es ist sehr " -"wichtig für die Gesundheit Deines Druckers!\n" -"

    \n" -"

    \n" -" OctoPrint wird nun standardmässig mit aktivierter Zugangsbeschränkung " -"ausgeliefert, das heißt, dass Du mit dem Drucker nichts\n" -" anfangen kannst, wenn du nicht als einer der konfigurierten Nutzer " -"eingeloggt bist. Das dient dem Zweck, Fremde mit\n" -" möglicherweise böswilligen Absichten davon abzuhalten, auf " -"Deinen Drucker über das Internet oder ein anderes\n" -" unsicheres Netzwerk zuzugreifen und ihn auf eine Art zu nutzen, die ihn " -"beschädigt oder schlimmeres (z.B. ein Feuer verursacht).\n" -"

    \n" -"

    \n" -" Es sieht so aus, als hättest Du die Zugriffsbeschränkung noch nicht " -"konfiguriert. Bitte konfiguriere einen Usernamen\n" -" und ein Passwort für das initiale Administratorkonto, das " -"vollen Zugang zu sowohl dem Drucker als auch OctoPrints\n" -" Einstellungen haben wird, und klicke dann auf \"Zugangsbeschränkung " -"aktiviert lassen\".\n" -"

    " +msgstr "

    \n Bitte lies die folgenden Zeilen aufmerksam durch, es ist sehr wichtig für die Gesundheit Deines Druckers!\n

    \n

    \n OctoPrint wird nun standardmässig mit aktivierter Zugangsbeschränkung ausgeliefert, das heißt, dass Du mit dem Drucker nichts\n anfangen kannst, wenn du nicht als einer der konfigurierten Nutzer eingeloggt bist. Das dient dem Zweck, Fremde mit\n möglicherweise böswilligen Absichten davon abzuhalten, auf Deinen Drucker über das Internet oder ein anderes\n unsicheres Netzwerk zuzugreifen und ihn auf eine Art zu nutzen, die ihn beschädigt oder schlimmeres (z.B. ein Feuer verursacht).\n

    \n

    \n Es sieht so aus, als hättest Du die Zugriffsbeschränkung noch nicht konfiguriert. Bitte konfiguriere einen Usernamen\n und ein Passwort für das initiale Administratorkonto, das vollen Zugang zu sowohl dem Drucker als auch OctoPrints\n Einstellungen haben wird, und klicke dann auf \"Zugangsbeschränkung aktiviert lassen\".\n

    " #: src/octoprint/templates/dialogs.jinja2:67 #: src/octoprint/templates/index.jinja2:78 @@ -563,31 +520,14 @@ msgstr "Passwörter nicht identisch" #: src/octoprint/templates/dialogs.jinja2:86 msgid "" "

    \n" -" Note: In case that your OctoPrint installation " -"is only accessible from within a trustworthy network and you don't\n" -" need Access Control for other reasons, you may alternatively " -"disable Access Control. You should only\n" -" do this if you are absolutely certain that only people you know " -"and trust will be able to connect to it.\n" +" Note: In case that your OctoPrint installation is only accessible from within a trustworthy network and you don't\n" +" need Access Control for other reasons, you may alternatively disable Access Control. You should only\n" +" do this if you are absolutely certain that only people you know and trust will be able to connect to it.\n" "

    \n" "

    \n" -" Do NOT underestimate the risk of an unsecured access " -"from the internet to your printer!\n" +" Do NOT underestimate the risk of an unsecured access from the internet to your printer!\n" "

    " -msgstr "" -"

    \n" -" Beachte: Falls Deine OctoPrint Installation " -"ausschließlich innerhalb eines vertrauenswürdigen Netzwerks\n" -" erreicht werden kann und Du die Zugangsbeschränkung nicht für andere " -"Zwecke benötigst, kannst Du sie alternativ auch\n" -" deaktivieren. Du solltest das nur tun, wenn Du Dir absolut sicher bist, " -"dass nur Leute darauf zugreifen können, die du kennst\n" -" und denen du vertraust\n" -"

    \n" -"

    \n" -" UNTERSCHÄTZE NICHT das Risiko eines ungesicherten Zugriffs aus " -"dem Internet auf Deinen Drucker!\n" -"

    " +msgstr "

    \n Beachte: Falls Deine OctoPrint Installation ausschließlich innerhalb eines vertrauenswürdigen Netzwerks\n erreicht werden kann und Du die Zugangsbeschränkung nicht für andere Zwecke benötigst, kannst Du sie alternativ auch\n deaktivieren. Du solltest das nur tun, wenn Du Dir absolut sicher bist, dass nur Leute darauf zugreifen können, die du kennst\n und denen du vertraust\n

    \n

    \n UNTERSCHÄTZE NICHT das Risiko eines ungesicherten Zugriffs aus dem Internet auf Deinen Drucker!\n

    " #: src/octoprint/templates/dialogs.jinja2:96 msgid "Disable Access Control" @@ -719,15 +659,15 @@ msgstr "Erfolgreich gedruckte Dateien verbergen" #: src/octoprint/templates/index.jinja2:178 msgid "Initialize SD card" -msgstr "SD Karte initialisieren" +msgstr "SD-Karte initialisieren" #: src/octoprint/templates/index.jinja2:179 msgid "Refresh SD files" -msgstr "SD Dateien aktualisieren" +msgstr "SD-Dateien aktualisieren" #: src/octoprint/templates/index.jinja2:180 msgid "Release SD card" -msgstr "SD Karte auswerfen" +msgstr "SD-Karte auswerfen" #: src/octoprint/templates/index.jinja2:188 msgid "Search..." @@ -767,8 +707,7 @@ msgstr "Frei" #: src/octoprint/templates/index.jinja2:233 msgid "Hint: You can also drag and drop files on this page to upload them." -msgstr "" -"Hinweis: Du kannst auch Dateien auf diese Seite ziehen um sie hochzuladen." +msgstr "Hinweis: Du kannst auch Dateien auf diese Seite ziehen um sie hochzuladen." #: src/octoprint/templates/index.jinja2:243 msgid "Temperature" @@ -1024,9 +963,7 @@ msgstr "Autodetectiontimeout" #: src/octoprint/templates/settings.jinja2:96 msgid "Log communication to serial.log (might negatively impact performance)" -msgstr "" -"Logge die Kommunikation in das serial.log (kann die Performance negativ " -"beeinflussen)" +msgstr "Logge die Kommunikation in das serial.log (kann die Performance negativ beeinflussen)" #: src/octoprint/templates/settings.jinja2:96 msgid "Warning" @@ -1126,7 +1063,7 @@ msgstr "SD-Unterstützung aktivieren" #: src/octoprint/templates/settings.jinja2:275 msgid "Always assume SD card is present" -msgstr "Immer davon ausgehen, dass eine SD Karte vorhanden ist" +msgstr "Immer davon ausgehen, dass eine SD-Karte vorhanden ist" #: src/octoprint/templates/settings.jinja2:275 #: src/octoprint/templates/settings.jinja2:289 @@ -1145,11 +1082,9 @@ msgstr "Eine Prüfsumme mit jedem Kommando senden" #: src/octoprint/templates/settings.jinja2:296 #, python-format msgid "" -"Support TargetExtr%%n/TargetBed target temperature " -"format" -msgstr "" -"TargetExtr%%n/TargetBed Zieltemperaturformat " -"unterstützen" +"Support TargetExtr%%n/TargetBed target temperature" +" format" +msgstr "TargetExtr%%n/TargetBed Zieltemperaturformat unterstützen" #: src/octoprint/templates/settings.jinja2:303 msgid "Swallow the first \"ok\" after a resend response" @@ -1296,15 +1231,3 @@ msgstr "Datum" #: src/octoprint/templates/settings.jinja2:677 msgid "Save" msgstr "Speichern" - -#~ msgid "%(volume).02fcm³" -#~ msgstr "%(volume).02fcm³" - -#~ msgid "Tool %(tool)d" -#~ msgstr "Werkzeug %(tool)d" - -#~ msgid "Select %%(tool)s" -#~ msgstr "%%(tool)s wählen" - -#~ msgid "Select" -#~ msgstr "Auswählen" diff --git a/src/octoprint/translations/messages.pot b/src/octoprint/translations/messages.pot index be6058d10..4db4085e8 100644 --- a/src/octoprint/translations/messages.pot +++ b/src/octoprint/translations/messages.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: OctoPrint 1.2.0-dev-120-g53e52c8\n" +"Project-Id-Version: OctoPrint 1.2.0-dev-122-ga9736b9-dirty\n" "Report-Msgid-Bugs-To: i18n@octoprint.org\n" -"POT-Creation-Date: 2014-08-27 14:48+0200\n" +"POT-Creation-Date: 2014-08-27 19:31+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -481,7 +481,7 @@ msgid "" " OctoPrint by default now ships with Access Control enabled, " "meaning you won't be able to do anything with the\n" " printer unless you login first as a configured user. This is " -"just to prevent strangers - possibly with\n" +"to prevent strangers - possibly with\n" " malicious intent - to gain access to your printer " "via the internet or another untrustworthy network\n" " and using it in such a way that it is damaged or worse (i.e. " From 571cf9c5d9f6fe654563de75be282b26ff3f2bbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 27 Aug 2014 19:42:28 +0200 Subject: [PATCH 43/50] Added .tx directory for transifex client to source control --- .tx/config | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .tx/config diff --git a/.tx/config b/.tx/config new file mode 100644 index 000000000..3324990b0 --- /dev/null +++ b/.tx/config @@ -0,0 +1,8 @@ +[main] +host = https://www.transifex.com + +[octoprint.messages] +file_filter = src/octoprint/translations//LC_MESSAGES/messages.po +source_file = src/octoprint/translations/messages.pot +source_lang = en + From 4e061ef385d5f08ba4ec8e3709bcde620d224d59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 27 Aug 2014 20:11:45 +0200 Subject: [PATCH 44/50] i18n: Made the string "OctoPrint" translatable too to allow for different writing systems --- .../static/js/app/viewmodels/appearance.js | 8 +- src/octoprint/static/js/i18n/de.js | 2 +- .../translations/de/LC_MESSAGES/messages.mo | Bin 20306 -> 18882 bytes .../translations/de/LC_MESSAGES/messages.po | 152 +++++++++++++----- src/octoprint/translations/messages.pot | 11 +- 5 files changed, 128 insertions(+), 45 deletions(-) diff --git a/src/octoprint/static/js/app/viewmodels/appearance.js b/src/octoprint/static/js/app/viewmodels/appearance.js index 51a15d0df..5ee2b5dc6 100644 --- a/src/octoprint/static/js/app/viewmodels/appearance.js +++ b/src/octoprint/static/js/app/viewmodels/appearance.js @@ -6,15 +6,15 @@ function AppearanceViewModel(settingsViewModel) { self.brand = ko.computed(function() { if (self.name()) - return "OctoPrint: " + self.name(); + return gettext("OctoPrint") + ": " + self.name(); else - return "OctoPrint"; + return gettext("OctoPrint"); }); self.title = ko.computed(function() { if (self.name()) - return self.name() + " [OctoPrint]"; + return self.name() + " [" + gettext("OctoPrint") + "]"; else - return "OctoPrint"; + return gettext("OctoPrint"); }); } diff --git a/src/octoprint/static/js/i18n/de.js b/src/octoprint/static/js/i18n/de.js index 44ea36e7c..72f112cd7 100644 --- a/src/octoprint/static/js/i18n/de.js +++ b/src/octoprint/static/js/i18n/de.js @@ -1 +1 @@ -window.BABEL_TO_LOAD_de = {"locale": "de", "domain": "messages", "plural_expr": "(n != 1)", "messages": {"": "Project-Id-Version: OctoPrint 1.2.0-dev-119-gb78bb9e-dirty\nReport-Msgid-Bugs-To: i18n@octoprint.org\nPOT-Creation-Date: 2014-08-27 14:48+0200\nPO-Revision-Date: 2014-08-27 14:49+0100\nLast-Translator: Gina H\u00e4u\u00dfge \nLanguage-Team: de \nPlural-Forms: nplurals=2; plural=(n != 1)\nMIME-Version: 1.0\nContent-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 8bit\nGenerated-By: Babel 1.3\n", "Print Time Left": "Verbleibende Druckdauer", "Proceed": "Fortfahren", "Timelapse Temp Folder": "Tempor\u00e4res Zeitrafferverzeichnis", "Title": "Titel", "Only show files stored locally": "Nur lokal abgelegte Dateien anzeigen", "yellow": "Gelb", "Path to Cura": "Pfad zu Cura", "Action": "Aktion", "Passwords do not match": "Passw\u00f6rter nicht identisch", "Sort by name": "Nach Name sortieren", "Save connection settings": "Verbindungseinstellungen speichern", "Rendering timelapse": "Zeitraffer wird gerendert", "Cura": "Cura", "Files": "Dateien", "Bed Size": "Bettdimensionen", "Always assume SD card is present": "Immer davon ausgehen, dass eine SD Karte vorhanden ist", "Load and Print": "Laden und Drucken", "Sending file to SD": "Sende Datei zu SD", "Number of Extruders": "Anzahl Extruder", "black": "Schwarz", "Last Printed": "Zuletzt gedruckt", "Sourcecode": "Quellcode", "Estimated layer height": "Gesch\u00e4tzte Schichth\u00f6he", "You are now logged out": "Du bist jetzt ausgeloggt", "Uploaded": "Hochgeladen", "Opening serial port": "\u00d6ffnet Serialport", "New timelapse %(movie_basename)s is done rendering.": "Neue Zeitrafferaufnahme %(movie_basename)s wurde fertig gerendert", "Invert control": "Invertieren", "Webcam": "Webcam", "Remember me": "Login merken", "Enable GCode Visualizer": "GCode Viewer aktivieren", "The server appears to be offline, at least I'm not getting any response from it. I'll try to reconnect automatically over the next couple of minutes, however you are welcome to try a manual reconnect anytime using the button below.": "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich werde \u00fcber die n\u00e4chsten Minuten versuchen, zu reconnecten, aber Du kannst mittels des folgenden Buttons auch jederzeit einen manuellen Reconnect ansto\u00dfen.", "Rendering failed": "Rendering fehlgeschlagen", "Upload Folder": "Uploadverzeichnis", "descending": "absteigend", "X": "X", "Add user": "Nutzer hinzuf\u00fcgen", "GCODE commands in layer": "GCODE Kommandos in Schicht", "Estimated print time": "Gesch\u00e4tzte Druckzeit", "Serial Connection": "Serielle Verbindung", "Control": "Kontrolle", "Show moves": "Bewegungen zeigen", "Also show next layer": "Auch n\u00e4chste Schicht anzeigen", "Print Time": "Druckdauer", "Sort by file size": "Nach Gr\u00f6\u00dfe sortieren", "Machine State": "Druckerstatus", "default": "Standard", "API": "API", "Printing from SD": "Drucke von SD", "Terminal filters": "Terminalfilter", "Change password for user \"%(user)s\"": "Passwort\u00e4nderung f\u00fcr Nutzer \"%(user)s\"", "Enable Temperature Graph": "Temperaturgraph aktivieren", "Delete user": "Nutzer l\u00f6schen", "Confirm Password": "Passwort best\u00e4tigen", "Disconnect": "Trennen", "Slicing done": "Slicing abgeschlossen", "Initialize SD card": "SD Karte initialisieren", "System": "System", "Send": "Senden", "State": "Status", "Version": "Version", "YYYY-MM-DD HH:mm": "DD.MM.YYYY HH:mm", "Attempt to reconnect": "Erneut verbinden", "Streaming done": "Streaming abgeschlossen", "violet": "Violett", "Print": "Drucken", "Layer count": "Schichtanzahl", "OctoPrint Settings": "OctoPrint Einstellungen", "Are you sure?": "Bist Du sicher?", "blue": "Blau", "Temperature timeout": "Temperaturtimeout", "Printer": "Drucker", "Tool": "Werkzeug", "Settings": "Einstellungen", "Path to FFMPEG": "Pfad zu FFMPEG", "Upload to SD": "Upload (SD)", "The command \"%(command)s\" could not be executed.": "Das Kommando \"%(command)s\" konnte nicht ausgef\u00fchrt werden.", "Printed": "Gedruckt", "Layer number": "Schichtnummer", "Sync with job progress": "Job mit Fortschritt synchronisieren", "Circular": "Rund", "Total filament used": "Gesamtmenge genutzten Filaments", "red": "Rot", "Save as default": "Als Standard speichern", "Slicing ...": "Slice ...", "Last Print Time": "Letzte Druckdauer", "Target": "Soll", "Streaming ...": "Streame ...", "Logout successful": "Logout erfolgreich", "Now rendering timelapse %(movie_basename)s": "Rendere Zeitrafferaufnahme %(movie_basename)s", "Documentation": "Dokumentation", "%(hour)02d:%(minute)02d:%(second)02d": "%(hour)02d:%(minute)02d:%(second)02d", "Upload": "Upload", "ascending": "aufsteigend", "Model size": "Modelgr\u00f6\u00dfe", "Temperatures": "Temperaturen", "visited": "besucht", "Timed": "Nach Zeit", "Edit user \"%(user)s\"": "Editiere Nutzer \"%(user)s\"", "Snapshot URL": "Snapshot-URL", "Release SD card": "SD Karte auswerfen", "Server is offline": "Der Server ist offline", "Log communication to serial.log (might negatively impact performance)": "Logge die Kommunikation in das serial.log (kann die Performance negativ beeinflussen)", "Sort by upload date": "Nach Uploaddatum sortieren", "Change Password": "Passwort \u00e4ndern", "Logs": "Logs", "Hotend": "Hotend", "Show retracts": "Retracts zeigen", "Keep Access Control Enabled": "Zugangsbeschr\u00e4nkung aktiviert lassen", "Upload locally": "Upload (lokal)", "Select Tool...": "Werkzeug w\u00e4hlen...", "Paused": "Pausiert", "Continue": "Fortsetzen", "Radius": "Radius", "The command \"%(command)s\" executed successfully": "Das Kommando \"%(command)s\" wurde erfolgreich ausgef\u00fchrt", "Features": "Funktionen", "Download": "Download", "GCode Viewer": "GCode Viewer", "Also show previous layer": "Auch vorherige Schicht anzeigen", "Repetier": "Repetier", "Login successful": "Login erfolgreich", "Finished Timelapses": "Abgeschlossene Zeitraffer", "Rendering of timelapse %(movie_basename)s failedwith return code %(returncode)s": "Rendering der Zeitrafferaufnahme %(movie_basename)s fehlgeschlagen mit Returncode %(returncode)s", "Pause": "Pause", "Temperature": "Temperatur", "Enable slicing via Cura": "Slicing mittels Cura aktivieren", "Access Control": "Zugangsbeschr\u00e4nkung", "Analyzing...": "Analysiere...", "just now": "gerade eben", "Operational": "Bereit", "Send a checksum with every command": "Eine Pr\u00fcfsumme mit jedem Kommando senden", "Autodetection timeout": "Autodetectiontimeout", "Connecting": "Verbinde", "Free": "Frei", "Closed": "Geschlossen", "Refresh SD files": "SD Dateien aktualisieren", "Flip webcam vertically": "Webcam vertikal flippen", "Path to Cura config": "Pfad zur Cura-Konfiguration", "Filament": "Filament", "Could not slice %(stl)s to %(gcode)s: %(reason)s": "Konnte %(stl)s nicht nach %(gcode)s slicen: %(reason)s", "Baudrate": "Baudrate", "Detecting baudrate": "Detektiere Baudrate", "Date": "Datum", "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds": "%(local)s nach %(remote)s gestreamt, dauerte %(time).2f Sekunden", "Enable OctoPrint watermark in timelapse movies": "OctoPrint Wasserzeichen in Zeitrafferaufnahmen aktivieren", "Motors off": "Motoren aus", "Detecting serial port": "Detektiere Serialport", "New Password": "Neues Passwort", "Logout": "Logout", "Offset": "Offset", "Analyzed": "Analysiert", "Auto-connect on server startup": "Automatisch bei Serverstart verbinden", "Printer Parameters": "Druckerparameter", "E": "E", "Restart": "Neu starten", "Search...": "Suchen...", "Slicing failed": "Slicing fehlgeschlagen", "Actual": "Ist", "Active": "Aktiv", "Creation date": "Erstellungsdatum", "Hint: You can also drag and drop files on this page to upload them.": "Hinweis: Du kannst auch Dateien auf diese Seite ziehen um sie hochzuladen.", "Interval": "Intervall", "N/A": "(nicht vorhanden)", "Bed": "Bett", "Auto-connect to printer on server start": "Automatisch bei Serverstart verbinden", "orange": "Orange", "Error": "Fehler", "On Z Change": "Bei Ebenenwechsel", "Timelapse post roll (in rendered seconds)": "Zeitraffernachlauf (in gerenderten Sekunden)", "Z": "Z", "Are you sure you want to proceed?": "Bist Du sicher, dass du fortfahren willst?", "If you disable Access Control and your OctoPrint installation is accessible from the internet, your printer will be accessible by everyone - that also includes the bad guys!": "Wenn Du die Zugangsbeschr\u00e4nkung deaktivierst und Deine OctoPrint Installation vom Internet aus erreichbar ist, kann jeder auf Deinen Drucker zugreifen - auch die b\u00f6sen Jungs!", "Load": "Laden", "Set": "Setzen", "The server appears to be offline, at least I'm not getting any response from it. I could not reconnect automatically, but you may try a manual reconnect using the button below.": "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich konnte nicht automatisch reconnected, aber Du kannst mittels des folgenden Buttons einen manuellen Reconnect ansto\u00dfen.", "Zoom in on model": "Auf Model zoomen", "mm": "mm", "Saving ...": "Speichere ...", "Watched Folder": "Beobachtetes Verzeichnis", "General": "Allgemein", "

    \n Please read the following, it is very important for your printer's health!\n

    \n

    \n OctoPrint by default now ships with Access Control enabled, meaning you won't be able to do anything with the\n printer unless you login first as a configured user. This is just to prevent strangers - possibly with\n malicious intent - to gain access to your printer via the internet or another untrustworthy network\n and using it in such a way that it is damaged or worse (i.e. causes a fire).\n

    \n

    \n It looks like you haven't configured access control yet. Please set up an username and password for the\n initial administrator account who will have full access to both the printer and OctoPrint's settings, then click\n on \"Keep Access Control Enabled\":\n

    ": "

    \n Bitte lies die folgenden Zeilen aufmerksam durch, es ist sehr wichtig f\u00fcr die Gesundheit Deines Druckers!\n

    \n

    \n OctoPrint wird nun standardm\u00e4ssig mit aktivierter Zugangsbeschr\u00e4nkung ausgeliefert, das hei\u00dft, dass Du mit dem Drucker nichts\n anfangen kannst, wenn du nicht als einer der konfigurierten Nutzer eingeloggt bist. Das dient dem Zweck, Fremde mit\n m\u00f6glicherweise b\u00f6swilligen Absichten davon abzuhalten, auf Deinen Drucker \u00fcber das Internet oder ein anderes\n unsicheres Netzwerk zuzugreifen und ihn auf eine Art zu nutzen, die ihn besch\u00e4digt oder schlimmeres (z.B. ein Feuer verursacht).\n

    \n

    \n Es sieht so aus, als h\u00e4ttest Du die Zugriffsbeschr\u00e4nkung noch nicht konfiguriert. Bitte konfiguriere einen Usernamen\n und ein Passwort f\u00fcr das initiale Administratorkonto, das vollen Zugang zu sowohl dem Drucker als auch OctoPrints\n Einstellungen haben wird, und klicke dann auf \"Zugangsbeschr\u00e4nkung aktiviert lassen\".\n

    ", "Color": "Farbe", "Fans on": "L\u00fcfter an", "Swallow the first \"ok\" after a resend response": "Erstes \"ok\" nach Resend ignorieren", "Enable SD support": "SD-Unterst\u00fctzung aktivieren", "Connect": "Verbinden", "Cancel": "Abbruch", "sec": "Sek", "Warning": "Warnung", "Loading...": "Lade...", "Current API Key": "Aktueller API-Key", "Size": "Gr\u00f6\u00dfe", "Communication timeout": "Kommunikationstimeout", "Modification date": "\u00c4nderungsdatum", "Change password": "Passwort \u00e4ndern", "This will restart the print job from the beginning.": "Der Druckjob wird zur\u00fcckgesetzt und von vorne begonnen.", "Stream URL": "Stream-URL", "Sort by": "Sortieren", "Login failed": "Login fehlgeschlagen", "Abort": "Abbrechen", "Confirm": "Best\u00e4tigen", "Repeat Password": "Passwort wiederholen", "Terminal": "Terminal", "Autoscroll": "Autoscroll", "Print time for layer": "Druckdauer f\u00fcr Schicht", "Disable Access Control": "Zugangsbeschr\u00e4nkung deaktivieren", "Configure Access Control": "Zugangsbeschr\u00e4nkung konfigurieren", "Timelapse Configuration": "Zeitrafferkonfiguration", "Retract": "Retract", "Timelapse bitrate": "Zeitrafferbitrate", "Offline": "Offline", "API Key": "API Key", "Homepage": "Homepage", "Estimated Print Time": "Gesch\u00e4tzte Druckzeit", "Folders": "Verzeichnisse", "Bugs and Requests": "Bugs und Requests", "Save": "Speichern", "Default extrusion length": "Standard Extrusionsl\u00e4nge", "min": "Min", "Support TargetExtr%%n/TargetBed target temperature format": "TargetExtr%%n/TargetBed Zieltemperaturformat unterst\u00fctzen", "Connection timeout": "Verbindungstimeout", "Save config": "Konfiguration speichern", "Center viewport on model": "Ausschnitt auf Modell zentrieren", "User unknown or wrong password": "Nutzer unbekannt oder falsches Passwort", "Allow Cross Origin Resource Sharing (CORS)": "Cross Origin Resource Sharing (CORS) erlauben", "Appearance": "Aussehen", "Enable": "Aktivieren", "Uploading ...": "Uploade ...", "Logs Folder": "Logverzeichnis", "Password": "Passwort", "Hide successfully printed files": "Erfolgreich gedruckte Dateien verbergen", "Username": "Username", "Off": "Aus", "Name": "Name", "Extruder Offsets": "Extruderoffsets", "Approx. Total Print Time": "Ungef\u00e4hre Gesamtdruckdauer", "Admin": "Admin", "

    \n Note: In case that your OctoPrint installation is only accessible from within a trustworthy network and you don't\n need Access Control for other reasons, you may alternatively disable Access Control. You should only\n do this if you are absolutely certain that only people you know and trust will be able to connect to it.\n

    \n

    \n Do NOT underestimate the risk of an unsecured access from the internet to your printer!\n

    ": "

    \n Beachte: Falls Deine OctoPrint Installation ausschlie\u00dflich innerhalb eines vertrauensw\u00fcrdigen Netzwerks\n erreicht werden kann und Du die Zugangsbeschr\u00e4nkung nicht f\u00fcr andere Zwecke ben\u00f6tigst, kannst Du sie alternativ auch\n deaktivieren. Du solltest das nur tun, wenn Du Dir absolut sicher bist, dass nur Leute darauf zugreifen k\u00f6nnen, die du kennst\n und denen du vertraust\n

    \n

    \n UNTERSCH\u00c4TZE NICHT das Risiko eines ungesicherten Zugriffs aus dem Internet auf Deinen Drucker!\n

    ", "Timelapse": "Zeitraffer", "Remove": "Entfernen", "Reload": "Neu laden", "Printing": "Drucke", "Only show files stored on SD": "Nur auf SD abgelegte Dateien anzeigen", "Y": "Y", "Fans off": "L\u00fcfter aus", "Login": "Login", "Timelapse ready": "Zeitraffer fertig", "Timelapse Mode": "Zeitraffermodus", "Timelapse Folder": "Zeitrafferverzeichnis", "Extruder": "Extruder", "Could not upload the file. Make sure that it is a GCODE file and has the extension \".gcode\" or \".gco\" or that it is an STL file with the extension \".stl\" and slicing support is enabled and configured.": "Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um eine GCODE-Datei mit der Extension \".gcode\" oder \".gco\" oder um eine STL-Datei mit der Extension \".stl\" handelt und in letzterem Fall auch der Slicingsupport aktiviert ist.", "SD status timeout": "SD-Status-Timeout", "SD not initialized": "SD Karte ist nicht initialisiert", "Update User": "Nutzer editieren", "off": "Aus", "Serial Port": "Serialport", "Flip webcam horizontally": "Webcam horizontal flippen", "Wait for start on connect": "Bei der Verbindung auf start warten", "Transfering file to SD": "Sende Datei zu SD", "RegExp": "RegExp", "Layer height": "Schichth\u00f6he", "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds": "%(stl)s nach %(gcode)s geslicet, dauerte %(time).2f Sekunden", "Extrude": "Extrude", "green": "Gr\u00fcn", "File": "Datei", "You are now logged in as \"%(username)s\"": "Du bist jetzt eingeloggt als \"%(username)s\"", "Axis": "Achse", "Filament used by layer": "Genutztes Filament in Schicht"}} ; \ No newline at end of file +window.BABEL_TO_LOAD_de = {"locale": "de", "domain": "messages", "plural_expr": "(n != 1)", "messages": {"": "Project-Id-Version: OctoPrint\nReport-Msgid-Bugs-To: i18n@octoprint.org\nPOT-Creation-Date: 2014-08-27 20:04+0200\nPO-Revision-Date: 2014-08-27 20:05+0100\nLast-Translator: Gina H\u00e4u\u00dfge \nLanguage-Team: German (http://www.transifex.com/projects/p/octoprint/language/de/)\nPlural-Forms: nplurals=2; plural=(n != 1)\nMIME-Version: 1.0\nContent-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 8bit\nGenerated-By: Babel 1.3\n", "Print Time Left": "Verbleibende Druckdauer", "Proceed": "Fortfahren", "Timelapse Temp Folder": "Tempor\u00e4res Zeitrafferverzeichnis", "Title": "Titel", "Only show files stored locally": "Nur lokal abgelegte Dateien anzeigen", "yellow": "Gelb", "Path to Cura": "Pfad zu Cura", "Action": "Aktion", "Passwords do not match": "Passw\u00f6rter nicht identisch", "Sort by name": "Nach Name sortieren", "Save connection settings": "Verbindungseinstellungen speichern", "Rendering timelapse": "Zeitraffer wird gerendert", "Cura": "Cura", "Files": "Dateien", "Bed Size": "Bettdimensionen", "Always assume SD card is present": "Immer davon ausgehen, dass eine SD-Karte vorhanden ist", "Load and Print": "Laden und Drucken", "Sending file to SD": "Sende Datei zu SD", "Number of Extruders": "Anzahl Extruder", "black": "Schwarz", "Last Printed": "Zuletzt gedruckt", "Sourcecode": "Quellcode", "Estimated layer height": "Gesch\u00e4tzte Schichth\u00f6he", "You are now logged out": "Du bist jetzt ausgeloggt", "Uploaded": "Hochgeladen", "Opening serial port": "\u00d6ffnet Serialport", "New timelapse %(movie_basename)s is done rendering.": "Neue Zeitrafferaufnahme %(movie_basename)s wurde fertig gerendert", "Invert control": "Invertieren", "Webcam": "Webcam", "Remember me": "Login merken", "Enable GCode Visualizer": "GCode Viewer aktivieren", "The server appears to be offline, at least I'm not getting any response from it. I'll try to reconnect automatically over the next couple of minutes, however you are welcome to try a manual reconnect anytime using the button below.": "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich werde \u00fcber die n\u00e4chsten Minuten versuchen, zu reconnecten, aber Du kannst mittels des folgenden Buttons auch jederzeit einen manuellen Reconnect ansto\u00dfen.", "Rendering failed": "Rendering fehlgeschlagen", "Upload Folder": "Uploadverzeichnis", "descending": "absteigend", "X": "X", "Add user": "Nutzer hinzuf\u00fcgen", "GCODE commands in layer": "GCODE Kommandos in Schicht", "Estimated print time": "Gesch\u00e4tzte Druckzeit", "Serial Connection": "Serielle Verbindung", "Control": "Kontrolle", "Password": "Passwort", "Also show next layer": "Auch n\u00e4chste Schicht anzeigen", "Print Time": "Druckdauer", "Sort by file size": "Nach Gr\u00f6\u00dfe sortieren", "Machine State": "Druckerstatus", "default": "Standard", "API": "API", "Printing from SD": "Drucke von SD", "Terminal filters": "Terminalfilter", "Change password for user \"%(user)s\"": "Passwort\u00e4nderung f\u00fcr Nutzer \"%(user)s\"", "Enable Temperature Graph": "Temperaturgraph aktivieren", "Delete user": "Nutzer l\u00f6schen", "Confirm Password": "Passwort best\u00e4tigen", "Disconnect": "Trennen", "Slicing done": "Slicing abgeschlossen", "Initialize SD card": "SD-Karte initialisieren", "System": "System", "Send": "Senden", "State": "Status", "Version": "Version", "YYYY-MM-DD HH:mm": "DD.MM.YYYY HH:mm", "Attempt to reconnect": "Erneut verbinden", "Streaming done": "Streaming abgeschlossen", "violet": "Violett", "Print": "Drucken", "Layer count": "Schichtanzahl", "OctoPrint Settings": "OctoPrint Einstellungen", "Are you sure?": "Bist Du sicher?", "blue": "Blau", "Printer": "Drucker", "Tool": "Werkzeug", "Settings": "Einstellungen", "Path to FFMPEG": "Pfad zu FFMPEG", "Upload to SD": "Upload (SD)", "The command \"%(command)s\" could not be executed.": "Das Kommando \"%(command)s\" konnte nicht ausgef\u00fchrt werden.", "Printed": "Gedruckt", "Layer number": "Schichtnummer", "Sync with job progress": "Job mit Fortschritt synchronisieren", "Circular": "Rund", "Total filament used": "Gesamtmenge genutzten Filaments", "red": "Rot", "Save as default": "Als Standard speichern", "Slicing ...": "Slice ...", "Last Print Time": "Letzte Druckdauer", "Target": "Soll", "Streaming ...": "Streame ...", "Logout successful": "Logout erfolgreich", "Now rendering timelapse %(movie_basename)s": "Rendere Zeitrafferaufnahme %(movie_basename)s", "Documentation": "Dokumentation", "%(hour)02d:%(minute)02d:%(second)02d": "%(hour)02d:%(minute)02d:%(second)02d", "Upload": "Upload", "ascending": "aufsteigend", "Model size": "Modelgr\u00f6\u00dfe", "Temperatures": "Temperaturen", "visited": "besucht", "Timed": "Nach Zeit", "Edit user \"%(user)s\"": "Editiere Nutzer \"%(user)s\"", "Snapshot URL": "Snapshot-URL", "Release SD card": "SD-Karte auswerfen", "Server is offline": "Der Server ist offline", "Log communication to serial.log (might negatively impact performance)": "Logge die Kommunikation in das serial.log (kann die Performance negativ beeinflussen)", "Sort by upload date": "Nach Uploaddatum sortieren", "Change Password": "Passwort \u00e4ndern", "Logs": "Logs", "Hotend": "Hotend", "Show retracts": "Retracts zeigen", "Keep Access Control Enabled": "Zugangsbeschr\u00e4nkung aktiviert lassen", "Upload locally": "Upload (lokal)", "Select Tool...": "Werkzeug w\u00e4hlen...", "Paused": "Pausiert", "Continue": "Fortsetzen", "Radius": "Radius", "The command \"%(command)s\" executed successfully": "Das Kommando \"%(command)s\" wurde erfolgreich ausgef\u00fchrt", "Features": "Funktionen", "Download": "Download", "GCode Viewer": "GCode Viewer", "Also show previous layer": "Auch vorherige Schicht anzeigen", "Enable OctoPrint watermark in timelapse movies": "OctoPrint Wasserzeichen in Zeitrafferaufnahmen aktivieren", "Repetier": "Repetier", "Login successful": "Login erfolgreich", "Finished Timelapses": "Abgeschlossene Zeitraffer", "Rendering of timelapse %(movie_basename)s failedwith return code %(returncode)s": "Rendering der Zeitrafferaufnahme %(movie_basename)s fehlgeschlagen mit Returncode %(returncode)s", "Pause": "Pause", "Temperature": "Temperatur", "Enable slicing via Cura": "Slicing mittels Cura aktivieren", "Access Control": "Zugangsbeschr\u00e4nkung", "Analyzing...": "Analysiere...", "just now": "gerade eben", "Operational": "Bereit", "Send a checksum with every command": "Eine Pr\u00fcfsumme mit jedem Kommando senden", "Autodetection timeout": "Autodetectiontimeout", "Connecting": "Verbinde", "Free": "Frei", "Closed": "Geschlossen", "Refresh SD files": "SD-Dateien aktualisieren", "Flip webcam vertically": "Webcam vertikal flippen", "Path to Cura config": "Pfad zur Cura-Konfiguration", "Filament": "Filament", "Could not slice %(stl)s to %(gcode)s: %(reason)s": "Konnte %(stl)s nicht nach %(gcode)s slicen: %(reason)s", "Baudrate": "Baudrate", "Detecting baudrate": "Detektiere Baudrate", "Date": "Datum", "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds": "%(local)s nach %(remote)s gestreamt, dauerte %(time).2f Sekunden", "Show moves": "Bewegungen zeigen", "Motors off": "Motoren aus", "Detecting serial port": "Detektiere Serialport", "New Password": "Neues Passwort", "Logout": "Logout", "Offset": "Offset", "Analyzed": "Analysiert", "Auto-connect on server startup": "Automatisch bei Serverstart verbinden", "Printer Parameters": "Druckerparameter", "E": "E", "Restart": "Neu starten", "Search...": "Suchen...", "Slicing failed": "Slicing fehlgeschlagen", "Actual": "Ist", "Active": "Aktiv", "Creation date": "Erstellungsdatum", "Hint: You can also drag and drop files on this page to upload them.": "Hinweis: Du kannst auch Dateien auf diese Seite ziehen um sie hochzuladen.", "Interval": "Intervall", "N/A": "(nicht vorhanden)", "Bed": "Bett", "Auto-connect to printer on server start": "Automatisch bei Serverstart verbinden", "orange": "Orange", "Error": "Fehler", "On Z Change": "Bei Ebenenwechsel", "Timelapse post roll (in rendered seconds)": "Zeitraffernachlauf (in gerenderten Sekunden)", "Z": "Z", "Are you sure you want to proceed?": "Bist Du sicher, dass du fortfahren willst?", "If you disable Access Control and your OctoPrint installation is accessible from the internet, your printer will be accessible by everyone - that also includes the bad guys!": "Wenn Du die Zugangsbeschr\u00e4nkung deaktivierst und Deine OctoPrint Installation vom Internet aus erreichbar ist, kann jeder auf Deinen Drucker zugreifen - auch die b\u00f6sen Jungs!", "Load": "Laden", "Set": "Setzen", "The server appears to be offline, at least I'm not getting any response from it. I could not reconnect automatically, but you may try a manual reconnect using the button below.": "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich konnte nicht automatisch reconnected, aber Du kannst mittels des folgenden Buttons einen manuellen Reconnect ansto\u00dfen.", "Zoom in on model": "Auf Model zoomen", "mm": "mm", "Saving ...": "Speichere ...", "RegExp": "RegExp", "Watched Folder": "Beobachtetes Verzeichnis", "General": "Allgemein", "Temperature timeout": "Temperaturtimeout", "Color": "Farbe", "Fans on": "L\u00fcfter an", "Swallow the first \"ok\" after a resend response": "Erstes \"ok\" nach Resend ignorieren", "Enable SD support": "SD-Unterst\u00fctzung aktivieren", "Connect": "Verbinden", "Cancel": "Abbruch", "sec": "Sek", "Warning": "Warnung", "Loading...": "Lade...", "Current API Key": "Aktueller API-Key", "Size": "Gr\u00f6\u00dfe", "Communication timeout": "Kommunikationstimeout", "Modification date": "\u00c4nderungsdatum", "Change password": "Passwort \u00e4ndern", "This will restart the print job from the beginning.": "Der Druckjob wird zur\u00fcckgesetzt und von vorne begonnen.", "Stream URL": "Stream-URL", "Sort by": "Sortieren", "Login failed": "Login fehlgeschlagen", "Abort": "Abbrechen", "Confirm": "Best\u00e4tigen", "Repeat Password": "Passwort wiederholen", "Terminal": "Terminal", "Autoscroll": "Autoscroll", "Print time for layer": "Druckdauer f\u00fcr Schicht", "Disable Access Control": "Zugangsbeschr\u00e4nkung deaktivieren", "Configure Access Control": "Zugangsbeschr\u00e4nkung konfigurieren", "Timelapse Configuration": "Zeitrafferkonfiguration", "Retract": "Retract", "Timelapse bitrate": "Zeitrafferbitrate", "Offline": "Offline", "API Key": "API Key", "Homepage": "Homepage", "Estimated Print Time": "Gesch\u00e4tzte Druckzeit", "Folders": "Verzeichnisse", "Bugs and Requests": "Bugs und Requests", "Save": "Speichern", "Default extrusion length": "Standard Extrusionsl\u00e4nge", "min": "Min", "Support TargetExtr%%n/TargetBed target temperature format": "TargetExtr%%n/TargetBed Zieltemperaturformat unterst\u00fctzen", "Connection timeout": "Verbindungstimeout", "Save config": "Konfiguration speichern", "Center viewport on model": "Ausschnitt auf Modell zentrieren", "User unknown or wrong password": "Nutzer unbekannt oder falsches Passwort", "Allow Cross Origin Resource Sharing (CORS)": "Cross Origin Resource Sharing (CORS) erlauben", "Appearance": "Aussehen", "Enable": "Aktivieren", "Uploading ...": "Uploade ...", "Logs Folder": "Logverzeichnis", "

    \n Please read the following, it is very important for your printer's health!\n

    \n

    \n OctoPrint by default now ships with Access Control enabled, meaning you won't be able to do anything with the\n printer unless you login first as a configured user. This is to prevent strangers - possibly with\n malicious intent - to gain access to your printer via the internet or another untrustworthy network\n and using it in such a way that it is damaged or worse (i.e. causes a fire).\n

    \n

    \n It looks like you haven't configured access control yet. Please set up an username and password for the\n initial administrator account who will have full access to both the printer and OctoPrint's settings, then click\n on \"Keep Access Control Enabled\":\n

    ": "

    \n Bitte lies die folgenden Zeilen aufmerksam durch, es ist sehr wichtig f\u00fcr die Gesundheit Deines Druckers!\n

    \n

    \n OctoPrint wird nun standardm\u00e4ssig mit aktivierter Zugangsbeschr\u00e4nkung ausgeliefert, das hei\u00dft, dass Du mit dem Drucker nichts\n anfangen kannst, wenn du nicht als einer der konfigurierten Nutzer eingeloggt bist. Das dient dem Zweck, Fremde mit\n m\u00f6glicherweise b\u00f6swilligen Absichten davon abzuhalten, auf Deinen Drucker \u00fcber das Internet oder ein anderes\n unsicheres Netzwerk zuzugreifen und ihn auf eine Art zu nutzen, die ihn besch\u00e4digt oder schlimmeres (z.B. ein Feuer verursacht).\n

    \n

    \n Es sieht so aus, als h\u00e4ttest Du die Zugriffsbeschr\u00e4nkung noch nicht konfiguriert. Bitte konfiguriere einen Usernamen\n und ein Passwort f\u00fcr das initiale Administratorkonto, das vollen Zugang zu sowohl dem Drucker als auch OctoPrints\n Einstellungen haben wird, und klicke dann auf \"Zugangsbeschr\u00e4nkung aktiviert lassen\".\n

    ", "Hide successfully printed files": "Erfolgreich gedruckte Dateien verbergen", "Username": "Username", "Off": "Aus", "Name": "Name", "Extruder Offsets": "Extruderoffsets", "Approx. Total Print Time": "Ungef\u00e4hre Gesamtdruckdauer", "Admin": "Admin", "

    \n Note: In case that your OctoPrint installation is only accessible from within a trustworthy network and you don't\n need Access Control for other reasons, you may alternatively disable Access Control. You should only\n do this if you are absolutely certain that only people you know and trust will be able to connect to it.\n

    \n

    \n Do NOT underestimate the risk of an unsecured access from the internet to your printer!\n

    ": "

    \n Beachte: Falls Deine OctoPrint Installation ausschlie\u00dflich innerhalb eines vertrauensw\u00fcrdigen Netzwerks\n erreicht werden kann und Du die Zugangsbeschr\u00e4nkung nicht f\u00fcr andere Zwecke ben\u00f6tigst, kannst Du sie alternativ auch\n deaktivieren. Du solltest das nur tun, wenn Du Dir absolut sicher bist, dass nur Leute darauf zugreifen k\u00f6nnen, die du kennst\n und denen du vertraust\n

    \n

    \n UNTERSCH\u00c4TZE NICHT das Risiko eines ungesicherten Zugriffs aus dem Internet auf Deinen Drucker!\n

    ", "Timelapse": "Zeitraffer", "Remove": "Entfernen", "Reload": "Neu laden", "Printing": "Drucke", "Only show files stored on SD": "Nur auf SD abgelegte Dateien anzeigen", "Y": "Y", "Fans off": "L\u00fcfter aus", "Login": "Login", "Timelapse ready": "Zeitraffer fertig", "Timelapse Mode": "Zeitraffermodus", "Timelapse Folder": "Zeitrafferverzeichnis", "Extruder": "Extruder", "Could not upload the file. Make sure that it is a GCODE file and has the extension \".gcode\" or \".gco\" or that it is an STL file with the extension \".stl\" and slicing support is enabled and configured.": "Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um eine GCODE-Datei mit der Extension \".gcode\" oder \".gco\" oder um eine STL-Datei mit der Extension \".stl\" handelt und in letzterem Fall auch der Slicingsupport aktiviert ist.", "SD status timeout": "SD-Status-Timeout", "SD not initialized": "SD-Karte ist nicht initialisiert", "Update User": "Nutzer editieren", "off": "Aus", "Serial Port": "Serialport", "Flip webcam horizontally": "Webcam horizontal flippen", "Wait for start on connect": "Bei der Verbindung auf start warten", "Transfering file to SD": "Sende Datei zu SD", "OctoPrint": "OctoPrint", "Layer height": "Schichth\u00f6he", "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds": "%(stl)s nach %(gcode)s geslicet, dauerte %(time).2f Sekunden", "Extrude": "Extrude", "green": "Gr\u00fcn", "File": "Datei", "You are now logged in as \"%(username)s\"": "Du bist jetzt eingeloggt als \"%(username)s\"", "Axis": "Achse", "Filament used by layer": "Genutztes Filament in Schicht"}} ; \ No newline at end of file diff --git a/src/octoprint/translations/de/LC_MESSAGES/messages.mo b/src/octoprint/translations/de/LC_MESSAGES/messages.mo index a67bc785f15ec50f27ba3d869a2f8aca65853072..384f036c2e9a2c21f22e0a8b9653f97c7dd6a5df 100644 GIT binary patch delta 4611 zcmYM$d2rO_9mnw}$C5*Y5CS9$WOHCbAj#$+91VpKLOjTT3T=@VcMD65lA~b*sbYUP zMUajcE@)aysL&`-z-q7s1qEz5DpV&7G8IdK78t045dR35^!?f2Gt&&i>v?|1^F5wt zH|c7R+82&;PA12$G5qw2GG;J7AFtW}e{Lojlg;!N_K!9uv!5})jWMRIzcFBr4m2hX zkD~|wg?;cW_QG$iH>}Zvj8TXLSI*EWA^?fR0n!-u=IX!RJ;s3A2XQ#s}(g|hy+B=nVDnfji~#r zcD~fQ61C7PsLD5?0&PRirP+>3Jz79XdH&Lxz#0k^=m8ety3R1Lr1GN>qQR^Q;ZNV3Ie$LwMFoMcwtUpqMQ86!%3{nv2?k5>#i#qu!f}CHNp};b&2M-G*9cvz`A5W0)UAC3YAcEqsiD z4$CQwB!Z>PyHN||X1iNciV9p|=hIP@{R9;-Xs<6ubz&K6{WjDVZm{!BIDz^0Z1!J) zzvY4!jvi*r!`KfCFo-%Et5I9@2kX12#CD2T_&yF&^vf{Y9vc(=vN~1FH2~kYdbsJ3oP1=ijIRS1}5&S#O{U zx`jFD^vQEGD?>e4gL+^ZCZHcx(c`F!noxmTFcF_d-G2_1@QWCOuVFO4Zs+Z&gx1^n zCRfL7wKv{DExg0d_uvjPI)EGxvvefCT3N9JmC1e%hyoobcHjF1mGDv2_rO0f(g9S0 z*HF*j#$=3P-#z;MKafEs7Y3tR?8kI;ungB>B7TnAs?(@SFQdNedypJW3LhDrfe9Gt zAP!^hw=TyN=37wf?L`mq&0z*wunX1V6R3qwp$^$MsLn)>q63(S3NXT2j=9WhQ1357 z9kQoTm9M}7_yY3PVm6@e??)$vK^FtH?mQ}yE2tJ-M`d~^ZP5KxR7W!TuN!Bf5~&&O z2A+dTcrGe%3-ULLc?wm~8tji9H~@E!rvDiXKIMWcyn<@+HB=&TW86cTg#6KBl2Hle z;~*S^V{tm_m&~tF&%K4(!hNVSa0V6d0;b|^J5L=;{}s4^RTQucBYTKy(KJ-R+1B}} z=YEF#31FT?RoaGHrybMqP3s<1qFB6P zq!YXFebmA)e9wKa1C{XGs6+PwYAa5owx}DGKy0}iFBvs=(iy0NeAEjis7k7ECf3;d z8&GFu6Y9ASQ3-v9IxELfm0d)A0bND~_zqQI@9}PD(@=>HN7ix7Cp{jN(AByTwDQ4hgRN(nI5?k%O19e#cj7nrT zrsIBl{~YQt_Mi%K67IDh7gWZXsKZiZ9dEr4bGSYedUIVv zDEv#`y`Eys$3hDkw2M->w*p5z!RaCz=FDk eb;0IfgLx=eTh-cR9-f>ZF0Q)98zZOOlkh*z{Rz7O delta 6063 zcmYk=30zfG0>|+KA|j&VLW`z86hwuGENXxu2<{t|nxC0{6V-GHFt&FPmI4 zb1WxQr(krfX>2k}XE7C<%GSv;(s8n~QfbV7|98*(jQ8{T_dVw>XS?S(=*8;<57#@vF-BaA7gd_G!djahkvF>$yG+k_gk2RAn|=HN}nfVr24n&32SjI*!> z&cSee(E70TF{BH#9=YE!TPWmmVmr3QGf3N}0X^8JgZn@)jG~^6kvI%>-&l;rGHi}( zQ0;8Nj#!HcScfs#fOEB$jCn7t!BWsPVIo|=*U<&GiOiaQ4cmyj@Gw$or zOpF#v!e;zXcB)V@1s>p!Eehjn(ZM_FS~ z4Ru7#yf><&ENp|hsDX?@-FF|Vo#m+et5FkJ+u3n9)eH89eaNbs1DKDWq6XHP7p$2l z;xSA^EoCU5hOWn;c6~=|k6zTP7>e4occWgxbX%{mIu3;}E>xo$Sc`fUTX7)1h??1V zsD>_~Rwyjq9Z(Ev>2JX>Oh$E-j(U|jsP;yp?i+9GGqDkMr;36eT!89e38v#}?18VN zmh>EI#=oE*Y}M6W(iqgrbU<|+hwNvQf_%ZI0QG#Sz5XC-#j254>W(UlcUVAr)?W=T z=fr6AV=~sGzS|oT-FNS`_CgJ;FRG)#r~yty&1?qh)y%;ZT#7xh7T>@x@G?G^0|5nU<>L#R0ow9f{UyV zpeE!X`_-&L4b0hZZ#ZUeIDt*Ma2hqE^QakpkLvgmM&dPlJ(6|Sz@kx`>}Cwb4z}(= z4Jgjm6Rkbn^NvZUpoX*D6DALjGxVVt$N6??{DGmx9MnjrutU{RVTSvh4>jQXP`?B7 zP#spICg4ZizXA1?JZ;avg!%gZ_fgOiH()2cIg@3@Ow>%vQLkbVYNo4DzwzskeQNe# zOFV_qcoyTa!RpC!2Q~=R-bB>Ereg&Cn^Fo|;wn@_3sIZw5!A|TMh|XBb?}z;J?uuk z9`$^5Uw4zmpgM>}ZQ2Cn@0iK9*QcOXsuUe9-9r>Kv(>02dIB}l9jNOys1@KsdDEwfogj6qGPC+cg+K@Dg$#$rh}>#rHE=7g5mj~d9csNK60+u<(M zfDWTR&pKpv%{kN`nYe!Lef?3da1v?{EJk&>3~#~>wqAqk_eek1UmYIjMBp8wzSFa) z4u7=jXG`}r!w%RMHPbXyLm8+U=UOMA23m=lST*VuZA4Az8Pw9k(1P;S1 zs166@x-%Jxb=1e88cyi%K9_?U@KB7$v8Y$E2=$5{MGasJs>5Bj{t9XW&S46A;3#S) zpW#@nw>M)b>Dc@(#}Nfl{u)HEl2$TtwMG96sp7LQ7c=E8t9v-c8(#>Ip%W; zdhjcxPxB*s@z#9zK_6=q;(JKzPC~L9YZbs`>2k;My<#N)bm&E z`G|pRO8Pe~Dd@&-s1f%>?TI|p5{|I-yHUG%8cxB*s7?0?>U+L~8c5V2cd27g1Byit zc1Nw$FjV`KF!1mH(Ubq;K#yZCZbWUuk5Ch?AHw>Np>T~8n)#Ta?tjb8Lp87o!*Cm_p&h6h)SzC? zA&kHisJ-(c^5baEB7aUy{4oA23MXTe5C$>aJwIfGJCTPR3Tk*Y1~wIH=6g^}bO>Yd zT~x4+bnCsbG4;WyfsDjXc$d9C7quBzq9(M#p5KZZuv0@pOY(;GsPz;kaQ+Oc z;pU^<&2$5%Q158#1*lCq4%I<9GEpIF~Qb*pazs|>%Fa+sP?l1^8N=>P)8$CBfm^OB~Ovw z?6I%G_sfIi@B3Tu!=gONI#OL3ddI3=Hw^| z9!?mg*kH}7&m(vYqYzGGI@*&}q>-)b+!b;wnMqJ&Ef2v{, 2014 # Gina Häußge , 2014 @@ -10,31 +10,40 @@ msgid "" msgstr "" "Project-Id-Version: OctoPrint\n" "Report-Msgid-Bugs-To: i18n@octoprint.org\n" -"POT-Creation-Date: 2014-08-27 19:31+0200\n" -"PO-Revision-Date: 2014-08-27 17:37+0000\n" -"Last-Translator: Gina Häußge \n" -"Language-Team: German (http://www.transifex.com/projects/p/octoprint/language/de/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 1.3\n" +"POT-Creation-Date: 2014-08-27 20:04+0200\n" +"PO-Revision-Date: 2014-08-27 20:05+0100\n" +"Last-Translator: Gina Häußge \n" +"Language-Team: German (http://www.transifex.com/projects/p/octoprint/" +"language/de/)\n" "Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Generated-By: Babel 1.3\n" +"X-Generator: Poedit 1.6.8\n" #: src/octoprint/static/js/app/dataupdater.js:43 msgid "" -"The server appears to be offline, at least I'm not getting any response from" -" it. I'll try to reconnect automatically over the next couple of " +"The server appears to be offline, at least I'm not getting any response from " +"it. I'll try to reconnect automatically over the next couple of " "minutes, however you are welcome to try a manual reconnect anytime " "using the button below." -msgstr "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich werde über die nächsten Minuten versuchen, zu reconnecten, aber Du kannst mittels des folgenden Buttons auch jederzeit einen manuellen Reconnect anstoßen." +msgstr "" +"Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm " +"verbinden. Ich werde über die nächsten Minuten versuchen, " +"zu reconnecten, aber Du kannst mittels des folgenden Buttons auch jederzeit " +"einen manuellen Reconnect anstoßen." #: src/octoprint/static/js/app/dataupdater.js:58 msgid "" -"The server appears to be offline, at least I'm not getting any response from" -" it. I could not reconnect automatically, but you may try a" -" manual reconnect using the button below." -msgstr "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich konnte nicht automatisch reconnected, aber Du kannst mittels des folgenden Buttons einen manuellen Reconnect anstoßen." +"The server appears to be offline, at least I'm not getting any response from " +"it. I could not reconnect automatically, but you may try a " +"manual reconnect using the button below." +msgstr "" +"Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm " +"verbinden. Ich konnte nicht automatisch reconnected, aber " +"Du kannst mittels des folgenden Buttons einen manuellen Reconnect anstoßen." #: src/octoprint/static/js/app/dataupdater.js:126 msgid "Rendering timelapse" @@ -59,7 +68,9 @@ msgstr "Neue Zeitrafferaufnahme %(movie_basename)s wurde fertig gerendert" msgid "" "Rendering of timelapse %(movie_basename)s failedwith return code " "%(returncode)s" -msgstr "Rendering der Zeitrafferaufnahme %(movie_basename)s fehlgeschlagen mit Returncode %(returncode)s" +msgstr "" +"Rendering der Zeitrafferaufnahme %(movie_basename)s fehlgeschlagen mit " +"Returncode %(returncode)s" #: src/octoprint/static/js/app/dataupdater.js:133 msgid "Rendering failed" @@ -167,7 +178,11 @@ msgid "" "Could not upload the file. Make sure that it is a GCODE file and has the " "extension \".gcode\" or \".gco\" or that it is an STL file with the " "extension \".stl\" and slicing support is enabled and configured." -msgstr "Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um eine GCODE-Datei mit der Extension \".gcode\" oder \".gco\" oder um eine STL-Datei mit der Extension \".stl\" handelt und in letzterem Fall auch der Slicingsupport aktiviert ist." +msgstr "" +"Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um eine " +"GCODE-Datei mit der Extension \".gcode\" oder \".gco\" oder um eine STL-" +"Datei mit der Extension \".stl\" handelt und in letzterem Fall auch der " +"Slicingsupport aktiviert ist." #: src/octoprint/static/js/app/main.js:148 msgid "Uploading ..." @@ -177,6 +192,13 @@ msgstr "Uploade ..." msgid "Saving ..." msgstr "Speichere ..." +#: src/octoprint/static/js/app/viewmodels/appearance.js:9 +#: src/octoprint/static/js/app/viewmodels/appearance.js:11 +#: src/octoprint/static/js/app/viewmodels/appearance.js:16 +#: src/octoprint/static/js/app/viewmodels/appearance.js:18 +msgid "OctoPrint" +msgstr "OctoPrint" + #: src/octoprint/static/js/app/viewmodels/connection.js:24 #: src/octoprint/templates/index.jinja2:117 msgid "Connect" @@ -222,7 +244,10 @@ msgid "" "If you disable Access Control and your OctoPrint " "installation is accessible from the internet, your printer will be " "accessible by everyone - that also includes the bad guys!" -msgstr "Wenn Du die Zugangsbeschränkung deaktivierst und Deine OctoPrint Installation vom Internet aus erreichbar ist, kann jeder auf Deinen Drucker zugreifen - auch die bösen Jungs!" +msgstr "" +"Wenn Du die Zugangsbeschränkung deaktivierst und Deine " +"OctoPrint Installation vom Internet aus erreichbar ist, kann jeder " +"auf Deinen Drucker zugreifen - auch die bösen Jungs!" #: src/octoprint/static/js/app/viewmodels/gcode.js:13 msgid "Loading..." @@ -478,20 +503,49 @@ msgstr "Zugangsbeschränkung konfigurieren" #: src/octoprint/templates/dialogs.jinja2:51 msgid "" "

    \n" -" Please read the following, it is very important for your printer's health!\n" +" Please read the following, it is very important for your " +"printer's health!\n" "

    \n" "

    \n" -" OctoPrint by default now ships with Access Control enabled, meaning you won't be able to do anything with the\n" -" printer unless you login first as a configured user. This is to prevent strangers - possibly with\n" -" malicious intent - to gain access to your printer via the internet or another untrustworthy network\n" -" and using it in such a way that it is damaged or worse (i.e. causes a fire).\n" +" OctoPrint by default now ships with Access Control enabled, " +"meaning you won't be able to do anything with the\n" +" printer unless you login first as a configured user. This is to " +"prevent strangers - possibly with\n" +" malicious intent - to gain access to your printer via " +"the internet or another untrustworthy network\n" +" and using it in such a way that it is damaged or worse (i.e. " +"causes a fire).\n" "

    \n" "

    \n" -" It looks like you haven't configured access control yet. Please set up an username and password for the\n" -" initial administrator account who will have full access to both the printer and OctoPrint's settings, then click\n" +" It looks like you haven't configured access control yet. Please " +"set up an username and password for the\n" +" initial administrator account who will have full access to both " +"the printer and OctoPrint's settings, then click\n" " on \"Keep Access Control Enabled\":\n" "

    " -msgstr "

    \n Bitte lies die folgenden Zeilen aufmerksam durch, es ist sehr wichtig für die Gesundheit Deines Druckers!\n

    \n

    \n OctoPrint wird nun standardmässig mit aktivierter Zugangsbeschränkung ausgeliefert, das heißt, dass Du mit dem Drucker nichts\n anfangen kannst, wenn du nicht als einer der konfigurierten Nutzer eingeloggt bist. Das dient dem Zweck, Fremde mit\n möglicherweise böswilligen Absichten davon abzuhalten, auf Deinen Drucker über das Internet oder ein anderes\n unsicheres Netzwerk zuzugreifen und ihn auf eine Art zu nutzen, die ihn beschädigt oder schlimmeres (z.B. ein Feuer verursacht).\n

    \n

    \n Es sieht so aus, als hättest Du die Zugriffsbeschränkung noch nicht konfiguriert. Bitte konfiguriere einen Usernamen\n und ein Passwort für das initiale Administratorkonto, das vollen Zugang zu sowohl dem Drucker als auch OctoPrints\n Einstellungen haben wird, und klicke dann auf \"Zugangsbeschränkung aktiviert lassen\".\n

    " +msgstr "" +"

    \n" +" Bitte lies die folgenden Zeilen aufmerksam durch, es ist sehr " +"wichtig für die Gesundheit Deines Druckers!\n" +"

    \n" +"

    \n" +" OctoPrint wird nun standardmässig mit aktivierter Zugangsbeschränkung " +"ausgeliefert, das heißt, dass Du mit dem Drucker nichts\n" +" anfangen kannst, wenn du nicht als einer der konfigurierten Nutzer " +"eingeloggt bist. Das dient dem Zweck, Fremde mit\n" +" möglicherweise böswilligen Absichten davon abzuhalten, auf " +"Deinen Drucker über das Internet oder ein anderes\n" +" unsicheres Netzwerk zuzugreifen und ihn auf eine Art zu nutzen, die ihn " +"beschädigt oder schlimmeres (z.B. ein Feuer verursacht).\n" +"

    \n" +"

    \n" +" Es sieht so aus, als hättest Du die Zugriffsbeschränkung noch nicht " +"konfiguriert. Bitte konfiguriere einen Usernamen\n" +" und ein Passwort für das initiale Administratorkonto, das " +"vollen Zugang zu sowohl dem Drucker als auch OctoPrints\n" +" Einstellungen haben wird, und klicke dann auf \"Zugangsbeschränkung " +"aktiviert lassen\".\n" +"

    " #: src/octoprint/templates/dialogs.jinja2:67 #: src/octoprint/templates/index.jinja2:78 @@ -520,14 +574,31 @@ msgstr "Passwörter nicht identisch" #: src/octoprint/templates/dialogs.jinja2:86 msgid "" "

    \n" -" Note: In case that your OctoPrint installation is only accessible from within a trustworthy network and you don't\n" -" need Access Control for other reasons, you may alternatively disable Access Control. You should only\n" -" do this if you are absolutely certain that only people you know and trust will be able to connect to it.\n" +" Note: In case that your OctoPrint installation " +"is only accessible from within a trustworthy network and you don't\n" +" need Access Control for other reasons, you may alternatively " +"disable Access Control. You should only\n" +" do this if you are absolutely certain that only people you know " +"and trust will be able to connect to it.\n" "

    \n" "

    \n" -" Do NOT underestimate the risk of an unsecured access from the internet to your printer!\n" +" Do NOT underestimate the risk of an unsecured access " +"from the internet to your printer!\n" "

    " -msgstr "

    \n Beachte: Falls Deine OctoPrint Installation ausschließlich innerhalb eines vertrauenswürdigen Netzwerks\n erreicht werden kann und Du die Zugangsbeschränkung nicht für andere Zwecke benötigst, kannst Du sie alternativ auch\n deaktivieren. Du solltest das nur tun, wenn Du Dir absolut sicher bist, dass nur Leute darauf zugreifen können, die du kennst\n und denen du vertraust\n

    \n

    \n UNTERSCHÄTZE NICHT das Risiko eines ungesicherten Zugriffs aus dem Internet auf Deinen Drucker!\n

    " +msgstr "" +"

    \n" +" Beachte: Falls Deine OctoPrint Installation " +"ausschließlich innerhalb eines vertrauenswürdigen Netzwerks\n" +" erreicht werden kann und Du die Zugangsbeschränkung nicht für andere " +"Zwecke benötigst, kannst Du sie alternativ auch\n" +" deaktivieren. Du solltest das nur tun, wenn Du Dir absolut sicher bist, " +"dass nur Leute darauf zugreifen können, die du kennst\n" +" und denen du vertraust\n" +"

    \n" +"

    \n" +" UNTERSCHÄTZE NICHT das Risiko eines ungesicherten Zugriffs aus " +"dem Internet auf Deinen Drucker!\n" +"

    " #: src/octoprint/templates/dialogs.jinja2:96 msgid "Disable Access Control" @@ -707,7 +778,8 @@ msgstr "Frei" #: src/octoprint/templates/index.jinja2:233 msgid "Hint: You can also drag and drop files on this page to upload them." -msgstr "Hinweis: Du kannst auch Dateien auf diese Seite ziehen um sie hochzuladen." +msgstr "" +"Hinweis: Du kannst auch Dateien auf diese Seite ziehen um sie hochzuladen." #: src/octoprint/templates/index.jinja2:243 msgid "Temperature" @@ -963,7 +1035,9 @@ msgstr "Autodetectiontimeout" #: src/octoprint/templates/settings.jinja2:96 msgid "Log communication to serial.log (might negatively impact performance)" -msgstr "Logge die Kommunikation in das serial.log (kann die Performance negativ beeinflussen)" +msgstr "" +"Logge die Kommunikation in das serial.log (kann die Performance negativ " +"beeinflussen)" #: src/octoprint/templates/settings.jinja2:96 msgid "Warning" @@ -1082,9 +1156,11 @@ msgstr "Eine Prüfsumme mit jedem Kommando senden" #: src/octoprint/templates/settings.jinja2:296 #, python-format msgid "" -"Support TargetExtr%%n/TargetBed target temperature" -" format" -msgstr "TargetExtr%%n/TargetBed Zieltemperaturformat unterstützen" +"Support TargetExtr%%n/TargetBed target temperature " +"format" +msgstr "" +"TargetExtr%%n/TargetBed Zieltemperaturformat " +"unterstützen" #: src/octoprint/templates/settings.jinja2:303 msgid "Swallow the first \"ok\" after a resend response" diff --git a/src/octoprint/translations/messages.pot b/src/octoprint/translations/messages.pot index 4db4085e8..523f6944a 100644 --- a/src/octoprint/translations/messages.pot +++ b/src/octoprint/translations/messages.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: OctoPrint 1.2.0-dev-122-ga9736b9-dirty\n" +"Project-Id-Version: OctoPrint 1.2.0-dev-124-g571cf9c-dirty\n" "Report-Msgid-Bugs-To: i18n@octoprint.org\n" -"POT-Creation-Date: 2014-08-27 19:31+0200\n" +"POT-Creation-Date: 2014-08-27 20:04+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -173,6 +173,13 @@ msgstr "" msgid "Saving ..." msgstr "" +#: src/octoprint/static/js/app/viewmodels/appearance.js:9 +#: src/octoprint/static/js/app/viewmodels/appearance.js:11 +#: src/octoprint/static/js/app/viewmodels/appearance.js:16 +#: src/octoprint/static/js/app/viewmodels/appearance.js:18 +msgid "OctoPrint" +msgstr "" + #: src/octoprint/static/js/app/viewmodels/connection.js:24 #: src/octoprint/templates/index.jinja2:117 msgid "Connect" From 2943343003d402660168d2a88d507e914f3be7c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 28 Aug 2014 15:50:42 +0200 Subject: [PATCH 45/50] Forgot to make "Connection" translatable, fixed --- src/octoprint/templates/index.jinja2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/templates/index.jinja2 b/src/octoprint/templates/index.jinja2 index 03f50148d..c05e150dd 100644 --- a/src/octoprint/templates/index.jinja2 +++ b/src/octoprint/templates/index.jinja2 @@ -100,7 +100,7 @@
    From bc8fe527f7cc19522e9629bddb2ea45944018761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 28 Aug 2014 15:54:32 +0200 Subject: [PATCH 46/50] Updated german translation to include "Connection" too --- src/octoprint/static/js/i18n/de.js | 2 +- .../translations/de/LC_MESSAGES/messages.mo | Bin 18882 -> 18920 bytes .../translations/de/LC_MESSAGES/messages.po | 8 ++++++-- src/octoprint/translations/messages.pot | 8 ++++++-- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/octoprint/static/js/i18n/de.js b/src/octoprint/static/js/i18n/de.js index 72f112cd7..bc65a0c47 100644 --- a/src/octoprint/static/js/i18n/de.js +++ b/src/octoprint/static/js/i18n/de.js @@ -1 +1 @@ -window.BABEL_TO_LOAD_de = {"locale": "de", "domain": "messages", "plural_expr": "(n != 1)", "messages": {"": "Project-Id-Version: OctoPrint\nReport-Msgid-Bugs-To: i18n@octoprint.org\nPOT-Creation-Date: 2014-08-27 20:04+0200\nPO-Revision-Date: 2014-08-27 20:05+0100\nLast-Translator: Gina H\u00e4u\u00dfge \nLanguage-Team: German (http://www.transifex.com/projects/p/octoprint/language/de/)\nPlural-Forms: nplurals=2; plural=(n != 1)\nMIME-Version: 1.0\nContent-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 8bit\nGenerated-By: Babel 1.3\n", "Print Time Left": "Verbleibende Druckdauer", "Proceed": "Fortfahren", "Timelapse Temp Folder": "Tempor\u00e4res Zeitrafferverzeichnis", "Title": "Titel", "Only show files stored locally": "Nur lokal abgelegte Dateien anzeigen", "yellow": "Gelb", "Path to Cura": "Pfad zu Cura", "Action": "Aktion", "Passwords do not match": "Passw\u00f6rter nicht identisch", "Sort by name": "Nach Name sortieren", "Save connection settings": "Verbindungseinstellungen speichern", "Rendering timelapse": "Zeitraffer wird gerendert", "Cura": "Cura", "Files": "Dateien", "Bed Size": "Bettdimensionen", "Always assume SD card is present": "Immer davon ausgehen, dass eine SD-Karte vorhanden ist", "Load and Print": "Laden und Drucken", "Sending file to SD": "Sende Datei zu SD", "Number of Extruders": "Anzahl Extruder", "black": "Schwarz", "Last Printed": "Zuletzt gedruckt", "Sourcecode": "Quellcode", "Estimated layer height": "Gesch\u00e4tzte Schichth\u00f6he", "You are now logged out": "Du bist jetzt ausgeloggt", "Uploaded": "Hochgeladen", "Opening serial port": "\u00d6ffnet Serialport", "New timelapse %(movie_basename)s is done rendering.": "Neue Zeitrafferaufnahme %(movie_basename)s wurde fertig gerendert", "Invert control": "Invertieren", "Webcam": "Webcam", "Remember me": "Login merken", "Enable GCode Visualizer": "GCode Viewer aktivieren", "The server appears to be offline, at least I'm not getting any response from it. I'll try to reconnect automatically over the next couple of minutes, however you are welcome to try a manual reconnect anytime using the button below.": "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich werde \u00fcber die n\u00e4chsten Minuten versuchen, zu reconnecten, aber Du kannst mittels des folgenden Buttons auch jederzeit einen manuellen Reconnect ansto\u00dfen.", "Rendering failed": "Rendering fehlgeschlagen", "Upload Folder": "Uploadverzeichnis", "descending": "absteigend", "X": "X", "Add user": "Nutzer hinzuf\u00fcgen", "GCODE commands in layer": "GCODE Kommandos in Schicht", "Estimated print time": "Gesch\u00e4tzte Druckzeit", "Serial Connection": "Serielle Verbindung", "Control": "Kontrolle", "Password": "Passwort", "Also show next layer": "Auch n\u00e4chste Schicht anzeigen", "Print Time": "Druckdauer", "Sort by file size": "Nach Gr\u00f6\u00dfe sortieren", "Machine State": "Druckerstatus", "default": "Standard", "API": "API", "Printing from SD": "Drucke von SD", "Terminal filters": "Terminalfilter", "Change password for user \"%(user)s\"": "Passwort\u00e4nderung f\u00fcr Nutzer \"%(user)s\"", "Enable Temperature Graph": "Temperaturgraph aktivieren", "Delete user": "Nutzer l\u00f6schen", "Confirm Password": "Passwort best\u00e4tigen", "Disconnect": "Trennen", "Slicing done": "Slicing abgeschlossen", "Initialize SD card": "SD-Karte initialisieren", "System": "System", "Send": "Senden", "State": "Status", "Version": "Version", "YYYY-MM-DD HH:mm": "DD.MM.YYYY HH:mm", "Attempt to reconnect": "Erneut verbinden", "Streaming done": "Streaming abgeschlossen", "violet": "Violett", "Print": "Drucken", "Layer count": "Schichtanzahl", "OctoPrint Settings": "OctoPrint Einstellungen", "Are you sure?": "Bist Du sicher?", "blue": "Blau", "Printer": "Drucker", "Tool": "Werkzeug", "Settings": "Einstellungen", "Path to FFMPEG": "Pfad zu FFMPEG", "Upload to SD": "Upload (SD)", "The command \"%(command)s\" could not be executed.": "Das Kommando \"%(command)s\" konnte nicht ausgef\u00fchrt werden.", "Printed": "Gedruckt", "Layer number": "Schichtnummer", "Sync with job progress": "Job mit Fortschritt synchronisieren", "Circular": "Rund", "Total filament used": "Gesamtmenge genutzten Filaments", "red": "Rot", "Save as default": "Als Standard speichern", "Slicing ...": "Slice ...", "Last Print Time": "Letzte Druckdauer", "Target": "Soll", "Streaming ...": "Streame ...", "Logout successful": "Logout erfolgreich", "Now rendering timelapse %(movie_basename)s": "Rendere Zeitrafferaufnahme %(movie_basename)s", "Documentation": "Dokumentation", "%(hour)02d:%(minute)02d:%(second)02d": "%(hour)02d:%(minute)02d:%(second)02d", "Upload": "Upload", "ascending": "aufsteigend", "Model size": "Modelgr\u00f6\u00dfe", "Temperatures": "Temperaturen", "visited": "besucht", "Timed": "Nach Zeit", "Edit user \"%(user)s\"": "Editiere Nutzer \"%(user)s\"", "Snapshot URL": "Snapshot-URL", "Release SD card": "SD-Karte auswerfen", "Server is offline": "Der Server ist offline", "Log communication to serial.log (might negatively impact performance)": "Logge die Kommunikation in das serial.log (kann die Performance negativ beeinflussen)", "Sort by upload date": "Nach Uploaddatum sortieren", "Change Password": "Passwort \u00e4ndern", "Logs": "Logs", "Hotend": "Hotend", "Show retracts": "Retracts zeigen", "Keep Access Control Enabled": "Zugangsbeschr\u00e4nkung aktiviert lassen", "Upload locally": "Upload (lokal)", "Select Tool...": "Werkzeug w\u00e4hlen...", "Paused": "Pausiert", "Continue": "Fortsetzen", "Radius": "Radius", "The command \"%(command)s\" executed successfully": "Das Kommando \"%(command)s\" wurde erfolgreich ausgef\u00fchrt", "Features": "Funktionen", "Download": "Download", "GCode Viewer": "GCode Viewer", "Also show previous layer": "Auch vorherige Schicht anzeigen", "Enable OctoPrint watermark in timelapse movies": "OctoPrint Wasserzeichen in Zeitrafferaufnahmen aktivieren", "Repetier": "Repetier", "Login successful": "Login erfolgreich", "Finished Timelapses": "Abgeschlossene Zeitraffer", "Rendering of timelapse %(movie_basename)s failedwith return code %(returncode)s": "Rendering der Zeitrafferaufnahme %(movie_basename)s fehlgeschlagen mit Returncode %(returncode)s", "Pause": "Pause", "Temperature": "Temperatur", "Enable slicing via Cura": "Slicing mittels Cura aktivieren", "Access Control": "Zugangsbeschr\u00e4nkung", "Analyzing...": "Analysiere...", "just now": "gerade eben", "Operational": "Bereit", "Send a checksum with every command": "Eine Pr\u00fcfsumme mit jedem Kommando senden", "Autodetection timeout": "Autodetectiontimeout", "Connecting": "Verbinde", "Free": "Frei", "Closed": "Geschlossen", "Refresh SD files": "SD-Dateien aktualisieren", "Flip webcam vertically": "Webcam vertikal flippen", "Path to Cura config": "Pfad zur Cura-Konfiguration", "Filament": "Filament", "Could not slice %(stl)s to %(gcode)s: %(reason)s": "Konnte %(stl)s nicht nach %(gcode)s slicen: %(reason)s", "Baudrate": "Baudrate", "Detecting baudrate": "Detektiere Baudrate", "Date": "Datum", "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds": "%(local)s nach %(remote)s gestreamt, dauerte %(time).2f Sekunden", "Show moves": "Bewegungen zeigen", "Motors off": "Motoren aus", "Detecting serial port": "Detektiere Serialport", "New Password": "Neues Passwort", "Logout": "Logout", "Offset": "Offset", "Analyzed": "Analysiert", "Auto-connect on server startup": "Automatisch bei Serverstart verbinden", "Printer Parameters": "Druckerparameter", "E": "E", "Restart": "Neu starten", "Search...": "Suchen...", "Slicing failed": "Slicing fehlgeschlagen", "Actual": "Ist", "Active": "Aktiv", "Creation date": "Erstellungsdatum", "Hint: You can also drag and drop files on this page to upload them.": "Hinweis: Du kannst auch Dateien auf diese Seite ziehen um sie hochzuladen.", "Interval": "Intervall", "N/A": "(nicht vorhanden)", "Bed": "Bett", "Auto-connect to printer on server start": "Automatisch bei Serverstart verbinden", "orange": "Orange", "Error": "Fehler", "On Z Change": "Bei Ebenenwechsel", "Timelapse post roll (in rendered seconds)": "Zeitraffernachlauf (in gerenderten Sekunden)", "Z": "Z", "Are you sure you want to proceed?": "Bist Du sicher, dass du fortfahren willst?", "If you disable Access Control and your OctoPrint installation is accessible from the internet, your printer will be accessible by everyone - that also includes the bad guys!": "Wenn Du die Zugangsbeschr\u00e4nkung deaktivierst und Deine OctoPrint Installation vom Internet aus erreichbar ist, kann jeder auf Deinen Drucker zugreifen - auch die b\u00f6sen Jungs!", "Load": "Laden", "Set": "Setzen", "The server appears to be offline, at least I'm not getting any response from it. I could not reconnect automatically, but you may try a manual reconnect using the button below.": "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich konnte nicht automatisch reconnected, aber Du kannst mittels des folgenden Buttons einen manuellen Reconnect ansto\u00dfen.", "Zoom in on model": "Auf Model zoomen", "mm": "mm", "Saving ...": "Speichere ...", "RegExp": "RegExp", "Watched Folder": "Beobachtetes Verzeichnis", "General": "Allgemein", "Temperature timeout": "Temperaturtimeout", "Color": "Farbe", "Fans on": "L\u00fcfter an", "Swallow the first \"ok\" after a resend response": "Erstes \"ok\" nach Resend ignorieren", "Enable SD support": "SD-Unterst\u00fctzung aktivieren", "Connect": "Verbinden", "Cancel": "Abbruch", "sec": "Sek", "Warning": "Warnung", "Loading...": "Lade...", "Current API Key": "Aktueller API-Key", "Size": "Gr\u00f6\u00dfe", "Communication timeout": "Kommunikationstimeout", "Modification date": "\u00c4nderungsdatum", "Change password": "Passwort \u00e4ndern", "This will restart the print job from the beginning.": "Der Druckjob wird zur\u00fcckgesetzt und von vorne begonnen.", "Stream URL": "Stream-URL", "Sort by": "Sortieren", "Login failed": "Login fehlgeschlagen", "Abort": "Abbrechen", "Confirm": "Best\u00e4tigen", "Repeat Password": "Passwort wiederholen", "Terminal": "Terminal", "Autoscroll": "Autoscroll", "Print time for layer": "Druckdauer f\u00fcr Schicht", "Disable Access Control": "Zugangsbeschr\u00e4nkung deaktivieren", "Configure Access Control": "Zugangsbeschr\u00e4nkung konfigurieren", "Timelapse Configuration": "Zeitrafferkonfiguration", "Retract": "Retract", "Timelapse bitrate": "Zeitrafferbitrate", "Offline": "Offline", "API Key": "API Key", "Homepage": "Homepage", "Estimated Print Time": "Gesch\u00e4tzte Druckzeit", "Folders": "Verzeichnisse", "Bugs and Requests": "Bugs und Requests", "Save": "Speichern", "Default extrusion length": "Standard Extrusionsl\u00e4nge", "min": "Min", "Support TargetExtr%%n/TargetBed target temperature format": "TargetExtr%%n/TargetBed Zieltemperaturformat unterst\u00fctzen", "Connection timeout": "Verbindungstimeout", "Save config": "Konfiguration speichern", "Center viewport on model": "Ausschnitt auf Modell zentrieren", "User unknown or wrong password": "Nutzer unbekannt oder falsches Passwort", "Allow Cross Origin Resource Sharing (CORS)": "Cross Origin Resource Sharing (CORS) erlauben", "Appearance": "Aussehen", "Enable": "Aktivieren", "Uploading ...": "Uploade ...", "Logs Folder": "Logverzeichnis", "

    \n Please read the following, it is very important for your printer's health!\n

    \n

    \n OctoPrint by default now ships with Access Control enabled, meaning you won't be able to do anything with the\n printer unless you login first as a configured user. This is to prevent strangers - possibly with\n malicious intent - to gain access to your printer via the internet or another untrustworthy network\n and using it in such a way that it is damaged or worse (i.e. causes a fire).\n

    \n

    \n It looks like you haven't configured access control yet. Please set up an username and password for the\n initial administrator account who will have full access to both the printer and OctoPrint's settings, then click\n on \"Keep Access Control Enabled\":\n

    ": "

    \n Bitte lies die folgenden Zeilen aufmerksam durch, es ist sehr wichtig f\u00fcr die Gesundheit Deines Druckers!\n

    \n

    \n OctoPrint wird nun standardm\u00e4ssig mit aktivierter Zugangsbeschr\u00e4nkung ausgeliefert, das hei\u00dft, dass Du mit dem Drucker nichts\n anfangen kannst, wenn du nicht als einer der konfigurierten Nutzer eingeloggt bist. Das dient dem Zweck, Fremde mit\n m\u00f6glicherweise b\u00f6swilligen Absichten davon abzuhalten, auf Deinen Drucker \u00fcber das Internet oder ein anderes\n unsicheres Netzwerk zuzugreifen und ihn auf eine Art zu nutzen, die ihn besch\u00e4digt oder schlimmeres (z.B. ein Feuer verursacht).\n

    \n

    \n Es sieht so aus, als h\u00e4ttest Du die Zugriffsbeschr\u00e4nkung noch nicht konfiguriert. Bitte konfiguriere einen Usernamen\n und ein Passwort f\u00fcr das initiale Administratorkonto, das vollen Zugang zu sowohl dem Drucker als auch OctoPrints\n Einstellungen haben wird, und klicke dann auf \"Zugangsbeschr\u00e4nkung aktiviert lassen\".\n

    ", "Hide successfully printed files": "Erfolgreich gedruckte Dateien verbergen", "Username": "Username", "Off": "Aus", "Name": "Name", "Extruder Offsets": "Extruderoffsets", "Approx. Total Print Time": "Ungef\u00e4hre Gesamtdruckdauer", "Admin": "Admin", "

    \n Note: In case that your OctoPrint installation is only accessible from within a trustworthy network and you don't\n need Access Control for other reasons, you may alternatively disable Access Control. You should only\n do this if you are absolutely certain that only people you know and trust will be able to connect to it.\n

    \n

    \n Do NOT underestimate the risk of an unsecured access from the internet to your printer!\n

    ": "

    \n Beachte: Falls Deine OctoPrint Installation ausschlie\u00dflich innerhalb eines vertrauensw\u00fcrdigen Netzwerks\n erreicht werden kann und Du die Zugangsbeschr\u00e4nkung nicht f\u00fcr andere Zwecke ben\u00f6tigst, kannst Du sie alternativ auch\n deaktivieren. Du solltest das nur tun, wenn Du Dir absolut sicher bist, dass nur Leute darauf zugreifen k\u00f6nnen, die du kennst\n und denen du vertraust\n

    \n

    \n UNTERSCH\u00c4TZE NICHT das Risiko eines ungesicherten Zugriffs aus dem Internet auf Deinen Drucker!\n

    ", "Timelapse": "Zeitraffer", "Remove": "Entfernen", "Reload": "Neu laden", "Printing": "Drucke", "Only show files stored on SD": "Nur auf SD abgelegte Dateien anzeigen", "Y": "Y", "Fans off": "L\u00fcfter aus", "Login": "Login", "Timelapse ready": "Zeitraffer fertig", "Timelapse Mode": "Zeitraffermodus", "Timelapse Folder": "Zeitrafferverzeichnis", "Extruder": "Extruder", "Could not upload the file. Make sure that it is a GCODE file and has the extension \".gcode\" or \".gco\" or that it is an STL file with the extension \".stl\" and slicing support is enabled and configured.": "Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um eine GCODE-Datei mit der Extension \".gcode\" oder \".gco\" oder um eine STL-Datei mit der Extension \".stl\" handelt und in letzterem Fall auch der Slicingsupport aktiviert ist.", "SD status timeout": "SD-Status-Timeout", "SD not initialized": "SD-Karte ist nicht initialisiert", "Update User": "Nutzer editieren", "off": "Aus", "Serial Port": "Serialport", "Flip webcam horizontally": "Webcam horizontal flippen", "Wait for start on connect": "Bei der Verbindung auf start warten", "Transfering file to SD": "Sende Datei zu SD", "OctoPrint": "OctoPrint", "Layer height": "Schichth\u00f6he", "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds": "%(stl)s nach %(gcode)s geslicet, dauerte %(time).2f Sekunden", "Extrude": "Extrude", "green": "Gr\u00fcn", "File": "Datei", "You are now logged in as \"%(username)s\"": "Du bist jetzt eingeloggt als \"%(username)s\"", "Axis": "Achse", "Filament used by layer": "Genutztes Filament in Schicht"}} ; \ No newline at end of file +window.BABEL_TO_LOAD_de = {"locale": "de", "domain": "messages", "plural_expr": "(n != 1)", "messages": {"": "Project-Id-Version: OctoPrint\nReport-Msgid-Bugs-To: i18n@octoprint.org\nPOT-Creation-Date: 2014-08-28 15:52+0200\nPO-Revision-Date: 2014-08-28 15:53+0100\nLast-Translator: Gina H\u00e4u\u00dfge \nLanguage-Team: German (http://www.transifex.com/projects/p/octoprint/language/de/)\nPlural-Forms: nplurals=2; plural=(n != 1)\nMIME-Version: 1.0\nContent-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 8bit\nGenerated-By: Babel 1.3\n", "Print Time Left": "Verbleibende Druckdauer", "Proceed": "Fortfahren", "Timelapse Temp Folder": "Tempor\u00e4res Zeitrafferverzeichnis", "Title": "Titel", "Only show files stored locally": "Nur lokal abgelegte Dateien anzeigen", "yellow": "Gelb", "Path to Cura": "Pfad zu Cura", "Action": "Aktion", "Passwords do not match": "Passw\u00f6rter nicht identisch", "Sort by name": "Nach Name sortieren", "Save connection settings": "Verbindungseinstellungen speichern", "Rendering timelapse": "Zeitraffer wird gerendert", "Cura": "Cura", "Files": "Dateien", "Bed Size": "Bettdimensionen", "Always assume SD card is present": "Immer davon ausgehen, dass eine SD-Karte vorhanden ist", "Load and Print": "Laden und Drucken", "Sending file to SD": "Sende Datei zu SD", "Number of Extruders": "Anzahl Extruder", "black": "Schwarz", "Last Printed": "Zuletzt gedruckt", "Sourcecode": "Quellcode", "Estimated layer height": "Gesch\u00e4tzte Schichth\u00f6he", "You are now logged out": "Du bist jetzt ausgeloggt", "Uploaded": "Hochgeladen", "Opening serial port": "\u00d6ffnet Serialport", "New timelapse %(movie_basename)s is done rendering.": "Neue Zeitrafferaufnahme %(movie_basename)s wurde fertig gerendert", "Invert control": "Invertieren", "Webcam": "Webcam", "Remember me": "Login merken", "Enable GCode Visualizer": "GCode Viewer aktivieren", "The server appears to be offline, at least I'm not getting any response from it. I'll try to reconnect automatically over the next couple of minutes, however you are welcome to try a manual reconnect anytime using the button below.": "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich werde \u00fcber die n\u00e4chsten Minuten versuchen, zu reconnecten, aber Du kannst mittels des folgenden Buttons auch jederzeit einen manuellen Reconnect ansto\u00dfen.", "Rendering failed": "Rendering fehlgeschlagen", "Upload Folder": "Uploadverzeichnis", "descending": "absteigend", "X": "X", "Add user": "Nutzer hinzuf\u00fcgen", "GCODE commands in layer": "GCODE Kommandos in Schicht", "Estimated print time": "Gesch\u00e4tzte Druckzeit", "Serial Connection": "Serielle Verbindung", "Control": "Kontrolle", "Password": "Passwort", "Also show next layer": "Auch n\u00e4chste Schicht anzeigen", "Print Time": "Druckdauer", "Sort by file size": "Nach Gr\u00f6\u00dfe sortieren", "Machine State": "Druckerstatus", "default": "Standard", "API": "API", "Printing from SD": "Drucke von SD", "Terminal filters": "Terminalfilter", "Change password for user \"%(user)s\"": "Passwort\u00e4nderung f\u00fcr Nutzer \"%(user)s\"", "Enable Temperature Graph": "Temperaturgraph aktivieren", "Delete user": "Nutzer l\u00f6schen", "Confirm Password": "Passwort best\u00e4tigen", "Disconnect": "Trennen", "Slicing done": "Slicing abgeschlossen", "Initialize SD card": "SD-Karte initialisieren", "System": "System", "Send": "Senden", "State": "Status", "Version": "Version", "YYYY-MM-DD HH:mm": "DD.MM.YYYY HH:mm", "Attempt to reconnect": "Erneut verbinden", "Streaming done": "Streaming abgeschlossen", "violet": "Violett", "Print": "Drucken", "Layer count": "Schichtanzahl", "OctoPrint Settings": "OctoPrint Einstellungen", "Are you sure?": "Bist Du sicher?", "blue": "Blau", "Printer": "Drucker", "Tool": "Werkzeug", "Settings": "Einstellungen", "Path to FFMPEG": "Pfad zu FFMPEG", "Upload to SD": "Upload (SD)", "The command \"%(command)s\" could not be executed.": "Das Kommando \"%(command)s\" konnte nicht ausgef\u00fchrt werden.", "Printed": "Gedruckt", "Layer number": "Schichtnummer", "Sync with job progress": "Job mit Fortschritt synchronisieren", "Circular": "Rund", "Total filament used": "Gesamtmenge genutzten Filaments", "red": "Rot", "Save as default": "Als Standard speichern", "Slicing ...": "Slice ...", "Last Print Time": "Letzte Druckdauer", "Target": "Soll", "Streaming ...": "Streame ...", "Logout successful": "Logout erfolgreich", "Now rendering timelapse %(movie_basename)s": "Rendere Zeitrafferaufnahme %(movie_basename)s", "Documentation": "Dokumentation", "%(hour)02d:%(minute)02d:%(second)02d": "%(hour)02d:%(minute)02d:%(second)02d", "Upload": "Upload", "ascending": "aufsteigend", "Model size": "Modelgr\u00f6\u00dfe", "Temperatures": "Temperaturen", "visited": "besucht", "Timed": "Nach Zeit", "Edit user \"%(user)s\"": "Editiere Nutzer \"%(user)s\"", "Snapshot URL": "Snapshot-URL", "Release SD card": "SD-Karte auswerfen", "Server is offline": "Der Server ist offline", "Log communication to serial.log (might negatively impact performance)": "Logge die Kommunikation in das serial.log (kann die Performance negativ beeinflussen)", "Sort by upload date": "Nach Uploaddatum sortieren", "Change Password": "Passwort \u00e4ndern", "Logs": "Logs", "Hotend": "Hotend", "Show retracts": "Retracts zeigen", "Keep Access Control Enabled": "Zugangsbeschr\u00e4nkung aktiviert lassen", "Upload locally": "Upload (lokal)", "Select Tool...": "Werkzeug w\u00e4hlen...", "Paused": "Pausiert", "Continue": "Fortsetzen", "Radius": "Radius", "The command \"%(command)s\" executed successfully": "Das Kommando \"%(command)s\" wurde erfolgreich ausgef\u00fchrt", "Features": "Funktionen", "Download": "Download", "GCode Viewer": "GCode Viewer", "Also show previous layer": "Auch vorherige Schicht anzeigen", "Enable OctoPrint watermark in timelapse movies": "OctoPrint Wasserzeichen in Zeitrafferaufnahmen aktivieren", "Repetier": "Repetier", "Login successful": "Login erfolgreich", "Finished Timelapses": "Abgeschlossene Zeitraffer", "Rendering of timelapse %(movie_basename)s failedwith return code %(returncode)s": "Rendering der Zeitrafferaufnahme %(movie_basename)s fehlgeschlagen mit Returncode %(returncode)s", "Pause": "Pause", "Temperature": "Temperatur", "Enable slicing via Cura": "Slicing mittels Cura aktivieren", "Access Control": "Zugangsbeschr\u00e4nkung", "Analyzing...": "Analysiere...", "just now": "gerade eben", "Operational": "Bereit", "Send a checksum with every command": "Eine Pr\u00fcfsumme mit jedem Kommando senden", "Autodetection timeout": "Autodetectiontimeout", "Connecting": "Verbinde", "Free": "Frei", "Closed": "Geschlossen", "Refresh SD files": "SD-Dateien aktualisieren", "Flip webcam vertically": "Webcam vertikal flippen", "Path to Cura config": "Pfad zur Cura-Konfiguration", "Filament": "Filament", "Could not slice %(stl)s to %(gcode)s: %(reason)s": "Konnte %(stl)s nicht nach %(gcode)s slicen: %(reason)s", "Baudrate": "Baudrate", "Detecting baudrate": "Detektiere Baudrate", "Date": "Datum", "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds": "%(local)s nach %(remote)s gestreamt, dauerte %(time).2f Sekunden", "Show moves": "Bewegungen zeigen", "Motors off": "Motoren aus", "Detecting serial port": "Detektiere Serialport", "New Password": "Neues Passwort", "Logout": "Logout", "Offset": "Offset", "Analyzed": "Analysiert", "Auto-connect on server startup": "Automatisch bei Serverstart verbinden", "Printer Parameters": "Druckerparameter", "E": "E", "Restart": "Neu starten", "Search...": "Suchen...", "Slicing failed": "Slicing fehlgeschlagen", "Actual": "Ist", "Active": "Aktiv", "Creation date": "Erstellungsdatum", "Hint: You can also drag and drop files on this page to upload them.": "Hinweis: Du kannst auch Dateien auf diese Seite ziehen um sie hochzuladen.", "Interval": "Intervall", "N/A": "(nicht vorhanden)", "Bed": "Bett", "Auto-connect to printer on server start": "Automatisch bei Serverstart verbinden", "orange": "Orange", "Connection": "Verbindung", "Error": "Fehler", "On Z Change": "Bei Ebenenwechsel", "Timelapse post roll (in rendered seconds)": "Zeitraffernachlauf (in gerenderten Sekunden)", "Z": "Z", "Are you sure you want to proceed?": "Bist Du sicher, dass du fortfahren willst?", "If you disable Access Control and your OctoPrint installation is accessible from the internet, your printer will be accessible by everyone - that also includes the bad guys!": "Wenn Du die Zugangsbeschr\u00e4nkung deaktivierst und Deine OctoPrint Installation vom Internet aus erreichbar ist, kann jeder auf Deinen Drucker zugreifen - auch die b\u00f6sen Jungs!", "Load": "Laden", "Set": "Setzen", "The server appears to be offline, at least I'm not getting any response from it. I could not reconnect automatically, but you may try a manual reconnect using the button below.": "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich konnte nicht automatisch reconnected, aber Du kannst mittels des folgenden Buttons einen manuellen Reconnect ansto\u00dfen.", "Zoom in on model": "Auf Model zoomen", "mm": "mm", "Saving ...": "Speichere ...", "RegExp": "RegExp", "Watched Folder": "Beobachtetes Verzeichnis", "General": "Allgemein", "Temperature timeout": "Temperaturtimeout", "Color": "Farbe", "Fans on": "L\u00fcfter an", "Swallow the first \"ok\" after a resend response": "Erstes \"ok\" nach Resend ignorieren", "Enable SD support": "SD-Unterst\u00fctzung aktivieren", "Connect": "Verbinden", "Cancel": "Abbruch", "sec": "Sek", "Warning": "Warnung", "Loading...": "Lade...", "Current API Key": "Aktueller API-Key", "Size": "Gr\u00f6\u00dfe", "Communication timeout": "Kommunikationstimeout", "Modification date": "\u00c4nderungsdatum", "Change password": "Passwort \u00e4ndern", "This will restart the print job from the beginning.": "Der Druckjob wird zur\u00fcckgesetzt und von vorne begonnen.", "Stream URL": "Stream-URL", "Sort by": "Sortieren", "Login failed": "Login fehlgeschlagen", "Abort": "Abbrechen", "Confirm": "Best\u00e4tigen", "Repeat Password": "Passwort wiederholen", "Terminal": "Terminal", "Autoscroll": "Autoscroll", "Print time for layer": "Druckdauer f\u00fcr Schicht", "Disable Access Control": "Zugangsbeschr\u00e4nkung deaktivieren", "Configure Access Control": "Zugangsbeschr\u00e4nkung konfigurieren", "Timelapse Configuration": "Zeitrafferkonfiguration", "Retract": "Retract", "Timelapse bitrate": "Zeitrafferbitrate", "Offline": "Offline", "API Key": "API Key", "Homepage": "Homepage", "Estimated Print Time": "Gesch\u00e4tzte Druckzeit", "Folders": "Verzeichnisse", "Bugs and Requests": "Bugs und Requests", "Save": "Speichern", "Default extrusion length": "Standard Extrusionsl\u00e4nge", "min": "Min", "Support TargetExtr%%n/TargetBed target temperature format": "TargetExtr%%n/TargetBed Zieltemperaturformat unterst\u00fctzen", "Connection timeout": "Verbindungstimeout", "Save config": "Konfiguration speichern", "Center viewport on model": "Ausschnitt auf Modell zentrieren", "User unknown or wrong password": "Nutzer unbekannt oder falsches Passwort", "Allow Cross Origin Resource Sharing (CORS)": "Cross Origin Resource Sharing (CORS) erlauben", "Appearance": "Aussehen", "Enable": "Aktivieren", "Uploading ...": "Uploade ...", "Logs Folder": "Logverzeichnis", "

    \n Please read the following, it is very important for your printer's health!\n

    \n

    \n OctoPrint by default now ships with Access Control enabled, meaning you won't be able to do anything with the\n printer unless you login first as a configured user. This is to prevent strangers - possibly with\n malicious intent - to gain access to your printer via the internet or another untrustworthy network\n and using it in such a way that it is damaged or worse (i.e. causes a fire).\n

    \n

    \n It looks like you haven't configured access control yet. Please set up an username and password for the\n initial administrator account who will have full access to both the printer and OctoPrint's settings, then click\n on \"Keep Access Control Enabled\":\n

    ": "

    \n Bitte lies die folgenden Zeilen aufmerksam durch, es ist sehr wichtig f\u00fcr die Gesundheit Deines Druckers!\n

    \n

    \n OctoPrint wird nun standardm\u00e4ssig mit aktivierter Zugangsbeschr\u00e4nkung ausgeliefert, das hei\u00dft, dass Du mit dem Drucker nichts\n anfangen kannst, wenn du nicht als einer der konfigurierten Nutzer eingeloggt bist. Das dient dem Zweck, Fremde mit\n m\u00f6glicherweise b\u00f6swilligen Absichten davon abzuhalten, auf Deinen Drucker \u00fcber das Internet oder ein anderes\n unsicheres Netzwerk zuzugreifen und ihn auf eine Art zu nutzen, die ihn besch\u00e4digt oder schlimmeres (z.B. ein Feuer verursacht).\n

    \n

    \n Es sieht so aus, als h\u00e4ttest Du die Zugriffsbeschr\u00e4nkung noch nicht konfiguriert. Bitte konfiguriere einen Usernamen\n und ein Passwort f\u00fcr das initiale Administratorkonto, das vollen Zugang zu sowohl dem Drucker als auch OctoPrints\n Einstellungen haben wird, und klicke dann auf \"Zugangsbeschr\u00e4nkung aktiviert lassen\".\n

    ", "Hide successfully printed files": "Erfolgreich gedruckte Dateien verbergen", "Username": "Username", "Off": "Aus", "Name": "Name", "Extruder Offsets": "Extruderoffsets", "Approx. Total Print Time": "Ungef\u00e4hre Gesamtdruckdauer", "Admin": "Admin", "

    \n Note: In case that your OctoPrint installation is only accessible from within a trustworthy network and you don't\n need Access Control for other reasons, you may alternatively disable Access Control. You should only\n do this if you are absolutely certain that only people you know and trust will be able to connect to it.\n

    \n

    \n Do NOT underestimate the risk of an unsecured access from the internet to your printer!\n

    ": "

    \n Beachte: Falls Deine OctoPrint Installation ausschlie\u00dflich innerhalb eines vertrauensw\u00fcrdigen Netzwerks\n erreicht werden kann und Du die Zugangsbeschr\u00e4nkung nicht f\u00fcr andere Zwecke ben\u00f6tigst, kannst Du sie alternativ auch\n deaktivieren. Du solltest das nur tun, wenn Du Dir absolut sicher bist, dass nur Leute darauf zugreifen k\u00f6nnen, die du kennst\n und denen du vertraust\n

    \n

    \n UNTERSCH\u00c4TZE NICHT das Risiko eines ungesicherten Zugriffs aus dem Internet auf Deinen Drucker!\n

    ", "Timelapse": "Zeitraffer", "Remove": "Entfernen", "Reload": "Neu laden", "Printing": "Drucke", "Only show files stored on SD": "Nur auf SD abgelegte Dateien anzeigen", "Y": "Y", "Fans off": "L\u00fcfter aus", "Login": "Login", "Timelapse ready": "Zeitraffer fertig", "Timelapse Mode": "Zeitraffermodus", "Timelapse Folder": "Zeitrafferverzeichnis", "Extruder": "Extruder", "Could not upload the file. Make sure that it is a GCODE file and has the extension \".gcode\" or \".gco\" or that it is an STL file with the extension \".stl\" and slicing support is enabled and configured.": "Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um eine GCODE-Datei mit der Extension \".gcode\" oder \".gco\" oder um eine STL-Datei mit der Extension \".stl\" handelt und in letzterem Fall auch der Slicingsupport aktiviert ist.", "SD status timeout": "SD-Status-Timeout", "SD not initialized": "SD-Karte ist nicht initialisiert", "Update User": "Nutzer editieren", "off": "Aus", "Serial Port": "Serialport", "Flip webcam horizontally": "Webcam horizontal flippen", "Wait for start on connect": "Bei der Verbindung auf start warten", "Transfering file to SD": "Sende Datei zu SD", "OctoPrint": "OctoPrint", "Layer height": "Schichth\u00f6he", "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds": "%(stl)s nach %(gcode)s geslicet, dauerte %(time).2f Sekunden", "Extrude": "Extrude", "green": "Gr\u00fcn", "File": "Datei", "You are now logged in as \"%(username)s\"": "Du bist jetzt eingeloggt als \"%(username)s\"", "Axis": "Achse", "Filament used by layer": "Genutztes Filament in Schicht"}} ; \ No newline at end of file diff --git a/src/octoprint/translations/de/LC_MESSAGES/messages.mo b/src/octoprint/translations/de/LC_MESSAGES/messages.mo index 384f036c2e9a2c21f22e0a8b9653f97c7dd6a5df..cc95c9403465f94771945f43852cdec59f34a82f 100644 GIT binary patch delta 4477 zcmYM$32;!w8Nl%k1PBS?$Uz9<2uBF!AR*xhsDKTm^nzAwX(@Gj401`8Qk-Hc4?4xM zRvliwXT3eM`n+_rff{hgl5-YZY10t8gbfhX3Dg$=<|L5&YGZ}un@9o?DzHj$E z@^VYY`Ie02L|*12fuCL(Aq>EWv+VuIQRG!I>(7#W|0p){s&VI&sdLhOetu@u*%5A47mxDT`OFgorn9D)}y z7Yn%PJVS91j>mHR8W!S8^!bM|ll8+!8ZNLE&1hTfKZhh6cA}XaLVm*${^^D9N3Y>9 z`aO!%d1}$|6VQrGK^Ja9pP!3XY&rI3{cumb@DLi=qtVTnNB;paINAOZi=N;X9Gz5mun3ZALR( zi&QhPB&pCI`-7n$geEh1X&>{t~^v1r7Lj*ctzbop5{Xzkmj`JMAZ- zE#BB4ZyZ7=J`(%Ka7RW6r;%e4HdIkYX55QLa*6}uLZ|D}=iWmD{ulZk_yjvDP@e`^ zfR68vdA|RH;*HVR$c^!6iJNgS{tCz8PRz!S(5QXd}_iTOdN2EMgd+xOV^2X4WtK}aUtemY3$dd<0c`$VLJc(8xu63W#iKT zeu@VEGccMD0)yPo@w7hD~E z03Ej;`BNZlLNnci&eMj)cqsZF8fci9Ce|;Z;a-hEBdtW=`zEx+v#=b$g`dYY=z_1K znY@K>;7N4i*6Y*f4x$179n0_(x)t4SNVljMJ;X@`4Hs;P7p9>Z%t9ad2AauY{3`MAorzBLP4vMf=ojn!oQ_sx33j~yEi@eX8??0BumrcGk-ic8 z@1Ox)MJtp&IUU~{U9cEE8$-~osESU-jX6pcQ`_6C-+_Mk&68mg*$Bz(wqf z*U*ge*#|!ym1w{-&~bCo*Z4Lx@Vk-o7*?b6y%_HwMiV@Z&U@h|_TL9GKa)36?-%f$cilmaNg7cZ7p8Eb z7A?(EG~;{l7JLMU;y-a1=1xr~7>yp*1~ju9(FCTW0nI^6J|8_hcOq|MNRV$)*k$7s zjgPTgMhO3ymfkqglxAA=*>vI|*m0=P%%`Finu9}d5xVdLScQ+r{z3GxzKsTQ1_$H& z@qW@{dU_fMp(Uw7CmM%FJRPmb?CAHRcVIc!n=uQwU^jdQYw=I9|1NqcFQD^x{apG9 z&rMB2FB-lMeXtUTq7TeS2ZZ_Y{z5d6yU~U2#Y}t%v#`kf!nn^;;`J9W=*Bj6)9g0wZo9PG?pUtXee6!D zUVl)u**df=Erza*c62DZ`Ek{C$EjO&h7DsaCH=$C+VlDSyziEC9`E<($NTl;{r-NF z|18ehxi~91Qk=Uq@Y6mkgzorszO(=TThXbGhg`#n=-ou@djZF8DC|{#?u@et3?70hXW@EsOJ4kYdAHw302zzwjRab-+)e zpJH$3SJ8FKOVj83p&hA41J@#tgb8TJW?)C+hlY6JmuP15uoxGi3;r(NUys$y-@-k3 z60P|4o2(>+t!QF9<9t6F@DSdBpQGzuMHA|9GyP{uR#NCK+a{@h$gZJeeM{#&PDY3&?7A%uLu42Q1#$~5A??}9E@Y}n`mM$ zpp~z{5AjvBm9scu-d}*8`sb0N!z<`kY(>}q0NsL*{?s-$&m>6Wfdi`U`q?{*G3565X0}SdHN;A$%2X#U1#4yokLk>A$V( zUX^Az32pJW(QmkVbfHEx!3F47XA@fS2JDC1(XBg!d3YIf(VHfihZa(bCSHveG$LVO z2gafS?n5i7$9!yv_h+FWr@8U^Dzx?MkYd8dI6sW8^Di{O1{*RT?k_Wje$ zYS9Pl&<7@B0oJ1x{TQw2r)c1rScs3K_n$-)ein1^Ma;&R;(R%p(8@SplbVF}@x~kI z!kglJJ8mMQ-N^9>b8g{RD=Rjmne5_#7-;w4^u71dgb$$K1OLEG2hapBq0e8(V$5OR z^ZfnamBCmpbVplUk7bx(Ev~>q{0QBuV`!!4(C_+-NRFX19~sZUD9m&a`!cVO&cn{k z*P-j}z&zrIeGFW1KicBM=t4))L-sk^ne3r-01MFo1EM3aig_LS{w(y6J%(03AG_c) z$X82Ph2GzVNoNN88Q8j0Xd>s)7F|X&y^%I}zXa__1^>0;R5X#gVQJv$Xu>~01J6YM zMhTCh1uex+*o<9p^Dz3~i@}Fnu)_0bi!Y&xv>l!v%8tk%Euk1qXdrgO;dmQPLVw9T zg+BKhx`jK@GjJRYcp6LadYqTsM*j^wh*b<&i;k$);r2Aqyo7V6?#_IpwDeX6Z#u^ zRt}++ok72V&Y=OmL+w@8#k$eyRy~9!G8=9A6KFzFd3KL*mP%F z>3Pf?D$E?J@oD8f(GJyMFT4W{{2<r*fvAIG*h53BLnIDZ#Cl)KRYN0CCqspx4mf&bzFKmS)5_(Ij) z>4Rg?2gag_OhyCMV=n#(^RWT#)GV~(U!l*>#~fUY+4y3d{{~HHd7L+A u-$DazZ7C>Pncwnu>B6G6!^#I&-(Fp_xNbnNI3C(EbHLidmj1QdI{go)3CQsP diff --git a/src/octoprint/translations/de/LC_MESSAGES/messages.po b/src/octoprint/translations/de/LC_MESSAGES/messages.po index 57a27bbbf..8b59b9796 100644 --- a/src/octoprint/translations/de/LC_MESSAGES/messages.po +++ b/src/octoprint/translations/de/LC_MESSAGES/messages.po @@ -10,8 +10,8 @@ msgid "" msgstr "" "Project-Id-Version: OctoPrint\n" "Report-Msgid-Bugs-To: i18n@octoprint.org\n" -"POT-Creation-Date: 2014-08-27 20:04+0200\n" -"PO-Revision-Date: 2014-08-27 20:05+0100\n" +"POT-Creation-Date: 2014-08-28 15:52+0200\n" +"PO-Revision-Date: 2014-08-28 15:53+0100\n" "Last-Translator: Gina Häußge \n" "Language-Team: German (http://www.transifex.com/projects/p/octoprint/" "language/de/)\n" @@ -628,6 +628,10 @@ msgstr "Passwort ändern" msgid "Logout" msgstr "Logout" +#: src/octoprint/templates/index.jinja2:103 +msgid "Connection" +msgstr "Verbindung" + #: src/octoprint/templates/index.jinja2:107 #: src/octoprint/templates/settings.jinja2:30 msgid "Serial Port" diff --git a/src/octoprint/translations/messages.pot b/src/octoprint/translations/messages.pot index 523f6944a..0ffe632aa 100644 --- a/src/octoprint/translations/messages.pot +++ b/src/octoprint/translations/messages.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: OctoPrint 1.2.0-dev-124-g571cf9c-dirty\n" +"Project-Id-Version: OctoPrint 1.2.0-dev-126-g2943343-dirty\n" "Report-Msgid-Bugs-To: i18n@octoprint.org\n" -"POT-Creation-Date: 2014-08-27 20:04+0200\n" +"POT-Creation-Date: 2014-08-28 15:52+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -572,6 +572,10 @@ msgstr "" msgid "Logout" msgstr "" +#: src/octoprint/templates/index.jinja2:103 +msgid "Connection" +msgstr "" + #: src/octoprint/templates/index.jinja2:107 #: src/octoprint/templates/settings.jinja2:30 msgid "Serial Port" From 35b1232b0ab29aadd4dbbe3b89c80ee2d11ccabd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 28 Aug 2014 15:59:57 +0200 Subject: [PATCH 47/50] Fixed hen-egg problem in setup.py setup.py tried to use babel imports before the necessary requirements were fetched. Now only tries to import that stuff if babel_{refresh|compile|new} is called instead of importing it in the file header. --- setup.py | 5 +++-- src/octoprint/static/js/i18n/de.js | 2 +- .../translations/de/LC_MESSAGES/messages.mo | Bin 18920 -> 18920 bytes .../translations/de/LC_MESSAGES/messages.po | 11 ++++++----- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/setup.py b/setup.py index 207f03710..fb3a6b5b4 100644 --- a/setup.py +++ b/setup.py @@ -13,8 +13,6 @@ import os import shutil import glob -from babel.messages import frontend as babel - I18N_MAPPING_FILE = "babel.cfg" I18N_DOMAIN = "messages" I18N_INPUT_DIRS = "." @@ -63,6 +61,7 @@ class NewTranslation(Command): boolean_options = [] def __init__(self, dist, **kw): + from babel.messages import frontend as babel self.babel_init_messages = babel.init_catalog(dist) Command.__init__(self, dist, **kw) @@ -86,6 +85,7 @@ class RefreshTranslation(Command): boolean_options = [] def __init__(self, dist, **kw): + from babel.messages import frontend as babel self.babel_extract_messages = babel.extract_messages(dist) self.babel_update_messages = babel.update_catalog(dist) Command.__init__(self, dist, **kw) @@ -116,6 +116,7 @@ class CompileTranslation(Command): boolean_options = [] def __init__(self, dist, **kw): + from babel.messages import frontend as babel self.babel_compile_messages = babel.compile_catalog(dist) Command.__init__(self, dist, **kw) diff --git a/src/octoprint/static/js/i18n/de.js b/src/octoprint/static/js/i18n/de.js index bc65a0c47..4dec65711 100644 --- a/src/octoprint/static/js/i18n/de.js +++ b/src/octoprint/static/js/i18n/de.js @@ -1 +1 @@ -window.BABEL_TO_LOAD_de = {"locale": "de", "domain": "messages", "plural_expr": "(n != 1)", "messages": {"": "Project-Id-Version: OctoPrint\nReport-Msgid-Bugs-To: i18n@octoprint.org\nPOT-Creation-Date: 2014-08-28 15:52+0200\nPO-Revision-Date: 2014-08-28 15:53+0100\nLast-Translator: Gina H\u00e4u\u00dfge \nLanguage-Team: German (http://www.transifex.com/projects/p/octoprint/language/de/)\nPlural-Forms: nplurals=2; plural=(n != 1)\nMIME-Version: 1.0\nContent-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 8bit\nGenerated-By: Babel 1.3\n", "Print Time Left": "Verbleibende Druckdauer", "Proceed": "Fortfahren", "Timelapse Temp Folder": "Tempor\u00e4res Zeitrafferverzeichnis", "Title": "Titel", "Only show files stored locally": "Nur lokal abgelegte Dateien anzeigen", "yellow": "Gelb", "Path to Cura": "Pfad zu Cura", "Action": "Aktion", "Passwords do not match": "Passw\u00f6rter nicht identisch", "Sort by name": "Nach Name sortieren", "Save connection settings": "Verbindungseinstellungen speichern", "Rendering timelapse": "Zeitraffer wird gerendert", "Cura": "Cura", "Files": "Dateien", "Bed Size": "Bettdimensionen", "Always assume SD card is present": "Immer davon ausgehen, dass eine SD-Karte vorhanden ist", "Load and Print": "Laden und Drucken", "Sending file to SD": "Sende Datei zu SD", "Number of Extruders": "Anzahl Extruder", "black": "Schwarz", "Last Printed": "Zuletzt gedruckt", "Sourcecode": "Quellcode", "Estimated layer height": "Gesch\u00e4tzte Schichth\u00f6he", "You are now logged out": "Du bist jetzt ausgeloggt", "Uploaded": "Hochgeladen", "Opening serial port": "\u00d6ffnet Serialport", "New timelapse %(movie_basename)s is done rendering.": "Neue Zeitrafferaufnahme %(movie_basename)s wurde fertig gerendert", "Invert control": "Invertieren", "Webcam": "Webcam", "Remember me": "Login merken", "Enable GCode Visualizer": "GCode Viewer aktivieren", "The server appears to be offline, at least I'm not getting any response from it. I'll try to reconnect automatically over the next couple of minutes, however you are welcome to try a manual reconnect anytime using the button below.": "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich werde \u00fcber die n\u00e4chsten Minuten versuchen, zu reconnecten, aber Du kannst mittels des folgenden Buttons auch jederzeit einen manuellen Reconnect ansto\u00dfen.", "Rendering failed": "Rendering fehlgeschlagen", "Upload Folder": "Uploadverzeichnis", "descending": "absteigend", "X": "X", "Add user": "Nutzer hinzuf\u00fcgen", "GCODE commands in layer": "GCODE Kommandos in Schicht", "Estimated print time": "Gesch\u00e4tzte Druckzeit", "Serial Connection": "Serielle Verbindung", "Control": "Kontrolle", "Password": "Passwort", "Also show next layer": "Auch n\u00e4chste Schicht anzeigen", "Print Time": "Druckdauer", "Sort by file size": "Nach Gr\u00f6\u00dfe sortieren", "Machine State": "Druckerstatus", "default": "Standard", "API": "API", "Printing from SD": "Drucke von SD", "Terminal filters": "Terminalfilter", "Change password for user \"%(user)s\"": "Passwort\u00e4nderung f\u00fcr Nutzer \"%(user)s\"", "Enable Temperature Graph": "Temperaturgraph aktivieren", "Delete user": "Nutzer l\u00f6schen", "Confirm Password": "Passwort best\u00e4tigen", "Disconnect": "Trennen", "Slicing done": "Slicing abgeschlossen", "Initialize SD card": "SD-Karte initialisieren", "System": "System", "Send": "Senden", "State": "Status", "Version": "Version", "YYYY-MM-DD HH:mm": "DD.MM.YYYY HH:mm", "Attempt to reconnect": "Erneut verbinden", "Streaming done": "Streaming abgeschlossen", "violet": "Violett", "Print": "Drucken", "Layer count": "Schichtanzahl", "OctoPrint Settings": "OctoPrint Einstellungen", "Are you sure?": "Bist Du sicher?", "blue": "Blau", "Printer": "Drucker", "Tool": "Werkzeug", "Settings": "Einstellungen", "Path to FFMPEG": "Pfad zu FFMPEG", "Upload to SD": "Upload (SD)", "The command \"%(command)s\" could not be executed.": "Das Kommando \"%(command)s\" konnte nicht ausgef\u00fchrt werden.", "Printed": "Gedruckt", "Layer number": "Schichtnummer", "Sync with job progress": "Job mit Fortschritt synchronisieren", "Circular": "Rund", "Total filament used": "Gesamtmenge genutzten Filaments", "red": "Rot", "Save as default": "Als Standard speichern", "Slicing ...": "Slice ...", "Last Print Time": "Letzte Druckdauer", "Target": "Soll", "Streaming ...": "Streame ...", "Logout successful": "Logout erfolgreich", "Now rendering timelapse %(movie_basename)s": "Rendere Zeitrafferaufnahme %(movie_basename)s", "Documentation": "Dokumentation", "%(hour)02d:%(minute)02d:%(second)02d": "%(hour)02d:%(minute)02d:%(second)02d", "Upload": "Upload", "ascending": "aufsteigend", "Model size": "Modelgr\u00f6\u00dfe", "Temperatures": "Temperaturen", "visited": "besucht", "Timed": "Nach Zeit", "Edit user \"%(user)s\"": "Editiere Nutzer \"%(user)s\"", "Snapshot URL": "Snapshot-URL", "Release SD card": "SD-Karte auswerfen", "Server is offline": "Der Server ist offline", "Log communication to serial.log (might negatively impact performance)": "Logge die Kommunikation in das serial.log (kann die Performance negativ beeinflussen)", "Sort by upload date": "Nach Uploaddatum sortieren", "Change Password": "Passwort \u00e4ndern", "Logs": "Logs", "Hotend": "Hotend", "Show retracts": "Retracts zeigen", "Keep Access Control Enabled": "Zugangsbeschr\u00e4nkung aktiviert lassen", "Upload locally": "Upload (lokal)", "Select Tool...": "Werkzeug w\u00e4hlen...", "Paused": "Pausiert", "Continue": "Fortsetzen", "Radius": "Radius", "The command \"%(command)s\" executed successfully": "Das Kommando \"%(command)s\" wurde erfolgreich ausgef\u00fchrt", "Features": "Funktionen", "Download": "Download", "GCode Viewer": "GCode Viewer", "Also show previous layer": "Auch vorherige Schicht anzeigen", "Enable OctoPrint watermark in timelapse movies": "OctoPrint Wasserzeichen in Zeitrafferaufnahmen aktivieren", "Repetier": "Repetier", "Login successful": "Login erfolgreich", "Finished Timelapses": "Abgeschlossene Zeitraffer", "Rendering of timelapse %(movie_basename)s failedwith return code %(returncode)s": "Rendering der Zeitrafferaufnahme %(movie_basename)s fehlgeschlagen mit Returncode %(returncode)s", "Pause": "Pause", "Temperature": "Temperatur", "Enable slicing via Cura": "Slicing mittels Cura aktivieren", "Access Control": "Zugangsbeschr\u00e4nkung", "Analyzing...": "Analysiere...", "just now": "gerade eben", "Operational": "Bereit", "Send a checksum with every command": "Eine Pr\u00fcfsumme mit jedem Kommando senden", "Autodetection timeout": "Autodetectiontimeout", "Connecting": "Verbinde", "Free": "Frei", "Closed": "Geschlossen", "Refresh SD files": "SD-Dateien aktualisieren", "Flip webcam vertically": "Webcam vertikal flippen", "Path to Cura config": "Pfad zur Cura-Konfiguration", "Filament": "Filament", "Could not slice %(stl)s to %(gcode)s: %(reason)s": "Konnte %(stl)s nicht nach %(gcode)s slicen: %(reason)s", "Baudrate": "Baudrate", "Detecting baudrate": "Detektiere Baudrate", "Date": "Datum", "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds": "%(local)s nach %(remote)s gestreamt, dauerte %(time).2f Sekunden", "Show moves": "Bewegungen zeigen", "Motors off": "Motoren aus", "Detecting serial port": "Detektiere Serialport", "New Password": "Neues Passwort", "Logout": "Logout", "Offset": "Offset", "Analyzed": "Analysiert", "Auto-connect on server startup": "Automatisch bei Serverstart verbinden", "Printer Parameters": "Druckerparameter", "E": "E", "Restart": "Neu starten", "Search...": "Suchen...", "Slicing failed": "Slicing fehlgeschlagen", "Actual": "Ist", "Active": "Aktiv", "Creation date": "Erstellungsdatum", "Hint: You can also drag and drop files on this page to upload them.": "Hinweis: Du kannst auch Dateien auf diese Seite ziehen um sie hochzuladen.", "Interval": "Intervall", "N/A": "(nicht vorhanden)", "Bed": "Bett", "Auto-connect to printer on server start": "Automatisch bei Serverstart verbinden", "orange": "Orange", "Connection": "Verbindung", "Error": "Fehler", "On Z Change": "Bei Ebenenwechsel", "Timelapse post roll (in rendered seconds)": "Zeitraffernachlauf (in gerenderten Sekunden)", "Z": "Z", "Are you sure you want to proceed?": "Bist Du sicher, dass du fortfahren willst?", "If you disable Access Control and your OctoPrint installation is accessible from the internet, your printer will be accessible by everyone - that also includes the bad guys!": "Wenn Du die Zugangsbeschr\u00e4nkung deaktivierst und Deine OctoPrint Installation vom Internet aus erreichbar ist, kann jeder auf Deinen Drucker zugreifen - auch die b\u00f6sen Jungs!", "Load": "Laden", "Set": "Setzen", "The server appears to be offline, at least I'm not getting any response from it. I could not reconnect automatically, but you may try a manual reconnect using the button below.": "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich konnte nicht automatisch reconnected, aber Du kannst mittels des folgenden Buttons einen manuellen Reconnect ansto\u00dfen.", "Zoom in on model": "Auf Model zoomen", "mm": "mm", "Saving ...": "Speichere ...", "RegExp": "RegExp", "Watched Folder": "Beobachtetes Verzeichnis", "General": "Allgemein", "Temperature timeout": "Temperaturtimeout", "Color": "Farbe", "Fans on": "L\u00fcfter an", "Swallow the first \"ok\" after a resend response": "Erstes \"ok\" nach Resend ignorieren", "Enable SD support": "SD-Unterst\u00fctzung aktivieren", "Connect": "Verbinden", "Cancel": "Abbruch", "sec": "Sek", "Warning": "Warnung", "Loading...": "Lade...", "Current API Key": "Aktueller API-Key", "Size": "Gr\u00f6\u00dfe", "Communication timeout": "Kommunikationstimeout", "Modification date": "\u00c4nderungsdatum", "Change password": "Passwort \u00e4ndern", "This will restart the print job from the beginning.": "Der Druckjob wird zur\u00fcckgesetzt und von vorne begonnen.", "Stream URL": "Stream-URL", "Sort by": "Sortieren", "Login failed": "Login fehlgeschlagen", "Abort": "Abbrechen", "Confirm": "Best\u00e4tigen", "Repeat Password": "Passwort wiederholen", "Terminal": "Terminal", "Autoscroll": "Autoscroll", "Print time for layer": "Druckdauer f\u00fcr Schicht", "Disable Access Control": "Zugangsbeschr\u00e4nkung deaktivieren", "Configure Access Control": "Zugangsbeschr\u00e4nkung konfigurieren", "Timelapse Configuration": "Zeitrafferkonfiguration", "Retract": "Retract", "Timelapse bitrate": "Zeitrafferbitrate", "Offline": "Offline", "API Key": "API Key", "Homepage": "Homepage", "Estimated Print Time": "Gesch\u00e4tzte Druckzeit", "Folders": "Verzeichnisse", "Bugs and Requests": "Bugs und Requests", "Save": "Speichern", "Default extrusion length": "Standard Extrusionsl\u00e4nge", "min": "Min", "Support TargetExtr%%n/TargetBed target temperature format": "TargetExtr%%n/TargetBed Zieltemperaturformat unterst\u00fctzen", "Connection timeout": "Verbindungstimeout", "Save config": "Konfiguration speichern", "Center viewport on model": "Ausschnitt auf Modell zentrieren", "User unknown or wrong password": "Nutzer unbekannt oder falsches Passwort", "Allow Cross Origin Resource Sharing (CORS)": "Cross Origin Resource Sharing (CORS) erlauben", "Appearance": "Aussehen", "Enable": "Aktivieren", "Uploading ...": "Uploade ...", "Logs Folder": "Logverzeichnis", "

    \n Please read the following, it is very important for your printer's health!\n

    \n

    \n OctoPrint by default now ships with Access Control enabled, meaning you won't be able to do anything with the\n printer unless you login first as a configured user. This is to prevent strangers - possibly with\n malicious intent - to gain access to your printer via the internet or another untrustworthy network\n and using it in such a way that it is damaged or worse (i.e. causes a fire).\n

    \n

    \n It looks like you haven't configured access control yet. Please set up an username and password for the\n initial administrator account who will have full access to both the printer and OctoPrint's settings, then click\n on \"Keep Access Control Enabled\":\n

    ": "

    \n Bitte lies die folgenden Zeilen aufmerksam durch, es ist sehr wichtig f\u00fcr die Gesundheit Deines Druckers!\n

    \n

    \n OctoPrint wird nun standardm\u00e4ssig mit aktivierter Zugangsbeschr\u00e4nkung ausgeliefert, das hei\u00dft, dass Du mit dem Drucker nichts\n anfangen kannst, wenn du nicht als einer der konfigurierten Nutzer eingeloggt bist. Das dient dem Zweck, Fremde mit\n m\u00f6glicherweise b\u00f6swilligen Absichten davon abzuhalten, auf Deinen Drucker \u00fcber das Internet oder ein anderes\n unsicheres Netzwerk zuzugreifen und ihn auf eine Art zu nutzen, die ihn besch\u00e4digt oder schlimmeres (z.B. ein Feuer verursacht).\n

    \n

    \n Es sieht so aus, als h\u00e4ttest Du die Zugriffsbeschr\u00e4nkung noch nicht konfiguriert. Bitte konfiguriere einen Usernamen\n und ein Passwort f\u00fcr das initiale Administratorkonto, das vollen Zugang zu sowohl dem Drucker als auch OctoPrints\n Einstellungen haben wird, und klicke dann auf \"Zugangsbeschr\u00e4nkung aktiviert lassen\".\n

    ", "Hide successfully printed files": "Erfolgreich gedruckte Dateien verbergen", "Username": "Username", "Off": "Aus", "Name": "Name", "Extruder Offsets": "Extruderoffsets", "Approx. Total Print Time": "Ungef\u00e4hre Gesamtdruckdauer", "Admin": "Admin", "

    \n Note: In case that your OctoPrint installation is only accessible from within a trustworthy network and you don't\n need Access Control for other reasons, you may alternatively disable Access Control. You should only\n do this if you are absolutely certain that only people you know and trust will be able to connect to it.\n

    \n

    \n Do NOT underestimate the risk of an unsecured access from the internet to your printer!\n

    ": "

    \n Beachte: Falls Deine OctoPrint Installation ausschlie\u00dflich innerhalb eines vertrauensw\u00fcrdigen Netzwerks\n erreicht werden kann und Du die Zugangsbeschr\u00e4nkung nicht f\u00fcr andere Zwecke ben\u00f6tigst, kannst Du sie alternativ auch\n deaktivieren. Du solltest das nur tun, wenn Du Dir absolut sicher bist, dass nur Leute darauf zugreifen k\u00f6nnen, die du kennst\n und denen du vertraust\n

    \n

    \n UNTERSCH\u00c4TZE NICHT das Risiko eines ungesicherten Zugriffs aus dem Internet auf Deinen Drucker!\n

    ", "Timelapse": "Zeitraffer", "Remove": "Entfernen", "Reload": "Neu laden", "Printing": "Drucke", "Only show files stored on SD": "Nur auf SD abgelegte Dateien anzeigen", "Y": "Y", "Fans off": "L\u00fcfter aus", "Login": "Login", "Timelapse ready": "Zeitraffer fertig", "Timelapse Mode": "Zeitraffermodus", "Timelapse Folder": "Zeitrafferverzeichnis", "Extruder": "Extruder", "Could not upload the file. Make sure that it is a GCODE file and has the extension \".gcode\" or \".gco\" or that it is an STL file with the extension \".stl\" and slicing support is enabled and configured.": "Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um eine GCODE-Datei mit der Extension \".gcode\" oder \".gco\" oder um eine STL-Datei mit der Extension \".stl\" handelt und in letzterem Fall auch der Slicingsupport aktiviert ist.", "SD status timeout": "SD-Status-Timeout", "SD not initialized": "SD-Karte ist nicht initialisiert", "Update User": "Nutzer editieren", "off": "Aus", "Serial Port": "Serialport", "Flip webcam horizontally": "Webcam horizontal flippen", "Wait for start on connect": "Bei der Verbindung auf start warten", "Transfering file to SD": "Sende Datei zu SD", "OctoPrint": "OctoPrint", "Layer height": "Schichth\u00f6he", "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds": "%(stl)s nach %(gcode)s geslicet, dauerte %(time).2f Sekunden", "Extrude": "Extrude", "green": "Gr\u00fcn", "File": "Datei", "You are now logged in as \"%(username)s\"": "Du bist jetzt eingeloggt als \"%(username)s\"", "Axis": "Achse", "Filament used by layer": "Genutztes Filament in Schicht"}} ; \ No newline at end of file +window.BABEL_TO_LOAD_de = {"locale": "de", "domain": "messages", "plural_expr": "(n != 1)", "messages": {"": "Project-Id-Version: OctoPrint\nReport-Msgid-Bugs-To: i18n@octoprint.org\nPOT-Creation-Date: 2014-08-28 15:52+0200\nPO-Revision-Date: 2014-08-28 15:56+0100\nLast-Translator: Gina H\u00e4u\u00dfge \nLanguage-Team: German (http://www.transifex.com/projects/p/octoprint/language/de/)\nPlural-Forms: nplurals=2; plural=(n != 1)\nMIME-Version: 1.0\nContent-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 8bit\nGenerated-By: Babel 1.3\n", "Print Time Left": "Verbleibende Druckdauer", "Proceed": "Fortfahren", "Timelapse Temp Folder": "Tempor\u00e4res Zeitrafferverzeichnis", "Title": "Titel", "Only show files stored locally": "Nur lokal abgelegte Dateien anzeigen", "yellow": "Gelb", "Path to Cura": "Pfad zu Cura", "Action": "Aktion", "Passwords do not match": "Passw\u00f6rter nicht identisch", "Sort by name": "Nach Name sortieren", "Save connection settings": "Verbindungseinstellungen speichern", "Rendering timelapse": "Zeitraffer wird gerendert", "Cura": "Cura", "Files": "Dateien", "Bed Size": "Bettdimensionen", "Always assume SD card is present": "Immer davon ausgehen, dass eine SD-Karte vorhanden ist", "Load and Print": "Laden und Drucken", "Sending file to SD": "Sende Datei zu SD", "Number of Extruders": "Anzahl Extruder", "black": "Schwarz", "Last Printed": "Zuletzt gedruckt", "Sourcecode": "Quellcode", "Estimated layer height": "Gesch\u00e4tzte Schichth\u00f6he", "You are now logged out": "Du bist jetzt ausgeloggt", "Uploaded": "Hochgeladen", "Opening serial port": "\u00d6ffnet Serialport", "New timelapse %(movie_basename)s is done rendering.": "Neue Zeitrafferaufnahme %(movie_basename)s wurde fertig gerendert", "Invert control": "Invertieren", "Webcam": "Webcam", "Remember me": "Login merken", "Enable GCode Visualizer": "GCode Viewer aktivieren", "The server appears to be offline, at least I'm not getting any response from it. I'll try to reconnect automatically over the next couple of minutes, however you are welcome to try a manual reconnect anytime using the button below.": "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich werde \u00fcber die n\u00e4chsten Minuten versuchen, zu reconnecten, aber Du kannst mittels des folgenden Buttons auch jederzeit einen manuellen Reconnect ansto\u00dfen.", "Rendering failed": "Rendering fehlgeschlagen", "Upload Folder": "Uploadverzeichnis", "descending": "absteigend", "X": "X", "Add user": "Nutzer hinzuf\u00fcgen", "GCODE commands in layer": "GCODE Kommandos in Schicht", "Estimated print time": "Gesch\u00e4tzte Druckzeit", "Serial Connection": "Serielle Verbindung", "Control": "Kontrolle", "Password": "Passwort", "Also show next layer": "Auch n\u00e4chste Schicht anzeigen", "Print Time": "Druckdauer", "Sort by file size": "Nach Gr\u00f6\u00dfe sortieren", "Machine State": "Druckerstatus", "default": "Standard", "API": "API", "Printing from SD": "Drucke von SD", "Terminal filters": "Terminalfilter", "Change password for user \"%(user)s\"": "Passwort\u00e4nderung f\u00fcr Nutzer \"%(user)s\"", "Enable Temperature Graph": "Temperaturgraph aktivieren", "Delete user": "Nutzer l\u00f6schen", "Confirm Password": "Passwort best\u00e4tigen", "Disconnect": "Trennen", "Slicing done": "Slicing abgeschlossen", "Initialize SD card": "SD-Karte initialisieren", "System": "System", "Send": "Senden", "State": "Status", "Version": "Version", "YYYY-MM-DD HH:mm": "DD.MM.YYYY HH:mm", "Attempt to reconnect": "Erneut verbinden", "Streaming done": "Streaming abgeschlossen", "violet": "Violett", "Print": "Drucken", "Layer count": "Schichtanzahl", "OctoPrint Settings": "OctoPrint Einstellungen", "Are you sure?": "Bist Du sicher?", "blue": "Blau", "Printer": "Drucker", "Tool": "Werkzeug", "Settings": "Einstellungen", "Path to FFMPEG": "Pfad zu FFMPEG", "Upload to SD": "Upload (SD)", "The command \"%(command)s\" could not be executed.": "Das Kommando \"%(command)s\" konnte nicht ausgef\u00fchrt werden.", "Printed": "Gedruckt", "Layer number": "Schichtnummer", "Sync with job progress": "Job mit Fortschritt synchronisieren", "Circular": "Rund", "Total filament used": "Gesamtmenge genutzten Filaments", "red": "Rot", "Save as default": "Als Standard speichern", "Slicing ...": "Slice ...", "Last Print Time": "Letzte Druckdauer", "Target": "Soll", "Streaming ...": "Streame ...", "Logout successful": "Logout erfolgreich", "Now rendering timelapse %(movie_basename)s": "Rendere Zeitrafferaufnahme %(movie_basename)s", "Documentation": "Dokumentation", "%(hour)02d:%(minute)02d:%(second)02d": "%(hour)02d:%(minute)02d:%(second)02d", "Upload": "Upload", "ascending": "aufsteigend", "Model size": "Modelgr\u00f6\u00dfe", "Temperatures": "Temperaturen", "visited": "besucht", "Timed": "Nach Zeit", "Edit user \"%(user)s\"": "Editiere Nutzer \"%(user)s\"", "Snapshot URL": "Snapshot-URL", "Release SD card": "SD-Karte auswerfen", "Server is offline": "Der Server ist offline", "Log communication to serial.log (might negatively impact performance)": "Logge die Kommunikation in das serial.log (kann die Performance negativ beeinflussen)", "Sort by upload date": "Nach Uploaddatum sortieren", "Change Password": "Passwort \u00e4ndern", "Logs": "Logs", "Hotend": "Hotend", "Show retracts": "Retracts zeigen", "Keep Access Control Enabled": "Zugangsbeschr\u00e4nkung aktiviert lassen", "Upload locally": "Upload (lokal)", "Select Tool...": "Werkzeug w\u00e4hlen...", "Paused": "Pausiert", "Continue": "Fortsetzen", "Radius": "Radius", "The command \"%(command)s\" executed successfully": "Das Kommando \"%(command)s\" wurde erfolgreich ausgef\u00fchrt", "Features": "Funktionen", "Download": "Download", "GCode Viewer": "GCode Viewer", "Also show previous layer": "Auch vorherige Schicht anzeigen", "Enable OctoPrint watermark in timelapse movies": "OctoPrint Wasserzeichen in Zeitrafferaufnahmen aktivieren", "Repetier": "Repetier", "Login successful": "Login erfolgreich", "Finished Timelapses": "Abgeschlossene Zeitraffer", "Rendering of timelapse %(movie_basename)s failedwith return code %(returncode)s": "Rendering der Zeitrafferaufnahme %(movie_basename)s fehlgeschlagen mit Returncode %(returncode)s", "Pause": "Pause", "Temperature": "Temperatur", "Enable slicing via Cura": "Slicing mittels Cura aktivieren", "Access Control": "Zugangsbeschr\u00e4nkung", "Analyzing...": "Analysiere...", "just now": "gerade eben", "Operational": "Bereit", "Send a checksum with every command": "Eine Pr\u00fcfsumme mit jedem Kommando senden", "Autodetection timeout": "Autodetectiontimeout", "Connecting": "Verbinde", "Free": "Frei", "Closed": "Geschlossen", "Refresh SD files": "SD-Dateien aktualisieren", "Flip webcam vertically": "Webcam vertikal flippen", "Path to Cura config": "Pfad zur Cura-Konfiguration", "Filament": "Filament", "Could not slice %(stl)s to %(gcode)s: %(reason)s": "Konnte %(stl)s nicht nach %(gcode)s slicen: %(reason)s", "Baudrate": "Baudrate", "Detecting baudrate": "Detektiere Baudrate", "Date": "Datum", "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds": "%(local)s nach %(remote)s gestreamt, dauerte %(time).2f Sekunden", "Show moves": "Bewegungen zeigen", "Motors off": "Motoren aus", "Detecting serial port": "Detektiere Serialport", "New Password": "Neues Passwort", "Logout": "Logout", "Offset": "Offset", "Analyzed": "Analysiert", "Auto-connect on server startup": "Automatisch bei Serverstart verbinden", "Printer Parameters": "Druckerparameter", "E": "E", "Restart": "Neu starten", "Search...": "Suchen...", "Slicing failed": "Slicing fehlgeschlagen", "Actual": "Ist", "Active": "Aktiv", "Creation date": "Erstellungsdatum", "Hint: You can also drag and drop files on this page to upload them.": "Hinweis: Du kannst auch Dateien auf diese Seite ziehen um sie hochzuladen.", "Interval": "Intervall", "N/A": "(nicht vorhanden)", "Bed": "Bett", "Auto-connect to printer on server start": "Automatisch bei Serverstart verbinden", "orange": "Orange", "Connection": "Verbindung", "Error": "Fehler", "On Z Change": "Bei Ebenenwechsel", "Timelapse post roll (in rendered seconds)": "Zeitraffernachlauf (in gerenderten Sekunden)", "Z": "Z", "Are you sure you want to proceed?": "Bist Du sicher, dass du fortfahren willst?", "If you disable Access Control and your OctoPrint installation is accessible from the internet, your printer will be accessible by everyone - that also includes the bad guys!": "Wenn Du die Zugangsbeschr\u00e4nkung deaktivierst und Deine OctoPrint Installation vom Internet aus erreichbar ist, kann jeder auf Deinen Drucker zugreifen - auch die b\u00f6sen Jungs!", "Load": "Laden", "Set": "Setzen", "The server appears to be offline, at least I'm not getting any response from it. I could not reconnect automatically, but you may try a manual reconnect using the button below.": "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich konnte nicht automatisch reconnected, aber Du kannst mittels des folgenden Buttons einen manuellen Reconnect ansto\u00dfen.", "Zoom in on model": "Auf Model zoomen", "mm": "mm", "Saving ...": "Speichere ...", "RegExp": "RegExp", "Watched Folder": "Beobachtetes Verzeichnis", "General": "Allgemein", "Temperature timeout": "Temperaturtimeout", "Color": "Farbe", "Fans on": "L\u00fcfter an", "Swallow the first \"ok\" after a resend response": "Erstes \"ok\" nach Resend ignorieren", "Enable SD support": "SD-Unterst\u00fctzung aktivieren", "Connect": "Verbinden", "Cancel": "Abbruch", "sec": "Sek", "Warning": "Warnung", "Loading...": "Lade...", "Current API Key": "Aktueller API-Key", "Size": "Gr\u00f6\u00dfe", "Communication timeout": "Kommunikationstimeout", "Modification date": "\u00c4nderungsdatum", "Change password": "Passwort \u00e4ndern", "This will restart the print job from the beginning.": "Der Druckjob wird zur\u00fcckgesetzt und von vorne begonnen.", "Stream URL": "Stream-URL", "Sort by": "Sortieren", "Login failed": "Login fehlgeschlagen", "Abort": "Abbrechen", "Confirm": "Best\u00e4tigen", "Repeat Password": "Passwort wiederholen", "Terminal": "Terminal", "Autoscroll": "Autoscroll", "Print time for layer": "Druckdauer f\u00fcr Schicht", "Disable Access Control": "Zugangsbeschr\u00e4nkung deaktivieren", "Configure Access Control": "Zugangsbeschr\u00e4nkung konfigurieren", "Timelapse Configuration": "Zeitrafferkonfiguration", "Retract": "Retract", "Timelapse bitrate": "Zeitrafferbitrate", "Offline": "Offline", "API Key": "API Key", "Homepage": "Homepage", "Estimated Print Time": "Gesch\u00e4tzte Druckzeit", "Folders": "Verzeichnisse", "Bugs and Requests": "Bugs und Requests", "Save": "Speichern", "Default extrusion length": "Standard Extrusionsl\u00e4nge", "min": "Min", "Support TargetExtr%%n/TargetBed target temperature format": "TargetExtr%%n/TargetBed Zieltemperaturformat unterst\u00fctzen", "Connection timeout": "Verbindungstimeout", "Save config": "Konfiguration speichern", "Center viewport on model": "Ausschnitt auf Modell zentrieren", "User unknown or wrong password": "Nutzer unbekannt oder falsches Passwort", "Allow Cross Origin Resource Sharing (CORS)": "Cross Origin Resource Sharing (CORS) erlauben", "Appearance": "Aussehen", "Enable": "Aktivieren", "Uploading ...": "Uploade ...", "Logs Folder": "Logverzeichnis", "

    \n Please read the following, it is very important for your printer's health!\n

    \n

    \n OctoPrint by default now ships with Access Control enabled, meaning you won't be able to do anything with the\n printer unless you login first as a configured user. This is to prevent strangers - possibly with\n malicious intent - to gain access to your printer via the internet or another untrustworthy network\n and using it in such a way that it is damaged or worse (i.e. causes a fire).\n

    \n

    \n It looks like you haven't configured access control yet. Please set up an username and password for the\n initial administrator account who will have full access to both the printer and OctoPrint's settings, then click\n on \"Keep Access Control Enabled\":\n

    ": "

    \n Bitte lies die folgenden Zeilen aufmerksam durch, es ist sehr wichtig f\u00fcr die Gesundheit Deines Druckers!\n

    \n

    \n OctoPrint wird nun standardm\u00e4ssig mit aktivierter Zugangsbeschr\u00e4nkung ausgeliefert, das hei\u00dft, dass Du mit dem Drucker nichts\n anfangen kannst, wenn du nicht als einer der konfigurierten Nutzer eingeloggt bist. Das dient dem Zweck, Fremde mit\n m\u00f6glicherweise b\u00f6swilligen Absichten davon abzuhalten, auf Deinen Drucker \u00fcber das Internet oder ein anderes\n unsicheres Netzwerk zuzugreifen und ihn auf eine Art zu nutzen, die ihn besch\u00e4digt oder schlimmeres (z.B. ein Feuer verursacht).\n

    \n

    \n Es sieht so aus, als h\u00e4ttest Du die Zugriffsbeschr\u00e4nkung noch nicht konfiguriert. Bitte konfiguriere einen Usernamen\n und ein Passwort f\u00fcr das initiale Administratorkonto, das vollen Zugang zu sowohl dem Drucker als auch OctoPrints\n Einstellungen haben wird, und klicke dann auf \"Zugangsbeschr\u00e4nkung aktiviert lassen\".\n

    ", "Hide successfully printed files": "Erfolgreich gedruckte Dateien verbergen", "Username": "Username", "Off": "Aus", "Name": "Name", "Extruder Offsets": "Extruderoffsets", "Approx. Total Print Time": "Ungef\u00e4hre Gesamtdruckdauer", "Admin": "Admin", "

    \n Note: In case that your OctoPrint installation is only accessible from within a trustworthy network and you don't\n need Access Control for other reasons, you may alternatively disable Access Control. You should only\n do this if you are absolutely certain that only people you know and trust will be able to connect to it.\n

    \n

    \n Do NOT underestimate the risk of an unsecured access from the internet to your printer!\n

    ": "

    \n Beachte: Falls Deine OctoPrint Installation ausschlie\u00dflich innerhalb eines vertrauensw\u00fcrdigen Netzwerks\n erreicht werden kann und Du die Zugangsbeschr\u00e4nkung nicht f\u00fcr andere Zwecke ben\u00f6tigst, kannst Du sie alternativ auch\n deaktivieren. Du solltest das nur tun, wenn Du Dir absolut sicher bist, dass nur Leute darauf zugreifen k\u00f6nnen, die du kennst\n und denen du vertraust\n

    \n

    \n UNTERSCH\u00c4TZE NICHT das Risiko eines ungesicherten Zugriffs aus dem Internet auf Deinen Drucker!\n

    ", "Timelapse": "Zeitraffer", "Remove": "Entfernen", "Reload": "Neu laden", "Printing": "Drucke", "Only show files stored on SD": "Nur auf SD abgelegte Dateien anzeigen", "Y": "Y", "Fans off": "L\u00fcfter aus", "Login": "Login", "Timelapse ready": "Zeitraffer fertig", "Timelapse Mode": "Zeitraffermodus", "Timelapse Folder": "Zeitrafferverzeichnis", "Extruder": "Extruder", "Could not upload the file. Make sure that it is a GCODE file and has the extension \".gcode\" or \".gco\" or that it is an STL file with the extension \".stl\" and slicing support is enabled and configured.": "Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um eine GCODE-Datei mit der Extension \".gcode\" oder \".gco\" oder um eine STL-Datei mit der Extension \".stl\" handelt und in letzterem Fall auch der Slicingsupport aktiviert ist.", "SD status timeout": "SD-Status-Timeout", "SD not initialized": "SD-Karte ist nicht initialisiert", "Update User": "Nutzer editieren", "off": "Aus", "Serial Port": "Serialport", "Flip webcam horizontally": "Webcam horizontal flippen", "Wait for start on connect": "Bei der Verbindung auf start warten", "Transfering file to SD": "Sende Datei zu SD", "OctoPrint": "OctoPrint", "Layer height": "Schichth\u00f6he", "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds": "%(stl)s nach %(gcode)s geslicet, dauerte %(time).2f Sekunden", "Extrude": "Extrude", "green": "Gr\u00fcn", "File": "Datei", "You are now logged in as \"%(username)s\"": "Du bist jetzt eingeloggt als \"%(username)s\"", "Axis": "Achse", "Filament used by layer": "Genutztes Filament in Schicht"}} ; \ No newline at end of file diff --git a/src/octoprint/translations/de/LC_MESSAGES/messages.mo b/src/octoprint/translations/de/LC_MESSAGES/messages.mo index cc95c9403465f94771945f43852cdec59f34a82f..87888479192d475694205ffcbddad33517d2b567 100644 GIT binary patch delta 16 XcmaDcneoMB#tkLfjAollwTtBdK4Au9 delta 16 XcmaDcneoMB#tkLfjK-TwwTtBdK2HW< diff --git a/src/octoprint/translations/de/LC_MESSAGES/messages.po b/src/octoprint/translations/de/LC_MESSAGES/messages.po index 8b59b9796..c795dd43a 100644 --- a/src/octoprint/translations/de/LC_MESSAGES/messages.po +++ b/src/octoprint/translations/de/LC_MESSAGES/messages.po @@ -1,8 +1,9 @@ -# German translations for OctoPrint. +# Translations template for OctoPrint. # Copyright (C) 2014 The OctoPrint Project # This file is distributed under the same license as the OctoPrint project. # # Translators: +# demod , 2014 # FIRST AUTHOR , 2014 # Gina Häußge , 2014 # demod , 2014 @@ -11,16 +12,16 @@ msgstr "" "Project-Id-Version: OctoPrint\n" "Report-Msgid-Bugs-To: i18n@octoprint.org\n" "POT-Creation-Date: 2014-08-28 15:52+0200\n" -"PO-Revision-Date: 2014-08-28 15:53+0100\n" +"PO-Revision-Date: 2014-08-28 15:56+0100\n" "Last-Translator: Gina Häußge \n" "Language-Team: German (http://www.transifex.com/projects/p/octoprint/" "language/de/)\n" -"Language: de\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Generated-By: Babel 1.3\n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 1.6.8\n" #: src/octoprint/static/js/app/dataupdater.js:43 From 4583128c028cca15b907f566c63e9d1647561640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 28 Aug 2014 19:23:10 +0200 Subject: [PATCH 48/50] i18n: First version of french translation --- src/octoprint/static/js/i18n/fr.js | 1 + .../translations/fr/LC_MESSAGES/messages.mo | Bin 0 -> 19887 bytes .../translations/fr/LC_MESSAGES/messages.po | 1242 +++++++++++++++++ 3 files changed, 1243 insertions(+) create mode 100644 src/octoprint/static/js/i18n/fr.js create mode 100644 src/octoprint/translations/fr/LC_MESSAGES/messages.mo create mode 100644 src/octoprint/translations/fr/LC_MESSAGES/messages.po diff --git a/src/octoprint/static/js/i18n/fr.js b/src/octoprint/static/js/i18n/fr.js new file mode 100644 index 000000000..29ec91de4 --- /dev/null +++ b/src/octoprint/static/js/i18n/fr.js @@ -0,0 +1 @@ +window.BABEL_TO_LOAD_fr = {"locale": "fr", "domain": "messages", "plural_expr": "(n > 1)", "messages": {"": "Project-Id-Version: OctoPrint\nReport-Msgid-Bugs-To: i18n@octoprint.org\nPOT-Creation-Date: 2014-08-28 15:52+0200\nPO-Revision-Date: 2014-08-28 13:54+0000\nLast-Translator: Gina H\u00e4u\u00dfge \nLanguage-Team: French (http://www.transifex.com/projects/p/octoprint/language/fr/)\nPlural-Forms: nplurals=2; plural=(n > 1)\nMIME-Version: 1.0\nContent-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 8bit\nGenerated-By: Babel 1.3\n", "Print Time Left": "Temps d'impression restant", "Proceed": "Continuer", "Timelapse Temp Folder": "R\u00e9pertoire temporaire des timelapses", "Title": "Titre", "Only show files stored locally": "Ne montre que les fichiers enregistr\u00e9s localement", "yellow": "jaune", "Path to Cura": "Chemin vers Cura", "Action": "Action", "Passwords do not match": "Les mots de passes ne sont pas semblables", "Sort by name": "Trier par nom", "Save connection settings": "Sauvegarder les param\u00e8tres de connection", "Rendering timelapse": "Rendu du timelapse en cours", "Cura": "Cura", "Files": "Fichiers", "Bed Size": "Taille du lit", "Always assume SD card is present": "Toujours supposer que la carte SD est pr\u00e9sente", "Load and Print": "Charger et imprimer", "Sending file to SD": "Envoi du fichier vers la carte SD en cours", "Number of Extruders": "Nombre d'extrudeurs", "black": "noir", "Last Printed": "Impression pr\u00e9c\u00e9dente", "Sourcecode": "Code source", "Estimated layer height": "Hauteur de couche estim\u00e9e", "You are now logged out": "Vous \u00eates maintenant d\u00e9connect\u00e9", "Uploaded": "Charg\u00e9", "Opening serial port": "Ouverture du port s\u00e9rie en cours", "New timelapse %(movie_basename)s is done rendering.": "Le rendu du nouveau timelapse %(movie_basename)s est termin\u00e9.", "Invert control": "Inverser le contr\u00f4le", "Webcam": "Webcam", "Remember me": "Se souvenir de moi", "Enable GCode Visualizer": "Activer le visualisateur de GCode", "The server appears to be offline, at least I'm not getting any response from it. I'll try to reconnect automatically over the next couple of minutes, however you are welcome to try a manual reconnect anytime using the button below.": "Le serveur semble \u00eatre hors ligne, du moins je ne re\u00e7ois aucunes r\u00e9ponses de celui-ci. Je vais tenter de me reconnecter automatiquement dans les minutes qui suivent. Quoiqu'il en soit vous pouvez tenter de vous reconnecter manuellement en utilisant le bouton ci-dessous.", "Rendering failed": "Echec du rendu", "Upload Folder": "R\u00e9pertoire des chargements", "descending": "descendant", "X": "X", "Add user": "Ajouter utilisateur", "GCODE commands in layer": "Commandes GCODE dans la couche", "Estimated print time": "Temps d'impression estim\u00e9", "Serial Connection": "Connection s\u00e9rie", "Control": "Contr\u00f4le", "Password": "Mot de passe", "Also show next layer": "Montrer \u00e9galement la couche suivante", "Print Time": "Temps d'impression", "Sort by file size": "Trier par taille des fichiers", "Machine State": "Etat de la machine", "default": "Par d\u00e9faut", "API": "API", "Printing from SD": "Impression depuis la carte SD en cours", "Terminal filters": "Filtres du terminal", "Change password for user \"%(user)s\"": "Changer le mot de passe pour l'utilisateur \"%(user)s\"", "Enable Temperature Graph": "Activer le graphique de temp\u00e9rature", "Delete user": "Supprimer utilisateur", "Confirm Password": "Confirmer le mot de passe", "Disconnect": "D\u00e9connecter", "Slicing done": "Tranchage termin\u00e9", "Initialize SD card": "Initialiser la carte SD", "System": "Syst\u00eame", "Send": "Envoyer", "State": "Etat", "Version": "Version", "YYYY-MM-DD HH:mm": "DD-MM-YYYY HH:mm", "Attempt to reconnect": "Tentative de reconnection", "Streaming done": "Diffusion en direct termin\u00e9", "violet": "violet", "Print": "Imprimer", "Layer count": "Nombre de couches", "OctoPrint Settings": "Param\u00e8tres d'OctoPrint", "Are you sure?": "Etes-vous s\u00fbre?", "blue": "bleu", "Printer": "Imprimante", "Tool": "Outil", "Settings": "Param\u00e8tres", "Path to FFMPEG": "Chemin vers FFMPEG", "Upload to SD": "Chargement vers la carte SD", "The command \"%(command)s\" could not be executed.": "La commande \"%(command)s\" n'a pas pu \u00eatre ex\u00e9cut\u00e9e", "Printed": "Imprim\u00e9", "Layer number": "Couche num\u00e9ro", "Sync with job progress": "Synchroniser avec le progr\u00e8s du job", "Circular": "Circulaire", "Total filament used": "Quantit\u00e9 de filament utilis\u00e9", "red": "rouge", "Save as default": "Sauver en tant que d\u00e9faut", "Slicing ...": "Tranchage en cours...", "Last Print Time": "Temps d'impression pr\u00e9c\u00e9dent", "Target": "Cible", "Streaming ...": "Diffusion en direct en cours...", "Logout successful": "Fermeture de session r\u00e9ussie", "Now rendering timelapse %(movie_basename)s": "Le rendu du timelapse %(movie_basename)s est en cours", "Documentation": "Documentation", "%(hour)02d:%(minute)02d:%(second)02d": "%(hour)02d:%(minute)02d:%(second)02d", "Upload": "Chargement", "ascending": "ascendant", "Model size": "Taille du mod\u00e8le", "Temperatures": "Temp\u00e9ratures", "visited": "visit\u00e9", "Timed": "Temps", "Edit user \"%(user)s\"": "Editer l'utilisateur \"%(user)s\"", "Snapshot URL": "URL de la photo instantan\u00e9e", "Release SD card": "Lib\u00e9rer la carte SD", "Server is offline": "Le serveur est hors ligne", "Log communication to serial.log (might negatively impact performance)": "Communication vers le log serial.log (peut impacter n\u00e9gativement la performance)", "Sort by upload date": "Trier par date de chargement", "Change Password": "Changer le mot de passe", "Logs": "Logs", "Hotend": "Buse", "Show retracts": "Montrer les r\u00e9traction", "Keep Access Control Enabled": "Garder le contr\u00f4le d'acc\u00e8s activ\u00e9", "Upload locally": "Chargement local", "Select Tool...": "S\u00e9lectionner outil...", "Paused": "En pause", "Continue": "Continuer", "Radius": "Radius", "The command \"%(command)s\" executed successfully": "La commande \"%(command)s\" a \u00e9t\u00e9 ex\u00e9cut\u00e9e avec succ\u00e8s", "Features": "Fonctionnalit\u00e9s", "Download": "T\u00e9l\u00e9charger", "GCode Viewer": "Visualisateur de GCode", "Also show previous layer": "Montrer \u00e9galement la couche pr\u00e9c\u00e9dente", "Enable OctoPrint watermark in timelapse movies": "Activer le watermark Octoprint sur les films timelapses", "Repetier": "Repetier", "Login successful": "Ouverture de session r\u00e9ussie", "Finished Timelapses": "Timelapses termin\u00e9s", "Rendering of timelapse %(movie_basename)s failedwith return code %(returncode)s": "Le rendu du timelapse %(movie_basename)s a \u00e9chou\u00e9 avec le code %(returncode)s", "Pause": "Pause", "Temperature": "Temp\u00e9rature", "Enable slicing via Cura": "Activer le tranchage via Cura", "Access Control": "Contr\u00f4le d'acc\u00e8s", "Analyzing...": "Analyse en cours...", "just now": "a l'instant", "Operational": "Op\u00e9rationnel", "Send a checksum with every command": "Envoyer un checksum avec chaque commande", "Autodetection timeout": "Timeout d'auto-d\u00e9tection", "Connecting": "Connection en cours", "Free": "Lib\u00e9rer", "Closed": "Ferm\u00e9", "Refresh SD files": "Rafraichir les fichiers de la carte SD", "Flip webcam vertically": "Rotation de la webcam verticalement", "Path to Cura config": "Chemin vers la configuration de Cura", "Filament": "Filament", "Could not slice %(stl)s to %(gcode)s: %(reason)s": "Le tranchage de %(stl)s vers %(gcode)s a \u00e9chou\u00e9: %(reason)s", "Baudrate": "Baudrate", "Detecting baudrate": "D\u00e9tection du baudrate en cours", "Date": "Date", "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds": "Diffusion de %(local)s vers %(remote)s sur la carte SD, temps: %(time).2f secondes", "Show moves": "Montrer les mouvements", "Motors off": "Eteindre les moteurs", "Detecting serial port": "D\u00e9tection du port s\u00e9rie en cours", "New Password": "Nouveau mot de passe", "Logout": "Se d\u00e9connecter", "Offset": "Offset", "Analyzed": "Analyse termin\u00e9e", "Auto-connect on server startup": "Connection automatique au red\u00e9marrage du serveur", "Printer Parameters": "Param\u00e8tres de l'imprimante", "E": "E", "Restart": "Red\u00e9marrer", "Search...": "Rechercher...", "Slicing failed": "Le tranchage a \u00e9chou\u00e9", "Actual": "Actuel", "Active": "Actif", "Creation date": "Date de cr\u00e9ation", "Hint: You can also drag and drop files on this page to upload them.": "Astuce: Vous pouvez \u00e9galement vers un glisser/d\u00e9poser des fichiers sur la page pour les charger.", "Interval": "Intervalle", "N/A": "N/A", "Bed": "Lit", "Auto-connect to printer on server start": "Connection automatique a l'imprimante au red\u00e9marrage du serveur", "orange": "orange", "Connection": "", "Error": "Erreur", "On Z Change": "Sur changement de Z", "Timelapse post roll (in rendered seconds)": "Post roll du timelapse (en secondes rendues)", "Z": "Z", "Are you sure you want to proceed?": "Etes-vous s\u00fbre de vouloir continuer?", "If you disable Access Control and your OctoPrint installation is accessible from the internet, your printer will be accessible by everyone - that also includes the bad guys!": "Si vous avez d\u00e9sactiv\u00e9 le contr\u00f4le d'acc\u00e8s et que votre installation OctoPrint est accessible depuis internet, votre imprimante sera accessible a tout le monde - y compris les m\u00e9chants!", "Load": "Charger", "Set": "Fixer", "The server appears to be offline, at least I'm not getting any response from it. I could not reconnect automatically, but you may try a manual reconnect using the button below.": "Le serveur semble \u00eatre hors ligne, du moins je ne re\u00e7ois aucunes r\u00e9ponses de celui-ci. Je n'ai pas pu me reconnecter automatiquement, mais vous pouvez tenter de vous reconnecter manuellement en utilisant le bouton ci-dessous.", "Zoom in on model": "Zoomer sur le mod\u00e8le", "mm": "mm", "Saving ...": "Sauvegarde en cours ... ", "RegExp": "RegExp", "Watched Folder": "R\u00e9pertoire observ\u00e9", "General": "G\u00e9n\u00e9ral", "Temperature timeout": "Timeout de la temp\u00e9rature", "Color": "Couleur", "Fans on": "Allumer la ventilation", "Swallow the first \"ok\" after a resend response": "Avaler le premier \"ok\" apr\u00e8s le r\u00e9-envoi d'une r\u00e9ponse", "Enable SD support": "Activer le support de carte SD", "Connect": "Connecter", "Cancel": "Annuler", "sec": "sec", "Warning": "Avertissement", "Loading...": "Chargement en cours...", "Current API Key": "Cl\u00e9 API courante", "Size": "Taille", "Communication timeout": "Timeout de communication", "Modification date": "Date de modification", "Change password": "Changer le mot de passe", "This will restart the print job from the beginning.": "Ceci va red\u00e9marrer le job d'impression depuis le d\u00e9but", "Stream URL": "URL de diffusion en direct", "Sort by": "Trier par", "Login failed": "Ouverture de session \u00e9chou\u00e9e", "Abort": "Annuler", "Confirm": "Confirmer", "Repeat Password": "R\u00e9p\u00e9ter le mot de passe", "Terminal": "Terminal", "Autoscroll": "Scroll automatique", "Print time for layer": "Temps d'impression pour la couche", "Disable Access Control": "D\u00e9sactiver le contr\u00f4le d'acc\u00e8s", "Configure Access Control": "Configuration du contr\u00f4le d'acc\u00e8s", "Timelapse Configuration": "Configuration du timelapse", "Retract": "Retracter", "Timelapse bitrate": "Bitrate du timelapse", "Offline": "Hors ligne", "API Key": "cl\u00e9 API", "Homepage": "Page d'accueil", "Estimated Print Time": "Temps d'impression estim\u00e9", "Folders": "R\u00e9pertoires", "Bugs and Requests": "Bugs et demandes", "Save": "Sauver", "Default extrusion length": "Longueur d'extrusion par d\u00e9faut", "min": "min", "Support TargetExtr%%n/TargetBed target temperature format": "Support TargetExtr%%n/TargetBed format de temp\u00e9rature de la cible", "Connection timeout": "Timeout de connection", "Save config": "Sauver la configuration", "Center viewport on model": "Centrer le point du vue sur le mod\u00e8le", "User unknown or wrong password": "Utilisateur inconnu ou mauvais mot de passe", "Allow Cross Origin Resource Sharing (CORS)": "Permettre Cross Origin Resource Sharing (CORS)", "Appearance": "Apparence", "Enable": "Activer", "Uploading ...": "Chargement en cours ...", "Logs Folder": "R\u00e9pertoire des logs", "

    \n Please read the following, it is very important for your printer's health!\n

    \n

    \n OctoPrint by default now ships with Access Control enabled, meaning you won't be able to do anything with the\n printer unless you login first as a configured user. This is to prevent strangers - possibly with\n malicious intent - to gain access to your printer via the internet or another untrustworthy network\n and using it in such a way that it is damaged or worse (i.e. causes a fire).\n

    \n

    \n It looks like you haven't configured access control yet. Please set up an username and password for the\n initial administrator account who will have full access to both the printer and OctoPrint's settings, then click\n on \"Keep Access Control Enabled\":\n

    ": "

    \nLisez ceci, c'est tr\u00e8s important pour la sant\u00e9 de votre imprimante!\n

    \n

    \nPar d\u00e9faut, OctoPrint est livr\u00e9 avec le contr\u00f4le d'acc\u00e8s activ\u00e9, ce qui signifie que vous ne pourrez rien faire avec\nl'imprimante sauf si vous ouvrez uen session en tant qu'utilisateur configur\u00e9. Ceci est fait pourempecher des personnes ext\u00e9rieures potentiellement avec de mauvaises intentions\n - d'avoir acc\u00e8s a votre imprimante via internet ou tout autre r\u00e9seau non s\u00e9curis\u00e9\net de pouvoir de cette mani\u00e8re utiliser l'imprimante dans le but de l'abimer ou pire (causer un incendie).\n

    \n

    \nIl semblerait qu vous n'avez pas encore configur\u00e9 le contr\u00f4le d'acc\u00e8s. Veuillez cr\u00e9er un utilisateur et mot de passe pour le\ncompte administrateur initial qui aura un acc\u00e8s comple \u00e0 l'imprimante ainsi qu'aux param\u00e8tres d'OctoPrint, puis cliquez\nsur \"Garder le contr\u00f4le d'acc\u00e8s activ\u00e9\":\n

    ", "Hide successfully printed files": "Cacher les fichiers imprim\u00e9s avec succ\u00e8s", "Username": "Nom d'utilisateur", "Off": "Eteint", "Name": "Nom", "Extruder Offsets": "Offsets de l'extrudeur", "Approx. Total Print Time": "Temps d'impression total approximatif", "Admin": "Administrateur", "

    \n Note: In case that your OctoPrint installation is only accessible from within a trustworthy network and you don't\n need Access Control for other reasons, you may alternatively disable Access Control. You should only\n do this if you are absolutely certain that only people you know and trust will be able to connect to it.\n

    \n

    \n Do NOT underestimate the risk of an unsecured access from the internet to your printer!\n

    ": "

    \nNote: Dans le cas ou votre installation d'OctoPrint est uniquement accessible d'un r\u00e9seau de confiance et que vous\nn'avez pas besoin du contr\u00f4le d'acc\u00e8s pour d'autres raisons; vous pouvez alternativement d\u00e9sactiver le contr\u00f4le d'acc\u00e8s. Vous ne devriez seulement\nfaire ceci si vous \u00eates certain que seuls des personnes que vous connaissez et en qui vous avez confiance auront la possibilit\u00e9 de se connecter.\n

    \n

    \nNe sous estim\u00e9 pas le risque d'un acc\u00e8s non s\u00e9curis\u00e9 depuis internet vers votre imprimante!\n

    ", "Timelapse": "Timelapse", "Remove": "Supprimer", "Reload": "Re-charger", "Printing": "Impression en cours", "Only show files stored on SD": "Ne montrer que les fichier enregistr\u00e9s sur la carte SD", "Y": "Y", "Fans off": "Eteindre la ventilation", "Login": "Ouverture de session", "Timelapse ready": "Le timelapse est pr\u00eat", "Timelapse Mode": "Mode du timelapse", "Timelapse Folder": "R\u00e9pertoire des timelapses", "Extruder": "Extrudeur", "Could not upload the file. Make sure that it is a GCODE file and has the extension \".gcode\" or \".gco\" or that it is an STL file with the extension \".stl\" and slicing support is enabled and configured.": "Le chargement du fichier a \u00e9chou\u00e9. Verifiez qu'il s'agit bien d'un fichier GCODE avec l'extension \".gcode\" ou \".gco\" ou d'un fichier STL avec l'extension \".stl\" et que le tranchage est configur\u00e9 et activ\u00e9.", "SD status timeout": "Timeout du statut de la carte SD", "SD not initialized": "Carte SD non initialis\u00e9e", "Update User": "Mettre \u00e0 jour l'utilisateur", "off": "eteint", "Serial Port": "Port s\u00e9rie", "Flip webcam horizontally": "Rotation de la webcam horizontalement", "Wait for start on connect": "Attendre start \u00e0 la connection", "Transfering file to SD": "Transfert du fichier vers la carte SD en cours", "OctoPrint": "OctoPrint", "Layer height": "Hauteur de couche", "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds": "Tranchage de %(stl)s vers %(gcode)s, en %(time).2f secondes", "Extrude": "Extruder", "green": "vert", "File": "Fichier", "You are now logged in as \"%(username)s\"": "Vous \u00eates maintenant connecter en tant que \"%(username)s\"", "Axis": "Axe", "Filament used by layer": "Filament utilis\u00e9 par couche"}} ; \ No newline at end of file diff --git a/src/octoprint/translations/fr/LC_MESSAGES/messages.mo b/src/octoprint/translations/fr/LC_MESSAGES/messages.mo new file mode 100644 index 0000000000000000000000000000000000000000..540d10280db3f2132d0067b2dd780a37aaf384ab GIT binary patch literal 19887 zcmb`O3y>vOUH?zQ2FQd2B_R+Nu(Ptx4%wO6Y={ZN=CPTXO_uEJE<2M%Qc>)=x93jp z-rIfCkDZ<5|Hr6>f|eE<9x7-+QY9OMmPRp(C^%6P@lQngmyaMSP=e+2kN<#{O8NPo zbNX>-X9Jd`lKI~5K7Ag)_oMTf7i@dG;h*Q9W6Vpzw>?)^%|FlkW@BE#<%QtI=NhvY zeD|}AIdHKtfce~|#yki70(c(yPvAx1)8MngZ7*_ofyWnsTH-QL<9C2Jg1f*=z!-cn z_(m`Q-wA5`qu}$vkAh?1CqRw+Gw^coOW=jzCEV0JJHVHN*MQ^T?cfW+H-dWqZQwTW z0Z{Wl2_=FjuNzxVhb;J0%9yvy7?dq9nUHK_C52x{E} zpx(a=6unCDo526=uYVNOzTV;Sz2FPDei+pLejC(#kAr)_KLj5K&v}VE_wR!`&!2+Y z-(UFae*m@am%t0a3%0v?Uj%AjuLNP0xe?U*cYvbfGN^TjAfjQ`LDBVIQ0IFq2+7Sm z!71<;LDB0opw|0m|NMM}N_4m!)cfP0*4yW=7eSqC6}0PtqRYC!{vrSTet-Qgj}L;H z=L4Y5{TQfqo&XU|^CYN!d=AvO{{Xel#V>Q?w}aY$07|Z|1@(L${1$KloCOD<_Vr7k z&ixzUli)`|@#n`7GCh9~l-z#+KuB-C2x^}5 zP*y#^3>4jVg5u8b(zv zTJPha_VX!^p9Zy`&x7K}S3vRYe2j?Ry9m@eF9#*RuLO0@Sy1#p42mw_0qVUTcoos&HD(bd4AVle-eBa*PjEmuP=a__n$$@$-jekAFnXxRa{>L>itU>nB02`~015-j{)kT<->_!23YS#V>;5 z&+mEsKcM#YDNyVD6{!9Fe^BQ-=i3}##=t#XZwIHrL*Pfj{{{Xlc>TDe+cmq~{!W0R z@7Kv~EweMTOXM=Zu zI{$Zpn!gX~9QT6H1>fwS{}?DedcfcREl_m-7|2n~lm7b4pyv51sQE8^rL)_Yc)S$U zd0q^1bTa{JU$67eSN-$j;Q8FY7u0#)1nN9L3~JrCf@9!MfO`HuQ2RX%J`4P1@LceN z{`%KJ?dQY(`Z14>`}=S~<==4wE9QajmCpdeR<7W&?UhW6Q=MC^;@c)9M z%in?;|1TadLs>-E8$evLISO709tUp(-|g@J1^5E4zXEFiV^_QVUj*v5Wca4ug`fAt-*l5u5;j z7!-eh6%_q`57hqu4wU`)Dk#2f+wbr~P|q&~Ujj~mmxFVl#;t(bR|;+i?*X;1cYxC4 zhd`a@lc3J=l)wL3e|`Qy;)HFTL6!McY#{xVem5WaZvmCEGU2T zcc9+;ihq92tkcWwpw{09>KwD6==)vZ1b7mBG58)(bo+Hs^6@cHa`PDwRWW}9N^XNW z$M0J~t^1vz_7j7m7EtGj zK*?hYYJWfCpT7&#`j3L!z{fzH?+Nf2_<8VKz-tb;`R)Mk;<^BJo=<|W057=N(QyxW z9@no1B{w&Kn(q*(b$g)bU4r8C8$rqMkAs@;aqwyI+*`1F=MZ~qSuee}lh&+}}^ZXL0{t@LceFK<(rE zJiY}K|K18}+&ldJp8|EB_xk6jL9=t$YFcI!d-ir`cJ3O)Nm)exB9A(0($$68H@to< zX#KMR@Z|h(ytRim~=I1&`p!^Vq`l> z6m^6BcCKJHP1svMSV^-WEmor}$f7V$lYF;*c@VN{zlgGgot%u=LpRPtZD92Mso?c2 zl|!3;*Y0&>!EVYKIYhi-Ck?YG2$%D;5Am3>6J#dQFeLF-;v#%RVI%1p*L$rVb?CclJ@)QTAcKD zb0Ts6WR$H3@n8sdLj*&NYOgn*2dfb*T0P6c%`RFbk!&`ywhULJm9Xp=fvBCY#>3po z)+QzgQ6jo`cL#$gOxU93(3<3{%@epCChL;So|^@7)w|Hjo>CCEk2u>&`e_ddSc$W| z2*MnRhOsMg&r-h3qiiZzvI3Ng)0H|6v*=_5NzkV-=|x!{Oa{Z$D#*HBd1Tc=*pEAL zS|Wzp0=5n0GMI82nu#1_D z#iK%G>vU2`7ObtNPMNi{V5LN@8!jwET1)UsQnYF9Qf->xz{arCO%J{(% z&3-9vurCZ&vuNeI9XofGS$`tmas6zDOa@1?SR#Hb$}#kvC|Fz#F&MpI*X)sFixc~% zLw3>6Q`yipZ1^cy7_MvX`liI)%5U`m2|_aRyo4`{bBIdTmBC6ju{Czq1q%cz}VH@y*dcr{l6bs0ZUaIFB1fMsQUW z(O_stWb%SC$!339q?7&vmjKT)Oc}}=W<@z1eQc+;=5zB%JFXiQ%qUNYm5$QVO`dmf zTyWu3oSU1%vWtL4<|fX|f5BpW4;N(*0wFucqPt5>d~RlS@V=RaKJ4XW9IeT&YSBU3 z)q_=8lHjP9@anpf_|4bW8cPHMu^WWnW;V_`Wk1Z!Y(LG}&TQIGxkv|tGKo9RqgUsc zt;}4oN#N{*Y`|;S!EDglktZ(?L}s|EG4>|{+Wf3Z#Vtmak)BD@K{;v6SCFGOQLuAY zULdIA@6KJl4s@8vXZYy?feDCKzfcbQY2~NlKIUm5#K2fFX_>MxxOw)-+&m@=CoS@? zV$x+lk?JVP#m5~}cA*_IclNja)t(~>7MBjWDHP_M@jiRrVJFuiq)2%=w7f(Eyq~g< zI~9eyQ)ZSUSuyHLRA$R8)Spbwpwj+1J(=^~ko{uYwcmb}^oms;^btj;^m9%qS$Vk< zzUCI9Als)6nYk?^Cf#OlR#oQG4mz9^c5`MfT}wn}iu?0joWo}MayHC3fYdN7xINCX zNXUFv-LK6hjs{sDgoK3H9|>MR9O7RFDdL}3!?7QpfYqHPR60VZWCL!_!r^N5pdz@u zqNU+{mLcHtK7{JFElG3J8ZAPVxVKug###$+cV*^9?QT>dGrAju#VadV{M;M}6C&Z2 z75^hK2jD0B<4N4dJ7M&yAEH_}AhL1BlG~A<*`au&RUXRJSyJ$NKOP2a(Q+po1gmKl z--D_UeXox^zxwS?niXfFHMnwflt9eBxg~~ML;wop z<@MHmG}N`Cp7T5@W^6FsA^Z$w{4s1jE6Uw09lBvMST>>_5;I6~8^s(uC}x z7*iHx4;&|*K7!zE#xnM%SFYzxcxw*2$O37v+#a`(@srT^U?Mgt&at-c8Dao)C?wcy zdA;TuqkTxumuZMq{BJM1?m0{@A(frT4Xm(jHTc*nJ$lH4Rflya5R$ z+JLw3q4_quBF+yI@t6e*X=wwU}e@U zgdHMtD2KI)%!0gLkjq)}GhV6ulQobFDG{4fxWm)?&0#dm9FEo+U!;r1ppXyCq`YC7 zd`7V%E(Kdm`l;+jNtUQ$4inzgm(TdNIc$lnOsuj5xv6Ec`4uesXwYCM^k1Lz39%XG zND|x`IIqrc)Xm0ME3yQHBB?UFe(IF^ERRvO#W{0i7}<=cZP>YoeZ)N=cXh;2{m{v+ zlO?U}tnyqwEOiF6ec?m$dcc7L3rFW~<`M(u{&tNMtd^)YKZ8TjO5p}rV%mtr**rT4 zVR4vM7#t=18{oXKU-pqgi0X&SZ#nN#7wMT}VK**wb1YiH%&tn`EbX|_n?E%KT>9$6 zPhCqTjzxn=3PPf&-zhQku}TCg8E$UC;AfN~C-gQ7$Rg}L0l$2nA{1S@h^4haJsI~1 zc2V*woYQp?qqv0OibFy25`tCsuYkzsET}_Qw-{59FKRw%*CMHk{i77sXUy)}1sU~k zAC1*%iXJFLQT)9~^xau?zxpa&ETw7RU1F*ip^~!S)u?lVxZdT@l?k=Rva!+L6Do^FT**uGlObAU@VZ?364w*$o=F969y7O66 z<(~wyGWBEc0=zO zU%B)6AatMBzJ4jpdQli=i?g|C1z$yH%1wwJthE5v_=bz|a0dHKygfh`%%*lPhrzZQ^Q~ z#gtxhcL%7qOi&RV93NO6hKkCH@W|^mQJh($LKqyZ=5`S5}EZ@rH?rvp)G#RB-70MG^JyffquF)Ai zws!J%9KL9GM@UYof}Jx&mNk_TLTtS}Gb|HNK*ATSr6=?qHc2wyVP0=u&p(q33zKtm z!7aDU3U-6XqQ_p=~Vp z!_Eo*Qpcz~FBwAh6cZOE<~Vg&EpAkeV?WpkliJd-A6BSQg=3?9g1?2%cIWLXvL z97l&I4|XR#m1bJ?@iC$XT+!r0-iy1Fswqt_r87Z%<+aI;DGeJd(o<>H8#{VrX|k#@ zOsbMF6YSk{<*O$5Tsyh<+ThBoXRh9R#h$%;_Aqer7{xsCV~cTD&0PJeEB5fum{O8S zD@$~O(rhNU89N-@vhiTK@c@b6J`^XsaV4e9)SsdkaXl|2y^_>#atU`g6Of-K6q|Rg z7R7L8dU|bbZ3@As1hW#InnJ&)aSu9qK0TbSk22l&lT5E<(-UJy`_xJLlLyF0C<`S+ zdzoLi_cek0dEKrgxIVaYVr=2y!hA!&E2s91p|q;BPcE$wAw?0LDyD~h3hu8VzzL~w z7uS`=%H*}pIIlI6^9t%<`%G{xsygP9XBakl)A~$sQ;2B|uAI7R%zWM5xGIF&)Pb8* zK>?FU8!kY2Po{Wt1Q4C5T5sL)I^zg1V<=ioDbXr=D+%t7ml%zW(|HuqaFb8OS}A)A zaOsR^<}x2k#t9(rk!s=`@)SYumKs`Q8^6LPy5r2a@qP-pY6WstvYR}}!dU&d*VsAq zOmnn)a&|9W)+RU(m`uD z(p6_pC(v+3y=)IdBBz(vC$mO_ZRSkNfvL#fUHXaai5qf+CDuu$ZQrPg`*E>xS|p<) z#W1;2x;#8&1ltWbC&*|dI{De-#AUzE(Vx-SmKCmaarv; zC`3=qF?xXN;>e4rDK6NRZL_Xg`B1E5i8{N3&bVX%e!-=tC1?4?k#eSThxr=wkLhHj zVF7HT?^f(?nj2Qg`teDGDS&pJt+`3B1YU2PW=D~wbsqN;vUgoLVH2mduZ+FJZhC8$ z$(nMkKhEC$$=P&CobI`WaOs7T@pPSR<&&Sb?|64PUKX$`$E+cqmZkLPHcn3kvyvPU zhBc^Nuxdp+1+#b$4mu(?7=n${>`J9O#>+;;SYoeMIyC|@2+Nbm6eGktMxX>^)QM1x zlWA-_Nn%5I1~coZ#`f)M#-rZ_ZbmU4(q1X+sI-hBAS^8<(-P8TqDk!~i8tQQYmNj` zvNjF7-i#9A*pI( zEimF#Dq1w(S}M@-sH8y-2P+12I42un;WqO)CAp40DVcH95X?z(G=^&!a_m;?PCTzV zdQxr_In=aX>GT5XxbdD*!eHwWEkq|QPoc8Z9X8%?jatjB?hdSi(!)b`?-`?+5bU@) z%%~S_eacGq>EYGAyG|cJ+^s-s>}Cy<7oT7g(t&Pr^ANYr;wZ?=);%FO8p622jzMo}}y z-paVQ1BH!pNy2Cu>Qf1bIFFB*w6dCSdq?wsw7O=5WV36vAaDp+@$PO^$`HJU}+ zUaV6>HbSeBo?_MPITROU(^5BW2tVf9jn;x-FR*wJ*-IlQ7W)}G#O<>hI?ll)>)a#O z-FQFQgez0}Ta9}Dckf#Z3;|j~T}9xn_9S+R_DO~>g^1`3#H?u{Q`4$ii^@&%wRO=W^@~!vCkj2>Q@vw)TUY1w2fk*X@ zYXmv3J&un%qt{v1y-uP;g^bmkYISb$p6ziWP*%Cy2bHt!c&1?a7~%thDWkMQgplP& zOQlt|&*?3s)pl!bG?2~!`GRbFR~z=tPOL!SBNMYoL5olUinPSZ%++clX{h?23jC}w z+4S7DWr@Y`_#;D}Ibzi$oY6&uG)3Dj(xr{loX2sFKB4WCO5V;U^D_Dfgv@>wB9nco zW9q{h2xi-L?Ga7iR4IVX^1R08%IOELFzh>st(mJvw3y({aeLaHda3et;!=U3g)p{@ z*&fu$bi2!HmGn&0>| z_`FxV>pKlVTNfE2ggJwyuP%N@mbUapZ5-v}IHDkz^f}UzSna$5E+H+|JOL z)M+EUz$2k|o0HNiqKt|rT$B)Rku#5G%q*%9LLY2y%Efk9FE`mpwF>786 zG;<7SD5zb`cca9d9oH)}24%_=WFW@IUq`^Q1yR~^dQyZo)bXG;K;@l_-@+jieB z<%M+A(Odqn`4ctTIuINe87Ss@K#`e(y8~`gk@D|Re43O z>n3;0o}o!<{tyQn+v!dRFpAw1d5#1yhg>Tg?_E-8bOVaYJP~@F(EyjDu8h`{f)!Pk z?dxCjwThp$$TXI?-3C9pbynpLSMUi4Swf%cK;02v#M?_(s+cDV?xd?Py;73nLXDPT ziIR-^JfCmMZrO&JGn@4*KKE#h5k9{4iZ@KPCu|7?*|A!Dn*Ij z8D%{a6(AJ{sB=(_qU=CH$Y#;{M44~aRwFVUC;Bb`YTb}E7!7G7*O+g=HPVQmPgp=! zQ+lm%Xbb({;uh?tmdGb0TO?G@O4lC6O-wZIe%KIggtzj=D66mAv<*xxDSFi#9dBw| zcCQJ&X6rb*>h6atlpfHXO%6-`zsV_SmfN0xbr8yAZ9TW% z$|q2*ku{6;r9r?66ocqL+jl2srn+j?N~I}6FWsI`PNw?K*rRGXVv+s&z@{XXONPA| zhsOCUMO2z=-;Bl5Dx0wpOG|L-Z7FZ7(mtp4Mjs@23m{>@Jt?oZljV=-pH-tn+ETvhJ50{|FEJy1EmmKk69u);-k3`!&3c1R$O&~BUW)<>uG|M zYQ}a$pY~ZL6fqz+`r*Ddw@$L!03L9~ebvfAx`e%a|1wwKvpQ9M7~x4%e;TpLnDdc@ zvJqv}a%ZhiKA=}KWxY%-2%_9p&ubbg?UZD+KbBCU^0mLCa34*G(CysH6TYJ`)a>U& zL1zUpmjlt=eNaK5MnM_lfaFX@=mkmU{IE(MBvNw_7e-ei3-rzwqIIo zJj9nNvvxI^{yN304TiO>?HyVdQH^VTb8&!AEimeu+);<*;*h+C)4olgT~IW(o^V(O zv~cj}(J5lAlJtvQ|EzCGNEy-^Jer}j6w?)|{p5{??$-XW^t98C(*RbSv+;8&!FgDA zpdei=Wi5Q3VqG_%;Fs}aC!PvkOIelJLjQ9dTaT-~^I1V%7!;-bXBpTZNp@|6_#ctz z5V&%=Pn^^#;0@Ss3zO|xuvXN3efbrc^aTyIqxfh8gNSwS#FL~|>NMGCtuja7_*1L3 z0Yj_JKJ$TV8u>;8CeQw#hw8x5v!j08rpi?Cx-zA}pjs8jq|r#%OC5!8Jc(x2`8la? zkZQjvV(Rmbk>YU`jaauwm&CXt1d8KU(SXnV~iM3UYik!=Bm&WqPETxUO_s1K+-} z*=M_FDh@X@*ru!G|vrq=uy(eZ@i literal 0 HcmV?d00001 diff --git a/src/octoprint/translations/fr/LC_MESSAGES/messages.po b/src/octoprint/translations/fr/LC_MESSAGES/messages.po new file mode 100644 index 000000000..da5ba8207 --- /dev/null +++ b/src/octoprint/translations/fr/LC_MESSAGES/messages.po @@ -0,0 +1,1242 @@ +# Translations template for OctoPrint. +# Copyright (C) 2014 The OctoPrint Project +# This file is distributed under the same license as the OctoPrint project. +# +# Translators: +# didierkl , 2014 +msgid "" +msgstr "" +"Project-Id-Version: OctoPrint\n" +"Report-Msgid-Bugs-To: i18n@octoprint.org\n" +"POT-Creation-Date: 2014-08-28 15:52+0200\n" +"PO-Revision-Date: 2014-08-28 13:54+0000\n" +"Last-Translator: Gina Häußge \n" +"Language-Team: French (http://www.transifex.com/projects/p/octoprint/language/fr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 1.3\n" +"Language: fr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: src/octoprint/static/js/app/dataupdater.js:43 +msgid "" +"The server appears to be offline, at least I'm not getting any response from" +" it. I'll try to reconnect automatically over the next couple of " +"minutes, however you are welcome to try a manual reconnect anytime " +"using the button below." +msgstr "Le serveur semble être hors ligne, du moins je ne reçois aucunes réponses de celui-ci. Je vais tenter de me reconnecter automatiquement dans les minutes qui suivent. Quoiqu'il en soit vous pouvez tenter de vous reconnecter manuellement en utilisant le bouton ci-dessous." + +#: src/octoprint/static/js/app/dataupdater.js:58 +msgid "" +"The server appears to be offline, at least I'm not getting any response from" +" it. I could not reconnect automatically, but you may try a" +" manual reconnect using the button below." +msgstr "Le serveur semble être hors ligne, du moins je ne reçois aucunes réponses de celui-ci. Je n'ai pas pu me reconnecter automatiquement, mais vous pouvez tenter de vous reconnecter manuellement en utilisant le bouton ci-dessous." + +#: src/octoprint/static/js/app/dataupdater.js:126 +msgid "Rendering timelapse" +msgstr "Rendu du timelapse en cours" + +#: src/octoprint/static/js/app/dataupdater.js:126 +#, python-format +msgid "Now rendering timelapse %(movie_basename)s" +msgstr "Le rendu du timelapse %(movie_basename)s est en cours" + +#: src/octoprint/static/js/app/dataupdater.js:128 +msgid "Timelapse ready" +msgstr "Le timelapse est prêt" + +#: src/octoprint/static/js/app/dataupdater.js:128 +#, python-format +msgid "New timelapse %(movie_basename)s is done rendering." +msgstr "Le rendu du nouveau timelapse %(movie_basename)s est terminé." + +#: src/octoprint/static/js/app/dataupdater.js:131 +#, python-format +msgid "" +"Rendering of timelapse %(movie_basename)s failedwith return code " +"%(returncode)s" +msgstr "Le rendu du timelapse %(movie_basename)s a échoué avec le code %(returncode)s" + +#: src/octoprint/static/js/app/dataupdater.js:133 +msgid "Rendering failed" +msgstr "Echec du rendu" + +#: src/octoprint/static/js/app/dataupdater.js:137 +msgid "Slicing ..." +msgstr "Tranchage en cours..." + +#: src/octoprint/static/js/app/dataupdater.js:142 +msgid "Slicing done" +msgstr "Tranchage terminé" + +#: src/octoprint/static/js/app/dataupdater.js:142 +#, python-format +msgid "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds" +msgstr "Tranchage de %(stl)s vers %(gcode)s, en %(time).2f secondes" + +#: src/octoprint/static/js/app/dataupdater.js:149 +#, python-format +msgid "Could not slice %(stl)s to %(gcode)s: %(reason)s" +msgstr "Le tranchage de %(stl)s vers %(gcode)s a échoué: %(reason)s" + +#: src/octoprint/static/js/app/dataupdater.js:150 +msgid "Slicing failed" +msgstr "Le tranchage a échoué" + +#: src/octoprint/static/js/app/dataupdater.js:154 +msgid "Streaming ..." +msgstr "Diffusion en direct en cours..." + +#: src/octoprint/static/js/app/dataupdater.js:159 +msgid "Streaming done" +msgstr "Diffusion en direct terminé" + +#: src/octoprint/static/js/app/dataupdater.js:159 +#, python-format +msgid "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds" +msgstr "Diffusion de %(local)s vers %(remote)s sur la carte SD, temps: %(time).2f secondes" + +#: src/octoprint/static/js/app/helpers.js:337 +#, python-format +msgid "%(hour)02d:%(minute)02d:%(second)02d" +msgstr "%(hour)02d:%(minute)02d:%(second)02d" + +#: src/octoprint/static/js/app/helpers.js:342 +msgid "YYYY-MM-DD HH:mm" +msgstr "DD-MM-YYYY HH:mm" + +#: src/octoprint/static/js/app/helpers.js:360 +#: src/octoprint/static/js/app/helpers.js:365 +msgid "off" +msgstr "eteint" + +#: src/octoprint/static/js/app/main.js:17 +msgid "Offline" +msgstr "Hors ligne" + +#: src/octoprint/static/js/app/main.js:18 +msgid "Opening serial port" +msgstr "Ouverture du port série en cours" + +#: src/octoprint/static/js/app/main.js:19 +msgid "Detecting serial port" +msgstr "Détection du port série en cours" + +#: src/octoprint/static/js/app/main.js:20 +msgid "Detecting baudrate" +msgstr "Détection du baudrate en cours" + +#: src/octoprint/static/js/app/main.js:21 +msgid "Connecting" +msgstr "Connection en cours" + +#: src/octoprint/static/js/app/main.js:22 +msgid "Operational" +msgstr "Opérationnel" + +#: src/octoprint/static/js/app/main.js:23 +msgid "Printing from SD" +msgstr "Impression depuis la carte SD en cours" + +#: src/octoprint/static/js/app/main.js:24 +msgid "Sending file to SD" +msgstr "Envoi du fichier vers la carte SD en cours" + +#: src/octoprint/static/js/app/main.js:25 +msgid "Printing" +msgstr "Impression en cours" + +#: src/octoprint/static/js/app/main.js:26 +msgid "Paused" +msgstr "En pause" + +#: src/octoprint/static/js/app/main.js:27 +msgid "Closed" +msgstr "Fermé" + +#: src/octoprint/static/js/app/main.js:28 +msgid "Transfering file to SD" +msgstr "Transfert du fichier vers la carte SD en cours" + +#: src/octoprint/static/js/app/main.js:132 +msgid "" +"Could not upload the file. Make sure that it is a GCODE file and has the " +"extension \".gcode\" or \".gco\" or that it is an STL file with the " +"extension \".stl\" and slicing support is enabled and configured." +msgstr "Le chargement du fichier a échoué. Verifiez qu'il s'agit bien d'un fichier GCODE avec l'extension \".gcode\" ou \".gco\" ou d'un fichier STL avec l'extension \".stl\" et que le tranchage est configuré et activé." + +#: src/octoprint/static/js/app/main.js:148 +msgid "Uploading ..." +msgstr "Chargement en cours ..." + +#: src/octoprint/static/js/app/main.js:151 +msgid "Saving ..." +msgstr "Sauvegarde en cours ... " + +#: src/octoprint/static/js/app/viewmodels/appearance.js:9 +#: src/octoprint/static/js/app/viewmodels/appearance.js:11 +#: src/octoprint/static/js/app/viewmodels/appearance.js:16 +#: src/octoprint/static/js/app/viewmodels/appearance.js:18 +msgid "OctoPrint" +msgstr "OctoPrint" + +#: src/octoprint/static/js/app/viewmodels/connection.js:24 +#: src/octoprint/templates/index.jinja2:117 +msgid "Connect" +msgstr "Connecter" + +#: src/octoprint/static/js/app/viewmodels/connection.js:26 +msgid "Disconnect" +msgstr "Déconnecter" + +#: src/octoprint/static/js/app/viewmodels/control.js:38 +#: src/octoprint/static/js/app/viewmodels/files.js:286 +#: src/octoprint/static/js/app/viewmodels/gcode.js:332 +#: src/octoprint/static/js/app/viewmodels/gcode.js:363 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:137 +#: src/octoprint/static/js/app/viewmodels/temperature.js:56 +msgid "Tool" +msgstr "Outil" + +#: src/octoprint/static/js/app/viewmodels/control.js:45 +#: src/octoprint/static/js/app/viewmodels/temperature.js:68 +msgid "Hotend" +msgstr "Buse" + +#: src/octoprint/static/js/app/viewmodels/files.js:281 +#: src/octoprint/static/js/app/viewmodels/files.js:286 +msgid "Filament" +msgstr "Filament" + +#: src/octoprint/static/js/app/viewmodels/files.js:290 +msgid "Estimated Print Time" +msgstr "Temps d'impression estimé" + +#: src/octoprint/static/js/app/viewmodels/files.js:293 +msgid "Last Printed" +msgstr "Impression précédente" + +#: src/octoprint/static/js/app/viewmodels/files.js:295 +msgid "Last Print Time" +msgstr "Temps d'impression précédent" + +#: src/octoprint/static/js/app/viewmodels/firstrun.js:37 +msgid "" +"If you disable Access Control and your OctoPrint " +"installation is accessible from the internet, your printer will be " +"accessible by everyone - that also includes the bad guys!" +msgstr "Si vous avez désactivé le contrôle d'accès et que votre installation OctoPrint est accessible depuis internet, votre imprimante sera accessible a tout le monde - y compris les méchants!" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:13 +msgid "Loading..." +msgstr "Chargement en cours..." + +#: src/octoprint/static/js/app/viewmodels/gcode.js:17 +msgid "Analyzing..." +msgstr "Analyse en cours..." + +#: src/octoprint/static/js/app/viewmodels/gcode.js:21 +msgid "Analyzed" +msgstr "Analyse terminée" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:327 +msgid "Model size" +msgstr "Taille du modèle" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:329 +#: src/octoprint/static/js/app/viewmodels/gcode.js:332 +msgid "Total filament used" +msgstr "Quantité de filament utilisé" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:329 +#: src/octoprint/static/js/app/viewmodels/gcode.js:332 +#: src/octoprint/static/js/app/viewmodels/gcode.js:336 +msgid "mm" +msgstr "mm" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:335 +msgid "Estimated print time" +msgstr "Temps d'impression estimé" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:336 +msgid "Estimated layer height" +msgstr "Hauteur de couche estimée" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:337 +msgid "Layer count" +msgstr "Nombre de couches" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:337 +msgid "visited" +msgstr "visité" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:356 +msgid "Layer number" +msgstr "Couche numéro" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:357 +msgid "Layer height" +msgstr "Hauteur de couche" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:358 +msgid "GCODE commands in layer" +msgstr "Commandes GCODE dans la couche" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:360 +#: src/octoprint/static/js/app/viewmodels/gcode.js:363 +msgid "Filament used by layer" +msgstr "Filament utilisé par couche" + +#: src/octoprint/static/js/app/viewmodels/gcode.js:366 +msgid "Print time for layer" +msgstr "Temps d'impression pour la couche" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:15 +#: src/octoprint/templates/index.jinja2:74 +#: src/octoprint/templates/index.jinja2:85 +msgid "Login" +msgstr "Ouverture de session" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:70 +msgid "Login successful" +msgstr "Ouverture de session réussie" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:70 +#, python-format +msgid "You are now logged in as \"%(username)s\"" +msgstr "Vous êtes maintenant connecter en tant que \"%(username)s\"" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:74 +msgid "Login failed" +msgstr "Ouverture de session échouée" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:74 +msgid "User unknown or wrong password" +msgstr "Utilisateur inconnu ou mauvais mot de passe" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:84 +msgid "Logout successful" +msgstr "Fermeture de session réussie" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:84 +msgid "You are now logged out" +msgstr "Vous êtes maintenant déconnecté" + +#: src/octoprint/static/js/app/viewmodels/navigation.js:17 +#, python-format +msgid "The command \"%(command)s\" executed successfully" +msgstr "La commande \"%(command)s\" a été exécutée avec succès" + +#: src/octoprint/static/js/app/viewmodels/navigation.js:20 +#, python-format +msgid "The command \"%(command)s\" could not be executed." +msgstr "La commande \"%(command)s\" n'a pas pu être exécutée" + +#: src/octoprint/static/js/app/viewmodels/navigation.js:22 +msgid "Error" +msgstr "Erreur" + +#: src/octoprint/static/js/app/viewmodels/printerstate.js:66 +msgid "Continue" +msgstr "Continuer" + +#: src/octoprint/static/js/app/viewmodels/printerstate.js:68 +#: src/octoprint/templates/index.jinja2:144 +msgid "Pause" +msgstr "Pause" + +#: src/octoprint/static/js/app/viewmodels/printerstate.js:79 +#: src/octoprint/templates/index.jinja2:524 +msgid "On Z Change" +msgstr "Sur changement de Z" + +#: src/octoprint/static/js/app/viewmodels/printerstate.js:81 +#: src/octoprint/templates/index.jinja2:525 +msgid "Timed" +msgstr "Temps" + +#: src/octoprint/static/js/app/viewmodels/printerstate.js:81 +#: src/octoprint/templates/index.jinja2:531 +#: src/octoprint/templates/index.jinja2:538 +msgid "sec" +msgstr "sec" + +#: src/octoprint/static/js/app/viewmodels/printerstate.js:166 +msgid "This will restart the print job from the beginning." +msgstr "Ceci va redémarrer le job d'impression depuis le début" + +#: src/octoprint/static/js/app/viewmodels/settings.js:15 +#: src/octoprint/static/js/app/viewmodels/settings.js:41 +msgid "default" +msgstr "Par défaut" + +#: src/octoprint/static/js/app/viewmodels/settings.js:16 +#: src/octoprint/static/js/app/viewmodels/settings.js:27 +msgid "red" +msgstr "rouge" + +#: src/octoprint/static/js/app/viewmodels/settings.js:17 +#: src/octoprint/static/js/app/viewmodels/settings.js:29 +msgid "orange" +msgstr "orange" + +#: src/octoprint/static/js/app/viewmodels/settings.js:18 +#: src/octoprint/static/js/app/viewmodels/settings.js:31 +msgid "yellow" +msgstr "jaune" + +#: src/octoprint/static/js/app/viewmodels/settings.js:19 +#: src/octoprint/static/js/app/viewmodels/settings.js:33 +msgid "green" +msgstr "vert" + +#: src/octoprint/static/js/app/viewmodels/settings.js:20 +#: src/octoprint/static/js/app/viewmodels/settings.js:35 +msgid "blue" +msgstr "bleu" + +#: src/octoprint/static/js/app/viewmodels/settings.js:21 +#: src/octoprint/static/js/app/viewmodels/settings.js:37 +msgid "violet" +msgstr "violet" + +#: src/octoprint/static/js/app/viewmodels/settings.js:22 +#: src/octoprint/static/js/app/viewmodels/settings.js:39 +msgid "black" +msgstr "noir" + +#: src/octoprint/static/js/app/viewmodels/temperature.js:22 +#: src/octoprint/static/js/app/viewmodels/temperature.js:74 +#: src/octoprint/templates/settings.jinja2:347 +msgid "Bed" +msgstr "Lit" + +#: src/octoprint/static/js/app/viewmodels/temperature.js:110 +msgid "just now" +msgstr "a l'instant" + +#: src/octoprint/static/js/app/viewmodels/temperature.js:112 +msgid "min" +msgstr "min" + +#: src/octoprint/static/js/app/viewmodels/temperature.js:252 +#: src/octoprint/templates/index.jinja2:262 +msgid "Actual" +msgstr "Actuel" + +#: src/octoprint/static/js/app/viewmodels/temperature.js:257 +#: src/octoprint/templates/index.jinja2:263 +msgid "Target" +msgstr "Cible" + +#: src/octoprint/templates/dialogs.jinja2:6 +msgid "Server is offline" +msgstr "Le serveur est hors ligne" + +#: src/octoprint/templates/dialogs.jinja2:9 +msgid "Attempt to reconnect" +msgstr "Tentative de reconnection" + +#: src/octoprint/templates/dialogs.jinja2:20 +msgid "Upload locally" +msgstr "Chargement local" + +#: src/octoprint/templates/dialogs.jinja2:22 +#: src/octoprint/templates/index.jinja2:218 +msgid "Upload to SD" +msgstr "Chargement vers la carte SD" + +#: src/octoprint/templates/dialogs.jinja2:22 +msgid "SD not initialized" +msgstr "Carte SD non initialisée" + +#: src/octoprint/templates/dialogs.jinja2:25 +#: src/octoprint/templates/index.jinja2:213 +#: src/octoprint/templates/index.jinja2:224 +msgid "Upload" +msgstr "Chargement" + +#: src/octoprint/templates/dialogs.jinja2:34 +msgid "Are you sure?" +msgstr "Etes-vous sûre?" + +#: src/octoprint/templates/dialogs.jinja2:38 +msgid "Are you sure you want to proceed?" +msgstr "Etes-vous sûre de vouloir continuer?" + +#: src/octoprint/templates/dialogs.jinja2:41 +#: src/octoprint/templates/index.jinja2:145 +#: src/octoprint/templates/settings.jinja2:676 +msgid "Cancel" +msgstr "Annuler" + +#: src/octoprint/templates/dialogs.jinja2:42 +msgid "Proceed" +msgstr "Continuer" + +#: src/octoprint/templates/dialogs.jinja2:48 +msgid "Configure Access Control" +msgstr "Configuration du contrôle d'accès" + +#: src/octoprint/templates/dialogs.jinja2:51 +msgid "" +"

    \n" +" Please read the following, it is very important for your printer's health!\n" +"

    \n" +"

    \n" +" OctoPrint by default now ships with Access Control enabled, meaning you won't be able to do anything with the\n" +" printer unless you login first as a configured user. This is to prevent strangers - possibly with\n" +" malicious intent - to gain access to your printer via the internet or another untrustworthy network\n" +" and using it in such a way that it is damaged or worse (i.e. causes a fire).\n" +"

    \n" +"

    \n" +" It looks like you haven't configured access control yet. Please set up an username and password for the\n" +" initial administrator account who will have full access to both the printer and OctoPrint's settings, then click\n" +" on \"Keep Access Control Enabled\":\n" +"

    " +msgstr "

    \nLisez ceci, c'est très important pour la santé de votre imprimante!\n

    \n

    \nPar défaut, OctoPrint est livré avec le contrôle d'accès activé, ce qui signifie que vous ne pourrez rien faire avec\nl'imprimante sauf si vous ouvrez uen session en tant qu'utilisateur configuré. Ceci est fait pourempecher des personnes extérieures potentiellement avec de mauvaises intentions\n - d'avoir accès a votre imprimante via internet ou tout autre réseau non sécurisé\net de pouvoir de cette manière utiliser l'imprimante dans le but de l'abimer ou pire (causer un incendie).\n

    \n

    \nIl semblerait qu vous n'avez pas encore configuré le contrôle d'accès. Veuillez créer un utilisateur et mot de passe pour le\ncompte administrateur initial qui aura un accès comple à l'imprimante ainsi qu'aux paramètres d'OctoPrint, puis cliquez\nsur \"Garder le contrôle d'accès activé\":\n

    " + +#: src/octoprint/templates/dialogs.jinja2:67 +#: src/octoprint/templates/index.jinja2:78 +#: src/octoprint/templates/index.jinja2:79 +#: src/octoprint/templates/settings.jinja2:510 +msgid "Username" +msgstr "Nom d'utilisateur" + +#: src/octoprint/templates/dialogs.jinja2:73 +#: src/octoprint/templates/index.jinja2:80 +#: src/octoprint/templates/index.jinja2:81 +#: src/octoprint/templates/settings.jinja2:516 +msgid "Password" +msgstr "Mot de passe" + +#: src/octoprint/templates/dialogs.jinja2:79 +msgid "Confirm Password" +msgstr "Confirmer le mot de passe" + +#: src/octoprint/templates/dialogs.jinja2:82 +#: src/octoprint/templates/settings.jinja2:525 +#: src/octoprint/templates/settings.jinja2:596 +msgid "Passwords do not match" +msgstr "Les mots de passes ne sont pas semblables" + +#: src/octoprint/templates/dialogs.jinja2:86 +msgid "" +"

    \n" +" Note: In case that your OctoPrint installation is only accessible from within a trustworthy network and you don't\n" +" need Access Control for other reasons, you may alternatively disable Access Control. You should only\n" +" do this if you are absolutely certain that only people you know and trust will be able to connect to it.\n" +"

    \n" +"

    \n" +" Do NOT underestimate the risk of an unsecured access from the internet to your printer!\n" +"

    " +msgstr "

    \nNote: Dans le cas ou votre installation d'OctoPrint est uniquement accessible d'un réseau de confiance et que vous\nn'avez pas besoin du contrôle d'accès pour d'autres raisons; vous pouvez alternativement désactiver le contrôle d'accès. Vous ne devriez seulement\nfaire ceci si vous êtes certain que seuls des personnes que vous connaissez et en qui vous avez confiance auront la possibilité de se connecter.\n

    \n

    \nNe sous estimé pas le risque d'un accès non sécurisé depuis internet vers votre imprimante!\n

    " + +#: src/octoprint/templates/dialogs.jinja2:96 +msgid "Disable Access Control" +msgstr "Désactiver le contrôle d'accès" + +#: src/octoprint/templates/dialogs.jinja2:97 +msgid "Keep Access Control Enabled" +msgstr "Garder le contrôle d'accès activé" + +#: src/octoprint/templates/index.jinja2:57 +msgid "Settings" +msgstr "Paramètres" + +#: src/octoprint/templates/index.jinja2:63 +msgid "System" +msgstr "Systême" + +#: src/octoprint/templates/index.jinja2:83 +msgid "Remember me" +msgstr "Se souvenir de moi" + +#: src/octoprint/templates/index.jinja2:88 +msgid "Change Password" +msgstr "Changer le mot de passe" + +#: src/octoprint/templates/index.jinja2:89 +msgid "Logout" +msgstr "Se déconnecter" + +#: src/octoprint/templates/index.jinja2:103 +msgid "Connection" +msgstr "" + +#: src/octoprint/templates/index.jinja2:107 +#: src/octoprint/templates/settings.jinja2:30 +msgid "Serial Port" +msgstr "Port série" + +#: src/octoprint/templates/index.jinja2:109 +#: src/octoprint/templates/settings.jinja2:36 +msgid "Baudrate" +msgstr "Baudrate" + +#: src/octoprint/templates/index.jinja2:112 +msgid "Save connection settings" +msgstr "Sauvegarder les paramètres de connection" + +#: src/octoprint/templates/index.jinja2:115 +msgid "Auto-connect on server startup" +msgstr "Connection automatique au redémarrage du serveur" + +#: src/octoprint/templates/index.jinja2:123 +msgid "State" +msgstr "Etat" + +#: src/octoprint/templates/index.jinja2:127 +msgid "Machine State" +msgstr "Etat de la machine" + +#: src/octoprint/templates/index.jinja2:128 +msgid "File" +msgstr "Fichier" + +#: src/octoprint/templates/index.jinja2:129 +#: src/octoprint/templates/index.jinja2:247 +msgid "Timelapse" +msgstr "Timelapse" + +#: src/octoprint/templates/index.jinja2:133 +msgid "Approx. Total Print Time" +msgstr "Temps d'impression total approximatif" + +#: src/octoprint/templates/index.jinja2:134 +msgid "Print Time" +msgstr "Temps d'impression" + +#: src/octoprint/templates/index.jinja2:135 +msgid "Print Time Left" +msgstr "Temps d'impression restant" + +#: src/octoprint/templates/index.jinja2:136 +msgid "Printed" +msgstr "Imprimé" + +#: src/octoprint/templates/index.jinja2:143 +msgid "Restart" +msgstr "Redémarrer" + +#: src/octoprint/templates/index.jinja2:143 +msgid "Print" +msgstr "Imprimer" + +#: src/octoprint/templates/index.jinja2:152 +msgid "Files" +msgstr "Fichiers" + +#: src/octoprint/templates/index.jinja2:159 +msgid "Sort by name" +msgstr "Trier par nom" + +#: src/octoprint/templates/index.jinja2:159 +#: src/octoprint/templates/index.jinja2:556 +#: src/octoprint/templates/settings.jinja2:630 +msgid "ascending" +msgstr "ascendant" + +#: src/octoprint/templates/index.jinja2:160 +msgid "Sort by upload date" +msgstr "Trier par date de chargement" + +#: src/octoprint/templates/index.jinja2:160 +#: src/octoprint/templates/index.jinja2:161 +#: src/octoprint/templates/index.jinja2:556 +#: src/octoprint/templates/settings.jinja2:630 +msgid "descending" +msgstr "descendant" + +#: src/octoprint/templates/index.jinja2:161 +msgid "Sort by file size" +msgstr "Trier par taille des fichiers" + +#: src/octoprint/templates/index.jinja2:164 +msgid "Only show files stored locally" +msgstr "Ne montre que les fichiers enregistrés localement" + +#: src/octoprint/templates/index.jinja2:165 +msgid "Only show files stored on SD" +msgstr "Ne montrer que les fichier enregistrés sur la carte SD" + +#: src/octoprint/templates/index.jinja2:168 +msgid "Hide successfully printed files" +msgstr "Cacher les fichiers imprimés avec succès" + +#: src/octoprint/templates/index.jinja2:178 +msgid "Initialize SD card" +msgstr "Initialiser la carte SD" + +#: src/octoprint/templates/index.jinja2:179 +msgid "Refresh SD files" +msgstr "Rafraichir les fichiers de la carte SD" + +#: src/octoprint/templates/index.jinja2:180 +msgid "Release SD card" +msgstr "Libérer la carte SD" + +#: src/octoprint/templates/index.jinja2:188 +msgid "Search..." +msgstr "Rechercher..." + +#: src/octoprint/templates/index.jinja2:193 +msgid "Uploaded" +msgstr "Chargé" + +#: src/octoprint/templates/index.jinja2:194 +#: src/octoprint/templates/index.jinja2:556 +#: src/octoprint/templates/index.jinja2:562 +#: src/octoprint/templates/settings.jinja2:630 +#: src/octoprint/templates/settings.jinja2:637 +msgid "Size" +msgstr "Taille" + +#: src/octoprint/templates/index.jinja2:198 +msgid "Download" +msgstr "Télécharger" + +#: src/octoprint/templates/index.jinja2:199 +msgid "Remove" +msgstr "Supprimer" + +#: src/octoprint/templates/index.jinja2:200 +msgid "Load" +msgstr "Charger" + +#: src/octoprint/templates/index.jinja2:201 +msgid "Load and Print" +msgstr "Charger et imprimer" + +#: src/octoprint/templates/index.jinja2:206 +msgid "Free" +msgstr "Libérer" + +#: src/octoprint/templates/index.jinja2:233 +msgid "Hint: You can also drag and drop files on this page to upload them." +msgstr "Astuce: Vous pouvez également vers un glisser/déposer des fichiers sur la page pour les charger." + +#: src/octoprint/templates/index.jinja2:243 +msgid "Temperature" +msgstr "Température" + +#: src/octoprint/templates/index.jinja2:244 +msgid "Control" +msgstr "Contrôle" + +#: src/octoprint/templates/index.jinja2:245 +msgid "GCode Viewer" +msgstr "Visualisateur de GCode" + +#: src/octoprint/templates/index.jinja2:246 +msgid "Terminal" +msgstr "Terminal" + +#: src/octoprint/templates/index.jinja2:264 +msgid "Offset" +msgstr "Offset" + +#: src/octoprint/templates/index.jinja2:280 +#: src/octoprint/templates/index.jinja2:302 +msgid "Set" +msgstr "Fixer" + +#: src/octoprint/templates/index.jinja2:292 +#: src/octoprint/templates/index.jinja2:523 +msgid "Off" +msgstr "Eteint" + +#: src/octoprint/templates/index.jinja2:360 +msgid "Select Tool..." +msgstr "Sélectionner outil..." + +#: src/octoprint/templates/index.jinja2:371 +msgid "Extrude" +msgstr "Extruder" + +#: src/octoprint/templates/index.jinja2:372 +msgid "Retract" +msgstr "Retracter" + +#: src/octoprint/templates/index.jinja2:377 +msgid "General" +msgstr "Général" + +#: src/octoprint/templates/index.jinja2:379 +msgid "Motors off" +msgstr "Eteindre les moteurs" + +#: src/octoprint/templates/index.jinja2:380 +msgid "Fans on" +msgstr "Allumer la ventilation" + +#: src/octoprint/templates/index.jinja2:381 +msgid "Fans off" +msgstr "Eteindre la ventilation" + +#: src/octoprint/templates/index.jinja2:445 +msgid "Sync with job progress" +msgstr "Synchroniser avec le progrès du job" + +#: src/octoprint/templates/index.jinja2:450 +msgid "Center viewport on model" +msgstr "Centrer le point du vue sur le modèle" + +#: src/octoprint/templates/index.jinja2:453 +msgid "Zoom in on model" +msgstr "Zoomer sur le modèle" + +#: src/octoprint/templates/index.jinja2:459 +msgid "Show moves" +msgstr "Montrer les mouvements" + +#: src/octoprint/templates/index.jinja2:462 +msgid "Show retracts" +msgstr "Montrer les rétraction" + +#: src/octoprint/templates/index.jinja2:468 +msgid "Also show previous layer" +msgstr "Montrer également la couche précédente" + +#: src/octoprint/templates/index.jinja2:471 +msgid "Also show next layer" +msgstr "Montrer également la couche suivante" + +#: src/octoprint/templates/index.jinja2:476 +msgid "Reload" +msgstr "Re-charger" + +#: src/octoprint/templates/index.jinja2:503 +msgid "Autoscroll" +msgstr "Scroll automatique" + +#: src/octoprint/templates/index.jinja2:513 +msgid "Send" +msgstr "Envoyer" + +#: src/octoprint/templates/index.jinja2:519 +msgid "Timelapse Configuration" +msgstr "Configuration du timelapse" + +#: src/octoprint/templates/index.jinja2:521 +msgid "Timelapse Mode" +msgstr "Mode du timelapse" + +#: src/octoprint/templates/index.jinja2:528 +msgid "Timelapse post roll (in rendered seconds)" +msgstr "Post roll du timelapse (en secondes rendues)" + +#: src/octoprint/templates/index.jinja2:535 +msgid "Interval" +msgstr "Intervalle" + +#: src/octoprint/templates/index.jinja2:544 +msgid "Save as default" +msgstr "Sauver en tant que défaut" + +#: src/octoprint/templates/index.jinja2:549 +msgid "Save config" +msgstr "Sauver la configuration" + +#: src/octoprint/templates/index.jinja2:553 +msgid "Finished Timelapses" +msgstr "Timelapses terminés" + +#: src/octoprint/templates/index.jinja2:556 +#: src/octoprint/templates/settings.jinja2:630 +msgid "Sort by" +msgstr "Trier par" + +#: src/octoprint/templates/index.jinja2:556 +#: src/octoprint/templates/index.jinja2:561 +#: src/octoprint/templates/settings.jinja2:377 +#: src/octoprint/templates/settings.jinja2:469 +#: src/octoprint/templates/settings.jinja2:630 +#: src/octoprint/templates/settings.jinja2:636 +msgid "Name" +msgstr "Nom" + +#: src/octoprint/templates/index.jinja2:556 +msgid "Creation date" +msgstr "Date de création" + +#: src/octoprint/templates/index.jinja2:563 +#: src/octoprint/templates/settings.jinja2:472 +#: src/octoprint/templates/settings.jinja2:639 +msgid "Action" +msgstr "Action" + +#: src/octoprint/templates/index.jinja2:592 +msgid "Version" +msgstr "Version" + +#: src/octoprint/templates/index.jinja2:595 +msgid "Homepage" +msgstr "Page d'accueil" + +#: src/octoprint/templates/index.jinja2:596 +msgid "Sourcecode" +msgstr "Code source" + +#: src/octoprint/templates/index.jinja2:597 +msgid "Documentation" +msgstr "Documentation" + +#: src/octoprint/templates/index.jinja2:598 +msgid "Bugs and Requests" +msgstr "Bugs et demandes" + +#: src/octoprint/templates/settings.jinja2:4 +msgid "OctoPrint Settings" +msgstr "Paramètres d'OctoPrint" + +#: src/octoprint/templates/settings.jinja2:9 +msgid "Printer" +msgstr "Imprimante" + +#: src/octoprint/templates/settings.jinja2:10 +msgid "Serial Connection" +msgstr "Connection série" + +#: src/octoprint/templates/settings.jinja2:11 +msgid "Printer Parameters" +msgstr "Paramètres de l'imprimante" + +#: src/octoprint/templates/settings.jinja2:12 +msgid "Temperatures" +msgstr "Températures" + +#: src/octoprint/templates/settings.jinja2:13 +msgid "Terminal filters" +msgstr "Filtres du terminal" + +#: src/octoprint/templates/settings.jinja2:14 +#: src/octoprint/templates/settings.jinja2:15 +msgid "Features" +msgstr "Fonctionnalités" + +#: src/octoprint/templates/settings.jinja2:16 +msgid "Webcam" +msgstr "Webcam" + +#: src/octoprint/templates/settings.jinja2:17 +msgid "Cura" +msgstr "Cura" + +#: src/octoprint/templates/settings.jinja2:18 +msgid "Access Control" +msgstr "Contrôle d'accès" + +#: src/octoprint/templates/settings.jinja2:19 +msgid "API" +msgstr "API" + +#: src/octoprint/templates/settings.jinja2:21 +msgid "Folders" +msgstr "Répertoires" + +#: src/octoprint/templates/settings.jinja2:22 +msgid "Appearance" +msgstr "Apparence" + +#: src/octoprint/templates/settings.jinja2:23 +#: src/octoprint/templates/settings.jinja2:626 +msgid "Logs" +msgstr "Logs" + +#: src/octoprint/templates/settings.jinja2:44 +msgid "Auto-connect to printer on server start" +msgstr "Connection automatique a l'imprimante au redémarrage du serveur" + +#: src/octoprint/templates/settings.jinja2:49 +msgid "Communication timeout" +msgstr "Timeout de communication" + +#: src/octoprint/templates/settings.jinja2:58 +msgid "Temperature timeout" +msgstr "Timeout de la température" + +#: src/octoprint/templates/settings.jinja2:67 +msgid "SD status timeout" +msgstr "Timeout du statut de la carte SD" + +#: src/octoprint/templates/settings.jinja2:76 +msgid "Connection timeout" +msgstr "Timeout de connection" + +#: src/octoprint/templates/settings.jinja2:85 +msgid "Autodetection timeout" +msgstr "Timeout d'auto-détection" + +#: src/octoprint/templates/settings.jinja2:96 +msgid "Log communication to serial.log (might negatively impact performance)" +msgstr "Communication vers le log serial.log (peut impacter négativement la performance)" + +#: src/octoprint/templates/settings.jinja2:96 +msgid "Warning" +msgstr "Avertissement" + +#: src/octoprint/templates/settings.jinja2:105 +msgid "Axis" +msgstr "Axe" + +#: src/octoprint/templates/settings.jinja2:107 +#: src/octoprint/templates/settings.jinja2:176 +msgid "X" +msgstr "X" + +#: src/octoprint/templates/settings.jinja2:113 +#: src/octoprint/templates/settings.jinja2:123 +#: src/octoprint/templates/settings.jinja2:133 +msgid "Invert control" +msgstr "Inverser le contrôle" + +#: src/octoprint/templates/settings.jinja2:117 +#: src/octoprint/templates/settings.jinja2:181 +msgid "Y" +msgstr "Y" + +#: src/octoprint/templates/settings.jinja2:127 +msgid "Z" +msgstr "Z" + +#: src/octoprint/templates/settings.jinja2:137 +msgid "E" +msgstr "E" + +#: src/octoprint/templates/settings.jinja2:145 +msgid "Default extrusion length" +msgstr "Longueur d'extrusion par défaut" + +#: src/octoprint/templates/settings.jinja2:151 +msgid "Number of Extruders" +msgstr "Nombre d'extrudeurs" + +#: src/octoprint/templates/settings.jinja2:157 +msgid "Extruder Offsets" +msgstr "Offsets de l'extrudeur" + +#: src/octoprint/templates/settings.jinja2:174 +msgid "Bed Size" +msgstr "Taille du lit" + +#: src/octoprint/templates/settings.jinja2:188 +msgid "Radius" +msgstr "Radius" + +#: src/octoprint/templates/settings.jinja2:196 +msgid "Circular" +msgstr "Circulaire" + +#: src/octoprint/templates/settings.jinja2:205 +msgid "Stream URL" +msgstr "URL de diffusion en direct" + +#: src/octoprint/templates/settings.jinja2:211 +msgid "Snapshot URL" +msgstr "URL de la photo instantanée" + +#: src/octoprint/templates/settings.jinja2:217 +msgid "Path to FFMPEG" +msgstr "Chemin vers FFMPEG" + +#: src/octoprint/templates/settings.jinja2:223 +msgid "Timelapse bitrate" +msgstr "Bitrate du timelapse" + +#: src/octoprint/templates/settings.jinja2:231 +msgid "Enable OctoPrint watermark in timelapse movies" +msgstr "Activer le watermark Octoprint sur les films timelapses" + +#: src/octoprint/templates/settings.jinja2:238 +msgid "Flip webcam horizontally" +msgstr "Rotation de la webcam horizontalement" + +#: src/octoprint/templates/settings.jinja2:243 +msgid "Flip webcam vertically" +msgstr "Rotation de la webcam verticalement" + +#: src/octoprint/templates/settings.jinja2:254 +msgid "Enable Temperature Graph" +msgstr "Activer le graphique de température" + +#: src/octoprint/templates/settings.jinja2:261 +msgid "Enable GCode Visualizer" +msgstr "Activer le visualisateur de GCode" + +#: src/octoprint/templates/settings.jinja2:268 +msgid "Enable SD support" +msgstr "Activer le support de carte SD" + +#: src/octoprint/templates/settings.jinja2:275 +msgid "Always assume SD card is present" +msgstr "Toujours supposer que la carte SD est présente" + +#: src/octoprint/templates/settings.jinja2:275 +#: src/octoprint/templates/settings.jinja2:289 +#: src/octoprint/templates/settings.jinja2:296 +msgid "Repetier" +msgstr "Repetier" + +#: src/octoprint/templates/settings.jinja2:282 +msgid "Wait for start on connect" +msgstr "Attendre start à la connection" + +#: src/octoprint/templates/settings.jinja2:289 +msgid "Send a checksum with every command" +msgstr "Envoyer un checksum avec chaque commande" + +#: src/octoprint/templates/settings.jinja2:296 +#, python-format +msgid "" +"Support TargetExtr%%n/TargetBed target temperature" +" format" +msgstr "Support TargetExtr%%n/TargetBed format de température de la cible" + +#: src/octoprint/templates/settings.jinja2:303 +msgid "Swallow the first \"ok\" after a resend response" +msgstr "Avaler le premier \"ok\" après le ré-envoi d'une réponse" + +#: src/octoprint/templates/settings.jinja2:312 +msgid "Upload Folder" +msgstr "Répertoire des chargements" + +#: src/octoprint/templates/settings.jinja2:318 +msgid "Timelapse Folder" +msgstr "Répertoire des timelapses" + +#: src/octoprint/templates/settings.jinja2:324 +msgid "Timelapse Temp Folder" +msgstr "Répertoire temporaire des timelapses" + +#: src/octoprint/templates/settings.jinja2:330 +msgid "Logs Folder" +msgstr "Répertoire des logs" + +#: src/octoprint/templates/settings.jinja2:336 +msgid "Watched Folder" +msgstr "Répertoire observé" + +#: src/octoprint/templates/settings.jinja2:346 +msgid "Extruder" +msgstr "Extrudeur" + +#: src/octoprint/templates/settings.jinja2:378 +msgid "RegExp" +msgstr "RegExp" + +#: src/octoprint/templates/settings.jinja2:403 +msgid "Title" +msgstr "Titre" + +#: src/octoprint/templates/settings.jinja2:409 +msgid "Color" +msgstr "Couleur" + +#: src/octoprint/templates/settings.jinja2:420 +msgid "Enable slicing via Cura" +msgstr "Activer le tranchage via Cura" + +#: src/octoprint/templates/settings.jinja2:426 +msgid "Path to Cura" +msgstr "Chemin vers Cura" + +#: src/octoprint/templates/settings.jinja2:432 +msgid "Path to Cura config" +msgstr "Chemin vers la configuration de Cura" + +#: src/octoprint/templates/settings.jinja2:444 +msgid "Enable" +msgstr "Activer" + +#: src/octoprint/templates/settings.jinja2:451 +#, python-format +msgid "Allow Cross Origin Resource Sharing (CORS)" +msgstr "Permettre Cross Origin Resource Sharing (CORS)" + +#: src/octoprint/templates/settings.jinja2:456 +#: src/octoprint/templates/settings.jinja2:477 +msgid "API Key" +msgstr "clé API" + +#: src/octoprint/templates/settings.jinja2:470 +#: src/octoprint/templates/settings.jinja2:531 +#: src/octoprint/templates/settings.jinja2:560 +msgid "Active" +msgstr "Actif" + +#: src/octoprint/templates/settings.jinja2:471 +#: src/octoprint/templates/settings.jinja2:538 +#: src/octoprint/templates/settings.jinja2:567 +msgid "Admin" +msgstr "Administrateur" + +#: src/octoprint/templates/settings.jinja2:481 +msgid "Update User" +msgstr "Mettre à jour l'utilisateur" + +#: src/octoprint/templates/settings.jinja2:481 +msgid "Change password" +msgstr "Changer le mot de passe" + +#: src/octoprint/templates/settings.jinja2:481 +msgid "Delete user" +msgstr "Supprimer utilisateur" + +#: src/octoprint/templates/settings.jinja2:498 +#: src/octoprint/templates/settings.jinja2:505 +msgid "Add user" +msgstr "Ajouter utilisateur" + +#: src/octoprint/templates/settings.jinja2:522 +#: src/octoprint/templates/settings.jinja2:593 +msgid "Repeat Password" +msgstr "Répéter le mot de passe" + +#: src/octoprint/templates/settings.jinja2:545 +#: src/octoprint/templates/settings.jinja2:574 +#: src/octoprint/templates/settings.jinja2:616 +msgid "Abort" +msgstr "Annuler" + +#: src/octoprint/templates/settings.jinja2:546 +#: src/octoprint/templates/settings.jinja2:575 +#: src/octoprint/templates/settings.jinja2:617 +msgid "Confirm" +msgstr "Confirmer" + +#: src/octoprint/templates/settings.jinja2:553 +#, python-format +msgid "Edit user \"%(user)s\"" +msgstr "Editer l'utilisateur \"%(user)s\"" + +#: src/octoprint/templates/settings.jinja2:582 +#, python-format +msgid "Change password for user \"%(user)s\"" +msgstr "Changer le mot de passe pour l'utilisateur \"%(user)s\"" + +#: src/octoprint/templates/settings.jinja2:587 +msgid "New Password" +msgstr "Nouveau mot de passe" + +#: src/octoprint/templates/settings.jinja2:602 +msgid "Current API Key" +msgstr "Clé API courante" + +#: src/octoprint/templates/settings.jinja2:605 +msgid "N/A" +msgstr "N/A" + +#: src/octoprint/templates/settings.jinja2:630 +msgid "Modification date" +msgstr "Date de modification" + +#: src/octoprint/templates/settings.jinja2:638 +msgid "Date" +msgstr "Date" + +#: src/octoprint/templates/settings.jinja2:677 +msgid "Save" +msgstr "Sauver" From e77efde50344e3719c600edac622a799b5ce4bd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 29 Aug 2014 09:26:57 +0200 Subject: [PATCH 49/50] Make key removal from session more solid Do not die a horrible death if the key you are attempting to remove from the session upon logout doesn't exist. Attempt at fixing #556 --- src/octoprint/server/api/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/octoprint/server/api/__init__.py b/src/octoprint/server/api/__init__.py index de3cf1881..48ed69fda 100644 --- a/src/octoprint/server/api/__init__.py +++ b/src/octoprint/server/api/__init__.py @@ -235,8 +235,9 @@ def login(): @restricted_access def logout(): # Remove session keys set by Flask-Principal - for key in ('identity.id', 'identity.auth_type'): - del session[key] + for key in ('identity.id', 'identity.name', 'identity.auth_type'): + if key in session: + del session[key] identity_changed.send(current_app._get_current_object(), identity=AnonymousIdentity()) logout_user() From 854387b2d0d9c3ac8ba07830e34473b3fa68a319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Sat, 30 Aug 2014 10:09:29 +0200 Subject: [PATCH 50/50] Changed default path to OctoPrint executable When installed via python setup.py install, it defaults to /usr/local/bin/octoprint, not /usr/bin/octoprint (cherry picked from commit 7a305b5) --- scripts/octoprint.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/octoprint.init b/scripts/octoprint.init index 87bf98755..19b10f7cf 100644 --- a/scripts/octoprint.init +++ b/scripts/octoprint.init @@ -18,7 +18,7 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DESC="Octoprint Daemon" NAME="Octoprint" -DAEMON=/usr/bin/octoprint +DAEMON=/usr/local/bin/octoprint PIDFILE=/var/run/$NAME.pid PKGNAME=octoprint SCRIPTNAME=/etc/init.d/$PKGNAME
    NameSizeDateAction{{ _('Name') }}{{ _('Size') }}{{ _('Date') }}{{ _('Action') }}