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.
hey there,
the Quiz module features multi-step forms (quizzes) in which every page has a question. there's a button at the bottom which says either "Next" or "Finish", wether the user is on the last page or not.
now those buttons' captions are wrapped in t() but they can't be translated.
here's the relevant code:
// Add navigation at the bottom:
$form['navigation']['submit'] = array(
'#type' => 'submit',
'#value' => $is_last ? t('Finish') : t('Next'),
);
I visited admin/config/regional/translate/i18n_string and refreshed strings for all text groups - multiple times. no joy.
if you need more info, please let me know. thanks!
cheers,
Luciano
Comments
Comment #1
Jose Reyero CreditAttribution: Jose Reyero commentedThe way to translate this is using t() so it may be some (maybe caching?) issue with Quiz module. It doesn't make sense to use i18n strings for it.
Moving to that module.
Comment #2
luco CreditAttribution: luco commentedgot it!
the string was being indicated as belonging to
modules/locale/locale.datepicker.js
.I translated it anyway and it worked for the Quiz module.
why did this "merge" happen?
Comment #3
ezraw CreditAttribution: ezraw commentedComment #4
djdevin