Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Exomia.Language

Daniel Baetz edited this page Jun 21, 2019 · 6 revisions

ITranslator

Interface for translator.

public interface Exomia.Language.ITranslator

Properties

String CurrentLanguage

Summary:

get or set the current language.



Methods

String Format(String format, Object[] args)

Summary:

format a language string.

Parameter:

  • format - language string.
  • args - arguments.

void Load(String fileName)

Summary:

load a translation file.

Parameter:

  • fileName - fileName.


Translator

A translator. This class cannot be inherited.

public class Exomia.Language.Translator
    : ITranslator

Constructors

.ctor Translator(String translationDirectory, String language = en)

Summary:

constructor.

Parameter:

  • translationDirectory - translationDirectory.
  • language - (Optional) language.


Properties

String CurrentLanguage

Summary:

get or set the current language.



Methods

String Format(String format, Object[] args)

Summary:

format a language string.

Parameter:

  • format - language string.
  • args - arguments.

void Load(String fileName)

Summary:

load a translation file.

Parameter:

  • fileName - fileName.


Clone this wiki locally