Closed (fixed)
Project:
ALTCHA
Version:
1.0.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Apr 2025 at 07:31 UTC
Updated:
30 Oct 2025 at 10:49 UTC
Jump to comment: Most recent
Label texts are not translated.
Translate the text from /admin/config/people/captcha/altcha in /admin/config/regional/translate. It won't be translated in the user interface.
add the translate function to code. (See patch)
| Comment | File | Size | Author |
|---|
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
pprueller commentedComment #3
filsterjisah commentedCould you provide more details, please? The attached patch and the issue description do not seem to align. The patch translates the ALTCHA keys instead of incorporating the Translation Configuration module (which is part of the core). However, the issue description states that 'text' is not being translated.
Comment #4
filsterjisah commentedComment #5
pprueller commentedI mean the "text" inputs in the widget settings area. (like e.g. Aria link label text)
I had to translate the config value with t(...). This was the solution. (see patch)
Comment #6
gido commentedActually, the code is already in place to make the labels configuration translatable. The route is just not easily reachable: `/admin/config/people/captcha/altcha/translate`.
Probably something wrong with the tasks menu.
Comment #7
robindh commentedI can confirm the behavior @gido describes. The fields are translatable via the config_translation module, but there is no local task pointing to the translation configuration form.
I'm pretty sure there is some kind of conflict with the captcha module, since our
altcha.settings_tablocal task also uses thecaptcha_settingsbase route. I'll attach a merge request where the local task is manually defined inaltcha.links.task.yml, although this is not idealComment #9
robindh commentedComment #10
robindh commentedNeeds a better fix, this won't work on websites that do not have the config_translation module enabled.
Comment #11
robindh commentedTweaked the merge request to use a similar fix as applied in #2822890
Comment #13
filsterjisah commented