Directory.CreateDirectory() exception is in English with Spanish M

G

Guest

Hello,

I am running Windows XP (English version).
I have installed the Spanish MUI pack on it.
I have set the Region and Language Options control panel to display the
Operating System in the Spanish language.
(The OS does appear in Spanish.)

I am using VS2005 and call:

Directory.CreateDirectory(m_strFileName);

where m_strFileName equals a directory path that does not exist, for example,
"C:\\DirDoesntExist\\DirToCreate".

When "DirDoesn'tExist" does not exist, I get an exception 'Could not find
part of path' (or some such wording...I did not copy it down verbatim).

The exception is understandable. But why isn't it in Spanish???

Are all Microsoft exceptions thrown on XP (English) in English regardless of
the MUI installed and UI language requested???

Thank you in advance for your assistance.
 
W

Walter Wang [MSFT]

Hi Allan,

I agree with Alex here, the MUI package you installed is just for Windows.
For .NET framework, you need to install separate language pack which
contains translated text, such as error messages, for languages other than
English.

The URL posted by Alex is for .NET 2.0, here's the URL for .NET 1.1:

http://www.microsoft.com/downloads/details.aspx?FamilyID=04dbaf2e-61ed-43f4-
8d2a-ccb2bab7b8eb&displaylang=en


Please test this and let us know the result. Thanks.


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Guest

Thank you Alex, thank you Walter.

I haven't tried it yet, but I will. Then I'll post back if it worked.
It'll take me a little bit of time.

Thanks again.
 
G

Guest

Hello Alex, Hello Walter,

I have yet to try that link, but I did just go to download from

http://www.microsoft.com/downloads/...3B-F64B-4B68-A774-B64ED0C32AE7&displaylang=en

(The NET 2.0 version).

FYI: The Quick Details section of that webpage says 'readme.htm' and when I
click download, I get a second browser windows that says something like "No
English file exists".
I select another display language (Spanish) and clicked the change button.
Then the whole page appeared in Spanish. The Quick Details section said
"langpack.exe" and when I clicked download, I succeeded at downloading a
langpack.exe file.
Looks like some bug on the website.

I'll try the langpack soon.
 
W

Walter Wang [MSFT]

Hi Allan,

Thank you for your update.

I've tested the web page as you described, I think the reason why it
reports "there is no language pack for the English version..." is because
the download page is used for general purpose, and in this case, there's no
language pack for English version since the .NET framework has built-in
language pack support for English version.

Anyway, thank you for your feedback. Please let us know if the spanish
language pack works for you or not.


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
W

Walter Wang [MSFT]

Hi Allan,

I'm writing to check the status of this post. Please feel free to let me
know if there's anything else I can help. Thanks.

Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Guest

Thanks Walter.
I have just returned to the office and will try the language pack soon.

As for your analysis of the page behavior, I thought that the choice of
language
and the associated "Change" button would change the language that the page
is displayed in, not change the file that would be downloaded.

More than just an inconvenence, the bevavior is wrong. For example, I know
English and I do not know Russian. To get the russian language pack, I
select Russian from the dropdown list. The entire page now changes to
Russian. Luckily, I do recognize the "Download" button, press it and
download the file.
Now I want to switch back to english (or download another language). I
display the dropdown list and since I don't know Russian, I Cannot Read Any
Choice in the List.

I doubt that is the behavior desired for the page.

Oh, well...enough of that. I will respond when I test the language pack.
 
G

Guest

Hello again,

I just noticed that the Overview section of the page states:

"Note: To download a specific language pack, select the target language from
the change language drop-down."

So the page does document its own behavior.

No reply to this post is necessary. Thank you.
 
G

Guest

Hello Walter.

Sorry for the delay. The .NET20 spanish language pack did successfully
solve my problem. Thanks!!!
 
W

Walter Wang [MSFT]

Hi Allan,

Thanks for the confirmation.

Have a nice day!


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top