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

Add Feature for Easy Access to Keywords in Docs Glossary #1997

Open
mboukhalfa opened this issue May 12, 2024 · 6 comments
Open

Add Feature for Easy Access to Keywords in Docs Glossary #1997

mboukhalfa opened this issue May 12, 2024 · 6 comments
Labels
enhancement New feature or request needs-triage

Comments

@mboukhalfa
Copy link
Contributor

As I work on localizing Kubernetes documentation into Arabic using the Docsy theme, I've encountered a significant opportunity to improve the readability of localized documents.

When translating documentation from English to another language, one common challenge is finding suitable translations for keywords. Often, the translated term is either unfamiliar or lacks a unified translation, leading to the retention of the English term or the awkward usage of both the translated term and its English counterpart in parentheses.

To address this issue, I propose the following enhancement:

I suggest implementing a feature that allows users to easily access the English term when they encounter an unfamiliar translated term. One approach could involve enabling users to hover over the translated term, triggering a clean and unobtrusive tooltip display of the corresponding English term, similar to Bootstrap tooltips.

How Docsy can implement this:

To streamline this process with Docsy, we could leverage a glossary for localization. By creating a glossary that links English terms with their translations, we could utilize shortcodes in Docsy to automatically generate tooltips for terms listed in the glossary. This approach would not only facilitate comprehension for users encountering unfamiliar terms but also provide an efficient means for users to access glossary definitions without leaving the current page.

I envision a straightforward process where I provide a glossary in JSON format and invoke a simple Docsy function. This function would generate tooltips for the keywords in the glossary that exist in a selected text.

Implementing this feature would greatly enhance development with Docsy and the user experience of localized documentation, ensuring clarity.

@mboukhalfa mboukhalfa added enhancement New feature or request needs-triage labels May 12, 2024
@fekete-robert
Copy link
Collaborator

The falco docs have something similar that uses two shortcodes and stores the definitions in a language-specific folder (https://github.com/falcosecurity/falco-website/tree/master/content/en/docs/reference/glossary)

@mboukhalfa
Copy link
Contributor Author

The falco docs have something similar that uses two shortcodes and stores the definitions in a language-specific folder (https://github.com/falcosecurity/falco-website/tree/master/content/en/docs/reference/glossary)

How can I see this behavior directly on the website ?

@fekete-robert
Copy link
Collaborator

For example here, in the second paragraph: https://falco.org/docs/getting-started/

@mboukhalfa
Copy link
Contributor Author

mboukhalfa commented May 13, 2024

For example here, in the second paragraph: https://falco.org/docs/getting-started/

Yeah exactly what I had in mind I just want to implement this to link translated terms with the English ones so if the reader come across unfamiliar translated term can easily refer to the English one

@sftim
Copy link

sftim commented May 13, 2024

We already have glossary tooltips, but only where the author has added them. We could add a similar mechanism for providing hints to people reading localized pages.

I wouldn't use JSON for that though.

@mboukhalfa
Copy link
Contributor Author

We already have glossary tooltips, but only where the author has added them. We could add a similar mechanism for providing hints to people reading localized pages.

I wouldn't use JSON for that though.

The idea behind using JSON or some formatted data as input is to automate the process, it will be hard for the developer to find out all the the words added to the glossary and maintain them some sort of short code would automatically analyze the text and find the words that exist in the glossary and add tooltip for the English equivalent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-triage
Projects
None yet
Development

No branches or pull requests

3 participants