LanguageKu_ku.php 344 B

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