public GitPushDialog(final Project project, final List<VirtualFile> roots, final VirtualFile defaultRoot) {
super(project, true);
setTitle(GitBundle.getString("push.title"));
+ setOKButtonText(GitBundle.getString("push.button"));
GitUIUtil.setupRootChooser(project, roots, defaultRoot, myGitRootComboBox, myCurrentBranch);
myProject = project;
setupRemotes();
GitUIUtil.setupRootChooser(myProject, roots, defaultRoot, myGitRoot, myCurrentBranch);
setupIncludeTags();
setupBranches();
+ setOKButtonText(GitBundle.getString("checkout.branch"));
myBranchToCkeckoutValidator =
new GitReferenceValidator(project, myGitRoot, getBranchToCheckoutTextField(), myValidateButton, new Runnable() {
public void run() {
init();
initListeners();
setTitle(GitBundle.getString("clone.title"));
+ setOKButtonText(GitBundle.getString("clone.button"));
}
/**
action.text.show.all.submitted=Show all files changed by this commit
add.action.name=Add
+addrefspec.button=Add
addrefspec.get.references.tooltip=Get remote tag and branch references (depending on checkbox state).
addrefspec.get.references=&Get References
addrefspec.getting.references.title=Getting remote references for {0}
checkout.validate.tooltip=Use this button to validate reference expression if entered manually.
checkout.validate=&Validate
checkout.validation.failed=Source revision validation failed
+clone.button=Clone
clone.destination.directory.description=Select a parent directory destination directory for clone
clone.destination.directory.title=Parent Directory
clone.destination.exists.error=The path {0} exists. The Git cannot clone to existing directory.
error.list.title={0} Error:
error.occurred.during=Error occurred during ''{0}''
fetch.action.name=Fetch
+fetch.button=Fetch
fetch.force.references.update.tooltip=Forces update of branch references for which update is not forced in refrence mapping.
fetch.force.references.update=Force references &update
fetch.remote.label=Re&mote:
merge.action.name=Merge
merge.add.log.information.tooltip=Add log information to the commit message (\"--log\" option)
merge.add.log.information=Add &log information
+merge.branch.button=Merge
merge.branch.message=Select branch to merge into this one ({0})
merge.branch.title=Merge Branches
merge.branches.tooltip=<html>The chooser for braches. Select one or more braches to merge (already merged branches are not shown)</html>.
merging.title=Merging changes to {0}
paths.affected.title=Paths affected in commit {0}
pull.action.name=Pull
+pull.button=Pull
pull.force.reference.update=Force reference &update
pull.get.branches.tooltip=Get branch names from remote repository. Otherwise a locally cached information is used.
pull.get.branches=&Get Branches
push.action.name=Push
push.branches.tooltip=Select branches to push
push.branches=&Branches:
+push.button=Push
push.force.update.tooltip=If selected remote ref is updated even if they are is not an ancestor of the local ref.
push.force.update=&Force update
push.policy.all=All
rebase.action.no.root=There is no rebase operation in progress in the project
rebase.branch.tooltip=Select branch to rebase (if branch is different from the current branch, it will be checked out first)
rebase.branch=&Branch:
+rebase.button=Rebase
rebase.continue.action.name=Continue Rebasing
rebase.editor.action.column=Action
+rebase.editor.button=Start Rebasing
rebase.editor.comment.column=Comment
rebase.editor.commit.column=Commit
rebase.editor.invalid.entryset=No commits found to rebase
rebase.show.tags.tooltip=Show tags in \"from\" and \"onto\" dropdowns.
rebase.skip.action.name=Skip Commit in Rebasing
rebase.title=Rebase branch
+rebase.unstructured.editor.button=Resume Rebasing
rebase.unstructured.editor.git.root=Git Root:
rebase.unstructured.editor.message=Git rebase operation requested additional &information through the editor:
rebase.unstructured.editor.title=Addtional Rebase Input
repository.action.missing.roots.title=No git roots
repository.action.missing.roots.unconfigured.message=No git roots are configured for the project.
reset.action.name=Reset Head ...
+reset.button=Reset
reset.commit.invalid=The specified commit expression did not pass validation.
reset.commit.label=To &Commit:
reset.commit.tooltip=The commit that will become the current HEAD\n as result of reset operation.
revert.action.name=Revert
revision.graph=RevisionGraph
select.branch.to.checkout=Select branch to checkout
+show.all.paths.affected.action.name=Show All Affected Paths
ssh.ask.passphrase.title=SSH Key Passphrase
ssh.askPassphrase.message=Please enter passphrase for the private key {0} (the user name is {1})
ssh.changed.host.key=<html>The server host key for the host {0}:{1} has changed to {2} (type {3}).\nDo you want to accept the changed key?</html>
sshmain.pk.authenitication.failed=Authentication using key {0} failed.
sshmain.too.mush.passphrase.guesses=Invalid passphrase for the key {0}({1} attempts)
stash.action.name=Stash
+stash.button=Create Stash
stash.keep.index.tooltip=If this checkbox is selected, indexed changes are kept in the index.
stash.keep.index=Keep &index
stash.message.tooltip=Enter stash message here.
stash.title=Stash
stashing.title=Stashing changes...
tag.action.name=Tag
+tag.button=Create Tag
tag.commit.label=&Commit:
tag.commit.tooltip=Enter name of commit or object to tag or leave blank to use HEAD.
tag.error.creating.message.file.message=Unable to create message file: {0}
unstash.action.name=UnStash
unstash.branch.label\:=As new &branch:
unstash.branch.tooltip=If non-empty name is entered, the stash is checked out as a new branch.
+unstash.button.apply=Apply Stash
+unstash.button.branch=Branch
+unstash.button.pop=Pop Stash
unstash.clear.tooltip=Delete all stashes in the repository.
unstash.clear=&Clear
unstash.clearing.stashes=Clearing stashes...
vfs.listener.delete.single.prompt=Do you want to delete the following file from Git?\n{0}\n\nIf you say NO, you can still delete it later manually.
vfs.listener.delete.single.title=Delete file from Git
vfs.listener.delete.title=Delete files from Git
-show.all.paths.affected.action.name=Show All Affected Paths
initBranchChooser();
GitMergeUtil.setupNoCommitCheckbox(myAddLogInformationCheckBox, myCommitMessage, myNoCommitCheckBox);
setOKActionEnabled(false);
+ setOKButtonText(GitBundle.getString("merge.branch.button"));
GitUIUtil.setupRootChooser(myProject, roots, defaultRoot, myGitRoot, myCurrentBranchText);
myGitRoot.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent e) {
updateRemotes();
}
});
+ setOKButtonText(GitBundle.getString("pull.button"));
updateRemotes();
setupBranches();
setupGetBranches();
protected String getHelpId() {
return "reference.VersionControl.Git.Pull";
}
-
+
/**
* @return remote key
*/
super(project, true);
GitUIUtil.setupRootChooser(project, roots, defaultRoot, myGitRootComboBox, null);
setTitle(title);
+ setOKButtonText(title);
init();
}
public GitRebaseDialog(Project project, List<VirtualFile> roots, VirtualFile defaultRoot) {
super(project, true);
setTitle(GitBundle.getString("rebase.title"));
+ setOKButtonText(GitBundle.getString("rebase.button"));
init();
myProject = project;
final Runnable validateRunnable = new Runnable() {
myProject = project;
myGitRoot = gitRoot;
setTitle(GitBundle.getString("rebase.editor.title"));
+ setOKButtonText(GitBundle.getString("rebase.editor.button"));
if (SystemInfo.isWindows && file.startsWith(CYGDRIVE_PREFIX)) {
final int prefixSize = CYGDRIVE_PREFIX.length();
file = file.substring(prefixSize, prefixSize + 1) + ":" + file.substring(prefixSize + 1);
protected GitRebaseUnstructuredEditor(Project project, VirtualFile root, String path) throws IOException {
super(project, true);
setTitle(GitBundle.message("rebase.unstructured.editor.title"));
+ setOKButtonText(GitBundle.message("rebase.unstructured.editor.button"));
myGitRootLabel.setText(root.getPresentableUrl());
encoding = GitConfigUtil.getCommitEncoding(project, root);
myFile = new File(path);
public GitFetchDialog(final Project project, final List<VirtualFile> roots, final VirtualFile defaultRoot) {
super(project, true);
setTitle(GitBundle.getString("fetch.title"));
+ setOKButtonText(GitBundle.getString("fetch.button"));
GitUIUtil.setupRootChooser(project, roots, defaultRoot, myGitRoot, null);
myProject = project;
myRefspecs.setProject(project);
@NotNull SortedSet<String> branches) {
super(project, true);
setTitle(GitBundle.getString("addrefspec.title"));
+ setOKButtonText(GitBundle.getString("addrefspec.button"));
myProject = project;
myRoot = root;
myRemote = remote;
super(project, true);
myProject = project;
setTitle(GitBundle.getString("reset.title"));
+ setOKButtonText(GitBundle.getString("reset.button"));
myResetTypeComboBox.addItem(MIXED);
myResetTypeComboBox.addItem(SOFT);
myResetTypeComboBox.addItem(HARD);
GitLineHandler handler = new GitLineHandler(myProject, getGitRoot(), GitHandler.RESET);
handler.setNoSSH(true);
String type = (String)myResetTypeComboBox.getSelectedItem();
- if(SOFT.equals(type)) {
+ if (SOFT.equals(type)) {
handler.addParameters("--soft");
}
- else if(HARD.equals(type)) {
+ else if (HARD.equals(type)) {
handler.addParameters("--hard");
}
- else if(MIXED.equals(type)) {
+ else if (MIXED.equals(type)) {
handler.addParameters("--mixed");
}
final String commit = myCommitTextField.getText().trim();
- if(commit.length() != 0) {
+ if (commit.length() != 0) {
handler.addParameters(commit);
}
return handler;
super(project, true);
myProject = project;
setTitle(GitBundle.getString("stash.title"));
+ setOKButtonText(GitBundle.getString("stash.button"));
GitUIUtil.setupRootChooser(project, roots, defaultRoot, myGitRootComboBox, myCurrentBranch);
init();
}
public GitTagDialog(Project project, List<VirtualFile> roots, VirtualFile defaultRoot) {
super(project, true);
setTitle(GitBundle.getString("tag.title"));
+ setOKButtonText(GitBundle.getString("tag.button"));
myProject = project;
GitUIUtil.setupRootChooser(myProject, roots, defaultRoot, myGitRootComboBox, myCurrentBranch);
myGitRootComboBox.addActionListener(new ActionListener() {
super(project, true);
myProject = project;
setTitle(GitBundle.getString("unstash.title"));
+ setOKButtonText(GitBundle.getString("unstash.button.apply"));
GitUIUtil.setupRootChooser(project, roots, defaultRoot, myGitRootComboBox, myCurrentBranch);
myStashList.setModel(new DefaultListModel());
refreshStashList();
updateDialogState();
}
});
+ myPopStashCheckBox.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ updateDialogState();
+ }
+ });
myClearButton.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent e) {
GitLineHandler h = new GitLineHandler(myProject, getGitRoot(), GitHandler.STASH);
public void updateDialogState() {
String branch = myBranchTextField.getText();
if (branch.length() != 0) {
+ setOKButtonText(GitBundle.getString("unstash.button.branch"));
myPopStashCheckBox.setEnabled(false);
myPopStashCheckBox.setSelected(true);
myReinstateIndexCheckBox.setEnabled(false);
myPopStashCheckBox.setSelected(false);
}
myPopStashCheckBox.setEnabled(true);
+ setOKButtonText(
+ myPopStashCheckBox.isSelected() ? GitBundle.getString("unstash.button.pop") : GitBundle.getString("unstash.button.apply"));
if (!myReinstateIndexCheckBox.isEnabled()) {
myReinstateIndexCheckBox.setSelected(false);
}