channel_prices rules (migration 0040, services/channel_prices.py): for one or more sales points,
set the price (one product), add an amount or a percentage (with rounding), for listed products,
the products of listed categories, or everything sold there. The most precise rule wins (product
> category > channel, newest on a tie); resolve_price starts from it, so tills, phones, menus and
the cloud's per-sales-point prices all follow. /api/pricing/channel-prices (CRUD) and
/product/{id} (the product editor's quick edit of its own rules, with the fallback shown).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
363 lines
18 KiB
JSON
363 lines
18 KiB
JSON
{
|
|
"generic": "Something went wrong. Please try again.",
|
|
"network": {
|
|
"offline": "Can't reach the server. Check the connection and try again."
|
|
},
|
|
"access": {
|
|
"denied": "You don't have permission to do this ({{key}}).",
|
|
"override_possible": "A manager can approve this ({{key}}).",
|
|
"override_invalid": "This approval isn't valid any more. Ask a manager again.",
|
|
"not_overridable": "{{key}} can't be approved by a manager.",
|
|
"approver_lacks_key": "That account can't approve this ({{key}}).",
|
|
"override_rate_limited": "Too many wrong PINs. Wait a few minutes and try again.",
|
|
"unknown_key": "There is no permission {{key}}.",
|
|
"cannot_grant": "You can only give permissions you have yourself ({{key}})."
|
|
},
|
|
"module": {
|
|
"disabled": "The {{module}} module is turned off.",
|
|
"not_licensed": "This site's license doesn't include {{module}}.",
|
|
"unknown": "There is no module {{module}}.",
|
|
"cannot_disable": "{{module}} is part of the core and can't be turned off."
|
|
},
|
|
"license": {
|
|
"limit_reached": "License limit reached for {{module}} {{limit}} ({{max}}).",
|
|
"expired": "The license has expired.",
|
|
"history_limited": "This license shows only the last {{days}} days of history ({{module}}).",
|
|
"locked": "The system was locked by the administrator. Contact support."
|
|
},
|
|
"auth": {
|
|
"invalid_credentials": "Wrong username or password.",
|
|
"session_ended": "Your session has ended. Please log in again.",
|
|
"session_exists": "You're already logged in on another {{client}}. Log out there first.",
|
|
"login_mode_not_allowed": "This way of logging in isn't enabled ({{mode}}).",
|
|
"mode_needs_device": "Logging in by {{mode}} only works on a paired device.",
|
|
"username_required": "Enter your username.",
|
|
"client_not_allowed": "This account can't use the {{client}} app.",
|
|
"session_not_found": "Session not found.",
|
|
"support_not_configured": "Support access isn't set up on this site.",
|
|
"support_code_invalid": "That support code is wrong or has expired. Ask for a new challenge.",
|
|
"support_rate_limited": "Too many support challenges. Wait a few minutes and try again.",
|
|
"wrong_pin": "Wrong PIN. {{attempts_left}} tries left before you are signed out.",
|
|
"password_current_required": "Enter your current password to set a new one.",
|
|
"no_password": "This account has no password yet.",
|
|
"password_wrong": "The current password is wrong.",
|
|
"password_too_short": "The password must be at least {{min}} characters long.",
|
|
"pin_too_short": "The PIN must be at least {{min}} digits long."
|
|
},
|
|
"device": {
|
|
"revoked": "This device was removed. Pair it again.",
|
|
"not_paired": "This device isn't paired with the venue.",
|
|
"out_of_scope": "A {{app}} device can't do this ({{key}}).",
|
|
"required": "This login belongs to a paired device. Use it from that device.",
|
|
"not_found": "Device {{device_id}} not found.",
|
|
"pair_code_invalid": "That pairing code is wrong or has expired.",
|
|
"pair_rate_limited": "Too many pairing requests. Wait a few minutes and try again.",
|
|
"not_an_app": "{{app}} is not an app that runs on a device.",
|
|
"login_mode_invalid": "A {{app}} device can't use the login mode {{mode}}.",
|
|
"link_invalid": "Device {{device_id}} can't be linked to this device."
|
|
},
|
|
"validation": {
|
|
"invalid": "Some fields are invalid.",
|
|
"unknown_language": "Unsupported language: {{language}}.",
|
|
"unknown_timezone": "Unknown time zone: {{timezone}}.",
|
|
"setting_value": "{{key}} can't be set to \"{{value}}\".",
|
|
"device_config": "This device setting is not valid: {{key}}.",
|
|
"datetime": "That date or time isn't valid.",
|
|
"choice": "{{field}} can't be {{value}}.",
|
|
"range": "{{field}} must be between {{min}} and {{max}}.",
|
|
"positive": "{{field}} must be more than zero.",
|
|
"missing": "{{field}} is required.",
|
|
"lan_ip": "Enter a local network IPv4 address (e.g. 192.168.1.50 or 10.0.0.5)."
|
|
},
|
|
"internal": {
|
|
"error": "Something went wrong on the server (request {{request_id}})."
|
|
},
|
|
"order": {
|
|
"not_found": "Order {{order_id}} not found.",
|
|
"not_sold_here": "{{name}} isn't sold for this kind of order.",
|
|
"lines_required": "This app sent the order in an old format. Update the app and send it again.",
|
|
"line": {
|
|
"product_unavailable": "{{name}} isn't available any more (line {{line}}).",
|
|
"option_gone": "{{name}}: a chosen option doesn't exist any more (line {{line}}). Remove it and add it again.",
|
|
"choice_missing": "{{name}}: a required choice is missing (line {{line}}).",
|
|
"quantity": "{{name}}: that quantity isn't allowed (line {{line}}).",
|
|
"price": "{{name}}: that price change isn't allowed (line {{line}}).",
|
|
"client_price": "{{name}}: the app sent its own prices, but prices come from the server (line {{line}}). Update the app."
|
|
},
|
|
"items_not_combinable": "These lines can't be combined: only unpaid lines of the same item, with the same choices, note, price and kitchen state, and no discount, deal or tab.",
|
|
"not_yours": "This order isn't one of your tables.",
|
|
"not_open": "This order isn't open any more.",
|
|
"item_not_found": "That item isn't on the order any more.",
|
|
"item_paid": "This item is already paid.",
|
|
"item_not_active": "Only items still on the order can be changed.",
|
|
"nothing_paid": "There are no paid items to undo.",
|
|
"cannot_close": "This order can't be closed now ({{status}}).",
|
|
"no_active_items": "None of these items are on the order any more.",
|
|
"waiter_assigned": "That waiter is already on this order.",
|
|
"assignment_not_found": "That waiter isn't on this order.",
|
|
"same_table": "The order is already on that table.",
|
|
"same_order": "An order can't be joined with itself.",
|
|
"target_not_found": "The other order isn't there any more.",
|
|
"split_quantity": "Split into 1 to {{max}} pieces.",
|
|
"discounts_off": "Discounts are turned off for this venue.",
|
|
"no_customer": "Give the order a customer first.",
|
|
"item_not_tabbable": "This item is already {{status}}: it can't go on a tab.",
|
|
"product_unavailable": "Product {{product_id}} isn't available."
|
|
},
|
|
"notification": {
|
|
"not_found": "Notification {{notification_id}} not found."
|
|
},
|
|
"catalog": {
|
|
"unknown_category": "There is no category {{category_id}}.",
|
|
"primary_not_listed": "The main category ({{category_id}}) must be one of the product's categories.",
|
|
"category_not_found": "Category not found.",
|
|
"parent_not_found": "The parent category doesn't exist.",
|
|
"nest_has_children": "A category with sub-categories can't go under another one.",
|
|
"too_deep": "Categories go at most two levels deep.",
|
|
"own_parent": "A category can't be its own parent.",
|
|
"group_not_found": "Option group not found.",
|
|
"allergen": "Unknown allergen or level: {{allergen}}.",
|
|
"translation": "The menu can't be translated like that: {{what}}."
|
|
},
|
|
"system": {
|
|
"log_not_found": "There is no log file for {{date}}."
|
|
},
|
|
"kds": {
|
|
"item_not_found": "Item {{item_id}} not found on this order.",
|
|
"item_claimed": "{{name}} is already on this item.",
|
|
"claim_needs_staff": "Only a staff member can claim an item."
|
|
},
|
|
"pos": {
|
|
"line_invalid": "Cart line {{line}} can't be sold as chosen ({{reason}}).",
|
|
"shift_required": "Start your shift before selling.",
|
|
"payment_invalid": "This payment doesn't add up ({{reason}}).",
|
|
"fiscal_vat_missing": "Fiscal receipts are on, but these products have no VAT group: {{names}}.",
|
|
"table_not_found": "Table {{table_id}} not found.",
|
|
"table_not_yours": "{{table}} isn't in your zones. A manager can add the zone to your account.",
|
|
"items_changed": "Some of these items were paid or cancelled in the meantime. Check the order and try again.",
|
|
"order_unpaid": "Items still unpaid: {{count}}. Take the payment or cancel them first."
|
|
},
|
|
"online": {
|
|
"not_found": "Online order {{order_id}} not found.",
|
|
"status_changed": "This online order was changed on another screen in the meantime. Check where it is now."
|
|
},
|
|
"refund": {
|
|
"invalid": "This refund doesn't add up ({{reason}}).",
|
|
"too_old": "Only payments from today's business day can be refunded at the counter.",
|
|
"items_changed": "Some of these items were refunded in the meantime. Check the order and try again."
|
|
},
|
|
"fees": {
|
|
"area_not_found": "Delivery area {{area_id}} not found.",
|
|
"rule_not_found": "Fee rule {{rule_id}} not found.",
|
|
"area_in_use": "This area is used by fee rules: {{rules}}. Change those rules first.",
|
|
"order_invalid": "The new order must list every rule once.",
|
|
"vat_group_unknown": "VAT group {{vat_group_id}} isn't one of the fiscal machine's groups."
|
|
},
|
|
"reservation": {
|
|
"not_found": "Booking {{reservation_id}} not found.",
|
|
"status_changed": "This booking was changed on another screen in the meantime (it is now {{current}}).",
|
|
"table_unknown": "Table {{table_id}} not found.",
|
|
"table_busy": "That table already has an open order. Pick another table, or close that order first.",
|
|
"table_kept": "That table is already kept for {{name}} at {{time}}."
|
|
},
|
|
"display": {
|
|
"qr_url_missing": "Enter the link the QR code opens.",
|
|
"look_unknown": "Look {{look_id}} not found.",
|
|
"look_default": "The default look can't be deleted. Make another look the default first.",
|
|
"not_a_display": "Device {{device_id}} isn't a customer display."
|
|
},
|
|
"media": {
|
|
"not_found": "File {{media_id}} isn't in the media library.",
|
|
"type": "Upload a picture (JPG, PNG, WebP, AVIF or GIF) or a video (MP4, MOV or WebM).",
|
|
"too_big": "The file is too big (at most {{max_mb}} MB).",
|
|
"too_many_pixels": "The picture is too large (at most {{max_mp}} megapixels).",
|
|
"unreadable": "This picture can't be read. Save it again as JPG or PNG and upload it.",
|
|
"in_use": "This file is used by {{uses}}. Remove it there first.",
|
|
"not_a_picture": "Pick a picture here, not a video.",
|
|
"builtin": "Built-in pictures can't be deleted or renamed."
|
|
},
|
|
"caller_id": {
|
|
"key_invalid": "The phone system's key is missing or wrong."
|
|
},
|
|
"signage": {
|
|
"playlist_unknown": "Playlist {{playlist_id}} not found.",
|
|
"slide_unknown": "Slide {{slide_id}} not found.",
|
|
"not_a_screen": "Device {{device_id}} isn't a signage screen.",
|
|
"not_a_video": "Pick a video for this slide.",
|
|
"content_invalid": "This slide's setting isn't valid ({{field}}: {{reason}}).",
|
|
"order_mismatch": "The playlist changed in the meantime. Reload it and try again.",
|
|
"weather_offline": "The weather service can't be reached: the venue's server needs internet for it.",
|
|
"schedule_unknown": "Schedule {{schedule_id}} not found."
|
|
},
|
|
"menu_tablet": {
|
|
"no_table": "This tablet isn't at a table, so it can't call a waiter.",
|
|
"call_too_soon": "A waiter was just called. Try again in {{seconds}} seconds.",
|
|
"no_ordering": "Ordering isn't on for this tablet.",
|
|
"too_many": "At most {{most}} items in one order.",
|
|
"too_many_of": "At most {{most}} of \"{{name}}\" in one order.",
|
|
"too_soon": "An order was just sent. Try again in {{seconds}} seconds.",
|
|
"table_closed": "Please ask a waiter to open your table first.",
|
|
"day_closed": "The venue isn't taking orders right now. Please ask a waiter.",
|
|
"no_staff": "There is no staff account to place the order with.",
|
|
"order_not_found": "This order was not found.",
|
|
"order_answered": "This order was already answered."
|
|
},
|
|
"settings": {
|
|
"invalid_json": "The settings must be valid JSON.",
|
|
"unknown_key": "There is no setting {{key}}."
|
|
},
|
|
"business_day": {
|
|
"already_open": "A business day is already open.",
|
|
"none_open": "No business day is open.",
|
|
"closed": "The venue isn't open: a manager must open the business day first.",
|
|
"orders_open": "{{open_orders}} table(s) still open, {{partially_paid}} with unpaid items.",
|
|
"not_found": "Business day not found.",
|
|
"not_closed": "Only a closed business day can be edited.",
|
|
"close_in_future": "The closing time can't be in the future.",
|
|
"close_before_last_order": "The closing time can't be earlier than the last order's close ({{time}}).",
|
|
"delete_open": "An open business day can't be deleted. Close it first.",
|
|
"has_shifts": "This business day has {{count}} shift(s). Delete those first."
|
|
},
|
|
"chat": {
|
|
"not_found": "Conversation not found.",
|
|
"not_participant": "You're not in this conversation.",
|
|
"empty_message": "The message is empty.",
|
|
"system_group": "You can't leave the staff group.",
|
|
"leave_direct": "A one-to-one conversation can't be left.",
|
|
"direct_two": "A one-to-one conversation has exactly two people.",
|
|
"group_name": "A group conversation needs a name."
|
|
},
|
|
"customer": {
|
|
"not_found": "Customer not found."
|
|
},
|
|
"transfer": {
|
|
"wrong_type": "This file isn't a {{expected}} export.",
|
|
"version": "This export's version isn't supported."
|
|
},
|
|
"contact": {
|
|
"not_found": "Contact not found."
|
|
},
|
|
"expense": {
|
|
"not_found": "Expense not found.",
|
|
"over_due": "That's more than what is still due ({{due}}).",
|
|
"below_paid": "{{paid}} has been paid already: the total can't be less.",
|
|
"document_not_found": "Document not found.",
|
|
"document_type": "Upload a PDF or a photo (JPG, PNG, WebP or HEIC).",
|
|
"document_too_big": "The file is too big (at most {{max_mb}} MB)."
|
|
},
|
|
"flag": {
|
|
"not_found": "Mark not found.",
|
|
"in_use": "This mark is on {{count}} table(s). Remove it there first.",
|
|
"invalid_ids": "Some of these marks don't exist."
|
|
},
|
|
"staff_message": {
|
|
"template_not_found": "Message template not found.",
|
|
"not_found": "Message not found."
|
|
},
|
|
"note": {
|
|
"not_found": "Note not found."
|
|
},
|
|
"todo": {
|
|
"not_found": "To-do not found."
|
|
},
|
|
"printer": {
|
|
"not_found": "That printer isn't there or is turned off."
|
|
},
|
|
"print_job": {
|
|
"not_found": "That print job isn't there any more.",
|
|
"not_pending": "Only tickets still waiting to print can be cancelled.",
|
|
"done": "That ticket isn't waiting any more: it was printed or dealt with on another screen."
|
|
},
|
|
"table": {
|
|
"not_found": "Table not found.",
|
|
"busy": "That table already has an open order.",
|
|
"has_order": "A table with an open order can't be deleted or turned off.",
|
|
"name_too_long": "The table names would be too long ({{name}}: at most {{max}} characters). Shorten the prefix or make fewer."
|
|
},
|
|
"table_group": {
|
|
"name_taken": "There is already a group with that name.",
|
|
"not_found": "Table group not found."
|
|
},
|
|
"prep_zone": {
|
|
"not_found": "Prep zone not found."
|
|
},
|
|
"price_group": {
|
|
"not_found": "Price group not found."
|
|
},
|
|
"modifier": {
|
|
"not_found": "Price rule not found."
|
|
},
|
|
"deal": {
|
|
"not_found": "Deal not found."
|
|
},
|
|
"product": {
|
|
"not_found": "Product not found.",
|
|
"in_past_orders": "This product is in past orders, so it can't be deleted. Archive it instead."
|
|
},
|
|
"staff": {
|
|
"not_found": "Staff member not found.",
|
|
"username_taken": "That username is already taken.",
|
|
"superadmin_protected": "A superadmin account can't be changed.",
|
|
"superadmin_only": "Only a superadmin can give the superadmin role.",
|
|
"role_invalid": "There is no role {{role}}.",
|
|
"avatar_type": "The photo must be a picture file.",
|
|
"assignment_exists": "That assignment already exists.",
|
|
"assignment_not_found": "Assignment not found.",
|
|
"pin_invalid": "A PIN is {{min}} to {{max}} digits.",
|
|
"password_own": "Change your own password from your profile.",
|
|
"delete_self": "You can't delete yourself.",
|
|
"username_needed": "Every person needs a username.",
|
|
"has_history": "{{name}} has orders or shifts on record, so they can't be deleted. Block them instead: they can't sign in, and the reports keep their name."
|
|
},
|
|
"schedule": {
|
|
"shift_not_found": "Scheduled shift not found.",
|
|
"bad_time": "Times are written like 09:30.",
|
|
"overlap": "{{name}} already has a shift from {{start}} to {{end}} that day."
|
|
},
|
|
"setup": {
|
|
"done": "Setup is already done: a manager account exists."
|
|
},
|
|
"shift": {
|
|
"already_active": "This person already has a shift going.",
|
|
"start_needs_manager": "Starting the shift needs a manager's approval.",
|
|
"end_needs_manager": "Ending the shift needs a manager's approval.",
|
|
"others_need_manager": "Only managers can start shifts for other staff.",
|
|
"none_active": "No shift is going.",
|
|
"not_found": "Shift not found.",
|
|
"not_yours": "This shift belongs to someone else.",
|
|
"ended": "This shift has already ended.",
|
|
"on_break": "A break is already going.",
|
|
"no_break": "No break is going.",
|
|
"delete_active": "A shift that is still going can't be deleted. End it first."
|
|
},
|
|
"tab": {
|
|
"not_found": "Tab not found.",
|
|
"already_open": "This customer already has an open tab.",
|
|
"over_balance": "That's more than the balance ({{balance}}).",
|
|
"has_balance": "The tab still owes {{balance}}. Pay it or forgive it first."
|
|
},
|
|
"waste": {
|
|
"not_found": "Throwaway entry not found.",
|
|
"not_today": "Only throwaways of the open business day can be deleted."
|
|
},
|
|
"pricing": {
|
|
"bad_limit": "A discount limit must be a number of 0 or more, or empty for no limit.",
|
|
"bad_condition": "A condition is incomplete: fill in all its values."
|
|
},
|
|
"floor_plan": {
|
|
"not_found": "Floor plan not found.",
|
|
"bad_outline": "The floor's shape needs 3 to 100 corners, all inside the plan.",
|
|
"bad_zone": "That zone no longer exists.",
|
|
"bad_background": "The background must be a picture from the media library.",
|
|
"bad_layout": "The layout has a table twice or a place that is not a number."
|
|
},
|
|
"print": {
|
|
"printer_off": "The printer {{printer}} is turned off in the settings.",
|
|
"redirect_failed": "{{printer}} didn't print it either ({{error}}). The ticket is still waiting."
|
|
},
|
|
"channel_price": {
|
|
"not_found": "Channel price not found.",
|
|
"set_one_product": "A set price is for one product: pick one product (and no categories), or change the price by an amount or a percentage."
|
|
}
|
|
}
|