Opened 16 months ago

Closed 3 weeks ago

Last modified 3 weeks ago

#177 closed enhancement (fixed)

Translaton set sort order

Reported by: usermrpapa Owned by: markoheijnen
Priority: normal Milestone: 1.0
Component: interface Version: 0.1
Keywords: Cc:

Description

It would be nice to be able to change the sort order of translations for project instead of it always being by current count. it seems to confuse a lot of users.

a simple filter allows users to customize the sort to their liking.

patch attached.

Attachments (1)

sorting.patch (740 bytes) - added by usermrpapa 16 months ago.

Download all attachments as: .zip

Change History (8)

  • Keywords needs-patch added; has-patch removed
  • Milestone 1.0 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

The patch doesn't work because the filter is outside the lambda. You'd need to:

a) convert it to a proper function first and then add the filter inside it
b) apply the filter to the callback, so outside the lambda

I also think that just having two options, alphabetical and translation count, would be enough.

In general, I think #181 has a better approach, so marking as duplicate.

not sure why you think it wont work... running on our site and working perfectly... users love it much better... "outside the lambda"???

no issue though if the other ticket gets incorporated, but alas not yet...

Last edited 7 months ago by usermrpapa (previous) (diff)
  • Keywords has-patch 2nd-opinion added
  • Resolution duplicate deleted
  • Status changed from closed to reopened
  • Keywords needs-patch removed
  • Keywords has-patch removed

Yeah, I guess it does work, but you're essentially manipulating PHP code as a string, which is BAD.

So, yes, it does need a new patch.

  • Owner set to markoheijnen
  • Resolution set to fixed
  • Status changed from reopened to closed

In 756:

Add filter to the translation sites of a project. So people can filter/order it. Fixes #177

  • Keywords 2nd-opinion removed
  • Milestone set to 1.0
Note: See TracTickets for help on using tickets.