Home All Groups Group Topic Archive Search About

best way to write a VB-app with several languages

Author
7 Jul 2009 12:27 PM
Peter
Dear all
I have an existing vb app that is in english language which means that all
labels, buttons,form captions etc. have english text.
Now I like to extend this app so that it can either run in english or in
german language(depending on a command line switch).
my question is:
What is the best way to implement this?
Should I use resource files and put all text of both languages into it? And
then use a string variable for each label,text,etc?
Or should I add a VB module with lots of text constants?
I don't like to use just plain text files because I don't want to permit the
user to modify the text by himself.
Regards
Peter

Author
7 Jul 2009 12:39 PM
Randem
Actually allowing the user to modify the text may be best. It allows for the
user to make region specific modifications and should aid in your
translations. It will open your app up to languages that you do not
specifically support. I do that in an app of mine and the users love the
fact that the language on the buttons can be modified to their liking.

--
Randem Systems
Your Installation Specialist
The Top Inno Setup Script Generator
http://www.randem.com/innoscript.html
Find Out What Your VB Program is Really Doing
http://www.randem.com/rstools.html



Show quoteHide quote
"Peter" <pete***@myrealbox.com> wrote in message
news:h2vf01$fds$1@mail1.sbs.de...
> Dear all
> I have an existing vb app that is in english language which means that all
> labels, buttons,form captions etc. have english text.
> Now I like to extend this app so that it can either run in english or in
> german language(depending on a command line switch).
> my question is:
> What is the best way to implement this?
> Should I use resource files and put all text of both languages into it?
> And then use a string variable for each label,text,etc?
> Or should I add a VB module with lots of text constants?
> I don't like to use just plain text files because I don't want to permit
> the user to modify the text by himself.
> Regards
> Peter
>
>
Are all your drivers up to date? click for free checkup

Author
8 Jul 2009 2:50 AM
Michael Cole
Peter  <pete***@myrealbox.com> wrote in message
Show quoteHide quote
<news:h2vf01$fd***@mail1.sbs.de>

> Dear all
> I have an existing vb app that is in english language which means
> that all labels, buttons,form captions etc. have english text.
> Now I like to extend this app so that it can either run in english or
> in german language(depending on a command line switch).
> my question is:
> What is the best way to implement this?
> Should I use resource files and put all text of both languages into
> it? And then use a string variable for each label,text,etc?
> Or should I add a VB module with lots of text constants?
> I don't like to use just plain text files because I don't want to
> permit the user to modify the text by himself.

Possibly more than you need, but this book is quite good and covers just
about everything.
http://www.amazon.co.uk/Internationalization-Visual-Basic-Michael-Kaplan/dp/0672319772
There are probably other sources to obtain it, but this was the first hit in
Google.

The author occasionally is (or was) around here too.



--
Regards

Michael Cole
Author
8 Jul 2009 3:03 AM
Kevin Provance
Resources would be the best way to go.  Separate resource DLLs, each for a
different language would be even better, then you only need load the
language you want, versus the whole smack.

--
2025
If you do not believe in time travel,
your beliefs are about to be tempered.

http://www.facebook.com/group.php?gid=43606237254
Show quoteHide quote
"Peter" <pete***@myrealbox.com> wrote in message
news:h2vf01$fds$1@mail1.sbs.de...
| Dear all
| I have an existing vb app that is in english language which means that all
| labels, buttons,form captions etc. have english text.
| Now I like to extend this app so that it can either run in english or in
| german language(depending on a command line switch).
| my question is:
| What is the best way to implement this?
| Should I use resource files and put all text of both languages into it?
And
| then use a string variable for each label,text,etc?
| Or should I add a VB module with lots of text constants?
| I don't like to use just plain text files because I don't want to permit
the
| user to modify the text by himself.
| Regards
| Peter
|
|
Author
8 Jul 2009 7:24 AM
Bill McCarthy
Hi Peter,

Resource files is the usual approach.  One thing to be aware of is the
language may mean you need to adjust your control layout: for that inVB6
you'd have to write code to retrieve those values and apply them.  Also be
aware that the standard VB6 controls don't have full unicode support. You
will need to swap them out for 3rd party controls for full unicode support,
although you can get a bit working by changing the codepage.
In Vb.NET this is all a lot simpler, full unicode support, and you just
toggle the form's language at design time, change the text and layout as
needed.  But if you are using VB6, then it's best to read up on this , and
Michka (aka Michael Kaplan's) book is the definitive reference for multi
language support.

Show quoteHide quote
"Peter" <pete***@myrealbox.com> wrote in message
news:h2vf01$fds$1@mail1.sbs.de...
> Dear all
> I have an existing vb app that is in english language which means that all
> labels, buttons,form captions etc. have english text.
> Now I like to extend this app so that it can either run in english or in
> german language(depending on a command line switch).
> my question is:
> What is the best way to implement this?
> Should I use resource files and put all text of both languages into it?
> And then use a string variable for each label,text,etc?
> Or should I add a VB module with lots of text constants?
> I don't like to use just plain text files because I don't want to permit
> the user to modify the text by himself.
> Regards
> Peter
>
>
Author
8 Jul 2009 9:08 AM
Wike Milliams
"Bill McCarthy" <TPASoft.com Are Identity Thieves> wrote in message
news:eYS4P35$JHA.4496@TK2MSFTNGP02.phx.gbl...

> . . . inVB6 you'd have to write code to retrieve those values
> and apply them.  Also be aware that the standard VB6 controls
> don't have full unicode support . . . In Vb.NET this is all a lot
> simpler, full unicode support . . .

Piss off McCarthy! The OP is obviously using VB6 and he asked a VB6 question
in a VB6 newsgroup, so you can keep your dotnet propaganda to yourself. If
wouldn't be so bad if you were actually trying to be helpful, but you are
not! Everybody here knows that you are doing it deliberately in order to
stir up trouble in the VB6 group and to annoy its members, as you have done
so many times in the past. Furthermore, your thoroughly nasty and repeated
attacks on the owner of a perfectly legitimate and trustworthy website who
you repeatedly and publicly lie about in your message headers marks you out
as the evil Troll that you indeed are.

Your behaviour is disgraceful, but is especially so for someone who
professes to be a Microsoft MVP.  You have been reported to Microsoft many
times and I am very surprised that they still continue to permit one of
their own MVPs to engage in such outrageous long term trolling activities in
one of their own public newsgroups. In fact it has got to the stage now
where people are beginning to believe that Microsoft actually condone your
nasty behaviour, or perhaps even encourage it. Your behaviour as an MVP is
disgraceful and you must surely be an embarrassment to Microsoft. In my
opinion they should revoke your MVP status with immediate effect.

By the way, I would like to contact you so that we could discuss your
behaviour outside the confines of these groups. Is either of these your real
email address?

    bill***@gsat.edu.au
    bmccarth***@hotmail.com

I have copied this response to some of the Microsoft newsgroups you often
use so that they too will know about your disgusting behaviour on the VB6
group.

Mike
Author
8 Jul 2009 1:07 PM
Cor Ligthert[MVP]
Bill,

Will you be so kind to use as less the words VB NxT in this newsgroup.

I've a different reason for this question than some others here.

The Microsoft web server newsgroup client leads persons too the latest
messages, so if you use that, then persons who use that for a newsgroup for
the 5 newer versions than VB6, are lead to this newsgroup because of your
messages.

Use instead something like "the newer versions from Visual Basic" or
something like that

Thanks in advance,

Cor


Show quoteHide quote
"Bill McCarthy" <TPASoft.com Are Identity Thieves> wrote in message
news:eYS4P35$JHA.4496@TK2MSFTNGP02.phx.gbl...
> Hi Peter,
>
> Resource files is the usual approach.  One thing to be aware of is the
> language may mean you need to adjust your control layout: for that inVB6
> you'd have to write code to retrieve those values and apply them.  Also be
> aware that the standard VB6 controls don't have full unicode support. You
> will need to swap them out for 3rd party controls for full unicode
> support, although you can get a bit working by changing the codepage.
> In Vb.NET this is all a lot simpler, full unicode support, and you just
> toggle the form's language at design time, change the text and layout as
> needed.  But if you are using VB6, then it's best to read up on this , and
> Michka (aka Michael Kaplan's) book is the definitive reference for multi
> language support.
>
> "Peter" <pete***@myrealbox.com> wrote in message
> news:h2vf01$fds$1@mail1.sbs.de...
>> Dear all
>> I have an existing vb app that is in english language which means that
>> all labels, buttons,form captions etc. have english text.
>> Now I like to extend this app so that it can either run in english or in
>> german language(depending on a command line switch).
>> my question is:
>> What is the best way to implement this?
>> Should I use resource files and put all text of both languages into it?
>> And then use a string variable for each label,text,etc?
>> Or should I add a VB module with lots of text constants?
>> I don't like to use just plain text files because I don't want to permit
>> the user to modify the text by himself.
>> Regards
>> Peter
>>
>>
>
Author
8 Jul 2009 1:18 PM
Bill McCarthy
Cor,

> The Microsoft web server newsgroup client leads persons too the latest
> messages, so if you use that, then persons who use that for a newsgroup
> for the 5 newer versions than VB6, are lead to this newsgroup because of
> your messages.


Where ?  I don't see that anywhere on the MSND forums.  Can you provide a
link  ?

The msdn forums do call the general VB .NET forum, "Visual Basic General"
http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/threads

Are you perhaps confusing that ?




Show quoteHide quote
"Cor Ligthert[MVP]" <Notmyfirstn***@planet.nl> wrote in message
news:%23k50V08$JHA.2120@TK2MSFTNGP02.phx.gbl...
> Bill,
>
> Will you be so kind to use as less the words VB NxT in this newsgroup.
>
> I've a different reason for this question than some others here.
>
> The Microsoft web server newsgroup client leads persons too the latest
> messages, so if you use that, then persons who use that for a newsgroup
> for the 5 newer versions than VB6, are lead to this newsgroup because of
> your messages.
>
> Use instead something like "the newer versions from Visual Basic" or
> something like that
>
> Thanks in advance,
>
> Cor
>
>
> "Bill McCarthy" <TPASoft.com Are Identity Thieves> wrote in message
> news:eYS4P35$JHA.4496@TK2MSFTNGP02.phx.gbl...
>> Hi Peter,
>>
>> Resource files is the usual approach.  One thing to be aware of is the
>> language may mean you need to adjust your control layout: for that inVB6
>> you'd have to write code to retrieve those values and apply them.  Also
>> be aware that the standard VB6 controls don't have full unicode support.
>> You will need to swap them out for 3rd party controls for full unicode
>> support, although you can get a bit working by changing the codepage.
>> In Vb.NET this is all a lot simpler, full unicode support, and you just
>> toggle the form's language at design time, change the text and layout as
>> needed.  But if you are using VB6, then it's best to read up on this ,
>> and Michka (aka Michael Kaplan's) book is the definitive reference for
>> multi language support.
>>
>> "Peter" <pete***@myrealbox.com> wrote in message
>> news:h2vf01$fds$1@mail1.sbs.de...
>>> Dear all
>>> I have an existing vb app that is in english language which means that
>>> all labels, buttons,form captions etc. have english text.
>>> Now I like to extend this app so that it can either run in english or in
>>> german language(depending on a command line switch).
>>> my question is:
>>> What is the best way to implement this?
>>> Should I use resource files and put all text of both languages into it?
>>> And then use a string variable for each label,text,etc?
>>> Or should I add a VB module with lots of text constants?
>>> I don't like to use just plain text files because I don't want to permit
>>> the user to modify the text by himself.
>>> Regards
>>> Peter
>>>
>>>
>>
>
Author
8 Jul 2009 3:31 PM
Henning
Guess what, the only one confusing things is you!
Googling for "the newer version" will show this group, thanks to you.

/Henning

Show quoteHide quote
"Bill McCarthy" <TPASoft.com Are Identity Thieves> skrev i meddelandet
news:uaBml88$JHA.3732@TK2MSFTNGP02.phx.gbl...
> Cor,
>
>> The Microsoft web server newsgroup client leads persons too the latest
>> messages, so if you use that, then persons who use that for a newsgroup
>> for the 5 newer versions than VB6, are lead to this newsgroup because of
>> your messages.
>
>
> Where ?  I don't see that anywhere on the MSND forums.  Can you provide a
> link  ?
>
> The msdn forums do call the general VB .NET forum, "Visual Basic General"
> http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/threads
>
> Are you perhaps confusing that ?
>
>
>
>
> "Cor Ligthert[MVP]" <Notmyfirstn***@planet.nl> wrote in message
> news:%23k50V08$JHA.2120@TK2MSFTNGP02.phx.gbl...
>> Bill,
>>
>> Will you be so kind to use as less the words VB NxT in this newsgroup.
>>
>> I've a different reason for this question than some others here.
>>
>> The Microsoft web server newsgroup client leads persons too the latest
>> messages, so if you use that, then persons who use that for a newsgroup
>> for the 5 newer versions than VB6, are lead to this newsgroup because of
>> your messages.
>>
>> Use instead something like "the newer versions from Visual Basic" or
>> something like that
>>
>> Thanks in advance,
>>
>> Cor
>>
>>
>> "Bill McCarthy" <TPASoft.com Are Identity Thieves> wrote in message
>> news:eYS4P35$JHA.4496@TK2MSFTNGP02.phx.gbl...
>>> Hi Peter,
>>>
>>> Resource files is the usual approach.  One thing to be aware of is the
>>> language may mean you need to adjust your control layout: for that inVB6
>>> you'd have to write code to retrieve those values and apply them.  Also
>>> be aware that the standard VB6 controls don't have full unicode support.
>>> You will need to swap them out for 3rd party controls for full unicode
>>> support, although you can get a bit working by changing the codepage.
>>> In Vb.NET this is all a lot simpler, full unicode support, and you just
>>> toggle the form's language at design time, change the text and layout as
>>> needed.  But if you are using VB6, then it's best to read up on this ,
>>> and Michka (aka Michael Kaplan's) book is the definitive reference for
>>> multi language support.
>>>
>>> "Peter" <pete***@myrealbox.com> wrote in message
>>> news:h2vf01$fds$1@mail1.sbs.de...
>>>> Dear all
>>>> I have an existing vb app that is in english language which means that
>>>> all labels, buttons,form captions etc. have english text.
>>>> Now I like to extend this app so that it can either run in english or
>>>> in german language(depending on a command line switch).
>>>> my question is:
>>>> What is the best way to implement this?
>>>> Should I use resource files and put all text of both languages into it?
>>>> And then use a string variable for each label,text,etc?
>>>> Or should I add a VB module with lots of text constants?
>>>> I don't like to use just plain text files because I don't want to
>>>> permit the user to modify the text by himself.
>>>> Regards
>>>> Peter
>>>>
>>>>
>>>
>>
>
Author
8 Jul 2009 5:11 PM
Cor Ligthert[MVP]
Bill

I wrote newsgroups

http://www.microsoft.com/communities/newsgroups/en-us/

Not forums

Cor

Show quoteHide quote
"Bill McCarthy" <TPASoft.com Are Identity Thieves> wrote in message
news:uaBml88$JHA.3732@TK2MSFTNGP02.phx.gbl...
> Cor,
>
>> The Microsoft web server newsgroup client leads persons too the latest
>> messages, so if you use that, then persons who use that for a newsgroup
>> for the 5 newer versions than VB6, are lead to this newsgroup because of
>> your messages.
>
>
> Where ?  I don't see that anywhere on the MSND forums.  Can you provide a
> link  ?
>
> The msdn forums do call the general VB .NET forum, "Visual Basic General"
> http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/threads
>
> Are you perhaps confusing that ?
>
>
>
>
> "Cor Ligthert[MVP]" <Notmyfirstn***@planet.nl> wrote in message
> news:%23k50V08$JHA.2120@TK2MSFTNGP02.phx.gbl...
>> Bill,
>>
>> Will you be so kind to use as less the words VB NxT in this newsgroup.
>>
>> I've a different reason for this question than some others here.
>>
>> The Microsoft web server newsgroup client leads persons too the latest
>> messages, so if you use that, then persons who use that for a newsgroup
>> for the 5 newer versions than VB6, are lead to this newsgroup because of
>> your messages.
>>
>> Use instead something like "the newer versions from Visual Basic" or
>> something like that
>>
>> Thanks in advance,
>>
>> Cor
>>
>>
>> "Bill McCarthy" <TPASoft.com Are Identity Thieves> wrote in message
>> news:eYS4P35$JHA.4496@TK2MSFTNGP02.phx.gbl...
>>> Hi Peter,
>>>
>>> Resource files is the usual approach.  One thing to be aware of is the
>>> language may mean you need to adjust your control layout: for that inVB6
>>> you'd have to write code to retrieve those values and apply them.  Also
>>> be aware that the standard VB6 controls don't have full unicode support.
>>> You will need to swap them out for 3rd party controls for full unicode
>>> support, although you can get a bit working by changing the codepage.
>>> In Vb.NET this is all a lot simpler, full unicode support, and you just
>>> toggle the form's language at design time, change the text and layout as
>>> needed.  But if you are using VB6, then it's best to read up on this ,
>>> and Michka (aka Michael Kaplan's) book is the definitive reference for
>>> multi language support.
>>>
>>> "Peter" <pete***@myrealbox.com> wrote in message
>>> news:h2vf01$fds$1@mail1.sbs.de...
>>>> Dear all
>>>> I have an existing vb app that is in english language which means that
>>>> all labels, buttons,form captions etc. have english text.
>>>> Now I like to extend this app so that it can either run in english or
>>>> in german language(depending on a command line switch).
>>>> my question is:
>>>> What is the best way to implement this?
>>>> Should I use resource files and put all text of both languages into it?
>>>> And then use a string variable for each label,text,etc?
>>>> Or should I add a VB module with lots of text constants?
>>>> I don't like to use just plain text files because I don't want to
>>>> permit the user to modify the text by himself.
>>>> Regards
>>>> Peter
>>>>
>>>>
>>>
>>
>
Author
9 Jul 2009 3:35 AM
Bill McCarthy
And why/how would someone go there looking for .NET ?   All the links to
that are from the VB6 pages.


Show quoteHide quote
"Cor Ligthert[MVP]" <Notmyfirstn***@planet.nl> wrote in message
news:OdG%23n8%23$JHA.3732@TK2MSFTNGP02.phx.gbl...
> Bill
>
> I wrote newsgroups
>
> http://www.microsoft.com/communities/newsgroups/en-us/
>
> Not forums
>
> Cor
>
> "Bill McCarthy" <TPASoft.com Are Identity Thieves> wrote in message
> news:uaBml88$JHA.3732@TK2MSFTNGP02.phx.gbl...
>> Cor,
>>
>>> The Microsoft web server newsgroup client leads persons too the latest
>>> messages, so if you use that, then persons who use that for a newsgroup
>>> for the 5 newer versions than VB6, are lead to this newsgroup because of
>>> your messages.
>>
>>
>> Where ?  I don't see that anywhere on the MSND forums.  Can you provide a
>> link  ?
>>
>> The msdn forums do call the general VB .NET forum, "Visual Basic General"
>> http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/threads
>>
>> Are you perhaps confusing that ?
>>
>>
>>
>>
>> "Cor Ligthert[MVP]" <Notmyfirstn***@planet.nl> wrote in message
>> news:%23k50V08$JHA.2120@TK2MSFTNGP02.phx.gbl...
>>> Bill,
>>>
>>> Will you be so kind to use as less the words VB NxT in this newsgroup.
>>>
>>> I've a different reason for this question than some others here.
>>>
>>> The Microsoft web server newsgroup client leads persons too the latest
>>> messages, so if you use that, then persons who use that for a newsgroup
>>> for the 5 newer versions than VB6, are lead to this newsgroup because of
>>> your messages.
>>>
>>> Use instead something like "the newer versions from Visual Basic" or
>>> something like that
>>>
>>> Thanks in advance,
>>>
>>> Cor
>>>
>>>
>>> "Bill McCarthy" <TPASoft.com Are Identity Thieves> wrote in message
>>> news:eYS4P35$JHA.4496@TK2MSFTNGP02.phx.gbl...
>>>> Hi Peter,
>>>>
>>>> Resource files is the usual approach.  One thing to be aware of is the
>>>> language may mean you need to adjust your control layout: for that
>>>> inVB6 you'd have to write code to retrieve those values and apply them.
>>>> Also be aware that the standard VB6 controls don't have full unicode
>>>> support. You will need to swap them out for 3rd party controls for full
>>>> unicode support, although you can get a bit working by changing the
>>>> codepage.
>>>> In Vb.NET this is all a lot simpler, full unicode support, and you just
>>>> toggle the form's language at design time, change the text and layout
>>>> as needed.  But if you are using VB6, then it's best to read up on this
>>>> , and Michka (aka Michael Kaplan's) book is the definitive reference
>>>> for multi language support.
>>>>
>>>> "Peter" <pete***@myrealbox.com> wrote in message
>>>> news:h2vf01$fds$1@mail1.sbs.de...
>>>>> Dear all
>>>>> I have an existing vb app that is in english language which means that
>>>>> all labels, buttons,form captions etc. have english text.
>>>>> Now I like to extend this app so that it can either run in english or
>>>>> in german language(depending on a command line switch).
>>>>> my question is:
>>>>> What is the best way to implement this?
>>>>> Should I use resource files and put all text of both languages into
>>>>> it? And then use a string variable for each label,text,etc?
>>>>> Or should I add a VB module with lots of text constants?
>>>>> I don't like to use just plain text files because I don't want to
>>>>> permit the user to modify the text by himself.
>>>>> Regards
>>>>> Peter
>>>>>
>>>>>
>>>>
>>>
>>
>
Author
9 Jul 2009 1:20 PM
Cor Ligthert[MVP]
Do a search for VB.NxT and you see mostly why


Show quoteHide quote
"Bill McCarthy" <TPASoft.com Are Identity Thieves> wrote in message
news:e33UEbEAKHA.3732@TK2MSFTNGP02.phx.gbl...
>
> And why/how would someone go there looking for .NET ?   All the links to
> that are from the VB6 pages.
>
>
> "Cor Ligthert[MVP]" <Notmyfirstn***@planet.nl> wrote in message
> news:OdG%23n8%23$JHA.3732@TK2MSFTNGP02.phx.gbl...
>> Bill
>>
>> I wrote newsgroups
>>
>> http://www.microsoft.com/communities/newsgroups/en-us/
>>
>> Not forums
>>
>> Cor
>>
>> "Bill McCarthy" <TPASoft.com Are Identity Thieves> wrote in message
>> news:uaBml88$JHA.3732@TK2MSFTNGP02.phx.gbl...
>>> Cor,
>>>
>>>> The Microsoft web server newsgroup client leads persons too the latest
>>>> messages, so if you use that, then persons who use that for a newsgroup
>>>> for the 5 newer versions than VB6, are lead to this newsgroup because
>>>> of your messages.
>>>
>>>
>>> Where ?  I don't see that anywhere on the MSND forums.  Can you provide
>>> a link  ?
>>>
>>> The msdn forums do call the general VB .NET forum, "Visual Basic
>>> General"
>>> http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/threads
>>>
>>> Are you perhaps confusing that ?
>>>
>>>
>>>
>>>
>>> "Cor Ligthert[MVP]" <Notmyfirstn***@planet.nl> wrote in message
>>> news:%23k50V08$JHA.2120@TK2MSFTNGP02.phx.gbl...
>>>> Bill,
>>>>
>>>> Will you be so kind to use as less the words VB NxT in this newsgroup.
>>>>
>>>> I've a different reason for this question than some others here.
>>>>
>>>> The Microsoft web server newsgroup client leads persons too the latest
>>>> messages, so if you use that, then persons who use that for a newsgroup
>>>> for the 5 newer versions than VB6, are lead to this newsgroup because
>>>> of your messages.
>>>>
>>>> Use instead something like "the newer versions from Visual Basic" or
>>>> something like that
>>>>
>>>> Thanks in advance,
>>>>
>>>> Cor
>>>>
>>>>
>>>> "Bill McCarthy" <TPASoft.com Are Identity Thieves> wrote in message
>>>> news:eYS4P35$JHA.4496@TK2MSFTNGP02.phx.gbl...
>>>>> Hi Peter,
>>>>>
>>>>> Resource files is the usual approach.  One thing to be aware of is the
>>>>> language may mean you need to adjust your control layout: for that
>>>>> inVB6 you'd have to write code to retrieve those values and apply
>>>>> them. Also be aware that the standard VB6 controls don't have full
>>>>> unicode support. You will need to swap them out for 3rd party controls
>>>>> for full unicode support, although you can get a bit working by
>>>>> changing the codepage.
>>>>> In Vb.NET this is all a lot simpler, full unicode support, and you
>>>>> just toggle the form's language at design time, change the text and
>>>>> layout as needed.  But if you are using VB6, then it's best to read up
>>>>> on this , and Michka (aka Michael Kaplan's) book is the definitive
>>>>> reference for multi language support.
>>>>>
>>>>> "Peter" <pete***@myrealbox.com> wrote in message
>>>>> news:h2vf01$fds$1@mail1.sbs.de...
>>>>>> Dear all
>>>>>> I have an existing vb app that is in english language which means
>>>>>> that all labels, buttons,form captions etc. have english text.
>>>>>> Now I like to extend this app so that it can either run in english or
>>>>>> in german language(depending on a command line switch).
>>>>>> my question is:
>>>>>> What is the best way to implement this?
>>>>>> Should I use resource files and put all text of both languages into
>>>>>> it? And then use a string variable for each label,text,etc?
>>>>>> Or should I add a VB module with lots of text constants?
>>>>>> I don't like to use just plain text files because I don't want to
>>>>>> permit the user to modify the text by himself.
>>>>>> Regards
>>>>>> Peter
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
Author
9 Jul 2009 10:13 PM
James Hahn
Surely you are not seriously suggesting that anyone about to ask a question
in this group is going to do a search to find out whether or not their
problem has already been addressed?

It is not appropriate to assume that the standard you may apply to newsgroup
posting is universal, or even particularly common.

Show quoteHide quote
"Cor Ligthert[MVP]" <Notmyfirstn***@planet.nl> wrote in message
news:%23iUYKgJAKHA.4432@TK2MSFTNGP02.phx.gbl...
> Do a search for VB.NxT and you see mostly why
>
>
Author
9 Jul 2009 11:18 PM
MikeD
"James Hahn" <jh***@yahoo.com> wrote in message
news:ewSLNKOAKHA.1208@TK2MSFTNGP03.phx.gbl...
> Surely you are not seriously suggesting that anyone about to ask a
> question in this group is going to do a search to find out whether or not
> their problem has already been addressed?
>


Were you being facetious? I couldn't really tell.

If you weren't, then I suppose you need informed that it IS expected that
people search newsgroup archives first (as well as do other investigation on
their own) before posting because there's a VERY good chance the exact same
question (or at least one very close to it) has been asked before.

--
Mike
Author
10 Jul 2009 2:12 AM
James Hahn
I was not talking about what is expected or appropriate.  I was talking
about what actually happens.  How many times have you seen the exact same
question (or at least one very close to it) asked repeatedly.  You have a
grossly inflated opinion of the archival value of these postings.

Show quoteHide quote
"MikeD" <nob***@nowhere.edu> wrote in message
news:u8TvFuOAKHA.4336@TK2MSFTNGP04.phx.gbl...
>
> "James Hahn" <jh***@yahoo.com> wrote in message
> news:ewSLNKOAKHA.1208@TK2MSFTNGP03.phx.gbl...
>> Surely you are not seriously suggesting that anyone about to ask a
>> question in this group is going to do a search to find out whether or not
>> their problem has already been addressed?
>>
>
>
> Were you being facetious? I couldn't really tell.
>
> If you weren't, then I suppose you need informed that it IS expected that
> people search newsgroup archives first (as well as do other investigation
> on their own) before posting because there's a VERY good chance the exact
> same question (or at least one very close to it) has been asked before.
>
> --
> Mike
>
Author
10 Jul 2009 2:33 AM
Kevin Provance
| I was not talking about what is expected or appropriate.  I was talking
| about what actually happens.  How many times have you seen the exact same
| question (or at least one very close to it) asked repeatedly.  You have a
| grossly inflated opinion of the archival value of these postings.

And how many times do you see that question go unanswered or the OP being
told to get off his butt and use Google?
Author
10 Jul 2009 6:30 AM
James Hahn
My point exactly.  Those who are familiar with the newsgroups, and can be
assumed to have some recollection of what's gone on in the past, invariably
refer such queries straight to Google. And then try to claim that the
newsgroups are a useful repository of information that should not be
polluted with irrelevant search terms!  And if they refer to something
specific, in almost all cases it will be a purpose-built internet page
rather than an archived post, thereby denying their claim to the historic
usefullness of what has gone before.

Newsgroups are for immediate responses with peer reviewing.   Pretending
that posts have worthwhile archival value is simply an attempt to place a
value on newsgroup participation that cannot be justified.   But perhaps
there are some who need that warm fuzzy feeling they get by pretending that
their musings have a place in history.

Show quoteHide quote
"Kevin Provance" <Bill.McCarthy.Is.Stalking.TPASoft.com***@nowhere.edu>
wrote in message news:%23w%23yQbQAKHA.528@TK2MSFTNGP03.phx.gbl...
>| I was not talking about what is expected or appropriate.  I was talking
> | about what actually happens.  How many times have you seen the exact
> same
> | question (or at least one very close to it) asked repeatedly.  You have
> a
> | grossly inflated opinion of the archival value of these postings.
>
> And how many times do you see that question go unanswered or the OP being
> told to get off his butt and use Google?
>
Author
10 Jul 2009 8:10 AM
Mike Williams
"MikeD" <nob***@nowhere.edu> wrote in message
news:u8TvFuOAKHA.4336@TK2MSFTNGP04.phx.gbl...

> it IS expected that people search newsgroup archives first (as
> well as do other investigation on their own) before posting
> because there's a VERY good chance the exact same question
> (or at least one very close to it) has been asked before.

If everyone was to do exactly that then the newsgroups would quickly die, or
at the very least they would get fewer and fewer postings until there were
almost none, and you would be deprived of your own little hobby. Is that
what you want?

Mike
Author
10 Jul 2009 12:08 AM
Larry Serflaten
"James Hahn" <jh***@yahoo.com> wrote
> Surely you are not seriously suggesting that anyone about to ask a question
> in this group is going to do a search to find out whether or not their
> problem has already been addressed?

If the poster is unwilling to put a little effort into researching the issue,
why should others put any effort into providing a detailed answer?

The whole point of having an archive is so that the collected knowlege
becomes available to everyone.  The same is true for questions that are
plainly explained in the documentation.

While there are beginner level newsgroups for 'hand-holding' and other beginner
topics, such 'hand-holding' is not very welcome in a professional peer-to-peer
style newsgroup.

Here are few tips for asking a question in a newsgroup:
http://support.microsoft.com/kb/555375

Take note of all the steps they reccomend BEFORE you ask a question.

LFS
Author
8 Jul 2009 10:12 PM
Kevin Provance
Nobody asked about .net you trolling piece of dog $h_it.  Why do you insist
on instigating this drama?  Huh?  You mu finally force you off her tit and
into your own bed?  You need to find better ways to make up for your own
shortcomings than trolling, dick face.

--
2025
If you do not believe in time travel,
your beliefs are about to be tempered.

http://www.facebook.com/group.php?gid=43606237254
Show quoteHide quote
"Bill McCarthy" <TPASoft.com Are Identity Thieves> wrote in message
news:eYS4P35$JHA.4496@TK2MSFTNGP02.phx.gbl...
| Hi Peter,
|
| Resource files is the usual approach.  One thing to be aware of is the
| language may mean you need to adjust your control layout: for that inVB6
| you'd have to write code to retrieve those values and apply them.  Also be
| aware that the standard VB6 controls don't have full unicode support. You
| will need to swap them out for 3rd party controls for full unicode
support,
| although you can get a bit working by changing the codepage.
| In Vb.NET this is all a lot simpler, full unicode support, and you just
| toggle the form's language at design time, change the text and layout as
| needed.  But if you are using VB6, then it's best to read up on this , and
| Michka (aka Michael Kaplan's) book is the definitive reference for multi
| language support.
|
| "Peter" <pete***@myrealbox.com> wrote in message
| news:h2vf01$fds$1@mail1.sbs.de...
| > Dear all
| > I have an existing vb app that is in english language which means that
all
| > labels, buttons,form captions etc. have english text.
| > Now I like to extend this app so that it can either run in english or in
| > german language(depending on a command line switch).
| > my question is:
| > What is the best way to implement this?
| > Should I use resource files and put all text of both languages into it?
| > And then use a string variable for each label,text,etc?
| > Or should I add a VB module with lots of text constants?
| > I don't like to use just plain text files because I don't want to permit
| > the user to modify the text by himself.
| > Regards
| > Peter
| >
| >
|
Author
8 Jul 2009 8:13 AM
Randem
Here is something that can help. It doesn't do captions but it will give you
a start http://www.randem.com/freesoftutil.html look at the bottom of the
page for "Display Unicode in Controls" it will give you something for
thought. You can also look at InnoScript to see how it is rendered.



--
Randem Systems
Your Installation Specialist
The Top Inno Setup Script Generator
http://www.randem.com/innoscript.html
Find Out What Your VB Program is Really Doing
http://www.randem.com/rstools.html



Show quoteHide quote
"Peter" <pete***@myrealbox.com> wrote in message
news:h2vf01$fds$1@mail1.sbs.de...
> Dear all
> I have an existing vb app that is in english language which means that all
> labels, buttons,form captions etc. have english text.
> Now I like to extend this app so that it can either run in english or in
> german language(depending on a command line switch).
> my question is:
> What is the best way to implement this?
> Should I use resource files and put all text of both languages into it?
> And then use a string variable for each label,text,etc?
> Or should I add a VB module with lots of text constants?
> I don't like to use just plain text files because I don't want to permit
> the user to modify the text by himself.
> Regards
> Peter
>
>
Author
8 Jul 2009 8:57 AM
Peter
Many Thanks for your answers.
I do not need unicode, I just like to have my app in english,german and
perhaps french language.
Ok, so I will create a resource file and modify my code for it.
Pegards
Peter
Author
8 Jul 2009 9:35 AM
Bill McCarthy
Hi Peter,

"Peter" <pete***@myrealbox.com> wrote in message
news:h31n2l$ab2$1@mail1.sbs.de...
> Many Thanks for your answers.
> I do not need unicode, I just like to have my app in english,german and
> perhaps french language.
> Ok, so I will create a resource file and modify my code for it.

Yep. To test I think it is best to test in a VPC with the vpc image set to
the locale, but I think you can also call the SetThreadLocale API or similar
in a sub main in your VB6 code to change to the other cultures. Makes it
quick to run from the IDE and see the different languages.
Author
8 Jul 2009 9:19 PM
Randem
So you are going to limit your app to three languages and NON- Unicode
languages... That is going to leave a lot of people out of your
application..

--
Randem Systems
Your Installation Specialist
The Top Inno Setup Script Generator
http://www.randem.com/innoscript.html
Find Out What Your VB Program is Really Doing
http://www.randem.com/rstools.html



Show quoteHide quote
"Peter" <pete***@myrealbox.com> wrote in message
news:h31n2l$ab2$1@mail1.sbs.de...
> Many Thanks for your answers.
> I do not need unicode, I just like to have my app in english,german and
> perhaps french language.
> Ok, so I will create a resource file and modify my code for it.
> Pegards
> Peter
Author
8 Jul 2009 10:42 PM
MikeD
Did it occur to you that perhaps English, German, and French are the only
languages for which he NEEDS to provide support? Why spend time (and
possibly money) to translate to other languages if it's not going to be used
by people speaking those languages?

To me, your reply came across as bitter because he chose NOT to use YOUR
product. Maybe if 80-some% of your posts weren't pushing your own products,
web site, etc. you wouldn't be bitter when someone decides they don't need
your "services".


Mike



Show quoteHide quote
"Randem" <newsgro***@randem.com> wrote in message
news:%23F$GXHBAKHA.4984@TK2MSFTNGP05.phx.gbl...
> So you are going to limit your app to three languages and NON- Unicode
> languages... That is going to leave a lot of people out of your
> application..
>
> --
> Randem Systems
> Your Installation Specialist
> The Top Inno Setup Script Generator
> http://www.randem.com/innoscript.html
> Find Out What Your VB Program is Really Doing
> http://www.randem.com/rstools.html
>
>
>
> "Peter" <pete***@myrealbox.com> wrote in message
> news:h31n2l$ab2$1@mail1.sbs.de...
>> Many Thanks for your answers.
>> I do not need unicode, I just like to have my app in english,german and
>> perhaps french language.
>> Ok, so I will create a resource file and modify my code for it.
>> Pegards
>> Peter
>
>
Author
8 Jul 2009 11:39 PM
Randem
No you are incorrect. I do not offer a PRODUCT just a solution to help other
think of other possible way to complete such matters. Perhaps comprehension
is not your better suit?

My insight was to why limit yourself and your customers. It it to get the OP
to think about if he really wants to limit his product. But of course you
completely missed that and are only in this newsgroup NOT to offer
suggestion or solutions but to offer DRAMA... This is not a reality show...

--
Randem Systems
Your Installation Specialist
The Top Inno Setup Script Generator
http://www.randem.com/innoscript.html
Find Out What Your VB Program is Really Doing
http://www.randem.com/rstools.html



Show quoteHide quote
"MikeD" <nob***@nowhere.edu> wrote in message
news:%23ztRd1BAKHA.5092@TK2MSFTNGP03.phx.gbl...
> Did it occur to you that perhaps English, German, and French are the only
> languages for which he NEEDS to provide support? Why spend time (and
> possibly money) to translate to other languages if it's not going to be
> used by people speaking those languages?
>
> To me, your reply came across as bitter because he chose NOT to use YOUR
> product. Maybe if 80-some% of your posts weren't pushing your own
> products, web site, etc. you wouldn't be bitter when someone decides they
> don't need your "services".
>
>
> Mike
>
>
>
> "Randem" <newsgro***@randem.com> wrote in message
> news:%23F$GXHBAKHA.4984@TK2MSFTNGP05.phx.gbl...
>> So you are going to limit your app to three languages and NON- Unicode
>> languages... That is going to leave a lot of people out of your
>> application..
>>
>> --
>> Randem Systems
>> Your Installation Specialist
>> The Top Inno Setup Script Generator
>> http://www.randem.com/innoscript.html
>> Find Out What Your VB Program is Really Doing
>> http://www.randem.com/rstools.html
>>
>>
>>
>> "Peter" <pete***@myrealbox.com> wrote in message
>> news:h31n2l$ab2$1@mail1.sbs.de...
>>> Many Thanks for your answers.
>>> I do not need unicode, I just like to have my app in english,german and
>>> perhaps french language.
>>> Ok, so I will create a resource file and modify my code for it.
>>> Pegards
>>> Peter
>>
>>
>

Bookmark and Share