SFML-MultiLanguage-Library

Description

The SFML-MultiLanguage-Library (short: MLL) is a library of objects with texts which provide different languages. With the library it is possible to create Strings with texts in different languages and switch easily between them. The texts are read from a file. You have to call a single function to change the language of all objects created with this library. MLL contains a class sf::Strings for different languages and a class to create more multi-language-classes.

Name SFML-MultiLanguage-Library (MLL)
Version0.2
AuthorPhilipp Kloke (Forum: Mr. X)
RequirementSFML 1.4 or higher, Graphics-Package
Programming LanguageC++
Source code availableYes
LicenseIn the source code
Operating SystemPlatform independent
Project files forMicrosoft Visual C++ 2008 SP1

Features

  • Easy to understand. Also beginners could easily understand the speech files
    • User is able to create his own translation
  • Easy to use
    • Just one function changes the language of all objects
    • MLL_Strings are as easy to use as sf::Strings because it inherit from sf::String
  • Easy to make your own multi-language-classes
  • Low Ram-Usage
    • Only text of the current language are loaded

How to use

Programming

Generally a MLL_SF_String could be used like a sf::String. All functions of a sf::String are also available. As long as no name has been set, a MLL_SF_String behaves like a sf::String. If the Multilanguage-Object has a name the speech file is read out. If a text is available for the object, it gets its new text. Because of the different behavior of std::string MLL_Std_String is a bit different from MLL_SF_String. It do not inherit from std::string but it has a std::string as a public member variable. The behaviour if you change the language, etc. is the same, only getting the string is different. You can get more pieces of information from the source code.

Language files

The files are in the folder “language” in the current folder. The filename is build in this way: “Name of the Language.lang” This is the format of the file:

Objekt1=Text1
Objekt2=Text2

Contact

If you detect a bug or if you miss a feature, please write it as a PM in the Forum to the user “Mr. X”. Please write in english or in german.

Downloads

Comment

You should also provide a little sample on this page ( → marketing point of view ) .
You should also upload here the files.
You should replace “License In the source code” by your license.

 
en/projects/multilanguage_library.txt · Last modified: 2009/07/19 17:40 by Mr. X
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki