feat(branch & warehouse activate): localization.

This commit is contained in:
elforjani13
2022-03-21 20:03:18 +02:00
parent a17fafbc90
commit 8b78fbdb86
4 changed files with 38 additions and 19 deletions

View File

@@ -1,4 +1,5 @@
import React from 'react';
import intl from 'react-intl-universal';
import { Form } from 'formik';
import { Classes } from '@blueprintjs/core';
import BranchActivateFormFloatingActions from './BranchActivateFormFloatingActions';
@@ -11,17 +12,19 @@ export default function BranchActivateFormContent() {
<Form>
<div className={Classes.DIALOG_BODY}>
<p class="paragraph">
Once you enable <strong>Multiply Branches</strong>, you will not be able to disable it.
However, you can delete the branch or mark it inactive.
{intl.getHTML('branch_activate.dialog_paragraph_once_you_enable')}
</p>
<ul class="paragraph list">
<li>
The current organization will be considered as the Head Office or
Primary Branch.
{intl.get(
'branch_activate.dialog_paragraph_list_the_current_organization_will_be_considered',
)}
</li>
<li>
All accounts transactions will be considered as the primary office.
{intl.get(
'branch_activate.dialog_paragraph_list_all_accounts_transactions_will_be_considered',
)}
</li>
</ul>
</div>

View File

@@ -1,7 +1,7 @@
import React from 'react';
import intl from 'react-intl-universal';
import { Form } from 'formik';
import { Classes } from '@blueprintjs/core';
import WarehouseActivateFormFloatingActions from './WarehouseActivateFormFloatingActions';
/**
@@ -12,16 +12,19 @@ export default function WarehouseActivateFormContent() {
<Form>
<div className={Classes.DIALOG_BODY}>
<p class="paragraph">
Once you enable <strong>Multiply Warehouses</strong>, you will not be able to disable it.
However, you can delete the warehouse or mark it inactive.
{intl.getHTML('warehouse_activate.dialog_paragraph_once_you_enable')}
</p>
<ul class="paragraph list">
<li>
The current organization will be considered as the Primary Warehouse.
{intl.get(
'warehouse_activate.dialog_paragraph_list_the_current_organization_will_be_considered',
)}
</li>
<li>
All inventory transactions will be considered as the Primary Warehouse.
{intl.get(
'warehouse_activate.dialog_paragraph_list_all_accounts_transactions_will_be_considered',
)}
</li>
</ul>
</div>

View File

@@ -1810,8 +1810,9 @@
"warehouses.action.edit_warehouse": "تعديل المخزن",
"warehouses.action.delete_warehouse": "حذف المخزن ",
"warehouses.action.make_as_parimary": "وضع علامة كأساسي ",
"warehouses.empty_status.title":نشاء وإدارة مخازن مؤسستك.",
"warehouses.empty_status.description": "",
"warehouses.empty_status.title": "إدارة مخازن مؤسستك.",
"warehouses.empty_status.description": "إدارة وتتبع مخزون مؤسستك عبر مخازن متعددة. ",
"warehouses.activate_button": "تفعيل المخازن ",
"warehouse.alert.delete_message": "تم حذف المخزن بنجاح.",
"warehouse.once_delete_this_warehouse": "بمجرد حذف هذا المخزن، لن تتمكن من استعادته لاحقًا. هل أنت متأكد أنك تريد حذف؟.",
"warehouse.error.could_not_delete_only_waerhouse": "لا يمكنك حذف المخزن الاخير.",
@@ -1858,8 +1859,9 @@
"branches.column.address": "عنوان",
"branches.column.phone_number": "رقم الهاتف",
"branches.column.code": "رمز",
"branches.empty_status.title":نشاء وإدارة فروع مؤسستك",
"branches.empty_status.description": "",
"branches.empty_status.title": "إدارة فروع مؤسستك",
"branches.empty_status.description": "إدارة ومتابعة المعاملات التجارية لتقييم أداء الفروع. ",
"branches.activate_button": "تفعيل الفروع ",
"select_branch": "حدد الفرع ",
"branch": "فرع",
"warehouse": "مخزن",
@@ -1880,11 +1882,17 @@
"realized_gain_or_loss.label": "Realized Gain or Loss",
"unrealized_gain_or_loss.label": "Unrealized Gain or Loss",
"branch_activate.dialog_success_message": "تم تفعيل خاصية تعدد الفروع بنجاح.",
"branch_activate.dialog.label":"تفعيل الفروع",
"branch_activate.dialog.label": "تفعيل الفروع",
"branch_activate.dialog_paragraph_once_you_enable": "بمجرد تفعيل خاصية <strong>تعدد الفروع</strong>, لن تتمكن من تعطيلها. ومع ذلك ، يمكنك حذف الفرع أو وضع علامة على أنه غير نشط.",
"branch_activate.dialog_paragraph_list_the_current_organization_will_be_considered": "سيتم اعتبار المنشأة الحالية بمثابة المكتب الرئيسي أو الفرع الرئيسي.",
"branch_activate.dialog_paragraph_list_all_accounts_transactions_will_be_considered": "سيتم اعتبار جميع معاملات الحسابات بمثابة المكتب الرئيسي. ",
"branch.alert.mark_primary_message": "تم تحديد الفرع على أنه أساسي.",
"branch.error.could_not_delete_only_branch": "لا يمكنك حذف الفرع الاخير.",
"warehouse_activate.dialog_success_message": "تم تفعيل خاصية تعدد المخازن بنجاح.",
"warehouse_actviate.dialog.label":"تفعيل المخازن",
"warehouse_actviate.dialog.label": "تفعيل المخازن",
"warehouse_actviate.dialog_paragraph_once_you_enable": "بمجرد تفعيل خاصية <strong>تعدد المخازن</strong>, لن تتمكن من تعطيلها. ومع ذلك ، يمكنك حذف المخزن أو وضع علامة على أنه غير نشط.",
"warehouse_actviate.dialog_paragraph_list_the_current_organization_will_be_considered": "سيتم اعتبار المنشأة الحالية بمثابة المكتب الرئيسي أو الفرع الرئيسي.",
"warehouse_actviate.dialog_paragraph_list_all_accounts_transactions_will_be_considered": "سيتم اعتبار جميع معاملات الحسابات بمثابة المكتب الرئيسي. ",
"warehouse.alert.mark_primary_message": "تم تحديد المخزن على أنه أساسي.",
"make_primary": "وضع علامة كأساسي",
"invoice.branch_button.label": "الفرع: {label}",
@@ -1917,13 +1925,12 @@
"warehouse.error.warehouse_has_associated_transactions": "لا يمكنك حذف هذا المخزن لأنه لديه معاملات مرتبطة به. ",
"branche.error.warehouse_code_not_unique": "رمز الفرع ليس فريدًا ",
"branche.error.branch_has_associated_transactions": "لا يمكنك حذف هذا الفرع لأنه لديه معاملات مرتبطة به.",
"payment_Receive.error.payment_account_currency_invalid":"يجب أن تكون عملة حساب الإيداع هي نفس عملة العميل أو العملة الأساسية للمنشأة.",
"payment_made.error.withdrawal_account_currency_invalid":"يجب أن تكون عملة حساب السحب هي نفس عملة المورد أو العملة الأساسية للمنشأة.",
"payment_Receive.error.payment_account_currency_invalid": "يجب أن تكون عملة حساب الإيداع هي نفس عملة العميل أو العملة الأساسية للمنشأة.",
"payment_made.error.withdrawal_account_currency_invalid": "يجب أن تكون عملة حساب السحب هي نفس عملة المورد أو العملة الأساسية للمنشأة.",
"view_customer_details": "عرض تفاصيل العميل ",
"view_vendor_details": "عرض تفاصيل المورد ",
"thanks_for_your_business_and_have_a_great_day": "Thanks for your business and have a great day!",
"terms_and_conditions.placeholder": "Enter the terms and conditions of your business to be displayed in your transaction",
"expenses.decscrption.placeholder": "Enter the description of your business to be displayed in your transaction",
"make_jorunal.decscrption.placeholder": "Enter the description of your business to be displayed in your transaction"
}

View File

@@ -1876,11 +1876,17 @@
"unrealized_gain_or_loss.label": "Unrealized Gain or Loss",
"branch_activate.dialog.label": "Branches Activation",
"branch_activate.dialog_success_message": "Multi-branches feature has been activated successfully.",
"branch_activate.dialog_paragraph_once_you_enable": "Once you enable <strong>Multiple Branches</strong>, you will not be able to disable it. However, you can delete the branch or mark it inactive.",
"branch_activate.dialog_paragraph_list_the_current_organization_will_be_considered": "The current organization will be considered as the Head Office or Primary Branch.",
"branch_activate.dialog_paragraph_list_all_accounts_transactions_will_be_considered": "All accounts transactions will be considered as the primary office.",
"branch.alert.mark_primary_message": "The branch has been marked as primary.",
"branch.alert.are_you_sure_you_want_to_make": "Are you sure you want to make a primary branch?",
"branch.error.could_not_delete_only_branch": "You could not delete the only branch.",
"warehouse_actviate.dialog.label": "Warehouses Activation",
"warehouse_activate.dialog_success_message": "Multi-branches feature has been activated successfully.",
"warehouse_activate.dialog_paragraph_once_you_enable": "Once you enable <strong>Multiple Warehouses</strong>, you will not be able to disable it. However, you can delete the warehouse or mark it inactive.",
"warehouse_activate.dialog_paragraph_list_the_current_organization_will_be_considered": "The current organization will be considered as the Head Office or Primary warehouse.",
"warehouse_activate.dialog_paragraph_list_all_accounts_transactions_will_be_considered": "All accounts transactions will be considered as the primary office.",
"warehouse.alert.mark_primary_message": "The given warehouse has been marked as primary.",
"warehouse.alert.are_you_sure_you_want_to_make": "Are you sure you want to make a primary warehouse?",
"make_primary": "Make as Primary",