1--TEST--
2Gettext basic test
3--SKIPIF--
4<?php
5    if (!extension_loaded("gettext")) {
6        die("skip\n");
7    }
8    if (!setlocale(LC_ALL, 'fi_FI')) {
9        die("skip fi_FI locale not supported.");
10    }
11?>
12--FILE--
13<?php
14
15chdir(__DIR__);
16putenv('LC_ALL=fi_FI');
17setlocale(LC_ALL, 'fi_FI');
18bindtextdomain ("messages", "./locale");
19textdomain ("messages");
20echo gettext("Basic test"), "\n";
21echo _("Basic test"), "\n";
22
23?>
24--EXPECT--
25Perustesti
26Perustesti
27