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