summaryrefslogtreecommitdiff
path: root/ext/gettext/tests/gettext_basic.phpt
blob: 4d300835b3cd4d42532c64b435f35fba68ef03da (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(dirname(__FILE__));
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