Translator
Please post all your completed software applications in here. This is for full software which you have created and wish to release and share with everyone.
6 posts
Page 1 of 1
Hello guys and girls, i have been working on a project for some weeks now and its starting to take shape.
What it is ment to do is:
The translator:
It is a XML based translator that reads a language file from your harddrive or a internet location, the language file can have 3 extensions : .xml, .lng (xml but different extension), .lngX (new saving system that don't use XML with encryption enabled)
You can actually have any file extension but the 3 mentioned is the default
To use this DLL do this:
In your solution explorer select 'View all files', then right click on the references and press add reference
![Image]()
![Image]()
Then guide yourself to the 'browse' tab and find the Translator.dll file, press ok and then it is added.
Now in your code paste this to make a new translator instance:
This is the tool used to create the language files, it takes quite some time to write down an entire language so enter the words you like.
![Image]()
Here is the DLL:
And here is the file creator tool:
Please report any bugs and other stuff
What it is ment to do is:
The translator:
It is a XML based translator that reads a language file from your harddrive or a internet location, the language file can have 3 extensions : .xml, .lng (xml but different extension), .lngX (new saving system that don't use XML with encryption enabled)
You can actually have any file extension but the 3 mentioned is the default

To use this DLL do this:
In your solution explorer select 'View all files', then right click on the references and press add reference


Then guide yourself to the 'browse' tab and find the Translator.dll file, press ok and then it is added.
Now in your code paste this to make a new translator instance:
Code: Select all
The file compiler:Dim translator As New Translator.Translator
translator.LoadLngFile("the languge file, remember the extensions")
Dim result As String translator.Translate("word").Result
This is the tool used to create the language files, it takes quite some time to write down an entire language so enter the words you like.

Here is the DLL:
And here is the file creator tool:
Please report any bugs and other stuff

You do not have the required permissions to view the files attached to this post.
Last edited by MrAksel on Sun Sep 26, 2010 8:00 am, edited 1 time in total.
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!
![Image]()
![Image]()
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!

Nice cooll; but,
how do you select/choose what language to translate from and to using the code you gave ?
- cxv
how do you select/choose what language to translate from and to using the code you gave ?
- cxv
We shall let the revolution begin.. the revolution for freedom, freedom against censorship. We shall fight in the fields and in the streets, we shall fight in the hills; we shall never surrender
Ill show you an example of a XML file made by the compiler:
When you use this code:
Code: Select all
The compiler have a mainLanguage setting and a targetLanguage setting<?xml version="1.0" encoding="utf-8"?>
<words mainLanguage="English" targetLanguage="Norwegian">
<word>
<key>Hello</key>
<translation>Hei</translation>
</word>
<word>
<key>Birthday</key>
<translation>Bursdag</translation>
</word>
<word>
<key>Sweden</key>
<translation>Sverige</translation>
</word>
<word>
<key>Norway</key>
<translation>Norge</translation>
</word>
</words>
When you use this code:
Code: Select all
It loads the file into the translator and when you use this function:
translator.LoadLngFile("file")
Code: Select all
It will return 'Hei' because that is the translation in the file you loaded. Did you understand?translator.Translate("Hello")
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!
![Image]()
![Image]()
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!

oh ok lol, i didn't know.
We shall let the revolution begin.. the revolution for freedom, freedom against censorship. We shall fight in the fields and in the streets, we shall fight in the hills; we shall never surrender
6 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023