Lingo - The hassle-free language system for AGK
Current version: V0.1
[/b]Introduction
Hi!
I thought that it was high time that I made something for this awesome community so I decided to make a neat little tool! Lingo is a system that makes incorporating translations and new languages into a project
very easy. With minimal setup, lingo lets you support an unlimited amount of languages and quickly and painlessly add new ones. What makes it even neater is that you don't even have to recompile your code!
The features
With lingo, you can write the actual text that you want in English and (provided that you have language files set up) lingo will 'translate' it for you. To do this, you will use the get command:
Lingo_Get ( Language$ , String$ )
Language$ = The language you want the string in (must have the corresponding language file set up)
String$ = The text that you want.
For example:
If I wanted to write "New Game" on a button then I would do this:
Lingo_Get ( "eng" , "New Game" )
Now, let's say that I want to have it in German...
Lingo_Get ( "ger" , "New Game" )
It's as easy as that!
Another feature is the ability to reverse the process, and retrieve the language which a text is in.
Lingo_GetLanguage ( String$ )
does the job.
So now, when you need a translation, all you have to do is send the English file to the person who is going to translate and let them fill in the words in their appropriate positions. When you get the file back, just put it into your languages folder and you're good to go!
Changelog
V0.1 - Initial Launch
+ Added basic setup and file loading
+ Added basic property setting
+ Added retrieving wanted text using english
+ Added retrieving the language of text
+ Created Demo
+ Added debug
+ Added functions(/subs): _Lingo_Setup / Lingo_SetProperties (,,,) / Lingo_SetupFiles () / Lingo_LanguageFileSearch () / Lingo_Get (,) / Lingo_GetLanguage () / Lingo_Debug ()
Feedback and ideas are greatly appreciated!
Screenshots
Demo V0.1
Download - Demo and library
![](/images/emoticons/amiga.gif)
Current Version V0.1:
https://www.mediafire.com/?owaiwiid99ycg5y / or download on this post
cheers