summaryrefslogtreecommitdiff
path: root/js/codeq/hint.js
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-03-30 13:04:35 +0200
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-03-30 13:09:29 +0200
commit07a6662be9f1a59bfe3ae42baa6589d74568c9ce (patch)
tree80b2def41adcd06e360e475d712d37196cd5f45f /js/codeq/hint.js
parent5b03ea193c1927305fc99b93307b6c74bde0d84d (diff)
Add codeq.tr.translate function for GUI strings not in DOM
Diffstat (limited to 'js/codeq/hint.js')
-rw-r--r--js/codeq/hint.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/js/codeq/hint.js b/js/codeq/hint.js
index b8cf03b..e77a3dc 100644
--- a/js/codeq/hint.js
+++ b/js/codeq/hint.js
@@ -38,8 +38,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
hintCommonTr = commonDef.hint,
planDef = problemDef.plan,
templatePath = [problemDef.language, problemDef.group, problemDef.problem],
- guiDict = codeq.tr.getDictionary('gui'),
- btnMoreTranslations = guiDict['btn_more'] || {}, // get the default translations for the "more..." button
clearHints = function () {
var i;
@@ -197,7 +195,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
msg = content[lang][hintIndex];
if (typeof msg === 'string') {
trContent[lang] = codeq.template.process(msg, templatePath, args);
- trButton[lang] = btnMoreTranslations[lang] || 'More...';
+ trButton[lang] = codeq.tr.translate('btn_more', lang) || 'More...';
}
else {
trContent[lang] = codeq.template.process(msg.message, templatePath, args);