GravityKit / AZ-Filters

Alphabetically filter your entries.
https://gravityview.co/extensions/a-z-filter/
3 stars 0 forks source link

Add Polish Alphabet support #42

Closed rafaehlers closed 2 years ago

rafaehlers commented 4 years ago
add_filter( 'gravityview_az_entry_filter_localization', 'add_polish_gravityview_az_entry_filter_localization' );
function add_polish_gravityview_az_entry_filter_localization( $languages = array() ) {
  $languages['pl_PL'] = __( 'Polish', 'gravityview-az-filters' );
  return $languages;
}

add_filter( 'gravityview_alphabets', 'add_polish_alphabet' );
function add_polish_alphabet( $alphabet = array() ) {
  $alphabet['pl_PL'] = array('A','Ą','B','C','Ć','D','E','Ę','F','G','H','I','J','K','L','Ł','M','N','Ń','O','Ó','P','R','S','Ś','T','U','W','Y','Z','Ź','Ż');
  return $alphabet;
}
zackkatz commented 2 years ago

@rafaehlers This is a pretty straightforward next project for you.

zackkatz commented 2 years ago

I thought this was familiar; it's been in the develop branch for 3.5 years! Closed in a78cb01.