1 // Example for use of GNU gettext.
2 // This file is in the public domain.
3 //
4 // Source code of the C# program.
5 
6 using System; /* String, Console */
7 using GNU.Gettext; /* GettextResourceManager */
8 using System.Diagnostics; /* Process */
9 
10 public class Hello {
Main(String[] args)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