WordPress.org

Ready to get started?Download WordPress

Forums

WP Glossary
[resolved] Request for localized sorting (5 posts)

  1. jchris
    Member
    Posted 1 year ago #

    When I sort a-z I really sort a-ö since Swedish (and other countries) have more letters than the English language. For Sweden they are "å Å ä Ä ö Ö.
    Since the Ö is sorted like an "O" and both Å and Ä ar sorted like "A" it really isnt possible to use this excellent plugin in the Nordics and I expect the same is true for large parts of the world.

    Most humbly,

    /chris

    http://wordpress.org/extend/plugins/wp-glossary/

  2. webbolt
    Member
    Posted 1 year ago #

    Yes, multilanguage support for building an a-z index is needed!

  3. TCBarrett
    Member
    Plugin Author

    Posted 1 year ago #

    The alphabet range is passed through a filter, like so:

    $range = apply_filters( 'tcb_wpg_atoz_range', range('a','z') );

    You can try building your own array:

    add_filter( 'tcb_wpg_atoz_range', 'tcb_wpg_atoz_range' );
    function tcb_wpg_atoz_range( $range ){
      ...
      return my_list_of_characters();
    }

    Let me know how you get on.

  4. netigate
    Member
    Posted 1 year ago #

    i got a similar problem.

    i got a glossary which shall work with WPML. the glossary contains terms in english with translations to swedish and german (via WPML). but when i use [glossary_atoz] it lists the terms of all 3 languages even though the slug got translated.

    any idea to solve this? would grouping help there?

  5. jchris
    Member
    Posted 1 year ago #

    Thanks for the answer. I am afraid it is a bit past my capacity...

    Anywhere I can read up on it?

    /chris

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic