Aria-labels as well as empty option are not translatable

Created on 2 May 2024, 7 months ago
Updated 3 May 2024, 7 months ago

Problem/Motivation

According to WCAG success criteria 3.1.2 : The intent of this Success Criterion is to ensure that user agents can correctly present content written in multiple languages.
Though this module is awesome and it translates a lot, it doesn't translate it's own content.

Steps to reproduce

Go to /admin/config/regional/gtranslate and enter your language select label, for instance Select your language.
Reload your website and switch to another language. Inspect de dropdown.

<select class="gt_selector notranslate" aria-label="Select your language">
<option value="">Select your language</option>

The labels are still English though the page has lang='nl'

Proposed resolution

Make it possible to translate the label in the user interface translation.

🐛 Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

🇳🇱Netherlands bond708 Groningen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @bond708
  • 🇳🇱Netherlands dennisdk

    Good idea to make the configurable label translatable!
    Here is the (small) patch to do just that.

  • Status changed to RTBC 7 months ago
  • 🇮🇳India arunkumark Coimbatore

    Verified the patch. Applied and solved the issue. Followed bellow steps,

    1. Extract Translatable Strings:

    2. Updated the Generate Translation Template Files
    Navigate to Admin > Configuration > Regional and language > Translate interface > Export

    3. Uploaded the Translated Strings in
    Navigate to Admin > Configuration > Regional and language > Translate interface > Import

    After update,

Production build 0.71.5 2024