Naresh(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-client/trunk-bug-824811-nch into 
lp:openobject-client.

Requested reviews:
  OpenERP sa GTK client R&D (openerp-dev-gtk)
Related bugs:
  Bug #824811 in OpenERP GTK Client: "create database in gtk client doesn't 
enforce specification of default language"
  https://bugs.launchpad.net/openobject-client/+bug/824811

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client/trunk-bug-824811-nch/+merge/71645
-- 
https://code.launchpad.net/~openerp-dev/openobject-client/trunk-bug-824811-nch/+merge/71645
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-client/trunk-bug-824811-nch.
=== modified file 'bin/modules/gui/main.py'
--- bin/modules/gui/main.py	2011-07-19 11:57:31 +0000
+++ bin/modules/gui/main.py	2011-08-16 07:19:17 +0000
@@ -389,7 +389,7 @@
     liststore = lang_widget.get_model()
     liststore.clear()
     lang_list = rpc.session.db_exec_no_except(url, 'list_lang')
-    lang = rpc.session.context.get('lang', options.options.get('client.lang', 'en_US'))
+    lang = rpc.session.context.get('lang', options.options.get('client.lang', 'en_US')) or 'en_US'
     active_idx = -1
     for index, (key,val) in enumerate(lang_list):
         if key == lang:

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to