GetTranslatedString

Module: ecere
Namespace: ecere

dllexport const char * GetTranslatedString(const String name, const char * string, const char * stringAndContext)

Description

Internationalization Suport (GNU gettext() equivalent)

Parameters

name  const String  Module for which to load string 
string  const char *  String which should be looked up. This string will be returned if no matching translation is found. 
stringAndContext  const char *  String which should be looked up including a context, or null 
 
Return Value const char * 

Remarks


Internationalizable strings in eC source code should be prefixed by a dollar sign e.g.: $"Hello, World".
These strings will automatically be collected into a translation template (.pot) which can be used with GNU gettext compatible tools.

The call to GetTranslatedString() is then done automatically by the compiler.