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_add_local_for_client( $client_fields = array() ) {
- $client_fields['money_format']['options']['ngn'] = 'Naira';
- return $client_fields;
- }
- add_filter( 'si_client_adv_form_fields', '_si_add_local_for_client' );
- function _si_set_localeconv( $localeconv = array(), $locale = '' ) {
- switch ( $locale ) {
- case 'ngn':
- $localeconv = ngn_local_array();
- break;
- }
- return $localeconv;
- };
- add_filter( 'si_localeconv', '_si_set_localeconv', 10, 2 );
- function ngn_local_array() {
- return array(
- 'decimal_point' => '.',
- 'thousands_sep' => '',
- 'int_curr_symbol' => 'NGN',
- 'currency_symbol' => '₦',
- '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 ),
- );
- }
Add Comment
Please, Sign In to add comment