Download src/php/php-src/ext/gettext/tests/gettext_basic.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 419 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gettext/tests/gettext_basic.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/gettext/tests/gettext_basic.phpt
-
curl -L -o gettext_basic.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gettext/tests/gettext_basic.phpt
419 Bytes
| --TEST-- | |
| Gettext basic test | |
| --EXTENSIONS-- | |
| gettext | |
| --SKIPIF-- | |
| if (!setlocale(LC_ALL, 'fi_FI')) { | |
| die("skip fi_FI locale not supported."); | |
| } | |
| --FILE-- | |
| 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 | |