Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chinese support #205

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
8 changes: 4 additions & 4 deletions data/MantleSetupData.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ along with this software (see the LICENSE.md file). If not, see
description="Settlement Term Order Payments - Half on Due Date, Half After Delivery"
serviceName="mantle.order.OrderServices.create#OrderPayments50Split"/>
<mantle.account.invoice.SettlementTerm settlementTermId="OrderPayment50Split30Days" termTypeEnumId="TtFinPaymentDays"
description="Half Due In Advance, Half Due 30 Days after Invoice" termValue="30" termValueUomId="TF_day"
description="一半预付,一半在发票后 30 天到期" termValue="30" termValueUomId="TF_day"
orderPmtServiceRegisterId="OrderPayment50Split"/>

<!-- ========== Global Preferences ========== -->
Expand Down Expand Up @@ -168,11 +168,11 @@ along with this software (see the LICENSE.md file). If not, see

<!-- Registered Services: Store Promotion -->
<moqui.service.ServiceRegister serviceRegisterId="NewCustomerDiscount" serviceTypeEnumId="ProductStorePromotion"
description="New Customer Discount" serviceName="mantle.product.PromotionServices.apply#NewCustomerDiscount"/>
description="新顾客优惠" serviceName="mantle.product.PromotionServices.apply#NewCustomerDiscount"/>
<moqui.service.ServiceRegister serviceRegisterId="BuyGetDiscount" serviceTypeEnumId="ProductStorePromotion"
description="Buy X Get Y at Z% Discount" serviceName="mantle.product.PromotionServices.apply#BuyGetDiscount"/>
description="以 Z% 的折扣买 X 送 Y" serviceName="mantle.product.PromotionServices.apply#BuyGetDiscount"/>
<moqui.service.ServiceRegister serviceRegisterId="FlatDiscount" serviceTypeEnumId="ProductStorePromotion"
description="Flat Discount per Quantity" serviceName="mantle.product.PromotionServices.apply#FlatDiscount"/>
description="按每件数量固定折扣" serviceName="mantle.product.PromotionServices.apply#FlatDiscount"/>

<!-- Registered Services: Store Order Pre-Approve Validation -->
<moqui.service.ServiceRegister serviceRegisterId="OrderManualApprove" serviceTypeEnumId="OrderValidate"
Expand Down
48 changes: 47 additions & 1 deletion data/OrderInstallData.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,53 +16,99 @@ along with this software (see the LICENSE.md file). If not, see

<moqui.basic.LocalizedMessage locale="default" original="OrderInventoryNotAvailable"
localized="${product?.productName ?: productId} is out of stock"/>
<moqui.basic.LocalizedMessage locale="zh" original="OrderInventoryNotAvailable"
localized="${product?.productName ?: productId} 缺货"/>
<moqui.basic.LocalizedMessage locale="default" original="OrderInventoryInsufficient"
localized="Only ${ec.l10n.format(availableToPromiseTotal, '#,##0')} of ${product?.productName ?: productId} are available"/>

<moqui.basic.LocalizedMessage locale="zh" original="OrderInventoryInsufficient"
localized="仅有 ${ec.l10n.format(availableToPromiseTotal, '#,##0')} ${product?.productName ?: productId} 是有效的"/>
<!-- Order Approve warning and other messages - used in OrderInfoServices.check#OrderPreApprove -->
<moqui.basic.LocalizedMessage locale="default" original="OrderApproveCurrencyDifferent"
localized="Payment currency ${payment.amountUomId} is different from order currency ${orderHeader.currencyUomId}"/>
<moqui.basic.LocalizedMessage locale="zh" original="OrderApproveCurrencyDifferent"
localized="付款货币 ${payment.amountUomId} 与订单货币 ${orderHeader.currencyUomId} 不同"/>
<moqui.basic.LocalizedMessage locale="default" original="OrderApprovePaymentPromisedLow"
localized="Total promised or later payment total ${ec.l10n.formatCurrency(totalPromised, orderHeader.currencyUomId)} is less than order total ${ec.l10n.formatCurrency(orderHeader.grandTotal, orderHeader.currencyUomId)}"/>
<moqui.basic.LocalizedMessage locale="zh" original="OrderApprovePaymentPromisedLow"
localized="承诺或以后付款总额 ${ec.l10n.formatCurrency(totalPromised, orderHeader.currencyUomId)} 小于订单总额 ${ec.l10n.formatCurrency(orderHeader.grandTotal, orderHeader.currencyUomId)}"/>
<moqui.basic.LocalizedMessage locale="default" original="OrderApprovePaymentAuthorizedLow"
localized="Total authorized or later payment total ${ec.l10n.formatCurrency(totalAuthorized, orderHeader.currencyUomId)} is less than order total ${ec.l10n.formatCurrency(orderHeader.grandTotal, orderHeader.currencyUomId)}"/>
<moqui.basic.LocalizedMessage locale="zh" original="OrderApprovePaymentAuthorizedLow"
localized="授权或以后付款总额 ${ec.l10n.formatCurrency(totalAuthorized, orderHeader.currencyUomId)} 小于订单总额 ${ec.l10n.formatCurrency(orderHeader.grandTotal, orderHeader.currencyUomId)}"/>
<!-- TODO more to do between these in service -->
<moqui.basic.LocalizedMessage locale="default" original="OrderApproveStoreManualApprove"
localized="==> Store configured to require manual approval"/>
<moqui.basic.LocalizedMessage locale="zh" original="OrderApproveStoreManualApprove"
localized="==> 配置为需要手动批准的店铺"/>
<moqui.basic.LocalizedMessage locale="default" original="OrderApprovePartNoVendor"
localized="Part ${orderPart.orderPartSeqId} has no vendor"/>
<moqui.basic.LocalizedMessage locale="zh" original="OrderApprovePartNoVendor"
localized="部分 ${orderPart.orderPartSeqId} 没有供应商"/>
<moqui.basic.LocalizedMessage locale="default" original="OrderApprovePartNoCustomer"
localized="Part ${orderPart.orderPartSeqId} has no customer"/>
<moqui.basic.LocalizedMessage locale="zh" original="OrderApprovePartNoCustomer"
localized="部分 ${orderPart.orderPartSeqId} 没有客户"/>
<moqui.basic.LocalizedMessage locale="default" original="OrderApproveNewCustomer"
localized="Customer ${firstOrderPart.customerPartyId} is a new customer"/>
<moqui.basic.LocalizedMessage locale="zh" original="OrderApproveNewCustomer"
localized="${firstOrderPart.customerPartyId} 是新客户"/>
<moqui.basic.LocalizedMessage locale="default" original="OrderApproveNearOrder"
localized="Found similar order ${nearOrder.orderId}:${nearOrder.orderPartSeqId} placed ${ec.l10n.format(nearOrder.placedDate, null)} (${ec.l10n.format(diffHours, '0.0')}h ${isFuture ? 'after' : 'before'}) with ${ec.l10n.format(nearItem.quantity, '0.##')} of product ${nearItem.productId}"/>
<moqui.basic.LocalizedMessage locale="zh" original="OrderApproveNearOrder"
localized="发现类似订单 ${nearOrder.orderId}:${nearOrder.orderPartSeqId} 被下单 ${ec.l10n.format(nearOrder.placedDate, null)} (${ec.l10n.format(diffHours, '0.0')}h ${isFuture ? 'after' : 'before'}) 有 ${ec.l10n.format(nearItem.quantity, '0.##')} 产品 ${nearItem.productId}"/>
<moqui.basic.LocalizedMessage locale="default" original="OrderApproveShippingAddressTrust"
localized="Part ${orderPart.orderPartSeqId} shipping address ${postalCm.address1}, ${postalCm.postalCode ?: '-'} has trust level of ${trustLevelEnum.description}"/>
<moqui.basic.LocalizedMessage locale="zh" original="OrderApproveShippingAddressTrust"
localized="部分 ${orderPart.orderPartSeqId} 发货地址 ${postalCm.address1}, ${postalCm.postalCode ?: '-'} 信任级别为 ${trustLevelEnum.description}"/>
<moqui.basic.LocalizedMessage locale="default" original="OrderDetailPartPaymentIncomplete"
localized="Payments total (${ec.l10n.formatCurrency(orderPartInfo.paymentsTotal ?: 0.0, orderHeader?.currencyUomId)}) is less than order part total (${ec.l10n.formatCurrency(orderPartInfo.orderPart.partTotal ?: 0.0, orderHeader?.currencyUomId)})"/>
<moqui.basic.LocalizedMessage locale="zh" original="OrderDetailPartPaymentIncomplete"
localized="付款总额 (${ec.l10n.formatCurrency(orderPartInfo.paymentsTotal ?: 0.0, orderHeader?.currencyUomId)}) 小于订单总额 (${ec.l10n.formatCurrency(orderPartInfo.orderPart.partTotal ?: 0.0, orderHeader?.currencyUomId)})"/>
<moqui.basic.LocalizedMessage locale="default" original="OrderPlacePartPaymentIncomplete"
localized="Part ${orderPart.orderPartSeqId} payments total (${ec.l10n.formatCurrency(paymentsTotal ?: 0.0, (String) orderHeader?.currencyUomId)}) is less than order part total (${ec.l10n.formatCurrency(orderPart.partTotal ?: 0.0, (String) orderHeader?.currencyUomId)})"/>
<moqui.basic.LocalizedMessage locale="zh" original="OrderPlacePartPaymentIncomplete"
localized="部分 ${orderPart.orderPartSeqId} 付款总额 (${ec.l10n.formatCurrency(paymentsTotal ?: 0.0, (String) orderHeader?.currencyUomId)}) 小于订单总额 (${ec.l10n.formatCurrency(orderPart.partTotal ?: 0.0, (String) orderHeader?.currencyUomId)})"/>
<moqui.basic.LocalizedMessage locale="default" original="OrderPlacePartNoVendor"
localized="Part ${orderPart.orderPartSeqId} has no vendor"/>
<moqui.basic.LocalizedMessage locale="zh" original="OrderPlacePartNoVendor"
localized="部分 ${orderPart.orderPartSeqId} 没有供应商"/>
<moqui.basic.LocalizedMessage locale="default" original="OrderPlacePartNoCustomer"
localized="Part ${orderPart.orderPartSeqId} has no customer"/>
<moqui.basic.LocalizedMessage locale="zh" original="OrderPlacePartNoCustomer"
localized="部分 ${orderPart.orderPartSeqId} 没有客户"/>
<moqui.basic.LocalizedMessage locale="default" original="OrderPlacePartNoShippingAddress"
localized="Part ${orderPart.orderPartSeqId} has no shipping address selected"/>
<moqui.basic.LocalizedMessage locale="zh" original="OrderPlacePartNoShippingAddress"
localized="部分 ${orderPart.orderPartSeqId} 没有选择发货地址"/>
<moqui.basic.LocalizedMessage locale="default" original="OrderPlacePartNoShippingMethod"
localized="Part ${orderPart.orderPartSeqId} has no shipment method selected"/>
<moqui.basic.LocalizedMessage locale="zh" original="OrderPlacePartNoShippingMethod"
localized="部分 ${orderPart.orderPartSeqId} 没有选择运输方法"/>
<moqui.basic.LocalizedMessage locale="default" original="OrderPlaceNoItems" localized="Order has no items"/>
<moqui.basic.LocalizedMessage locale="zh" original="OrderPlaceNoItems" localized="订单没有包含子项"/>
<moqui.basic.LocalizedMessage locale="default" original="OrderDetailConfirmCloseOrder"
localized="Really close order? If no items shipped the order will be Cancelled. If partially shipped all items will be reduced to shipped quantity and the order will be Completed."/>
<moqui.basic.LocalizedMessage locale="zh" original="OrderDetailConfirmCloseOrder"
localized="真的关闭订单? 如果没有发货,订单将被取消。 如果部分发货,所有项目将减少到发货数量,订单将完成。"/>

<moqui.basic.LocalizedMessage locale="default" original="OrderDetailItemBilled"
localized="Billed:${returnableOut.isProductItemType ? ec.l10n.format(returnableOut.invoiceQuantity, '#,##0.###') : ec.l10n.format(returnableOut.invoiceTotal, '#,##0.00')}"/>
<moqui.basic.LocalizedMessage locale="zh" original="OrderDetailItemBilled"
localized="账单:${returnableOut.isProductItemType ? ec.l10n.format(returnableOut.invoiceQuantity, '#,##0.###') : ec.l10n.format(returnableOut.invoiceTotal, '#,##0.00')}"/>
<moqui.basic.LocalizedMessage locale="default" original="OrderDetailItemReturned"
localized="Returned:${returnableOut.isProductItemType ? ec.l10n.format(returnableOut.returnedQuantity, '#,##0.###') : ec.l10n.format(returnableOut.returnedTotal, '#,##0.00')}"/>
<moqui.basic.LocalizedMessage locale="zh" original="OrderDetailItemReturned"
localized="已退货:${returnableOut.isProductItemType ? ec.l10n.format(returnableOut.returnedQuantity, '#,##0.###') : ec.l10n.format(returnableOut.returnedTotal, '#,##0.00')}"/>
<moqui.basic.LocalizedMessage locale="default" original="OrderDetailItemReturnable"
localized="Returnable:${returnableOut.isProductItemType ? ec.l10n.format(returnableOut.returnableQuantity, '#,##0.###') : ec.l10n.format(returnableOut.returnableTotal, '#,##0.00')}"/>
<moqui.basic.LocalizedMessage locale="zh" original="OrderDetailItemReturnable"
localized="可退货:${returnableOut.isProductItemType ? ec.l10n.format(returnableOut.returnableQuantity, '#,##0.###') : ec.l10n.format(returnableOut.returnableTotal, '#,##0.00')}"/>
<moqui.basic.LocalizedMessage locale="default" original="OrderDetailConfirmClosePart"
localized="Really close order part? If no items shipped the part will be Cancelled. If partially shipped all items will be reduced to shipped quantity and the part will be Completed."/>
<moqui.basic.LocalizedMessage locale="zh" original="OrderDetailConfirmClosePart"
localized="真的关闭订单部分? 如果没有发货,该部分将被取消。 如果部分发货,所有项目将减少到发货数量,部分将完成。"/>

<moqui.basic.LocalizedMessage locale="default" original="PayrollPayeeInvoiceItemDescription" localized="${payeeAdjustment.description} for ${partyDetail.firstName?:''} ${partyDetail.lastName?:''}${partyDetail.organizationName?:''} SSN ${partySsn?.idValue ?: 'N/A'} Ref ${payeeAdjustment.payeeReference ?: 'N/A'}"/>
<moqui.basic.LocalizedMessage locale="zh" original="PayrollPayeeInvoiceItemDescription" localized="${payeeAdjustment.description} 属于 ${partyDetail.firstName?:''} ${partyDetail.lastName?:''}${partyDetail.organizationName?:''} SSN ${partySsn?.idValue ?: 'N/A'} 参考 ${payeeAdjustment.payeeReference ?: 'N/A'}"/>

</entity-facade-xml>
Loading