Project CASUAL
API for CASUAL
 All Classes Namespaces Functions Variables
Public Member Functions | Static Public Member Functions | List of all members
CASUAL.Translations Class Reference

Public Member Functions

void setLanguage (String lang)
 

Static Public Member Functions

static String get (String line)
 

Detailed Description

Provides translations for the CASUAL project

Author
Adam Outler adamo.nosp@m.utle.nosp@m.r@gma.nosp@m.il.c.nosp@m.om

Member Function Documentation

static String CASUAL.Translations.get ( String  line)
static

Returns translated string from translation Resource Bundle. Checks to make sure there is a valid resource file. Default locale is loaded if required. The input String is split by " " and "\n". If the split values start with the (at) character, a translation is attempted.

Parameters
linestring to be translated
Returns
translated line
void CASUAL.Translations.setLanguage ( String  lang)

Sets up a translation language for testing CASUAL. If the translation is missing, the default is CASUAL/resources/Translations/English.properties.

Parameters
langattempts to load specified language.

The documentation for this class was generated from the following file: