Install gettext-0.18.1.1.tar.gz
[msysgit.git] / mingw / share / doc / gettext / examples / hello-ycp / hello.ycp
blob0affb10e1b9b059a242a587ee6c50c449c942c03
1 // Example for use of GNU gettext.
2 // This file is in the public domain.
4 // Source code of the YCP program.
6 UI(``{
7     textdomain "hello-ycp";
9     map bash_out = SCR::Execute (.target.bash_output, "echo $PPID");
10     integer pid = tointeger (bash_out["stdout"]:"99999");
12     OpenDialog (
13         `VBox (
14              `HBox (
15                   `Label (_("Hello, world!")),
16                   `HStretch ()
17                   ),
18              `HBox (
19                   `Label (sformat (_("This program is running as process number %1."), pid)),
20                   `HStretch ()
21                   ),
22              `HBox (
23                   `HStretch (),
24                   `PushButton (`opt(`default), "&OK")
25                   )
26              )
27         );
28     UserInput();
29     CloseDialog();