Mono Class Library: Mono.Unix.Catalog Overview | MembersMono.Unix.Catalog.GetString Method |
Returns a native language translation of the text passed as the parameter. [Edit]
|
The translated string, if found in the catalog, s otherwise. [Edit]
The following example demonstrates the use of the Mono.Unix.Catalog type. See also: http://www.mono-project.com/Internationalization.
[Edit]
C# Example // File: i18n.cs using System; using Mono.Unix; public class i18n { public static void Main(string[] argv) { Catalog.Init ("i18n", "./locale"); Console.WriteLine (Catalog.GetString ("My name is") + " Enzo"); int i = 20; Console.WriteLine (Catalog.GetPluralString ("I'm {0} year old.", "I'm {0} years old.", i), i); } }
Namespace: Mono.Unix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0