summaryrefslogtreecommitdiff
path: root/js/codeq/hint.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/codeq/hint.js')
-rw-r--r--js/codeq/hint.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/codeq/hint.js b/js/codeq/hint.js
index fb07cfb..331c822 100644
--- a/js/codeq/hint.js
+++ b/js/codeq/hint.js
@@ -22,6 +22,8 @@
planDef = problemDef.plan,
templatePath = [problemDef.language, problemDef.group, problemDef.problem],
templateName = templatePath.join('/'),
+ guiDict = codeq.tr.getDictionary('gui'),
+ btnMoreTranslations = guiDict['btn_more'] || {}, // get the default translations for the "more..." button
clearHints = function () {
var i;
@@ -192,7 +194,7 @@
msg = content[lang][hintIndex];
if (typeof msg === 'string') {
trContent[lang] = processTemplate(msg, args);
- trButton[lang] = 'More...';
+ trButton[lang] = btnMoreTranslations[lang] || 'More...';
}
else {
trContent[lang] = processTemplate(msg.message, args);