From 8c5ba1f2158f471ba89fad51ee1f661ae98fb8b9 Mon Sep 17 00:00:00 2001 From: Tai Khoa Pham Date: Wed, 12 Aug 2026 00:21:43 +0200 Subject: [PATCH] Issue #65: Improve accessibility of dynamically updated FAQ-related articles --- Kernel/Language/de_FAQ.pm | 3 + Kernel/Language/en_GB_FAQ.pm | 3 + .../FAQCustomerRelatedArticles.pm | 4 +- .../Standard/CustomerFAQRelatedArticles.tt | 9 +-- .../htdocs/js/FAQ.Customer.RelatedArticles.js | 73 ++++++++++++++----- .../default/css/FAQ.RelatedArticles.css | 49 +++++++++++-- 6 files changed, 109 insertions(+), 32 deletions(-) diff --git a/Kernel/Language/de_FAQ.pm b/Kernel/Language/de_FAQ.pm index 69efb71..b501453 100644 --- a/Kernel/Language/de_FAQ.pm +++ b/Kernel/Language/de_FAQ.pm @@ -148,6 +148,9 @@ sub Data { # Template: CustomerFAQRelatedArticles $Self->{Translation}->{'This might be helpful'} = 'Hilfreiche Artikel'; + $Self->{Translation}->{'One helpful faq article found.'} = 'Es wurde ein passender FAQ Artikel gefunden.'; + $Self->{Translation}->{'%s helpful faq articles found.'} = 'Es wurden %s passende FAQ Artikel gefunden.'; + $Self->{Translation}->{'Could not load helpful faq articles.'} = 'Die hilfreichen FAQ Artikel konnten nicht geladen werden.'; $Self->{Translation}->{'Found no helpful resources for the subject and text.'} = 'Leider wurden keine passenden Artikel gefunden.'; $Self->{Translation}->{'Type a subject or text to get a list of helpful resources.'} = 'Nach dem Eintippen eines Betreffs oder Textes werden hier passende Artikel angezeigt.'; diff --git a/Kernel/Language/en_GB_FAQ.pm b/Kernel/Language/en_GB_FAQ.pm index 2955d61..aedc85f 100644 --- a/Kernel/Language/en_GB_FAQ.pm +++ b/Kernel/Language/en_GB_FAQ.pm @@ -148,6 +148,9 @@ sub Data { # Template: CustomerFAQRelatedArticles $Self->{Translation}->{'This might be helpful'} = 'This might be helpful'; + $Self->{Translation}->{'One helpful faq article found.'} = 'One helpful faq article found.'; + $Self->{Translation}->{'%s helpful faq articles found.'} = '%s helpful faq articles found.'; + $Self->{Translation}->{'Could not load helpful faq articles.'} = 'Could not load helpful faq articles.'; $Self->{Translation}->{'Found no helpful resources for the subject and text.'} = 'Found no helpful resources for the subject and text.'; $Self->{Translation}->{'Type a subject or text to get a list of helpful resources.'} = 'Type a subject or text to get a list of helpful resources.'; diff --git a/Kernel/Output/HTML/FilterElementPost/FAQCustomerRelatedArticles.pm b/Kernel/Output/HTML/FilterElementPost/FAQCustomerRelatedArticles.pm index 64833ba..4328bed 100644 --- a/Kernel/Output/HTML/FilterElementPost/FAQCustomerRelatedArticles.pm +++ b/Kernel/Output/HTML/FilterElementPost/FAQCustomerRelatedArticles.pm @@ -100,9 +100,9 @@ sub Run { Data => {}, ); - my $Search = '(