Hi and thank you for this great module!

While I see taht a riddler.settings.yml file is created in both languages, I can't find a way to translate the questions and answers in config translation. What am I doing wrong?

I'd be willig to write a patch for a README.txt or something like this, if someone answers the question. Or isn't this working at all?

Issue fork riddler-3092509

Command icon Show commands

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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anybody created an issue. See original summary.

bdautun’s picture

Here is a patch to translate the questions.

ressa’s picture

Status: Active » Needs work

Thanks @bdautun!

But you need to make the change in the new branch, here: https://git.drupalcode.org/issue/riddler-3092509/-/blob/3092509-how-to-t...

Anybody’s picture

Category: Support request » Feature request

@ressa: I don't think the implementation is correct here!

Captcha Riddler is config and should use config translation, not interface translation's t() function! Do you agree?

Anybody’s picture

As label and solution are already translatable schema types in the schema.yml of this module, they should already be translatable!

So what's missing here is the UI for the translation or there's a schema error.

Grevil’s picture

Status: Needs work » Active

Yes, the only problem should be the missing UI. We should hook into the "CAPTCHA settings -> Translate" Page and add a Form for the Riddle translations. Alternatively, we could also create the Form on the "Riddler Riddles" Page. I will try to create a patch for the UI.

EDIT: The captcha settings "Translate Page" is definitly not the right page for the riddler translations... The problem might be related to issues mentioned in #3111315: [2.x] Riddler 2.x release (incorrect schema file name, maybe the schema types)

I will look into it!

Grevil’s picture

Assigned: Unassigned » Anybody

Nope, issue #3111315: [2.x] Riddler 2.x release won't solve any problems... The ability to translate the riddles should become available through the "Configuration translation" module, but doesn't, and I don't have enough translation experience to understand why.

Maybe the Captcha module overwrites the riddler translation UI, but I doubt it, hence riddler isn't a real captcha submodule but only hooks into the captcha routing / forms.

Maybe @Anybody can solve the mystery!

Grevil’s picture

Status: Active » Needs work
Grevil’s picture

OK, I think I found the problem, it might actually be a schema problem, I will resume fixing this issue inside #3111315: [2.x] Riddler 2.x release

Grevil’s picture

Assigned: Anybody » Unassigned
Status: Needs work » Postponed
Anybody’s picture

Status: Postponed » Closed (won't fix)

This won't be fixed in 8.x-1.x - use 2.x instead where this is fixed! :)