Advertisement
Guest User

Untitled

a guest
May 20th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. <?php // don't include this line in your functions.php, since it already starts with it.
  2.  
  3.  
  4. function _si_set_localeconv( $localeconv = array(), $locale = '' ) {
  5. switch ( $locale ) {
  6. case 'ar_SA':
  7. $localeconv = sar_local_array();
  8. break;
  9. }
  10. return $localeconv;
  11. };
  12. add_filter( 'si_localeconv', '_si_set_localeconv', 10, 3 );
  13.  
  14. function sar_local_array() {
  15. return array(
  16. 'decimal_point' => '.',
  17. 'thousands_sep' => '',
  18. 'int_curr_symbol' => 'SAR',
  19. 'currency_symbol' => 'SR',
  20. 'mon_decimal_point' => '.',
  21. 'mon_thousands_sep' => ',',
  22. 'positive_sign' => '',
  23. 'negative_sign' => '-',
  24. 'int_frac_digits' => 2,
  25. 'frac_digits' => 2,
  26. 'p_cs_precedes' => 1,
  27. 'p_sep_by_space' => 0,
  28. 'n_cs_precedes' => 1,
  29. 'n_sep_by_space' => 0,
  30. 'p_sign_posn' => 1,
  31. 'n_sign_posn' => 1,
  32. 'grouping' => array(),
  33. 'mon_grouping' => array( 3, 3 ),
  34. );
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement