Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018048Openbravo ERPZ. Otherspublic2011-07-21 10:102011-08-12 12:02
mirurita 
mirurita 
highminoralways
closedfixed 
5
 
3.0MP2 
Advanced Payables and Receivables Mngmt
No
0018048: Language not taken properly in process bundle
toVars() method populates the language using the system language

final VariablesSecureApp vars = bundle.getContext().toVars();

this.language = System.getProperty("user.language") + "_" + System.getProperty("user.country");

it does not take in account the language selected in the application.
1. Install the Spanish translation.
2. Create a sales invoice with one line and complete it.
3. Click the button Payment in/out.
4. The sales invoice will be marked. Type the amount in the actual payment in box and click out.
5. Click OK.
6. Click OK.

The payment in will be created. Go to payment in window and the payment description will be in the system language, does not matter the language you've selected in the log-in.
Use:
final String language = bundle.getContext().getLanguage();
No tags attached.
related to defect 00162233.0MP2 closed alostale Having Spanish translation installed but using English language I see messages in Spanish 
depends on backport 0018050 closed mirurita Language not taken properly in process bundle 
Issue History
2011-07-21 10:10miruritaNew Issue
2011-07-21 10:10miruritaAssigned To => mirurita
2011-07-21 10:10miruritaModules => Advanced Payables and Receivables Mngmt
2011-07-21 10:10miruritaRelationship addedrelated to 0018043
2011-07-21 10:10miruritaRelationship deletedrelated to 0018043
2011-07-21 10:11miruritaRelationship addedrelated to 0016223
2011-07-21 10:36miruritaStatusnew => scheduled
2011-07-21 10:36miruritafix_in_branch => pi
2011-07-21 10:48hgbotCheckin
2011-07-21 10:48hgbotNote Added: 0039277
2011-07-21 10:48hgbotStatusscheduled => resolved
2011-07-21 10:48hgbotResolutionopen => fixed
2011-07-21 10:48hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/08b15a140ffa623af930030653a0846f11ba30c4 [^]
2011-08-01 14:20hudsonbotCheckin
2011-08-01 14:20hudsonbotNote Added: 0039639
2011-08-12 12:02gorkaionStatusresolved => closed
2011-08-12 12:02gorkaionFixed in Version => 3.0MP2

Notes
(0039277)
hgbot   
2011-07-21 10:48   
Repository: erp/devel/pi
Changeset: 08b15a140ffa623af930030653a0846f11ba30c4
Author: Mikel Irurita <mikel.irurita <at> openbravo.com>
Date: Thu Jul 21 10:47:42 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/08b15a140ffa623af930030653a0846f11ba30c4 [^]

Fixes issue 18048: Language not taken properly in process bundle

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/ExecutePendingPayments.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_BankStatementProcess.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProposalProcess.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_ReconciliationProcess.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_TransactionProcess.java
---
(0039639)
hudsonbot   
2011-08-01 14:20   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/cf2afed6e8ef [^]

Maturity status: Test