Merge pull request #337 from alexandear/master

Add translation to the "solved level" message
This commit is contained in:
Peter Cottle 2015-11-24 16:29:42 -08:00
commit 7adbd2967a
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(