Question Set: Language customization leaves several interface strings untranslated

papi Jo's picture

When changing the language of the official H5P Question Set content type, several interface strings remain in English, even though translations are available in the corresponding language files.

I reproduced this problem with French and Spanish.

For example, the French translation file contains:

 { "label": "Titre des commentaires", "default": "Vos résultats :" } 

However, the Question Set editor still displays the English default:

 Your result: 

Other affected strings include Start Quiz, Show solution, and Retry.

The problem appears to affect the language-customization functionality rather than the availability of translations.

Expected behavior: Selecting French should apply the available French translations to the corresponding interface-text fields.

Actual behavior: Several fields retain their English defaults.

 

otacke's picture

I think you asked me this before, via mail maybe, and I bet I answered this before, too: The strings that you mention are not part of the usual text overrides and translations group and therefore will not update when you change the language. You should get the French version, however, if you edit the content in French right away.

Example: "Start quiz" is a regular text field (https://github.com/h5p/h5p-question-set/blob/4598d1d60ea8730e62c66a4ac6ad5ef653f0c5f6/semantics.json#L53) and translated as "Commencer" in French (https://github.com/h5p/h5p-question-set/blob/4598d1d60ea8730e62c66a4ac6ad5ef653f0c5f6/language/fr.json#L19).

So, unexpected user interface for sure, but not a bug.