Install gettext-0.18.1.1.tar.gz
[msysgit.git] / mingw / share / doc / gettext / examples / hello-csharp / hello.cs
blobd46b99c937b7a2deccbcea728dbc588405210cd0
1 // Example for use of GNU gettext.
2 // This file is in the public domain.
3 //
4 // Source code of the C# program.
6 using System; /* String, Console */
7 using GNU.Gettext; /* GettextResourceManager */
8 using System.Diagnostics; /* Process */
10 public 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));