Added few missing translations

First of all:
+ bottom command bar labels
+ missing command translation
+ command not supported in current environment translation
This commit is contained in:
YourSenseiCreeper 2021-02-08 15:51:11 +01:00
parent 905845fa53
commit 38b19a6654
5 changed files with 71 additions and 11 deletions

View file

@ -8,6 +8,8 @@ var Tag = require('../git').Tag;
var Command = require('../models/commandModel').Command;
var TIME = require('../util/constants').TIME;
var intl = require('../intl');
var CommitCollection = Backbone.Collection.extend({
model: Commit
});
@ -94,8 +96,7 @@ var CommandBuffer = Backbone.Model.extend({
if (!numListeners) {
var Errors = require('../util/errors');
command.set('error', new Errors.GitError({
msg: 'That command is valid, but not supported in this current environment!' +
' Try entering a level or level builder to use that command'
msg: intl.str('error-command-currently-not-supported')
}));
deferred.resolve();
return;

View file

@ -228,7 +228,11 @@ var Command = Backbone.Model.extend({
// if we reach here, this command is not supported :-/
this.set('error', new CommandProcessError({
msg: 'The command "' + this.get('rawStr') + '" isn\'t supported, sorry!'
msg: intl.str(
'git-error-command-not-supported',
{
command: this.get('rawStr')
})
})
);
},