mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-31 16:14:53 +02:00
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:
parent
905845fa53
commit
38b19a6654
5 changed files with 71 additions and 11 deletions
|
@ -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;
|
||||
|
|
|
@ -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')
|
||||
})
|
||||
})
|
||||
);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue