Skip to content

fix: use PidDefinition.category for locale-independent PID grouping - #211

Merged
tzebrowski merged 1 commit into
masterfrom
feature/pid-category-tag
Aug 18, 2026
Merged

fix: use PidDefinition.category for locale-independent PID grouping#211
tzebrowski merged 1 commit into
masterfrom
feature/pid-category-tag

Conversation

@tzebrowski

Copy link
Copy Markdown
Owner

PidCategory.categoryFor() matched English keywords against description/longDescription, which broke under non-English locales since the translation provider overwrites that text in place -- most PIDs fell through to "Other". Prefer the new upstream category tag (untranslated, stable regardless of active language) and only fall back to text matching for PIDs the tag doesn't cover yet (custom PIDs, or new upstream PIDs added before regeneration). Requires obd-metrics 11.26.1-SNAPSHOT.

PidCategory.categoryFor() matched English keywords against
description/longDescription, which broke under non-English locales since
the translation provider overwrites that text in place -- most PIDs fell
through to "Other". Prefer the new upstream category tag (untranslated,
stable regardless of active language) and only fall back to text matching
for PIDs the tag doesn't cover yet (custom PIDs, or new upstream PIDs
added before regeneration). Requires obd-metrics 11.26.1-SNAPSHOT.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@tzebrowski
tzebrowski merged commit a209e10 into master Aug 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant