You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Abilities Explorer: Descriptions are excessively trimmed depending on the language #588
On the Abilities Explorer list page, each ability description is limited to 20 characters or 20 words. While 20 words is a sufficient length in English, 20 characters is not enough in Japanese, causing descriptions to be excessively truncated and making it difficult to infer the intended meaning of the ability.
Enblish
Japanese
What is your proposed solution?
I suggest using CSS's line-clamp to visually trim only the overflowing parts.
changed the title [-]Abilities EXplorer: Descriptions are excessively trimmed depending on the language[/-][+]Abilities Explorer: Descriptions are excessively trimmed depending on the language[/+]on May 20, 2026
A question, what could the overflowing in this case would be to consider? Because,
Current abilities in english when viewed with 20 words still goes to next line and has … at the end. (trimmed and next line as well).
Instead, I would say to use wp_trim_words with the default value, and that function itself is localized, it will use characters to make trim. So for English it would use 55 words and for character langauges it may use 55 characters?
If we are intending to only show a single line in description, then we can add the line clamp using CSS. Currently the overflowing is not consistent.
IMO, we should only show the single line description, else trimming the description is not beneficial, or should show the entire description then. WDYT?
IMO, we should only show the single line description, else trimming the description is not beneficial, or should show the entire description then. WDYT?
Alternatively, we could consider removing this description entirely, as the full details are available on the Ability detail page. I don't have a strong preference either way.
Alternatively instead of removing these outright, they could be exposed on screen options with the descriptions disabled/hidden by default? That way if someone wanted them, they could enable them to render on the screen? Not a strong opinion to actually do this, just that its an alternate handling.
Activity
[-]Abilities EXplorer: Descriptions are excessively trimmed depending on the language[/-][+]Abilities Explorer: Descriptions are excessively trimmed depending on the language[/+]hbhalodia commentedon May 20, 2026
Hi @t-hamano,
A question, what could the overflowing in this case would be to consider? Because,
Current abilities in english when viewed with
20words still goes to next line and has…at the end. (trimmed and next line as well).Instead, I would say to use
wp_trim_wordswith the default value, and that function itself is localized, it will use characters to make trim. So for English it would use 55 words and for character langauges it may use 55 characters?If we are intending to only show a single line in description, then we can add the line clamp using CSS. Currently the overflowing is not consistent.
IMO, we should only show the single line description, else trimming the description is not beneficial, or should show the entire description then. WDYT?
hbhalodia commentedon May 20, 2026
Thanks,
t-hamano commentedon May 21, 2026
Alternatively, we could consider removing this description entirely, as the full details are available on the Ability detail page. I don't have a strong preference either way.
hbhalodia commentedon May 22, 2026
Thanks @t-hamano for the input. I will remove the description entirely, Since the full details are available on
Ability detail page.Cc: @jeffpaul @dkotter
hbhalodia commentedon May 22, 2026
Have made the PR ready to review as per the comment to remove the description. Also updated PR description to add the details.
Thanks,
jeffpaul commentedon May 26, 2026
Alternatively instead of removing these outright, they could be exposed on screen options with the descriptions disabled/hidden by default? That way if someone wanted them, they could enable them to render on the screen? Not a strong opinion to actually do this, just that its an alternate handling.
Abilities Explorer: move to DataViews and REST (#1074)