Optional localizing

  • Thread starter Thread starter bpsdgnews
  • Start date Start date
B

bpsdgnews

Hi,

I am starting with VB2008 express after using vb6 for years.

I want my app in different languages so I use the automatic feature
through
the form properties (Language and Localizable) for that. The resource
files
are generated automatically. Pretty nice feature, I guess.

But, I want my users also to be able to choose the language of their
preference independent on the regional setting they have in their
Windows
control panel. I would include that in may app's preference dialog.

So in a way I'd like to be able to override the regional settings and
make
my app choose the proper resource file from my users preference
instead of
from the Windows regional settings.

Is this possible? And if yes, how?

Regards, Bas.
 
Hi,

I am starting with VB2008 express after using vb6 for years.

I want my app in different languages so I use the automatic feature
through
the form properties (Language and Localizable) for that. The resource
files
are generated automatically. Pretty nice feature, I guess.

But, I want my users also to be able to choose the language of their
preference independent on the regional setting they have in their
Windows
control panel. I would include that in may app's preference dialog.

So in a way I'd like to be able to override the regional settings and
make
my app choose the proper resource file from my users preference
instead of
from the Windows regional settings.

Is this possible? And if yes, how?

Regards, Bas.


The deafult hookup (windows settings) can be overriden in code.


Download the samples here:
http://msdn.microsoft.com/en-us/library/aa289752(VS.71).aspx

Then go to the sample abstracts for details on the samples.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
(e-mail address removed):












The deafult hookup (windows settings) can be overriden in code.

Download the samples here:http://msdn.microsoft.com/en-us/library/aa289752(VS.71).aspx

Then go to the sample abstracts for details on the samples.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog:http://gregorybeamer.spaces.live.com

*******************************************
|      Think outside the box!             |
*******************************************- Tekst uit oorspronkelijk bericht niet weergeven -

- Tekst uit oorspronkelijk bericht weergeven -

Well, I don't know if it's just me, but I can't find out how to
download those samples. Can you point me in the the right direction
for that?
 
Well, I don't know if it's just me, but I can't find out how to
download those samples. Can you point me in the the right direction
for that?


No, it is not just you. It was my mistaken assumption that the samples
were actually linked in the table rather than sending you on some goat
herding mission from hell.

Even though VB is still very used, it is now the red headed step child
of Microsoft, and thus finding actual samples is next to impossible. I
evne did a Microsoft download search. They go back to 1997, so it should
be there, right? Apparently not, but the VB 4.0 samples are. Go figure.

I am now guessing these are samples from the original VB 6 disk, which
will be hard to find. I will see if I can find another sample, as
finding COM-based SOAP samples these days is very hard. I may also have
some old work in this space, but I will have to find the CD backup.

One other place to ask the question is the classic VB6 groups. You
simply need directions on SOAP with credentials using VB6. The answers
will either be XMLHTTP or SOAP Toolkit, which wraps XMLHTTP. You could
go farther down the stack into the windows internet bits, but that is a
real pain.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Well, I don't know if it's just me, but I can't find out how to
download those samples. Can you point me in the the right direction
for that?

I just looked at the SOAP Toolkit 3.0 documentation inside the toolkit:
http://snurl.com/k6ebi

The sample to add credentials there is:

SoapClient3.ConnectorProperty("AuthUser") = "username"
SoapClient3.ConnectorProperty("AuthPassword")="password"

If this is not a direction you can go, then a search for XMLHTTP is the
best option. I will look at my old VB CD and see if I have code for this
there.


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
It is possible but it makes your program look a little bit from W'95, your
settings are done by the OS and when a user wants different settings he
simply can do that.

Cor
 
It is possible but it makes your program look a little bit from W'95, your
settings are done by the OS and when a user wants different settings he
simply can do that.

Cor












- Tekst uit oorspronkelijk bericht weergeven -

Well after some searching I found this:

http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/d5c341db-7af9-446c-bfe7-cd8896202aba/

In the last message in that thread it is pretty well explained what I
wanted to do (override the system setting).

But you are making a good point there Gert. If a user has the
possibility to change a setting in the OS, why would an application
also give that possibility as well?

In an earlier app (in VB6) I only had manual language support. Later I
used API to also make automatic language support possible. But I left
the manual possibility in. So now in my newer version which I will try
to develop in vb.net, I thought I'd keep it in as well. But I guess
most people will leave it at automatic.

Now, I will only provide English and Dutch languages. The default will
be English. So I think it could be possible that a Belgian user for
exasmple, who has his OS in french, would prefer my app to display
Dutch rather than English. But on the other hand why would I bother
about such unlikely scenarios?

So I might reconsider.

Thanks all, Bas.
 
Back
Top