details:   https://code.openbravo.com/erp/devel/pi/rev/08b7b4af87d9
changeset: 17746:08b7b4af87d9
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Wed Aug 22 16:01:24 2012 +0200
summary:   Fixes issue 20957: Text interfaces are translated in the Login window

Before this fix it was not possible to translate the text interfaces in the 
login window because xmlengine took the language from the session, and in the 
logi
n window that is not set yet. This has been fixed by setting manually the 
xmlEngine.sessionLanguage attribute, taking the language from the System client 
usin
g DAL.

diffstat:

 src/org/openbravo/erpCommon/security/Login.java |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r e8670903c4c5 -r 08b7b4af87d9 
src/org/openbravo/erpCommon/security/Login.java
--- a/src/org/openbravo/erpCommon/security/Login.java   Wed Aug 22 15:06:26 
2012 +0200
+++ b/src/org/openbravo/erpCommon/security/Login.java   Wed Aug 22 16:01:24 
2012 +0200
@@ -281,6 +281,9 @@
       }
     }
 
+    Client systemClient = OBDal.getInstance().get(Client.class, "0");
+    xmlEngine.sessionLanguage = systemClient.getLanguage().getLanguage();
+
     XmlDocument xmlDocument = 
xmlEngine.readXmlTemplate("org/openbravo/erpCommon/security/Login")
         .createXmlDocument();
 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to