File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
gettext /
tests /
gettext_basic.phpt
Revision
1.1.1.2 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue May 29 12:34:39 2012 UTC (12 years, 5 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
HEAD
php 5.4.3+patches
--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 // $Id: gettext_basic.phpt,v 1.1.1.2 2012/05/29 12:34:39 misho Exp $
chdir(dirname(__FILE__));
setlocale(LC_ALL, 'fi_FI');
bindtextdomain ("messages", "./locale");
textdomain ("messages");
echo gettext("Basic test"), "\n";
echo _("Basic test"), "\n";
?>
--EXPECT--
Perustesti
Perustesti
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>