Issue 82278 - Extensions use language specified into basic editor to display dialog boxes
Summary: Extensions use language specified into basic editor to display dialog boxes
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: joerg.skottke
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-04 22:06 UTC by cbrunet
Modified: 2013-02-24 21:08 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Sample extension (2.36 KB, application/octet-stream)
2007-10-04 22:12 UTC, cbrunet
no flags Details
Test extension containing a en+de localized dialog (2.39 KB, application/octet-stream)
2008-01-14 08:48 UTC, ab
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description cbrunet 2007-10-04 22:06:54 UTC
When displaying a localised dialog box using starbasic code, the dialog box is
displayed using the language selected into the basic IDE, instead of the OOo
interface language.

To reproduce, use the sample extension I made. The dialog box is localised in
French (fr-FR) and in English (en-US), with default language set to English. My
OOo installation is localised in French (fr-FR).
If I run the macro, the dialog is displayed in English. If I go to basic editor,
change selected language to French, close basic editor, then run the macro
again, the dialog box is displayed in French.

So it seems that the language in wish the dialog box is displyed is taken from
settings in basic IDE, instead of settings of the OOo application.
Comment 1 cbrunet 2007-10-04 22:12:35 UTC
Created attachment 48706 [details]
Sample extension
Comment 2 cbrunet 2007-10-05 00:08:48 UTC
Oups! sorry, wrong component. I used the wrong link on the web page...
Comment 3 ab 2007-10-08 09:17:58 UTC
Assigning to me...
Comment 4 ab 2007-10-08 09:23:34 UTC
STARTED, OOo 2.4

I had a first look. The problem seems to appear only when the Basic 
IDE is used. So users only using a dialog won't be affected.
Comment 5 milek_pl 2007-10-08 20:44:08 UTC
ab -> I can confirm that the issue is already present in the general UI (and not
only Basic IDE).
Comment 6 ab 2007-10-09 07:08:59 UTC
The issue says that the language selected in the Basic IDE is used instead of
the UI language. There can be only a language selected in the Basic IDE when
the Basic IDE is used. So obviously something else is wrong if the problem
already occurs without Basic IDE opened as the Basic IDE has no persistent
settings that could influence the language selection.
Comment 7 milek_pl 2007-10-09 08:35:22 UTC
ab -> To be more exact, the English version of the dialog is used by default in
the localized version of OOo, and this happens without opening Basic IDE etc.
Comment 8 ab 2007-11-14 15:29:25 UTC
Ok, now I understand... :-)

Added to cws ab42
Comment 9 ab 2008-01-07 13:19:07 UTC
FIXED
Comment 10 ab 2008-01-11 15:01:18 UTC
ab->jsk: Please verify
I will attach a test extension soon
Comment 11 ab 2008-01-14 08:48:13 UTC
Created attachment 50845 [details]
Test extension containing a en+de localized dialog
Comment 12 ab 2008-01-14 08:53:45 UTC
ab->jsk: If you install the extension in the de built and
run Library2.Module1.Main via Extras/Makros/Makros Verwalten/
StarOffice Basic/Ausführen the Dialog should be displayed in
German. The same for starting directly from the Basic IDE.
In the en-US build the Dialog should be displayed in English 
of course.
Comment 13 joerg.skottke 2008-01-16 12:11:22 UTC
Yupp. Looks good
Comment 14 joerg.skottke 2008-03-12 10:08:50 UTC
Looks good in ooh680m10