Solved

Batch File to turn off "detect language automatically" Office XP

Posted on 2004-09-20
21
1,303 Views
Last Modified: 2013-12-07
I need a batch file, or the registry location of the setting that turns off "automatically detect language" in the language settings for Office XP.
0
Comment
Question by:vand
  • 10
  • 9
21 Comments
 
LVL 15

Expert Comment

by:scampgb
Comment Utility
Hi vand,

The registry subkey that you're looking for would seem to be HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Common\LanguageResources

This subkey contains a number of Locale IDs (LCID), and a key called "InstallLanguage" that contains one of the LCIDs
For example, English (US) would be 1033

You can get the LCID list from http://www.microsoft.com/globaldev/reference/lcid-all.mspx

The article http://www.microsoft.com/resources/documentation/office/xp/all/reskit/en-us/intb04.mspx explains how to customise this.  It would also be worthwhile looking at http://support.microsoft.com/default.aspx?scid=kb;en-us;309123&sd=tech which explains how to customise it when you're deploying Office.


I've not been able to test this, but something like the following should do the trick.  I'm assuming you want to use Traditional Spanish (1034) :-)

@echo off
echo Windows Registry Editor Version 5.00>c:\language.reg
echo.>>c:\language.reg
echo [HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Common\LanguageResources]>>c:\language.reg
echo "1034"="On">>c:\language.reg
echo "InstalledLanguage"="1034">>c:\language.reg
regedit -s c:\language.reg
del c:\language.reg


Does that help?
0
 
LVL 6

Author Comment

by:vand
Comment Utility
Thank you for the quick response! I will be at the client site on 9/24/04 and will test it then!
0
 
LVL 15

Expert Comment

by:scampgb
Comment Utility
vand - pleasure :)
Best of luck with it.  It's a bit theoretical as I've not done it myself, but it seems to make sense based on my own installations.
Let me know how you get on.


0
 
LVL 6

Author Comment

by:vand
Comment Utility
A quick look at the links seems to be more related to changing the default language. What I need is a way to turn of "automatically detect language" in the language settings!

I actually need US English (1033) :) for some reason the users are getting prompted for the office CD so that cheese eating surrender monkey (french), German and Italian languages can be installed everytime you run a spell check! If you comply (instead of canceling) and insert the cd, your whole document turns red and all the suggested fixes are in cheese eating surrender monkey (french)! The fix I found was to change the default language back to English and UN check "auto detect language" if you don't UN check auto detect the problem stays despite the default language.

To make matters worse this problem is in the image, so there are about 300 PCs with this problem, hence the need for a batch file!
0
 
LVL 15

Expert Comment

by:scampgb
Comment Utility
... et quel est le problème avec le Français ? ;-)

Info from http://www.microsoft.com/resources/documentation/office/xp/all/reskit/en-us/intb04.mspx ....
Instead of letting Office create the LanguageResources subkey, you can set language settings in the Custom Installation Wizard and deploy them as part of your Office XP installation. If Office detects that the language settings are already defined (in the LanguageResources subkey), Office will not override the existing settings when an Office application starts for the first time.

I took this to mean that if it's defined in the registry (as above), then it won't bother trying to change language.
It's worth a go anyway.
0
 
LVL 6

Author Comment

by:vand
Comment Utility
Another quick note, the refrenced reg location HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\LanguageResources has the correct 1033 for installlanguage and previousinstalllanguage, I did get that far in trouble shooting last week, but, I will verify that and try your batch file on Friday.
0
 
LVL 6

Author Comment

by:vand
Comment Utility
I'll let you know one way or the other on Friday, I know I hate having to wait for feedback! Thanks again.
0
 
LVL 15

Expert Comment

by:scampgb
Comment Utility
vand, No problems about the waiting - the important thing is that the problem gets solved :-)

Thanks for proving updates though - otherwise the question can end up being classed as abandoned, and that's no fun.

If it doesn't work, I'll hunt around a little more - now that I know it's a problem specifically when running a spell check.
Also, does it happen every time Word is run - or just the first time?

0
 
LVL 6

Author Comment

by:vand
Comment Utility
Just with spell check. The fix did not work. I did verify the registry and the correct language is set. For some reason spell check wants to check in those other languages unless I turn of "Auto detect" in the language settings!
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 15

Expert Comment

by:scampgb
Comment Utility
Hmm - sorry that the script I did didn't work.
I'm afraid I'm out of ideas on this one :-(
0
 
LVL 6

Author Comment

by:vand
Comment Utility
I'll keep looking and post if I find an automated way to turn this off.
0
 
LVL 6

Author Comment

by:vand
Comment Utility
Ok I'm getting closer I've found an ADM that controls it by adding HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Word\Options\vpref
and the entry
fLangAutoDetect_1520_1
0= off
and 1=on
SO, since I can't use the adms because the users are in a workgroup, how do I use this info to make a batch or vb script?
0
 
LVL 6

Accepted Solution

by:
vand earned 0 total points
Comment Utility
This seems to work! this is a reg file with a batch file calling it.

REGEDIT4

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Word\Options\vpref]

"fLangAutoDetect_1520_1"=dword:00000000

Thanks scampgb for your input.
0
 
LVL 15

Expert Comment

by:scampgb
Comment Utility
Aha!  Glad you found the key - I couldn't see it anywhere!

Your batch file would become:
@echo off
echo Windows Registry Editor Version 5.00>c:\language.reg
echo.>>c:\language.reg
echo [HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Word\Options\vpref] >>c:\language.reg
echo "fLangAutoDetect_1520_1"="dword:00000000" >>c:\language.reg
regedit -s c:\language.reg
del c:\language.reg
0
 
LVL 15

Expert Comment

by:scampgb
Comment Utility
vand,
I just noticed, your post has REGEDIT4 in it - are your PCs running WinNT or something more recent?
0
 
LVL 6

Author Comment

by:vand
Comment Utility
They are all xp, but the file did not work untill I added it.  The reg file actually creates the key, It does not appear to be in the registry by default.
0
 
LVL 6

Author Comment

by:vand
Comment Utility
Thank you for your time. I'm going to use the reg file I created and just have a batch file call the file to apply it. I've asked the powers that be to close this question and refund my points. Thanks for trying!

VanD.
0
 
LVL 15

Expert Comment

by:scampgb
Comment Utility
Sorry that I couldn't help.  Best of luck with it :-)
0
 
LVL 15

Expert Comment

by:scampgb
Comment Utility
Hi CetusMOD,
No probs :-)
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Article by: IanTh
Hi Guys After a whole weekend getting wake on lan over the internet working, I thought I would share the experience. Your firewall has to have a port forward for port 9 udp to your local broadcast x.x.x.255 but if that doesnt work, do it to a …
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now