Writer: document language changes with keyboard layout - how to remove this behavior?

Hi,

using
LibreOffice 3.5.2.2
Build ID: 281b639-6baa1d3-ef66a77-d866f25-f36d45f
on Windows 7 64bit Pro I get the following ‘error’ (to me it is, others might want that):

After I set the program-wide default and document-wide language to English and start writing English text with a German keyboard layout, my document language changes to German.

New text takes the language of the keyboard layout it was written with (i.e. they keep the language even when the keyboard layout is switched back).

Now this might be a useful behavior for someone who wants to type a word or two in a language different from their native keyboard layout. But I want my documents in English, even though my native keyboard layout is in German. Writing in a non-native layout is not an option for me and would be a very messy workaround.

Any ideas what I could do to change this?

Thanks,
Sebastian

( @pallinger )

There’s a new option in LibreOffice 4.0:

Menu Tools → Options → Language Settings → Languages

☐ / :ballot_box_with_check: Ignore system input language

Screenshot: LibO-Dev 4.0.0.0.alpha1+ (2012-12-03)

That should solve the reported problems …

You might test the new option with → LibreOffice 4.0.0 Beta1 (2012-12-07)

http://cgit.freedesktop.org/libreoffice/core/commit/?id=b4d1aaa074e2be9fd778134c40f99d2ab8a01e93

→ fdo#36324 / → fdo#42929

Yes, I extended a bug report just to see later that it was already solved a few days earlier – somehow I didn’t find the other bug that contained the patch with the option in the bug tracker…

@manj_k Thank you man! That’s the answer! I’ve been struggling for years with this problem (I write in 3 languages).
It worked for me!

I think this feature of LibreOffice is a more of a bug, at least in the current form that it cannot be disabled.

I opened a bug in the libreoffice bug tracker:
https://bugs.freedesktop.org/show_bug.cgi?id=57947

See:

Update: As @manj_k pointed out, this bug was fixed in libreoffice 4.0. So, if you use an older version, you could switch to the newer (albeit currently beta) one.

LO 4.0 is out of beta and is now the latest release :slight_smile:

Does this problem also occur in other SW? E.g if you use Notepad?

If you have problems in Notepad, I would recommend to look for the basic keyboard and languages setting in the OS. I am using XP and I am not familiar with W7 to give you more detailed hints.

My experience:

When setting up a new PC I face this problem always and have to work in the OS until in Notepad all appears correct. Thereafter LibO workes also. I have to deal with 4 languages and one is a double byte language. No problem in LibO. Thus there should be a solution. I am using the LibO English US version as this is the multi-language version (I read somewhere). You can set up the GUI in German or English, install the language packs for German and English (and if needed or other languages). You must do a customized installation for the first time otherwise you get all languages.

Have you set the idiom to English in the default paragraph style?
Menu/Format/Styles and formatting (F11)

Yes, I did. It is set to English. Still the same behavior. Even if I write the text with my German keyboard (which makes it German text for the writer) and then apply the default paragraph style, it remains German. Not cool.

It seems, that you have toggled the OS input language (Alt+Shift) to DE (German).

You might add the German keyboard layout to the English input language.
[On WinXP: Control Panel > Regional and Language Options > Languages > Text Services and Input Languages > Details > Add… > Input Language English (USA), Keyboard Layout German (Germany)]

Maybe useful → http://windows.microsoft.com/en-US/windows7/Change-your-keyboard-layout

Thanks, nice idea. However this doesn’t work either. Using the German keyboard layout with English as the input language doesn’t change the behavior. This looks more or less like a bug to me…

I found the solution trying stuff with keyboard configuration, you should add a language (English) and add your preferred keyboard (German in your case). That worked for me with a Swedish keyboard.