Popular Languages listing: Don't show variations #13
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: friendica/friendica-directory#13
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In the nice, new listing "Popular Languages", we have English, American English, and British English.
Clicking English: i.e. https://dir.hubup.pro/search?field=language&q=en list all variations of English, including American and British. This is meaningful and desirable, but makes the listing of language variations superfluous.
Not displaying variations would be an enhancement, as it would free up space for genuine languages with lower numbers to be displayed, especially since we already have "Popular Country" listings.
I guess the undesirable display of language variations, could be fixed by limiting the field in relevant table to the first two entries.
I agree, I've been meaning to dpo the same, thanks for reporting! The fix is simple, limiting the aggregation list to the first two characters of the profile locale.
I took note how you did this:
01d476f542
?diff=unified Looks fascinating; I think, I'm beginning to grasp --at a very basic level-- how php interacts with the DB.This is indeed pure SQL. PHP only grabs the results from the SQL query and pass it to the template where it is displayed.