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