Source for file ngettext.php

Documentation is available at ngettext.php

  1. <?php
  2. /**
  3. * SquirrelMail Test Plugin
  4. *
  5. * This page tests the ngettext() function.
  6. *
  7. * @copyright 2006-2020 The SquirrelMail Project Team
  8. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  9. * @version $Id: ngettext.php 14840 2020年01月07日 07:42:38Z pdontthink $
  10. * @package plugins
  11. * @subpackage test
  12. */
  13. define ('SM_PATH', '../../');
  14. include_once(SM_PATH . 'include/validate.php');
  15. global $color;
  16. displayPageHeader ($color, 'none');
  17. ?>
  18. <strong>ngettext Test Strings:</strong>
  19. <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>
  20. <pre>
  21. <?php
  22. for ($i = -10 ; $i <= 250 ; $i++) {
  23. echo sprintf (ngettext ("%s squirrel is on the tree.", "%s squirrels are on the tree.", $i), $i);
  24. echo "\n";
  25. }
  26. echo "</pre></body></html>";
  27. sq_change_text_domain ('squirrelmail');

Documentation generated on 2020年1月13日 04:25:02 +0100 by phpDocumentor 1.4.3

AltStyle によって変換されたページ (->オリジナル) /