an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > DotShoppingCart Suite > Translate to spanish (V3.1)
Last Post 5/25/2011 12:43:22 PM By lukezy. 3 replies.
5/24/2011 7:17:02 AM
hlopezrd
Posts: 14
Joined: 4/3/2009
Translate to spanish (V3.1)
Hi to all,
I;m working with V3.1 of DotshoppingCart Suite.
I can translate almost all message to spanish, but there are some message (in the order workflow) can't translate because I can't found in the resource file.
What can I do?
 
Thanks in advance.
5/24/2011 5:07:07 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Translate to spanish (V3.1)
Can you show me what these messages are? I can point you to the source code that you can make the change.
DotShoppingCart Staff
5/24/2011 6:25:16 PM
hlopezrd
Posts: 14
Joined: 4/3/2009
Re: Translate to spanish (V3.1)
Hi lukezy,
Rigth now:
Orders.aspx, OrderEdit.aspx and MyAccount.aspx (user that make the purcharse)
The diferents state. I can't found where are:
<span class="Apple-tab-span" style="white-space:pre"> </span>Received, Sending Order Confirmation Email
<span class="Apple-tab-span" style="white-space:pre"> </span>Awaiting Offline Credit Card Process
<span class="Apple-tab-span" style="white-space:pre"> </span>Confirm Offline Credit Card Payment
<span class="Apple-tab-span" style="white-space:pre"> </span>Confirm Stock
<span class="Apple-tab-span" style="white-space:pre"> </span>Confirm Shipment
<span class="Apple-tab-span" style="white-space:pre"> </span>Awaiting Gift Certificate Code Generation
<span class="Apple-tab-span" style="white-space:pre"> </span>Shipped
 
All notes in OrderEdit.aspx are in english:
13/05/2011 11:00:20 a.m.<span class="Apple-tab-span" style="white-space:pre"> </span>[admin]: Status changed to (Shipped)
24/05/2011 09:22:04 p.m.<span class="Apple-tab-span" style="white-space:pre"> </span>[admin]: Status changed to (Received, Sending Order Confirmation Email)
24/05/2011 09:22:25 p.m.<span class="Apple-tab-span" style="white-space:pre"> </span>Order Processor (OrderConfirmationEmail) completed successfully. Status changed to (Awaiting Offline Credit Card Process)
24/05/2011 09:23:42 p.m.<span class="Apple-tab-span" style="white-space:pre"> </span>[admin]: Status changed to (Gathering Items From Inventory)
24/05/2011 09:23:53 p.m.<span class="Apple-tab-span" style="white-space:pre"> </span>[admin]: Status changed to (Awaiting Shipment)
24/05/2011 09:24:24 p.m.<span class="Apple-tab-span" style="white-space:pre"> </span>[admin]: Status changed to (Awaiting Gift Certificate Code Generation)
24/05/2011 09:25:24 p.m.<span class="Apple-tab-span" style="white-space:pre"> </span>Order Processor (CreateGiftCertificate) completed successfully. Status changed to (Sending Order Complete Email)
24/05/2011 09:25:28 p.m.<span class="Apple-tab-span" style="white-space: pre; "> </span>Order Processor (OrderCompleteEmail) completed successfully. Status changed to (Shipped)
 
The mails that user recieve (Confirm and Shipment) the order detail is in english.
<span class="Apple-tab-span" style="white-space:pre"> </span>
 
 
5/25/2011 12:43:22 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Translate to spanish (V3.1)
Ah, looks like OrderPipeline isn't localization friendly. This is fixed in the later version. Here is the code snipet from the latest version.
 
OrderPipeline\OrderProcessorProvider.cs

        protected virtual int ProcessOrders(string host, IConfigurationSource cfgSrc, int orderStatusIdSource) {

            int processed = 0;

            SiteConfigurationSection section = (SiteConfigurationSection)cfgSrc.GetSection(SiteConfigurationSection.SectionName);

            CultureInfo culture = new CultureInfo(section.Culture);

 

            foreach (Order order in Order.GetByStatus(host, orderStatusIdSource)) {

                string processOrderName = Resource.ResourceManager.GetString(Name, culture);

                try {

                    ProcessOrder(host, order, cfgSrc);

                    order.SetToNextStatusInPipeline(host, string.Format(Resource.ResourceManager.GetString("OrderProcessorSuccessFormat", culture),

                        processOrderName));

                    processed++;

                } catch (OrderProcessorExecption) {

                    throw; //something is wrong with this order processor. Let this to be killed.

                } catch (Exception e) {

                    Order.SetStatus(host, order.OrderId, OrderStatus.OrderUnderReviewStatus,

                        string.Format(Resource.ResourceManager.GetString("OrderProcessorFailureFormat",culture), processOrderName, e.Message));

                    if (this is IPaymentProcessorProvider) {

                        NameValueCollection tokens = new NameValueCollection();

                        tokens.Add("Order.OrderNumber", order.OrderNumber);

                        EmailManager.Send(host, "PaymentFailure", tokens, section.SiteEmailAddress, new string[] { section.SiteEmailAddress }, null);

                    } else {

                        ExceptionPolicy.HandleException(e, "Unhandled Policy");

                    }

                }

            }

            return processed;

        }

You can log in to your account and download the latest version and then copy the localization related copy over to your current version. Let me know if you need further help.

DotShoppingCart Staff