summaryrefslogtreecommitdiff
path: root/ext/gettext/tests/gettext_basic.phpt
blob: b02c1e78a000ce7d2edcf2f39187b949885feda2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--TEST--
Gettext basic test
--SKIPIF--
<?php
    if (!extension_loaded("gettext")) {
        die("skip\n");
    }
    if (!setlocale(LC_ALL, 'fi_FI')) {
        die("skip fi_FI locale not supported.");
    }
?>
--FILE--
<?php

chdir(__DIR__);
putenv('LC_ALL=fi_FI');
setlocale(LC_ALL, 'fi_FI');
bindtextdomain ("messages", "./locale");
textdomain ("messages");
echo gettext("Basic test"), "\n";
echo _("Basic test"), "\n";

?>
--EXPECT--
Perustesti
Perustesti