""" User-facing strings of the JavaScript designer. The English text is the msgid, so the designer falls back to English if a translation is missing. """ from django.utils.translation import gettext, gettext_noop JS_STRINGS = ( gettext_noop('Save'), gettext_noop('Saving…'), gettext_noop('Saved'), gettext_noop('Unsaved changes'), gettext_noop('Save failed'), gettext_noop('You have unsaved changes. Leave anyway?'), gettext_noop('Undo'), gettext_noop('Redo'), gettext_noop('Delete'), gettext_noop('Duplicate'), gettext_noop('Rotate 90°'), gettext_noop('Bring to front'), gettext_noop('Send to back'), gettext_noop('Zoom in'), gettext_noop('Zoom out'), gettext_noop('Fit to screen'), gettext_noop('Snap to grid'), gettext_noop('Show grid'), gettext_noop('Fullscreen'), gettext_noop('Export SVG'), gettext_noop('Export PNG'), gettext_noop('Shapes'), gettext_noop('Racks'), gettext_noop('Devices'), gettext_noop('Search…'), gettext_noop('Loading…'), gettext_noop('No racks found'), gettext_noop('No devices found'), gettext_noop('Already placed'), gettext_noop('Drag onto the plan or click to add'), gettext_noop('Properties'), gettext_noop('Floor plan'), gettext_noop('Nothing selected – plan settings'), gettext_noop('{n} items selected'), gettext_noop('Type'), gettext_noop('Label'), gettext_noop('X (cm)'), gettext_noop('Y (cm)'), gettext_noop('Width (cm)'), gettext_noop('Depth (cm)'), gettext_noop('Height (cm)'), gettext_noop('Rotation (°)'), gettext_noop('Color'), gettext_noop('Reset color'), gettext_noop('Linked object'), gettext_noop('Open object'), gettext_noop('Grid size (cm)'), gettext_noop('Status'), gettext_noop('Role'), gettext_noop('Tenant'), gettext_noop('Height (U)'), gettext_noop('Devices in rack'), gettext_noop('Color by'), gettext_noop('Item type'), gettext_noop('Highlight…'), gettext_noop('Rack'), gettext_noop('Device'), gettext_noop('Wall'), gettext_noop('Door'), gettext_noop('Window'), gettext_noop('Area'), gettext_noop('Column'), gettext_noop('Cooling unit'), gettext_noop('Power / UPS'), gettext_noop('Label'), gettext_noop('Keyboard shortcuts'), gettext_noop('Drag: move · Alt: no snapping · Shift+click: multi-select · Space+drag / middle mouse: pan · Wheel: zoom · R: rotate · Del: delete · Ctrl+Z/Y: undo/redo · Ctrl+C/V/D: copy/paste/duplicate · Ctrl+S: save'), gettext_noop('Wheel: zoom · Drag: pan · Click a rack or device to open it'), gettext_noop('This floor plan is empty.'), ) def get_js_strings(): return {s: gettext(s) for s in JS_STRINGS}