Skip to content

Enhancing Localization and UX for the Query Total Block #68194

Open
@sarthaknagoshe2002

Description

@sarthaknagoshe2002

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions