Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comment | File | Size | Author |
---|---|---|---|
#2 | riddler-translation-3092509-0.patch | 533 bytes | bdautun |
Issue fork riddler-3092509
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:
- 3092509-how-to-translate changes, plain diff MR !3
Comments
Comment #2
bdautun CreditAttribution: bdautun at Ecedi commentedHere is a patch to translate the questions.
Comment #4
ressa CreditAttribution: ressa at Ardea commentedThanks @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...
Comment #5
Anybody@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?
Comment #6
AnybodyAs
label
andsolution
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.
Comment #7
Grevil CreditAttribution: Grevil as a volunteer and at DROWL.de commentedYes, 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!
Comment #9
Grevil CreditAttribution: Grevil as a volunteer and at DROWL.de commentedNope, 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!
Comment #10
Grevil CreditAttribution: Grevil as a volunteer and at DROWL.de commentedComment #11
Grevil CreditAttribution: Grevil as a volunteer and at DROWL.de commentedOK, 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
Comment #12
Grevil CreditAttribution: Grevil as a volunteer and at DROWL.de commentedFIXED in #3111315: [2.x] Riddler 2.x release!
POSTPONED on #3111315: [2.x] Riddler 2.x release
Comment #13
AnybodyThis won't be fixed in 8.x-1.x - use 2.x instead where this is fixed! :)