|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
best way to write a VB-app with several languagesDear 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 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. -- Show quoteHide quoteRandem 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: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 > > Peter <pete***@myrealbox.com> wrote in message
Show quoteHide quote <news:h2vf01$fd***@mail1.sbs.de> Possibly more than you need, but this book is quite good and covers just > 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. 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 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. -- Show quoteHide quote2025 If you do not believe in time travel, your beliefs are about to be tempered. http://www.facebook.com/group.php?gid=43606237254 "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 | | 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 > > "Bill McCarthy" <TPASoft.com Are Identity Thieves> wrote in message Piss off McCarthy! The OP is obviously using VB6 and he asked a VB6 question 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 . . . 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 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 >> >> > Cor,
> The Microsoft web server newsgroup client leads persons too the latest Where ? I don't see that anywhere on the MSND forums. Can you provide a > 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. 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 >>> >>> >> > 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 >>>> >>>> >>> >> > 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 >>>> >>>> >>> >> > 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 >>>>> >>>>> >>>> >>> >> > 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 >>>>>> >>>>>> >>>>> >>>> >>> >> > 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 > > "James Hahn" <jh***@yahoo.com> wrote in message Were you being facetious? I couldn't really tell.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? > 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 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 > | I was not talking about what is expected or appropriate. I was talking And how many times do you see that question go unanswered or the OP being | 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. told to get off his butt and use Google? 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? > "MikeD" <nob***@nowhere.edu> wrote in message If everyone was to do exactly that then the newsgroups would quickly die, or 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. 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 "James Hahn" <jh***@yahoo.com> wrote If the poster is unwilling to put a little effort into researching the issue,> 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? 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 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. -- Show quoteHide quote2025 If you do not believe in time travel, your beliefs are about to be tempered. http://www.facebook.com/group.php?gid=43606237254 "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 | > | > | 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. -- Show quoteHide quoteRandem 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: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 > > 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 Hi Peter,
"Peter" <pete***@myrealbox.com> wrote in message Yep. To test I think it is best to test in a VPC with the vpc image set to 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. 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. 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.. -- Show quoteHide quoteRandem 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 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 > > 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... -- Show quoteHide quoteRandem 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 "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 >> >> >
Other interesting topics
VB Express and VB files
Is my VB6 app form open? Vista 64 and Visual Studio 6 Keeping 2 listboxes in sync - VB6 ListBox - Limit Selection Rectangle Width In-Process and Out-of-Process array dimensions and size error Best method to have 2 checkboxes for 1 item Command Line Overflow strange behavior-Urgent |
|||||||||||||||||||||||