Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018050Openbravo ERPZ. Otherspublic2011-07-21 10:102011-07-27 12:37
mirurita 
mirurita 
highminoralways
closedfixed 
5
 
 
Advanced Payables and Receivables Mngmt
No
0018050: 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.
blocks defect 0018048 closed mirurita Language not taken properly in process bundle 
Issue History
2011-07-21 10:36miruritaTypedefect => backport
2011-07-21 10:36miruritafix_in_branch => 2.50
2011-07-21 11:38hgbotCheckin
2011-07-21 11:38hgbotNote Added: 0039285
2011-07-21 11:38hgbotStatusscheduled => resolved
2011-07-21 11:38hgbotResolutionopen => fixed
2011-07-21 11:38hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.advpaymentmngt/rev/77a2473b32d36328121c376041002348b961b741 [^]
2011-07-27 12:37psanjuanNote Added: 0039440
2011-07-27 12:37psanjuanStatusresolved => closed

Notes
(0039285)
hgbot   
2011-07-21 11:38   
Repository: erp/pmods/org.openbravo.advpaymentmngt
Changeset: 77a2473b32d36328121c376041002348b961b741
Author: Mikel Irurita <mikel.irurita <at> openbravo.com>
Date: Thu Jul 21 11:35:32 2011 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.advpaymentmngt/rev/77a2473b32d36328121c376041002348b961b741 [^]

Fixes issue 18050: Language not taken properly in process bundle

---
M src/org/openbravo/advpaymentmngt/process/ExecutePendingPayments.java
M src/org/openbravo/advpaymentmngt/process/FIN_BankStatementProcess.java
M src/org/openbravo/advpaymentmngt/process/FIN_PaymentProposalProcess.java
M src/org/openbravo/advpaymentmngt/process/FIN_ReconciliationProcess.java
M src/org/openbravo/advpaymentmngt/process/FIN_TransactionProcess.java
---
(0039440)
psanjuan   
2011-07-27 12:37   
fixed and working