4 * SquirrelMail Test Plugin
6 * This page tests the ngettext() function.
8 * @copyright 2006-2016 The SquirrelMail Project Team
9 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
15 include_once('../../include/init.php');
17 global $oTemplate, $color;
19 displayPageHeader($color, '');
21 sq_change_text_domain('test');
23 // NOTE: Not bothering to "templatize" the following output, since
24 // this plugin is merely an administrative (and not user-facing)
25 // tool. If this is really important to you, please help by
26 // submitting the work to the team.
29 <strong
>ngettext Test Strings
:</strong
>
31 <p
>The results of this test depend on your current
language (translation
) selection (see Options
==> Display Preferences
) and the corresponding translation strings in locale
/xx
/LC_MESSAGES
/test
.mo
</p
>
37 for ($i = -10 ; $i <= 250 ; $i++
) {
38 echo sprintf(ngettext("%s squirrel is on the tree.", "%s squirrels are on the tree.", $i), $i);
44 sq_change_text_domain('squirrelmail');
45 $oTemplate->display('footer.tpl');