Article ID: 124758, created on Mar 9, 2015, last review on Mar 9, 2015

  • Applies to:
  • Business Automation 5.5

Symptoms

The store is configured to use a language different from English. Everything is localized properly but on the last screen duration description appears in the default English language:

alttext

Cause

The issue is caused by the bug with id #PBA-62077 ("GetOrderDetailList_API is sent under default language on the last screen of the store").

Resolution

The workaround is adding the line

'Lang'      => new xmlrpcval($this->locale, 'string'),

to /usr/local/bm/templatestore/libs/internals/bmapi/class.stp.inc in the function GetOrderDetailList_API, so that the params look like that:

  $params = array('Object'    => new xmlrpcval( 'BM_Object', 'string'),
                    'Container' => new xmlrpcval( 'BM_Container', 'string'),
                    'Method'    => new xmlrpcval( 'GetOrderDetailList_API', 'string'),
                    'Lang'      => new xmlrpcval($this->locale, 'string'),
                    'Params'    => new xmlrpcval( array(new xmlrpcval( (int)$OrderID, 'int'),
                                                        new xmlrpcval( (int)0,        'int')), 'array')

Please note that after each update installation the file will be rewritten (until the bug is fixed).

Search Words

{$itemOrder.Duration} translation in store

198398b282069eaf2d94a6af87dcb3ff caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 801221f8cd76fba7300d1e6817c8e08b 92711db0799e8aefe8e51f12dace0496

Email subscription for changes to this article
Save as PDF