Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Identical Terms get stacked in Glossary tooltip #915

Closed
garretthyder opened this issue Jul 3, 2018 · 4 comments
Closed

Multiple Identical Terms get stacked in Glossary tooltip #915

garretthyder opened this issue Jul 3, 2018 · 4 comments
Assignees
Labels
[Type] Bug An existing feature is broken.
Milestone

Comments

@garretthyder
Copy link

Hello,

Came across a minor doubling up that occurs in the Glossary Tooltips if there's multiple identical terms in the string.
Screenshot;
screen shot 2018-07-03 at 12 13 59 pm

Example - https://translate.wordpress.org/projects/wp-plugins/poptin/dev-readme/en-ca/default?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=4944988&filters%5Btranslation_id%5D=56024273

Cheers

@toolstack
Copy link
Contributor

That's mostly on purpose as you can have different glossary entries for the same term (aka noun, verb, etc.).

We don't do any double checking for duplicates of the same type/identical descriptors though.

@garretthyder
Copy link
Author

Hi @toolstack, sorry I should clarify to remove any confusion here.

The issue isn't that there's two entries of 'program' in the en_CA Glossary, but rather that when the term exists within the source string twice or more then each instance in the source string will have a tooltip containing multiple entries of the term info, one per instance of the term.

So if we compare two entries that contain the same term but one has multiple instance we can see the duplication in the tooltip.

Single Term (Single Entry) - https://translate.wordpress.org/projects/wp-plugins/poptin/dev-readme/en-ca/default?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=4944496&filters%5Btranslation_id%5D=56068436
Screenshot -
screen shot 2018-07-03 at 1 49 34 pm

Multiple Terms (Multiple Entries) - https://translate.wordpress.org/projects/wp-plugins/poptin/dev-readme/en-ca/default?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=4944988&filters%5Btranslation_id%5D=56068432
Screen -
screen shot 2018-07-03 at 11 15 43 am

As you can see in the examples they both use 'program' as the term and when it's the only instance in the string only one entry appears in the tooltip, but when there's more than one instance of the term in the string then the tooltips for each instance have multiple entries.

Hopefully that makes a bit more sense.

@toolstack
Copy link
Contributor

Ah, yes, that makes more sense, definitely a bug then ;)

@toolstack toolstack added the [Type] Bug An existing feature is broken. label Jul 3, 2018
@toolstack toolstack self-assigned this Jul 3, 2018
@toolstack toolstack added this to the 3.0 milestone Jul 3, 2018
@garretthyder
Copy link
Author

Awesome thanks for the PR @toolstack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature is broken.
Projects
None yet
Development

No branches or pull requests

2 participants