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

Enhancing Localization and UX for the Query Total Block #68194

Open
sarthaknagoshe2002 opened this issue Dec 20, 2024 · 0 comments
Open

Enhancing Localization and UX for the Query Total Block #68194

sarthaknagoshe2002 opened this issue Dec 20, 2024 · 0 comments
Labels
[Block] Query Total Affects the query total block Internationalization (i18n) Issues or PRs related to internationalization efforts Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement.

Comments

@sarthaknagoshe2002
Copy link
Contributor

Problem Statement

The current implementation of the Query Total block, while functional, poses challenges for cross-language feasibility and localization. The main issues include:

  1. String Concatenation: The use of concatenated strings such as "Displaying," "of," or "result found" is difficult to translate accurately across languages. This approach fails to accommodate grammatical and linguistic differences.
  2. Pluralization: Singular and plural forms are not well-supported. Some languages have multiple plural forms, while others use only one, making the current implementation inadequate for proper localization.
  3. Customizable Labels: The absence of an intuitive way to allow users to customize labels while maintaining translation accuracy.
  4. Flexibility in Text Placement: Prefixes, suffixes, or other linguistic structures vary across languages, requiring more dynamic handling of text positioning.

Discussed Solutions

  1. Dynamic Placeholder System (Proposed in the PR [Query-Total Block] Add editable text and visibility toggle for total count in Query Total block #67994):

    • Introduce a single text box with support for placeholders (e.g., {range}, {total}, etc.).
    • Allow users to define text like Displaying {range} of {total} results, where {range} and {total} are dynamically replaced at runtime.
  2. Reordering Text Segments:

    • Instead of relying on multiple static text boxes, implement a draggable interface where placeholders can be rearranged to fit language-specific structures (e.g., {prefix} {range} {suffix}).

References

This issue aims to improve the Query Total block while making the text editable & ensuring cross language support.

CC:- @swissspidy @fabiankaegy

@swissspidy swissspidy added [Type] Enhancement A suggestion for improvement. Internationalization (i18n) Issues or PRs related to internationalization efforts Needs Design Needs design efforts. [Block] Query Total Affects the query total block labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Query Total Affects the query total block Internationalization (i18n) Issues or PRs related to internationalization efforts Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

2 participants