3 /** Bulgarian (Български)
7 class LanguageBg
extends Language
{
9 * ISO number formatting: 123 456 789,99.
10 * Avoid tripple grouping by numbers with whole part up to 4 digits.
16 function commafy( $_ ) {
17 if ( !preg_match( '/^\d{1,4}$/', $_ ) ) {
18 return strrev( (string)preg_replace( '/(\d{3})(?=\d)(?!\d*\.)/', '$1,', strrev( $_ ) ) );