From 791a39697a4237053eed71c608fef79f5cf81864 Mon Sep 17 00:00:00 2001 From: Diaco Soltanpour Date: Thu, 1 Oct 2026 18:41:27 +0000 Subject: [PATCH] =?UTF-8?q?Localize=20print=20queue=20badges=20and=20use?= =?UTF-8?q?=20=DA=AF=D8=A7=D9=84=D9=86=20in=20Persian=20(#5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary - Translate print-queue badges (canisters/boxes/pages/pending) via i18n - Replace Persian قوطی with گالن everywhere in UI strings ## Test plan - [ ] Print Queue in FA shows e.g. `20 گالن | 5 کارتن` and `7 صفحه` - [ ] Pending badge shows `در انتظار` - [ ] Entry form FA labels use گالن (weight / per box) Reviewed-on: https://git.faryad.top/rhino/product-slip/pulls/5 Co-authored-by: Diaco Soltanpour Co-committed-by: Diaco Soltanpour --- slips/static/slips/js/i18n.js | 14 +++++++++++--- slips/templates/slips/print.html | 6 +++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/slips/static/slips/js/i18n.js b/slips/static/slips/js/i18n.js index e2694b4..582d8ab 100644 --- a/slips/static/slips/js/i18n.js +++ b/slips/static/slips/js/i18n.js @@ -22,8 +22,12 @@ const translations = { 'labels_preview': 'Labels Generated', 'canisters': 'Canisters', 'boxes': 'Boxes', + 'canisters_unit': 'Canisters', + 'boxes_unit': 'Boxes', + 'pages_unit': 'Page(s)', 'pages_needed': 'Pages Needed', 'total_pages': 'Pages', + 'status_pending': 'Pending', 'add_to_queue': 'Add to Print Queue', 'recent_orders': 'Recent Orders', 'status': 'Status', @@ -53,13 +57,17 @@ const translations = { 'next_control': 'تاریخ کنترل بعدی', 'net_weight': 'وزن خالص (کیلوگرم)', 'total_weight': 'وزن کل (کیلوگرم)', - 'canister_weight': 'وزن قوطی (کیلوگرم)', - 'canisters_per_box': 'تعداد قوطی در هر کارتن', + 'canister_weight': 'وزن گالن (کیلوگرم)', + 'canisters_per_box': 'تعداد گالن در هر کارتن', 'labels_preview': 'برچسب‌های تولیدی', - 'canisters': 'تعداد قوطی', + 'canisters': 'تعداد گالن', 'boxes': 'تعداد کارتن', + 'canisters_unit': 'گالن', + 'boxes_unit': 'کارتن', + 'pages_unit': 'صفحه', 'pages_needed': 'تعداد صفحات', 'total_pages': 'صفحات', + 'status_pending': 'در انتظار', 'add_to_queue': 'افزودن به صف چاپ', 'recent_orders': 'سفارشات اخیر', 'status': 'وضعیت', diff --git a/slips/templates/slips/print.html b/slips/templates/slips/print.html index db86201..c729916 100644 --- a/slips/templates/slips/print.html +++ b/slips/templates/slips/print.html @@ -21,7 +21,7 @@
#{{ o.id }} - ⏳ Pending + ⏳ Pending

{{ o.product.code }} — {{ o.product.description }}

@@ -44,8 +44,8 @@