1// Example for use of GNU gettext. 2// This file is in the public domain. 3// 4// Source code of the C# program. 5 6using System; /* String, Console */ 7using GNU.Gettext; /* GettextResourceManager */ 8using System.Diagnostics; /* Process */ 9 10public class Hello { 11 public static void Main (String[] args) { 12 GettextResourceManager catalog = 13 new GettextResourceManager("hello-csharp"); 14 Console.WriteLine(catalog.GetString("Hello, world!")); 15 Console.WriteLine( 16 String.Format( 17 catalog.GetString("This program is running as process number {0}."), 18 Process.GetCurrentProcess().Id)); 19 } 20} 21