diff options
-rw-r--r-- | ext/gettext/tests/gettext_basic.phpt | 18 | ||||
-rw-r--r-- | ext/gettext/tests/locale/fi/LC_MESSAGES/messages.mo | bin | 0 -> 199 bytes | |||
-rw-r--r-- | ext/gettext/tests/locale/fi/LC_MESSAGES/messages.po | 15 |
3 files changed, 33 insertions, 0 deletions
diff --git a/ext/gettext/tests/gettext_basic.phpt b/ext/gettext/tests/gettext_basic.phpt new file mode 100644 index 0000000000..734cc814ad --- /dev/null +++ b/ext/gettext/tests/gettext_basic.phpt @@ -0,0 +1,18 @@ +--TEST-- +Gettext basic test +--SKIPIF-- +<?php if (!extension_loaded("gettext")) print "skip"; ?> +--FILE-- +<?php // $Id$ + +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 diff --git a/ext/gettext/tests/locale/fi/LC_MESSAGES/messages.mo b/ext/gettext/tests/locale/fi/LC_MESSAGES/messages.mo Binary files differnew file mode 100644 index 0000000000..55f4d1a341 --- /dev/null +++ b/ext/gettext/tests/locale/fi/LC_MESSAGES/messages.mo diff --git a/ext/gettext/tests/locale/fi/LC_MESSAGES/messages.po b/ext/gettext/tests/locale/fi/LC_MESSAGES/messages.po new file mode 100644 index 0000000000..3505156f74 --- /dev/null +++ b/ext/gettext/tests/locale/fi/LC_MESSAGES/messages.po @@ -0,0 +1,15 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#: gettext_basic.phpt:11 +msgid "Basic test" +msgstr "Perustesti" |