Add translation to the "solved level" message

This commit is contained in:
Oleksandr Redko 2015-11-25 00:38:20 +02:00
parent 5c56742502
commit c1be06764a
2 changed files with 9 additions and 1 deletions

View file

@ -854,6 +854,13 @@ exports.strings = {
'uk': 'Ти вже пройшов цей рівень, спробуй інші рівні з "levels" чи повернись в пісочницю з "sandbox"'
},
///////////////////////////////////////////////////////////////////////////
'solved-level': {
'__desc__': 'When you solved a level',
'en_US': 'Solved!!\n:D',
'ru_RU': 'Решено!!\n:D',
'uk' : 'Вирішено!!\n:D'
},
///////////////////////////////////////////////////////////////////////////
'command-disabled': {
'__desc__': 'When you try a command that is disabled',
'en_US': 'That git command is disabled for this level!',

View file

@ -1,6 +1,7 @@
var _ = require('underscore');
var Q = require('q');
var intl = require('../intl');
var GRAPHICS = require('../util/constants').GRAPHICS;
var GlobalStateStore = require('../stores/GlobalStateStore');
@ -220,7 +221,7 @@ GitVisuals.prototype.finishAnimation = function(speed) {
var defaultTime = GRAPHICS.defaultAnimationTime;
var nodeRadius = GRAPHICS.nodeRadius;
var textString = 'Solved!!\n:D';
var textString = intl.str('solved-level');
var text = null;
var makeText = function() {
text = this.paper.text(