1 Attachment(s)
Multilanguage support for application using XML
Here's a demo project that stores captions and text in XML files. One file per language. The XML format of each file is identical.
When you switch language in your app a new file is loaded and the captions of buttons and the text of other controls can easily be changed.
Regards,
Woof
Re: Multilanguage support for application using XML
I got an error... "ActiveX control couldn't create..." that kinda thing... Number 91 I think... Don't have VB installed at the moment so I don't remember what it was exactly? Any idea? The reference was OK :ehh:
Re: Multilanguage support for application using XML
You got MS XML installed?
Woka
Re: Multilanguage support for application using XML
Re: Multilanguage support for application using XML
Quote:
Originally Posted by Wokawidget
You got MS XML installed?
Woka
I guess? The reference is OK, it doesn't say missing or anything like that. In the autocomplete list in the code, in the declaration :
VB Code:
Private mobjDOM As DOMDocument40
I see DOMDocument40... Is there something else that I should download or need?
Re: Multilanguage support for application using XML
You need MSXML4.
What are you referencing?
Woka
Re: Multilanguage support for application using XML
Version 5 is referenced...
1 Attachment(s)
Re: Multilanguage support for application using XML
Errrr...v5???
Are you sure?
I thought the latest was v4, didn't even know about v5.
Can't find anything on google :(
Here's a screenshot of my references.
Wka
1 Attachment(s)
Re: Multilanguage support for application using XML
I'm way ahead of my times :cool:
Re: Multilanguage support for application using XML
It's a really shame because vb6 only support ANSI. Are there any 3rd party control that it will support unicode??
Thanks,
Mark
Re: Multilanguage support for application using XML
I am not following you...:(
Woka
Re: Multilanguage support for application using XML
Hi all, im new here :) I'm VB6 user and I'm trying to build multilanguage app using Woka's demo but i have an issue with Cyrillic characters - instead of "вщь" i can see only "???". Other languages like polish (with ł,ą,ę etc ) or english works fine. Thanks for replays.
Re: Multilanguage support for application using XML
@ grzechog , yes you can use cyrillic just save the *.xml file in Utf-8 encoding (for this i used Notepad++).
@ Wokawidget, thanks for the code. :thumb:
Re: Multilanguage support for application using XML
np. thanks for the tip for cyrillic.
Re: Multilanguage support for application using XML
Hello
yes this is very old, but I'm very interested in multilanguage support.
I'm here to ask if anyone has implemented this (using XML-like technique)
I've looked at ways that use the resource file but it seems to me that this method is better.
I also took a quick look at the Tanner method which seems the best although quite complicated.
First it scans the project by looking for strings and create the master.xml file
https://github.com/tannerhelland/Pho...ML%20generator
Then, from what I understand, in the main project, every time a string must be displayed, function g_Language.TranslateMessage is called, so that the string is translated using the XML file of the selected language.
Apart from this, I'm very interested in every kind of solution.
Do you have any ideas?
Do you have already implemented multilanguage application?
I would be very grateful if you can post some examples
Re: Multilanguage support for application using XML
Hello.
I think of another way instead of xml files because I do not json.
dilettante has a very simple class module to navigate the contents of the json.
http://www.vbforums.com/showthread.p...rser-Generator
a greeting
sorry for my language
Re: Multilanguage support for application using XML
Hello,
here the re is thread where we are discussing this same issue.
Re: Multilanguage support for application using XML
Quote:
Originally Posted by
Eduardo-
Hello,
here the re is thread where we are discussing this same issue.
thank you
yes, I'm reading it, interesting solutions, pity no tools / code still present