Jump to content


Photo

national sorting in openpli


  • Please log in to reply
No replies to this topic

#1 mickeyreg

  • Member
  • 13 posts

+3
Neutral

Posted 29 September 2015 - 11:02

Hi,

 

I'm from Poland. It is important because our alphabet contains a few more characters than English. So when sorting alphabetically Single EPG list or list of recordings some strings was located in different positions than expected. To get the proper order I've made some modifications to EpgList.py and MovieList.py (attached). The modification tries to load, if exists, locale setting from LC_COLLATE file suitable for the user settings (in mys system: /usr/lib/locale/pl_PL/LC_COLLATE). If load is successul the lists are sorted according to language rules, if no sorting works as usual.

 

The modifications seems to work properly for the Polish language I'm using. But some user experienced GS after substitution of the files. There was no information in GS related to EpgList.py nor MovieList.py but I've tried to rewrite the changes in the other way. Two other versions of the EpgList.py can be found also in the attached file.

 

Any comments for the changes are welcome :)

 

Regards,

Mickey

Attached Files




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users