This article contains a lot c# code and instruction for using translated Help on pressing F1 in Visual Studio IDE text editor.
Some developers in my team switch to c# from other languages. But its skill in English not enough for fast reading and understand new language with new technology. Ok. You can say: install VS with Russian or German and use it. But there is a difficulty. One man who can help them with IDE is I am, but I use VS long long ago only English and at this point I can't help to my friends with its questions.
I spend some time and investigate how VS call help by F1. If skip some detail IDE run HlpViewer.exe with command line. AHA say I.
And write several line of code:
static void Main(string args)
Process proc = new Process();
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.FileName = "HlpViewer2.exe";
System.Text.StringBuilder sb = new System.Text.StringBuilder();
foreach (string s in args)
string ss = s;
if (s == "en-US")
ss = "ru-RU";
string folder = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
System.IO.StreamWriter sw = new System.IO.StreamWriter(folder + @"\logfile.txt", true);
proc.StartInfo.Arguments = sb.ToString();
Using the code
Create VS Console application and replace 'Program.cs' with code above. You need also change line:
ss = "ru-RU";
with your preffered locale.
Compile to Debug or Release and copy output 'exe' to 'C:\Program Files (x86)\Microsoft Help Viewer\v2.0" for MS VS 2012 or 'C:\Program Files (x86)\Microsoft Help Viewer\v2.1' for MS VS 2013 directory.
Rename original 'HlpViewer.exe' to 'HlpViewer2.exe' and copy of project exe to 'HlpViewer.exe'.
How when you press F1 on line with code you get localised Help. If you ask help which has no translation ot yours language try set checked "English content in all navigation tabs and F1 requests" check box and you get English help.
Points of Interest
Code trivial for c# and no need any comments.
1.0 init version article.