Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php // don't include this line in your functions.php, since it already starts with it.
- function _si_set_localeconv( $localeconv = array(), $locale = '' ) {
- switch ( $locale ) {
- case 'ar_SA':
- $localeconv = sar_local_array();
- break;
- }
- return $localeconv;
- };
- add_filter( 'si_localeconv', '_si_set_localeconv', 10, 3 );
- function sar_local_array() {
- return array(
- 'decimal_point' => '.',
- 'thousands_sep' => '',
- 'int_curr_symbol' => 'SAR',
- 'currency_symbol' => 'SR',
- 'mon_decimal_point' => '.',
- 'mon_thousands_sep' => ',',
- 'positive_sign' => '',
- 'negative_sign' => '-',
- 'int_frac_digits' => 2,
- 'frac_digits' => 2,
- 'p_cs_precedes' => 1,
- 'p_sep_by_space' => 0,
- 'n_cs_precedes' => 1,
- 'n_sep_by_space' => 0,
- 'p_sign_posn' => 1,
- 'n_sign_posn' => 1,
- 'grouping' => array(),
- 'mon_grouping' => array( 3, 3 ),
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement