Bug 84812 - File open/save dialogs switch language to the default input language
Summary: File open/save dialogs switch language to the default input language
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
4.2.0.4 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: possibleRegression
Depends on:
Blocks:
 
Reported: 2014-10-08 19:43 UTC by billy78
Modified: 2015-12-15 22:05 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 billy78 2014-10-08 19:43:07 UTC
Problem description: I use Windows 7 Greek with Greek and English keyboard languages and I write documents in Greek adn I would like to save them with Greek names without having to switch language again, just like other applications.

Steps to reproduce:
1. Switch keyboard language to Greek (or other language)
2. Open file or Save file

Current behavior: Open file dialog and Save file dialog switch keyboard to English, so I have to switch to Greek again. After you close them, they switch keyboard language back to Greek anyway, because that's the language I was using last in the document. This happens from the first time I've ever used LibreOffice (maybe even v3.x) and in every component (Writer, Calc etc.)

Expected behavior: Open file dialog and Save file dialog should not modify (even temporarily) the currently selected keyboard language.
Comment 1 billy78 2014-10-15 17:04:31 UTC
Correction: until 4.1 language did not switch. 4.2 and later switches language.
Comment 2 Matthew Francis 2015-01-16 15:24:01 UTC
This bug does not appear to have been triaged - it's Windows specific and possibly a regression

-> Adding PossibleRegression
-> Setting back to UNCONFIRMED
Comment 3 raal 2015-01-17 13:41:05 UTC
I can not confirm with LO 4.3.5, win7. Keyboard Czech/english.

Please test with version 4.3.5. Setting to needinfo.
Comment 4 billy78 2015-01-17 15:44:21 UTC
(In reply to raal from comment #3)
> I can not confirm with LO 4.3.5, win7. Keyboard Czech/english.
> 
> Please test with version 4.3.5. Setting to needinfo.

I can still confirm it with 4.3.5, but I have actually found the problem.
When Libreoffice starts, it uses the default input language of Windows 7.
The default input language is set if you go to Control Panel, click "Region and Language", go to tab "Keyboards and Languages", click "Change keyboards...", this will open a new window named "Text Services and Input Languages", go to tab "General" and change "Default input language" select box.
The reason why you cannot confirm it is that your default input language is probably Czech, while I prefer mine to be English, not Greek.
Now, Libreoffice switches to the default input language when it starts, which is correct (for me, it switches to English). Then, I switch to Greek and write something.
The problem is that when I then go to File->Save as, Libreoffice *switches again* to the default input language, which in my case is English and in your case Czech.
You can try it, if you set your default input language to English.
I think that Libreoffice should not switch again to the default input language, but instead use the current input language, like MS Office, MS notepad, notepad++ and probably other software do.
Comment 5 billy78 2015-01-17 16:27:26 UTC
Libreoffice uses the default input language of OS (Win7) when opening File->Save as window. It should use the current input language.
Comment 6 raal 2015-01-18 20:36:26 UTC
I can confirm with Version: 4.5.0.0.alpha0+
Build ID: 5d061167ee9b88628a1936041ee90c62e4dc1e18
TinderBox: Win-x86@42, Branch:master, Time: 2015-01-09_14:05:40


steps to reproduce in comment 4: The problem is that when I then go to File->Save as, Libreoffice *switches again* to the default input language
Comment 7 billy78 2015-05-25 17:53:06 UTC
Same thing happens with 5.0.0.0 beta 1
Comment 8 billy78 2015-08-19 10:55:53 UTC
Still happens in official 5.0.0 release, but not in Windows XP. It happens in Windows 7.
Comment 9 V Stuart Foote 2015-08-19 12:12:57 UTC
Do things behave differently if you use the LibreOffice native dialogs, rather than the OS?

Tools -> Options -> General panel; Open Save Dialogs check box "Use LibreOffice Dialogs"

Would not expect LibreOffice to control the OS dialogs, but should honor language settings in its native dialogs.
Comment 10 billy78 2015-08-20 20:41:13 UTC
(In reply to V Stuart Foote from comment #9)
> Do things behave differently if you use the LibreOffice native dialogs,
> rather than the OS?
> 
> Tools -> Options -> General panel; Open Save Dialogs check box "Use
> LibreOffice Dialogs"
> 
> Would not expect LibreOffice to control the OS dialogs, but should honor
> language settings in its native dialogs.

Yes, you are right. Libreoffice native dialogs behave correctly and do not change the current keyboard language. I wasn't aware of this option.
However, I would like to use the os dialogs since it feels more comfortable for the little kids I teach. The problem right now is that they write in Greek and when they hit Save, they immediately start typing a file name (kids :-), so they save the file with a greek word using latin letters!
I find it strange though that this small bug exists in Windows 7 and not XP...
Comment 11 V Stuart Foote 2015-08-20 21:17:26 UTC
(In reply to billy78 from comment #10)
 
> Yes, you are right. Libreoffice native dialogs behave correctly and do not
> change the current keyboard language. I wasn't aware of this option.

There is the rub--we can configure and mange things native to LibreOffice with great flexibility, and achieve pretty consistent behavior cross platform. But,  once we start integrating with the host OS it get much more cumbersome. 

Would think that customizing the OS provided File Open/Save dialogs would be in that category of cumbersome. 

IMHO picking out and passing language detail from LibreOffice document settings to dynamically change the OS GUI would just not be that beneficial for general use.
Comment 12 billy78 2015-08-21 06:37:22 UTC
(In reply to V Stuart Foote from comment #11)
> (In reply to billy78 from comment #10)
>  
> > Yes, you are right. Libreoffice native dialogs behave correctly and do not
> > change the current keyboard language. I wasn't aware of this option.
> 
> There is the rub--we can configure and mange things native to LibreOffice
> with great flexibility, and achieve pretty consistent behavior cross
> platform. But,  once we start integrating with the host OS it get much more
> cumbersome. 
> 
> Would think that customizing the OS provided File Open/Save dialogs would be
> in that category of cumbersome. 
> 
> IMHO picking out and passing language detail from LibreOffice document
> settings to dynamically change the OS GUI would just not be that beneficial
> for general use.

Are you saying that the os dialogs switch to default input language by themselves and so Libreoffice is not to blame?
Comment 13 Robinson Tryon (qubit) 2015-12-15 22:05:11 UTC
Migrating Whiteboard tags to Keywords: (possibleRegression)
[NinjaEdit]