?
avatar JoomDirk
JoomDirk
11 Feb 2021

The great accessibility-plugin is only using the english language in textToSpeech and speechToText.

It would be great to change the code in /plugins/system/accessibility/accessibility.php (fill in the bold code):

$document->addScriptOptions(
'accessibility-options',
'labels' => [
'menuTitle' => Text::('PLG_SYSTEM_ACCESSIBILITY_MENU_TITLE'),
'increaseText' => Text::
('PLG_SYSTEM_ACCESSIBILITY_INCREASE_TEXT'),
'decreaseText' => Text::('PLG_SYSTEM_ACCESSIBILITY_DECREASE_TEXT'),
'increaseTextSpacing' => Text::
('PLG_SYSTEM_ACCESSIBILITY_INCREASE_SPACING'),
'decreaseTextSpacing' => Text::('PLG_SYSTEM_ACCESSIBILITY_DECREASE_SPACING'),
'invertColors' => Text::
('PLG_SYSTEM_ACCESSIBILITY_INVERT_COLORS'),
'grayHues' => Text::('PLG_SYSTEM_ACCESSIBILITY_GREY'),
'underlineLinks' => Text::
('PLG_SYSTEM_ACCESSIBILITY_UNDERLINE'),
'bigCursor' => Text::('PLG_SYSTEM_ACCESSIBILITY_CURSOR'),
'readingGuide' => Text::
('PLG_SYSTEM_ACCESSIBILITY_READING'),
'textToSpeech' => Text::('PLG_SYSTEM_ACCESSIBILITY_TTS'),
'speechToText' => Text::
('PLG_SYSTEM_ACCESSIBILITY_STT'),
'resetTitle' => Text::('PLG_SYSTEM_ACCESSIBILITY_RESET'),
'closeTitle' => Text::
('PLG_SYSTEM_ACCESSIBILITY_CLOSE'),
],
'icon' => [
'position' => [
$direction => [
'size' => '0',
'units' => 'px',
]
]
],
'hotkeys' => [
'enabled' => true,
'helpTitles' => true,
],
'textToSpeechLang' => '[language of the Site]',
'speechToTextLang' => '[language of the Site]',

]
)

Thx a lot!

avatar JoomDirk JoomDirk - open - 11 Feb 2021
avatar joomla-cms-bot joomla-cms-bot - change - 11 Feb 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 11 Feb 2021
avatar brianteeman
brianteeman - comment - 11 Feb 2021

Please test #32389

avatar Quy Quy - change - 11 Feb 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-02-11 19:30:00
Closed_By Quy
avatar Quy Quy - close - 11 Feb 2021

Add a Comment

Login with GitHub to post a comment