← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 787840] Re: No Excel export when lang not en_US

 

Hello,

The fix has been merged to trunk and also the improvements related to
regeneration of .pot,*.po,* .mo has been applied.


Thanks,


** Changed in: openobject-client
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/787840

Title:
  No Excel export when lang not en_US

Status in OpenERP GTK Client:
  Fix Released

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


References