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
Contributors
User avatar
MrAksel
C# Coder
C# Coder
Posts: 1758
Joined: Fri Mar 26, 2010 12:27 pm

Translator
MrAksel
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 :D

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:
Code: Select all
Dim translator As New Translator.Translator
translator.LoadLngFile("the languge file, remember the extensions")
Dim result As String translator.Translate("word").Result
The file compiler:

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:
Translator.zip
And here is the file creator tool:
TranslationFile Compiler.zip
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
User avatar
Codex
Coding God
Coding God
Posts: 2028
Joined: Wed Mar 31, 2010 5:50 pm

Re: Translator
Codex
Nice cooll; but,

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
User avatar
MrAksel
C# Coder
C# Coder
Posts: 1758
Joined: Fri Mar 26, 2010 12:27 pm

Re: Translator
MrAksel
Ill show you an example of a XML file made by the compiler:
Code: Select all
<?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>
The compiler have a mainLanguage setting and a targetLanguage setting

When you use this code:
Code: Select all
translator.LoadLngFile("file")
It loads the file into the translator and when you use this function:
Code: Select all
translator.Translate("Hello")
It will return 'Hei' because that is the translation in the file you loaded. Did you understand?
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
User avatar
Codex
Coding God
Coding God
Posts: 2028
Joined: Wed Mar 31, 2010 5:50 pm

Re: Translator
Codex
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
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

Re: Translator
Lewis
This would actualy work for coding languages aswell..
Image
User avatar
code it
VIP - Site Partner
VIP - Site Partner
Posts: 821
Joined: Sun Oct 10, 2010 3:02 pm

Re: Translator
code it
what happens if you don't download the dll?
6 posts Page 1 of 1
Return to “Full Software”