LanguageEt.php 338 B

1234567891011121314151617181920
  1. <?php
  2. /** Estonian (Eesti)
  3. *
  4. * @ingroup Language
  5. *
  6. */
  7. class LanguageEt extends Language {
  8. /**
  9. * Avoid grouping whole numbers between 0 to 9999
  10. */
  11. function commafy($_) {
  12. if (!preg_match('/^\d{1,4}$/',$_)) {
  13. return strrev((string)preg_replace('/(\d{3})(?=\d)(?!\d*\.)/','$1,',strrev($_)));
  14. } else {
  15. return $_;
  16. }
  17. }
  18. }