** Changed in: openobject-client
       Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of OpenERP
sa GTK client R&D, which is a bug assignee.
https://bugs.launchpad.net/bugs/787840

Title:
  No Excel export when lang not en_US

Status in OpenERP GTK Client:
  In Progress

Bug description:
  To reproduce, on Windows:
  1) Install GTK client V6.0.x or V6.1
  2) Add a system environment variable in Windows: LANG=nl_NL
  3) Start GTK client, connect to a server. Observe: menu is in Dutch now.
  4) Try to export any data to Excel. Observe: you get a csv export instead. 
Notice the dropdown that allows you to select the export to Excel: it should 
say "Openen in Excel".

  Cause:
  The file bin/modules/gui/window/win_export.py contains the following code:
  if self.wid_action.get_active_text() == "Open in Excel":
                  open_excel(fields2, result)
              else:....

  However, when LANG=nl_NL, self.wid_action.get_active_text() equals
  "Openen in Excel".

  The code above contains a language-specific string that breaks when
  the translation is not "Open in Excel".

  On a Windows systems configured with Dutch as the default language,
  the export breaks without setting an environment variable. Workaround:
  add a system environment variable LANG=en_US. The client menu will be
  in English now.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client/+bug/787840/+subscriptions

_______________________________________________
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