Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Sometimes we want to see only translations with plurals.
This patch add a new status filter that add the ability to show all translations that have plural.
Comment | File | Size | Author |
---|---|---|---|
#7 | l10n_server_plural_filter4-D6.patch | 7.73 KB | claudiu.cristea |
#5 | l10n_server_plural_filter3-D6.patch | 7.23 KB | claudiu.cristea |
#4 | l10n_server_plural_filter2-D6.patch | 6.24 KB | claudiu.cristea |
#3 | l10n_server_plural_filter1-D6.patch | 4.92 KB | claudiu.cristea |
l10n_server_plural_filter-D6.patch | 3.76 KB | claudiu.cristea | |
Comments
Comment #1
Gábor HojtsyThis code fragment pretty much shows why this approach fails badly. If we use LOCATE(), the database will need to run this function on each row, which prohibits using any indexes.
I'd say we'd rather cache this data in a column and do this calculation only once when the source string is inserted into the database.
This review is powered by Dreditor.
Comment #2
claudiu.cristeaThat was my first thought but I didn't want to alter the table structure...
Comment #3
claudiu.cristeaHere's a patch reflecting #1.
Comment #4
claudiu.cristeaThe above patch is incomplete... Use this one.
Comment #5
claudiu.cristeaAdded also filtering on the moderation page.
Comment #6
Gábor HojtsyMuch better direction IMHO! The patch does not add the field to fresh installs though.
Comment #7
claudiu.cristeaYou're right. Here's the fix...
Comment #8
claudiu.cristeaForgot the the ticket status...
Comment #9
podaroksubscribe
Comment #10
Gábor HojtsyRetitled. There are basically two things which make me hesitant to load in more filters: #581342: String filter form too wide and that the indexes on the tables are not performing well for the current wide ranging filters already (think database query performance). It is probably not possible to optimize for use of arbitrary filters, so we need to balance flexibility and speed.
Comment #11
claudiu.cristeaIt seems an important improvement in terms of usability... at least for me :)
Getting to the point...
Comment #12
Gábor HojtsyOk, I think the latest UI changes make it possible to add these filters more easily. Let's do it.
Comment #13
Gábor HojtsyAdded #1118430: Set up the filtering/display setting UI for future growth to set us up for filter extensions like this.