There are different way's to to that. The first one is to store every (yes, i mean every) label in a database. Before showing the label you must get it first from the database. It's very easy now to add a language. You only need to add a field for that language in the database. And a translater can fill in the new field. Your sourcecode remains the same. (no recompilations) The other way is to add every label to the stringtable of the resource. You need to recompile when you added a language. But you don't need a database. And the thirth way is the way I'll prefer for your project. Use a XML file with the labels for every language. It's not that hard to parse the XML-file. None of the techniques above are quick and easy to implement. You have to remove every label and get the label in the correct language succes ! W.
wimel
Posts
-
How to Translate a program or how can i make a program Translateble -
Text problemYes, it's possible. But, not that easy. The format of a HTML file is the same of a XML file. They both use as tags. With XML there are a lot of possibilities. It all depends on what you want to do with the HTML-file. If you want to parse/change/edit take al look at the DOM-parser. Then it doesn't matter if the code looks like <head> </head> or <head></head> Another possibility is using XSLT for reformatting you XML file. Again, it's not that easy to start with. succes Wimel
-
something circular with #include?Did you try prototyping ? Before you use a class into an other class you have to #include the header. If you only need a pointer to an other object, you can prototype this class. The compile knows the definition (pointer to a class) and the implementation is linked afterwards. Wimel -objectA.h- class objectA; class objectB { objectA* m_poA; } -objectB.h- class objectB; class objectA { objectB* m_poB; }
-
Changing Colour in CDocument:mad:Try to read something about Doc-view architecture. Normally your document only contains the data. In your views you represent the data (text of graph or something else) D.W.