related to #18615
This commit is contained in:
Joao Moreno
2017-01-17 17:38:00 +01:00
parent fab6f8871a
commit 43dd9b76b0
7 changed files with 87 additions and 48 deletions

View File

@@ -8,6 +8,9 @@
import { window, Disposable, StatusBarItem, StatusBarAlignment } from 'vscode';
import { RefType, IBranch } from './git';
import { Model, Operation } from './model';
import * as nls from 'vscode-nls';
const localize = nls.loadMessageBundle();
export class CheckoutStatusBar {
@@ -116,11 +119,11 @@ export class SyncStatusBar {
text += `${HEAD.behind}${HEAD.ahead}`;
}
command = 'git.sync';
tooltip = 'Synchronize changes';
tooltip = localize('sync changes', "Synchronize changes");
} else {
icon = '$(cloud-upload)';
command = 'git.publish';
tooltip = 'Publish changes';
tooltip = localize('publish changes', "Publish changes");
}
} else {
command = '';
@@ -130,7 +133,7 @@ export class SyncStatusBar {
if (this.state.isSyncRunning) {
text = '';
command = '';
tooltip = 'Synchronizing changes...';
tooltip = localize('syncing changes', "Synchronizing changes...");
}
this.raw.text = [icon, text].join(' ').trim();