Bug 63282 - LibreLogo: Non-en_US locale RuntimeExceptionError during invoking function __translate__
Summary: LibreLogo: Non-en_US locale RuntimeExceptionError during invoking function __...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.1.0.0.alpha0+ Master
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-08 21:20 UTC by Julien Nabet
Modified: 2014-10-14 18:14 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Nabet 2013-04-08 21:20:41 UTC
Problem description:
On pc Debian x86-64 with master sources updated today (commit 73cc9fc42cfa524a9965f58092f3a004de3a6b87) and a brand new LO profile I reproduced the error from the Alex's comment https://bugs.freedesktop.org/show_bug.cgi?id=57779#c9

Indeed LibreLogo gives an error when clicking on "Uppercase commands, also translate them to the language of the document" at least with French UI.
I don't reproduce this with English UI 

Steps to reproduce:
1. Open Writer
2. Enable LibreLogo by clicking Menu View/Toolbars/Logo
3. Click on "ABC" icon with a magic wand ("Uppercase commands, also translate them to the language of the document")

Current behavior:
Error:
com.sun.star.uno.RuntimeExceptionError during invoking function __translate__ in module file:///home/julien/compile-libreoffice/libo/solver/unxlngx6/installation/opt/share/Scripts/python/LibreLogo/LibreLogo.py (<class 'TypeError'>: 'NoneType' object is not subscriptable
  /home/julien/compile-libreoffice/libo/solver/unxlngx6/installation/opt/share/Scripts/python/LibreLogo/LibreLogo.py:337 in function __translate__() [lq = '\'' + lang['LEFTSTRING'].replace("|", "")]
  /home/julien/compile-libreoffice/libo/solver/unxlngx6/installation/opt/program/pythonscript.py:830 in function invoke() [ret = self.func( *args )]
)

Expected behavior:
No error
              
Operating System: All
Version: 4.1.0.0.alpha0+ Master
Comment 1 Julien Nabet 2013-04-08 21:29:12 UTC
Alex: I don't think I can put it to NEW even after fdo#57779 (put in "See also"), could you confirm this tracker?
Comment 2 Jorendc 2013-04-09 10:53:37 UTC
I can reproduce an error with LibreOffice 4.0.2.2 with LibreOffice Versie 4.0.2.2 .2.2 (Bouw-id: 4c82dcdd6efcd48b1d8bba66bfe1989deee49c3)
TinderBox: MacOSX TDF Release, Branch:libreoffice-4-0, Time: 2013-03-26_15:52:16; Dutch UI.

Dutch Error:

Er trad een Scripting Framework-fout op tijdens het uitvoeren van het  Python-script LibreLogo|LibreLogo.py$__translate__.

Bericht: De scripttaal Python wordt niet ondersteund.

Translated:

A Scripting Framwork-error occured during the run of the Python-stript LibreLogo|LibreLogo.py$__translate__.

Message: the script language Python isn't supported.


But this might indeed be very related to Bug 57779.
I'm going to leave it as UNCONFIRMED right now, until response of Alex.

Kind regards,
Joren
Comment 3 László Németh 2013-04-12 00:26:34 UTC
I cannot reproduce this problem in LibreOffice 4.0.2 with English UI. French Logo programs in French documents work well. I will check with a LibreOffice with French UI, too, and report the result. Thanks for the bug reports!
Comment 4 Alex Thurgood 2013-04-12 04:49:38 UTC
Confirming on master build with Mac OSX 10.8.3
Comment 5 László Németh 2013-04-12 08:10:07 UTC
(In reply to comment #4)
> Confirming on master build with Mac OSX 10.8.3

With French 4.0.2 with French UI on x86-64 Xubuntu, I cannot reproduce this problem. I will try with a recent master. Thanks for the report!
Comment 6 László Németh 2013-04-15 12:22:18 UTC
I have made a test build (unfortunatelly, only en_US). Isn't it possible, that this problem has resulted by the missing LibreLogo_en_US.properties of the --with-lang 'fr_FR'  (instead of --with-lang 'fr_FR en_US') configuration, and it can be solved by copying of LibreLogo_en_US.properties to the git/libo/install/share/Scripts/python/LibreLogo directory? Binary distributions in my tests contain all properties files of LibreLogo, including the en_US one, but maybe French and Dutch are different.
Comment 7 Owen Genat (retired) 2014-09-30 11:28:35 UTC
Summary amended for consistency with other LibreLogo reports and to provide clearer detail.
Comment 8 Julien Nabet 2014-10-14 18:14:28 UTC
On pc Debian x86-64 with LO Debian 4.3.2.2 package, I don't reproduce anymore this problem.
I put it as WFM.